Skip to content

Commit 925b463

Browse files
authored
Fix: Unnumbered interfaces crash topology graphs (#2855)
1 parent 5601238 commit 925b463

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

netsim/outputs/_graph.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ def append_edge(graph: Box, if_a: Box, if_b: Box, g_type: str) -> None:
134134
e_attr = get_empty_box()
135135
for intf in (if_a, if_b):
136136
addr = intf.ipv4 or intf.ipv6
137+
if addr is True:
138+
addr = "auto"
137139
if addr and 'prefix' not in intf:
138140
addr = addr.split('/')[0]
139141
intf_attr = get_graph_attributes(intf,g_type)

0 commit comments

Comments
 (0)