summaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorkishiguro <ishi@hash-set.com>2016-09-28 12:09:45 -0700
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-09-29 16:29:15 -0700
commit554f309c9020fa580b7ae74766b069a7ae095444 (patch)
tree1f99f9d92041c2bd5d6efec28ccf2a9add5656b2 /config
parentdb3dbd7257836521fdab3d41b57dd5f73ed30baf (diff)
Support of ZAPI version 3 (handles VRF ID).
Diffstat (limited to 'config')
-rw-r--r--config/bgp_configs.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go
index 7125db4c..9ea05258 100644
--- a/config/bgp_configs.go
+++ b/config/bgp_configs.go
@@ -965,6 +965,8 @@ type ZebraState struct {
Url string `mapstructure:"url"`
// original -> gobgp:redistribute-route-type
RedistributeRouteTypeList []InstallProtocolType `mapstructure:"redistribute-route-type-list"`
+ // original -> gobgp:version
+ Version uint8 `mapstructure:"version"`
}
func (lhs *ZebraState) Equal(rhs *ZebraState) bool {
@@ -997,6 +999,8 @@ type ZebraConfig struct {
Url string `mapstructure:"url"`
// original -> gobgp:redistribute-route-type
RedistributeRouteTypeList []InstallProtocolType `mapstructure:"redistribute-route-type-list"`
+ // original -> gobgp:version
+ Version uint8 `mapstructure:"version"`
}
func (lhs *ZebraConfig) Equal(rhs *ZebraConfig) bool {