pygui: updated edge token to default to 0 for interface ids due to grpc messages not properly supporting None
This commit is contained in:
parent
8297b74524
commit
664b049bf7
1 changed files with 2 additions and 2 deletions
|
@ -28,8 +28,8 @@ def create_wireless_token(src: int, dst: int, network: int) -> str:
|
|||
|
||||
|
||||
def create_edge_token(link: Link) -> str:
|
||||
iface1_id = link.iface1.id if link.iface1 else None
|
||||
iface2_id = link.iface2.id if link.iface2 else None
|
||||
iface1_id = link.iface1.id if link.iface1 else 0
|
||||
iface2_id = link.iface2.id if link.iface2 else 0
|
||||
return f"{link.node1_id}-{iface1_id}-{link.node2_id}-{iface2_id}"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue