From 34e43ed4fbabd9960a45a8a384ac8180aae39814 Mon Sep 17 00:00:00 2001 From: Hiroshi Yokoi Date: Wed, 20 May 2015 19:03:45 +0900 Subject: config: change SetCommunity.Options's type to string --- config/bgp_configs.go | 6 ++++-- 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', } -- cgit v1.2.3