summaryrefslogtreecommitdiff
path: root/lib/route_types.pl
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 /lib/route_types.pl
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 'lib/route_types.pl')
-rwxr-xr-xlib/route_types.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/route_types.pl b/lib/route_types.pl
index e007de4d69..39af8d0d56 100755
--- a/lib/route_types.pl
+++ b/lib/route_types.pl
@@ -121,7 +121,10 @@ sub codelist {
}
$str =~ s/ $//;
push @lines, $str . "\\n\" \\\n";
- push @lines, " \" > - selected route, * - FIB route, q - queued, r - rejected, b - backup\\n\\n\"";
+ push @lines, " \" > - selected route, * - FIB route, q - queued, r - rejected, b - backup\\n\"";
+ push @lines, " \" t - trapped, o - offload failure\\n\"";
+
+
return join("", @lines);
}