diff options
-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 { |