From ba35e6215f305610be437249819fed76ff185a8b Mon Sep 17 00:00:00 2001 From: Alexandre VOGEL Date: Wed, 23 Nov 2022 23:02:00 +0100 Subject: [PATCH] Indent edge.update that was overwriting fake switches' IPs --- p4utils/mininetlib/network_API.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p4utils/mininetlib/network_API.py b/p4utils/mininetlib/network_API.py index d305cc5..bd3376e 100644 --- a/p4utils/mininetlib/network_API.py +++ b/p4utils/mininetlib/network_API.py @@ -203,7 +203,7 @@ def default(obj): if ip1 is not None: subnet1 = _prefixLenMatchRegex.findall(intf1.ifconfig())[0] ip1 = ip_interface(ip1+'/'+subnet1).with_prefixlen - edge.update(ip1=ip1, addr1=addr1) + edge.update(ip1=ip1, addr1=addr1) port2 = edge['port2'] intf2 = self.net[node2].intfs[port2] @@ -211,7 +211,7 @@ def default(obj): if ip2 is not None: subnet2 = _prefixLenMatchRegex.findall(intf2.ifconfig())[0] ip2 = ip_interface(ip2+'/'+subnet2).with_prefixlen - edge.update(ip2=ip2, addr2=addr2) + edge.update(ip2=ip2, addr2=addr2) # Remove sw-cpu if present if 'sw-cpu' in graph: