ll_per_if_count = 0
# Interface ip
- m1 = re_search("inet6 (fe80[:a-fA-F0-9]+[\/0-9]+)", line)
+ m1 = re_search("inet6 (fe80[:a-fA-F0-9]+[/0-9]+)", line)
if m1:
local = m1.group(1)
ll_per_if_count += 1
router_list = tgen.routers()
ROUTER_LIST = sorted(
- router_list.keys(), key=lambda x: int(re_search("\d+", x).group(0))
+ router_list.keys(), key=lambda x: int(re_search("[0-9]+", x).group(0))
)
TMPDIR = os.path.join(LOGDIR, tgen.modname)
router_list = tgen.routers()
ROUTER_LIST = sorted(
- router_list.keys(), key=lambda x: int(re_search("\d+", x).group(0))
+ router_list.keys(), key=lambda x: int(re_search("[0-9]+", x).group(0))
)
for rtr in ROUTER_LIST: