summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-05-17 13:32:07 +0000
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-05-17 13:38:43 +0000
commitc008e48b23911145ccf4b2681386861f643c7d8c (patch)
treee23def39b36aae3a522f2ac8dea839f45004b70e /server
parent982c5de889e8dd54593d17c90033dc45022e1bcc (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>
Diffstat (limited to 'server')
-rw-r--r--server/zclient.go3
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
}