summaryrefslogtreecommitdiff
path: root/tests/topotests/lib/topotest.py
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2020-09-18 15:47:27 -0400
committerDonald Sharp <sharpd@nvidia.com>2020-09-22 15:57:43 -0400
commit5a3cf85391b3665b5344d577e98aaa29a1927818 (patch)
tree3a741a61822632d23877cf37a9f25999dd482fe1 /tests/topotests/lib/topotest.py
parent4c56ce1cead5f6514ea2af34f0b7a07c35746520 (diff)
lib, zebra: Add ability to read kernel notice of TRAP/OFFLOAD
The linux kernel is getting RTM_F_TRAP and RTM_F_OFFLOAD for kernel routes that have an underlying asic offload. Write the code to receive these notifications from the linux kernel and to store that data for display about the routes. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'tests/topotests/lib/topotest.py')
-rw-r--r--tests/topotests/lib/topotest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py
index e34d1cf0be..c3f3730b2a 100644
--- a/tests/topotests/lib/topotest.py
+++ b/tests/topotests/lib/topotest.py
@@ -628,7 +628,7 @@ def ip4_route_zebra(node, vrf_name=None):
lines = output.splitlines()
header_found = False
while lines and (not lines[0].strip() or not header_found):
- if "> - selected route" in lines[0]:
+ if "o - offload failure" in lines[0]:
header_found = True
lines = lines[1:]
return "\n".join(lines)
@@ -654,7 +654,7 @@ def ip6_route_zebra(node, vrf_name=None):
lines = output.splitlines()
header_found = False
while lines and (not lines[0].strip() or not header_found):
- if "> - selected route" in lines[0]:
+ if "o - offload failure" in lines[0]:
header_found = True
lines = lines[1:]