diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-03-06 20:33:20 -0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-03-06 20:33:20 -0800 |
commit | a2db0a758643717afd37e252afe6ee5d5ac20770 (patch) | |
tree | 6820490f44df078822f7db8ff9f9ff271d14a110 | |
parent | 5a74b0c454c8f54535ab6cb7386f8bb52973f66d (diff) |
config: update yang file
update the yang file for the commit 59ec403de73d4c83ef28291661941c6334480ebd.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | config/bgp_configs.go | 2 | ||||
-rw-r--r-- | tools/pyang_plugins/gobgp.yang | 6 |
2 files changed, 8 insertions, 0 deletions
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 { |