summaryrefslogtreecommitdiffhomepage
path: root/client/client.go
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-02-24 11:34:03 +0900
committerIWASE Yusuke <iwase.yusuke0@gmail.com>2017-03-06 11:11:54 +0900
commit59ec403de73d4c83ef28291661941c6334480ebd (patch)
tree2cc128fdb0c541d9fa2727920799bef5e540c738 /client/client.go
parentc06423e60bfb5d8d19a092d89def8f351e421368 (diff)
config: Config values for Nexthop Tracking with ZClient
For configuring the Nexthop Tracking features with ZClient, this patch adds the config values: - "nexthop-trigger-enable" enables to the Nexthop Tracking features. Please note this features is only available with version 3 or later, and "true" by the default with that version. - "nexthop-trigger-delay" specifies the delay sec to update the nexthops triggered by the events from Zebra daemon. The default is 5 secs and the same with the default of Cisco's routers. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'client/client.go')
-rw-r--r--client/client.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/client.go b/client/client.go
index 211e55ef..935a9fa1 100644
--- a/client/client.go
+++ b/client/client.go
@@ -115,8 +115,10 @@ func (cli *Client) GetServer() (*config.Global, error) {
func (cli *Client) EnableZebra(c *config.Zebra) error {
req := &api.EnableZebraRequest{
- Url: c.Config.Url,
- Version: uint32(c.Config.Version),
+ Url: c.Config.Url,
+ Version: uint32(c.Config.Version),
+ NexthopTriggerEnable: c.Config.NexthopTriggerEnable,
+ NexthopTriggerDelay: uint32(c.Config.NexthopTriggerDelay),
}
for _, t := range c.Config.RedistributeRouteTypeList {
req.RouteTypes = append(req.RouteTypes, string(t))