From f9e08c3c049dc58debf6f64da5b42388e15f3284 Mon Sep 17 00:00:00 2001 From: Guohan Lu Date: Fri, 1 May 2020 03:32:59 +0000 Subject: [PATCH] [pytest]: fix typo in parse default route output --- tests/common/devices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: