summaryrefslogtreecommitdiffhomepage
path: root/api/grpc_server.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 /api/grpc_server.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 'api/grpc_server.go')
-rw-r--r--api/grpc_server.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/grpc_server.go b/api/grpc_server.go
index 1b0d70be..f167c13f 100644
--- a/api/grpc_server.go
+++ b/api/grpc_server.go
@@ -777,6 +777,8 @@ func (s *Server) EnableZebra(ctx context.Context, arg *EnableZebraRequest) (*Ena
Url: arg.Url,
RedistributeRouteTypeList: l,
Version: uint8(arg.Version),
+ NexthopTriggerEnable: arg.NexthopTriggerEnable,
+ NexthopTriggerDelay: uint8(arg.NexthopTriggerDelay),
})
}