From a2db0a758643717afd37e252afe6ee5d5ac20770 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Mon, 6 Mar 2017 20:33:20 -0800 Subject: config: update yang file update the yang file for the commit 59ec403de73d4c83ef28291661941c6334480ebd. Signed-off-by: FUJITA Tomonori --- config/bgp_configs.go | 2 ++ tools/pyang_plugins/gobgp.yang | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/config/bgp_configs.go b/config/bgp_configs.go index acc9d9f1..d1d5486f 100644 --- a/config/bgp_configs.go +++ b/config/bgp_configs.go @@ -1025,6 +1025,7 @@ type ZebraState struct { // original -> gobgp:version Version uint8 `mapstructure:"version" json:"version,omitempty"` // original -> gobgp:nexthop-trigger-enable + //gobgp:nexthop-trigger-enable's original type is boolean NexthopTriggerEnable bool `mapstructure:"nexthop-trigger-enable" json:"nexthop-trigger-enable,omitempty"` // original -> gobgp:nexthop-trigger-delay NexthopTriggerDelay uint8 `mapstructure:"nexthop-trigger-delay" json:"nexthop-trigger-delay,omitempty"` @@ -1042,6 +1043,7 @@ type ZebraConfig struct { // original -> gobgp:version Version uint8 `mapstructure:"version" json:"version,omitempty"` // original -> gobgp:nexthop-trigger-enable + //gobgp:nexthop-trigger-enable's original type is boolean NexthopTriggerEnable bool `mapstructure:"nexthop-trigger-enable" json:"nexthop-trigger-enable,omitempty"` // original -> gobgp:nexthop-trigger-delay NexthopTriggerDelay uint8 `mapstructure:"nexthop-trigger-delay" json:"nexthop-trigger-delay,omitempty"` diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang index 25672ad4..9590b82b 100644 --- a/tools/pyang_plugins/gobgp.yang +++ b/tools/pyang_plugins/gobgp.yang @@ -1021,6 +1021,12 @@ module gobgp { description "Configure version of zebra protocol. Default is 2. Supported up to 3."; } + leaf nexthop-trigger-enable { + type boolean; + } + leaf nexthop-trigger-delay { + type uint8; + } } grouping zebra-set { -- cgit v1.2.3