diff options
-rw-r--r-- | client/client.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |