diff options
-rw-r--r-- | gobgp/cmd/neighbor.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gobgp/cmd/neighbor.go b/gobgp/cmd/neighbor.go index 1f92c9b9..3d2d6168 100644 --- a/gobgp/cmd/neighbor.go +++ b/gobgp/cmd/neighbor.go @@ -50,6 +50,9 @@ func getNeighbors(vrf string) (neighbors, error) { } func getNeighbor(name string, enableAdvertised bool) (*config.Neighbor, error) { + if net.ParseIP(name) == nil { + name = "" + } return client.GetNeighbor(name, enableAdvertised) } |