summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--config/bgp_configs.go6
-rw-r--r--tools/pyang_plugins/bgpyang2golang.py1
2 files changed, 5 insertions, 2 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go
index 9d6c27fc..10d1d6e0 100644
--- a/config/bgp_configs.go
+++ b/config/bgp_configs.go
@@ -133,7 +133,8 @@ type SetExtCommunity struct {
//original type is list of union
Communities []string
// original -> bgp-pol:options
- Options BgpSetCommunityOptionType
+ //bgp-pol:options's original type is bgp-set-community-option-type
+ Options string
}
//struct for container bgp-pol:set-community
@@ -142,7 +143,8 @@ type SetCommunity struct {
//original type is list of union
Communities []string
// original -> bgp-pol:options
- Options BgpSetCommunityOptionType
+ //bgp-pol:options's original type is bgp-set-community-option-type
+ Options string
}
//struct for container bgp-pol:set-as-path-prepend
diff --git a/tools/pyang_plugins/bgpyang2golang.py b/tools/pyang_plugins/bgpyang2golang.py
index 765e2f12..c5912bda 100644
--- a/tools/pyang_plugins/bgpyang2golang.py
+++ b/tools/pyang_plugins/bgpyang2golang.py
@@ -406,6 +406,7 @@ _type_translation_map = {
'inet:ip-address': 'net.IP',
'inet:ipv4-address': 'net.IP',
'inet:as-number': 'uint32',
+ 'bgp-set-community-option-type' : 'string',
}