diff --git a/tests/common/devices.py b/tests/common/devices.py index 0f5cfd166b1..4c67738c7d9 100644 --- a/tests/common/devices.py +++ b/tests/common/devices.py @@ -484,7 +484,7 @@ def get_ip_route_info(self, dstip): if m: rtinfo['set_src'] = ipaddress.ip_address(m.group(2)) elif m1: - rtinfo['set_src'] = ipaddress.ip_address(m.group(3)) + rtinfo['set_src'] = ipaddress.ip_address(m1.group(3)) # parse nexthops for l in rt: