Skip to content

Instantly share code, notes, and snippets.

@tbaschak
Created January 8, 2017 07:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbaschak/6ab637e213741039cec87579ff42a2ef to your computer and use it in GitHub Desktop.
Save tbaschak/6ab637e213741039cec87579ff42a2ef to your computer and use it in GitHub Desktop.
adds show rib community command to openbsd bgplg
--- bgplg.h.orig 2017-01-08 00:54:08.000000000 -0600
+++ bgplg.h 2017-01-08 01:00:11.000000000 -0600
@@ -47,6 +47,8 @@
{ BGPCTL, "show", "ip", "bgp", "peer-as", NULL } }, \
{ "show ip bgp empty-as", 0, 0, NULL, \
{ BGPCTL, "show", "ip", "bgp", "empty-as", NULL } }, \
+ { "show rib community", 1, 1, "<community>", \
+ { BGPCTL, "show", "rib", "community", NULL } }, \
{ "show ip bgp summary", 0, 0, NULL, \
{ BGPCTL, "show", "ip", "bgp", "summary", NULL } }, \
{ "show ip bgp detail", 1, 1, "<prefix>", \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment