diff --git a/api/patch_request.py b/api/patch_request.py index a6281d0fc6830a9ef72dcd191725c5815df80f77..fcb9ceff38845c1144e73690b127dbbba1c9b955 100644 --- a/api/patch_request.py +++ b/api/patch_request.py @@ -42,20 +42,20 @@ async def get_insert_types(token: APIToken = Depends(check_auth), conn=Depends(g module_types: dict[str, InsertType] = { '1xETH (Gbit)': InsertType(name='1xETH (Gbit)', ports=[ - InsertPort(type='ETH', type_group='ETH', count=1, proto='Ethernet', name_prefix='', name_suffix='::1'), + InsertPort(type='ETH', type_group='ETH', count=1, proto='Ethernet', name_prefix='', name_suffix=''), ]), '2xETH (100 Mbit)': InsertType(name='2xETH (100 Mbit)', ports=[ - InsertPort(type='ETH', type_group='ETH', count=1, proto='Ethernet', name_prefix='', name_suffix='/1'), - InsertPort(type='ETH', type_group='ETH', count=1, proto='Ethernet', name_prefix='', name_suffix='/2'), + InsertPort(type='ETH', type_group='ETH', count=1, proto='Ethernet', name_prefix='', name_suffix='::1'), + InsertPort(type='ETH', type_group='ETH', count=1, proto='Ethernet', name_prefix='', name_suffix='::2'), ]), '1xETH (100 Mbit) + 1xTEL': InsertType(name='1xETH (100 Mbit) + 1xTEL', ports=[ - InsertPort(type='ETH', type_group='ETH', count=1, proto='Ethernet', name_prefix='', name_suffix='/1'), - InsertPort(type='TEL', type_group='TEL', count=1, proto='ISDN', name_prefix='', name_suffix='/A'), + InsertPort(type='ETH', type_group='ETH', count=1, proto='Ethernet', name_prefix='', name_suffix=''), + InsertPort(type='TEL', type_group='TEL', count=1, proto='ISDN', name_prefix='', name_suffix='::A'), ]), '1xETH (100 Mbit) + 2xTEL': InsertType(name='1xETH (100 Mbit) + 2xTEL', ports=[ - InsertPort(type='ETH', type_group='ETH', count=1, proto='Ethernet', name_prefix='', name_suffix='/1'), - InsertPort(type='TEL', type_group='TEL', count=1, proto='ISDN', name_prefix='', name_suffix='/A'), - InsertPort(type='TEL', type_group='TEL', count=1, proto='ISDN', name_prefix='', name_suffix='/B'), + InsertPort(type='ETH', type_group='ETH', count=1, proto='Ethernet', name_prefix='', name_suffix=''), + InsertPort(type='TEL', type_group='TEL', count=1, proto='ISDN', name_prefix='', name_suffix='::A'), + InsertPort(type='TEL', type_group='TEL', count=1, proto='ISDN', name_prefix='', name_suffix='::B'), ]) }