From 94865943c66490dd8e3805e5826849c92ff6e36b Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Wed, 22 Feb 2017 06:57:20 +0000 Subject: client: fix bug of getting unnumbered neighbor --- client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/client.go b/client/client.go index 1dddcb56..ba2d415a 100644 --- a/client/client.go +++ b/client/client.go @@ -136,7 +136,7 @@ func (cli *Client) getNeighbor(name string, afi int, vrf string, enableAdvertise neighbors := make([]*config.Neighbor, 0, len(ret.Peers)) for _, p := range ret.Peers { - if name != "" && name != p.Conf.NeighborAddress { + if name != "" && name != p.Conf.NeighborAddress && name != p.Conf.NeighborInterface { continue } if vrf != "" && name != p.Conf.Vrf { -- cgit v1.2.3