ret = luCommand(
"r2",
"ip -M route show",
- "\d*(?= via inet 10.0.2.4 dev r2-eth1)",
+ r"\d*(?= via inet 10.0.2.4 dev r2-eth1)",
"wait",
"See mpls route to r4",
)
ret = luCommand(
"r2",
"ip -M route show",
- "\d*(?= via inet 10.0.1.1 dev r2-eth0)",
+ r"\d*(?= via inet 10.0.1.1 dev r2-eth0)",
"wait",
"See mpls route to r1",
)
ret = luCommand(
rtr,
'vtysh -c "show memory"',
- "zebra: System allocator statistics: Total heap allocated: *(\d*) ([A-Za-z]*) .*bgpd: System allocator statistics: Total heap allocated: *(\d*) ([A-Za-z]*)",
+ r"zebra: System allocator statistics: Total heap allocated: *(\d*) ([A-Za-z]*) .*bgpd: System allocator statistics: Total heap allocated: *(\d*) ([A-Za-z]*)",
"none",
"collect bgpd memory stats",
)
ret = luCommand(
rtr,
'vtysh -c "show memory"',
- "zebra: System allocator statistics: Total heap allocated: *(\d*) ([A-Za-z]*) .*bgpd: System allocator statistics: Total heap allocated: *(\d*) ([A-Za-z]*)",
+ r"zebra: System allocator statistics: Total heap allocated: *(\d*) ([A-Za-z]*) .*bgpd: System allocator statistics: Total heap allocated: *(\d*) ([A-Za-z]*)",
"none",
"collect bgpd memory stats",
)
# collect/log info on iproute2
cc = ltemplateRtrCmd()
found = cc.doCmd(
- tgen, rname, "apt-cache policy iproute2", "Installed: ([\d\.]*)"
+ tgen, rname, "apt-cache policy iproute2", r"Installed: ([\d\.]*)"
)
if found != None:
iproute2Ver = found.group(1)