diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-05-17 13:32:07 +0000 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-05-17 13:38:43 +0000 |
commit | c008e48b23911145ccf4b2681386861f643c7d8c (patch) | |
tree | e23def39b36aae3a522f2ac8dea839f45004b70e | |
parent | 982c5de889e8dd54593d17c90033dc45022e1bcc (diff) |
server: fix wrong usage of zapi
sending REDISTRIBUTE_DEFAULT_ADD command causes getting every routes
zebra has which is not desirable behavior
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
-rw-r--r-- | server/zclient.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/server/zclient.go b/server/zclient.go index e9116b2e..0d2f4300 100644 --- a/server/zclient.go +++ b/server/zclient.go @@ -186,8 +186,5 @@ func NewZclient(url string, redistRouteTypes []config.InstallProtocolType) (*zeb } cli.SendRedistribute(t) } - if e := cli.SendCommand(zebra.REDISTRIBUTE_DEFAULT_ADD, nil); e != nil { - return nil, e - } return cli, nil } |