Skip to content

Commit

Permalink
ripd/ripngd: adjust header for display command
Browse files Browse the repository at this point in the history
Both rip and ripng can import routes from other protocols, e.g. ISIS.
But their header doesn't list the description for these abbreviations.

Adjust `show ip rip` (and `show ipv6 ripng`) 's header for display
command.

Before:
```
Codes: R - RIP, C - connected, S - Static, O - OSPF, B - BGP
Sub-codes:
      (n) - normal, (s) - static, (d) - default, (r) - redistribute,
      (i) - interface
```

After:
```
Codes: K - kernel route, C - connected, L - local, S - static,
       R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,
       f - OpenFabric, t - Table-Direct,
Sub-codes:
      (n) - normal, (s) - static, (d) - default, (r) - redistribute,
      (i) - interface
```

Signed-off-by: anlan_cs <[email protected]>
  • Loading branch information
anlancs committed Jun 20, 2024
1 parent 550a3a8 commit 414cd17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion ripd/ripd.c
Original file line number Diff line number Diff line change
Expand Up @@ -3054,7 +3054,10 @@ DEFUN (show_ip_rip,
}

vty_out(vty,
"Codes: R - RIP, C - connected, S - Static, O - OSPF, B - BGP\n"
"Codes: K - kernel route, C - connected, L - local, S - static,\n"
" R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,\n"
" T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,\n"
" f - OpenFabric, t - Table-Direct\n"
"Sub-codes:\n"
" (n) - normal, (s) - static, (d) - default, (r) - redistribute,\n"
" (i) - interface\n\n"
Expand Down
5 changes: 4 additions & 1 deletion ripngd/ripngd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2070,7 +2070,10 @@ DEFUN (show_ipv6_ripng,

/* Header of display. */
vty_out(vty,
"Codes: R - RIPng, C - connected, S - Static, O - OSPF, B - BGP\n"
"Codes: K - kernel route, C - connected, L - local, S - static,\n"
" R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,\n"
" T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,\n"
" f - OpenFabric, t - Table-Direct\n"
"Sub-codes:\n"
" (n) - normal, (s) - static, (d) - default, (r) - redistribute,\n"
" (i) - interface, (a/S) - aggregated/Suppressed\n\n"
Expand Down

0 comments on commit 414cd17

Please sign in to comment.