Skip to content
Snippets Groups Projects
Commit 14b52862 authored by !! Julian Keck (old Account; do not use) !!'s avatar !! Julian Keck (old Account; do not use) !! :ghost:
Browse files

FIX port suffixes for change insert

parent c4e2cac1
No related branches found
No related tags found
No related merge requests found
......@@ -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'),
])
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment