Skip to content

Commit

Permalink
lib: add missing SR-TE to ipv6 route show command
Browse files Browse the repository at this point in the history
Add "p - SR-TE" field to the list.

rt2# show ipv6 route
Codes: K - kernel route, C - connected, L - local, S - static,
       R - RIPng, O - OSPFv3, I - IS-IS, B - BGP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
       F - PBR, f - OpenFabric, t - Table-Direct, p - SR-TE
       > - selected route, * - FIB route, q - queued, r - rejected, b - backup
       t - trapped, o - offload failure

Signed-off-by: Dmytro Shytyi <[email protected]>
  • Loading branch information
dmytroshytyi-6WIND committed Mar 27, 2024
1 parent 297e8cf commit d1e9386
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/route_types.pl
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ sub codelist {
$str .= $s;
}
$str =~ s/ $//;
push @lines, $str . "\\n\" \\\n";
push @lines, $str . " p - SR-TE,";
push @lines, "\\n\" \\\n";
push @lines, " \" > - selected route, * - FIB route, q - queued, r - rejected, b - backup\\n\"";
push @lines, " \" t - trapped, o - offload failure\\n\\n\"";

Expand All @@ -131,7 +132,7 @@ sub collect {
my (@names, @help) = ((), ());
for my $p (@protos) {
next if ($protodetail{$p}->{"daemon"} eq $daemon && $daemon ne "zebra");
next if ($protodetail{$p}->{"restrict2"} ne "" &&
next if ($protodetail{$p}->{"restrict2"} ne "" &&
$protodetail{$p}->{"restrict2"} ne $daemon);
next if ($protodetail{$p}->{"redist"} eq 0);
next unless (grep $_ eq $protodetail{$p}->{"enabled"}, @enabled);
Expand Down Expand Up @@ -210,4 +211,3 @@ sub collect {
#endif /* _FRR_ROUTE_TYPES_H */
EOF

0 comments on commit d1e9386

Please sign in to comment.