diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-10-27 14:35:40 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-10-27 14:35:40 +0900 |
commit | ad412e6502010a6f16587b63fba642b6368d7fb4 (patch) | |
tree | ab3e92369897b305a16babd8f4fed3344f8ec0dc | |
parent | c66b596122b6c27546ed21c7604bd0d6a042fd6c (diff) |
cli: set ipv4 as default route family for global rib show command
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
-rw-r--r-- | gobgp/cmd/neighbor.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gobgp/cmd/neighbor.go b/gobgp/cmd/neighbor.go index 91db2e0e..9b068c33 100644 --- a/gobgp/cmd/neighbor.go +++ b/gobgp/cmd/neighbor.go @@ -416,6 +416,7 @@ func showNeighborRib(r string, name string, args []string) error { def := addr2AddressFamily(net.ParseIP(name)) switch r { case CMD_GLOBAL: + def = bgp.RF_IPv4_UC showBest = true resource = api.Resource_GLOBAL case CMD_LOCAL: |