diff options
author | kishiguro <ishi@hash-set.com> | 2016-09-29 03:30:49 -0700 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-09-29 16:29:15 -0700 |
commit | 8f4603b25a08046937ede81efbc3062eebf89067 (patch) | |
tree | f22b918bc6ebed7cf8e1d20724971d464e14123d | |
parent | 36ea117e745e39030f8b7b9bccef43ae34dc52c3 (diff) |
Add version to zebra-config in gobgp.yang.
-rw-r--r-- | config/bgp_configs.go | 6 | ||||
-rw-r--r-- | tools/pyang_plugins/gobgp.yang | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go index 9ea05258..17ae937d 100644 --- a/config/bgp_configs.go +++ b/config/bgp_configs.go @@ -987,6 +987,9 @@ func (lhs *ZebraState) Equal(rhs *ZebraState) bool { return false } } + if lhs.Version != rhs.Version { + return false + } return true } @@ -1021,6 +1024,9 @@ func (lhs *ZebraConfig) Equal(rhs *ZebraConfig) bool { return false } } + if lhs.Version != rhs.Version { + return false + } return true } diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang index 44a36299..a4f8e335 100644 --- a/tools/pyang_plugins/gobgp.yang +++ b/tools/pyang_plugins/gobgp.yang @@ -909,6 +909,11 @@ module gobgp { base ptypes:install-protocol-type; } } + leaf version { + type uint8; + description + "Configure version of zebra protocol. Default is 2. Supported up to 3."; + } } grouping zebra-set { |