diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2017-02-22 06:57:20 +0000 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-04-04 22:07:46 +0900 |
commit | 94865943c66490dd8e3805e5826849c92ff6e36b (patch) | |
tree | e9f56b7effed9d82cf2363d42d59fc5b8d9f3f81 | |
parent | f8b9b0a7ed24744cd7e3ea7b56575ef0b428eb69 (diff) |
client: fix bug of getting unnumbered neighbor
-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 { |