diff options
author | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-05-20 19:03:45 +0900 |
---|---|---|
committer | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-05-20 19:03:45 +0900 |
commit | 34e43ed4fbabd9960a45a8a384ac8180aae39814 (patch) | |
tree | 7f3890bebfd916c00211940b063e1c0de4b63b59 | |
parent | b549c670b1fa749bd047e649d77091221d348c47 (diff) |
config: change SetCommunity.Options's type to string
-rw-r--r-- | config/bgp_configs.go | 6 | ||||
-rw-r--r-- | tools/pyang_plugins/bgpyang2golang.py | 1 |
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', } |