diff --git a/lib/route_types.pl b/lib/route_types.pl index c75a86696471..7d6d28c8283c 100755 --- a/lib/route_types.pl +++ b/lib/route_types.pl @@ -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\""; @@ -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); @@ -210,4 +211,3 @@ sub collect { #endif /* _FRR_ROUTE_TYPES_H */ EOF -