From 72113e364524297ab1caf62c8c62f0a4ff228849 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Thu, 24 Sep 2015 11:07:13 +0900 Subject: config: add zebra redistribution configuration Signed-off-by: ISHIDA Wataru --- tools/pyang_plugins/bgpyang2golang.py | 1 + tools/pyang_plugins/gobgp.yang | 6 ++++++ 2 files changed, 7 insertions(+) (limited to 'tools') diff --git a/tools/pyang_plugins/bgpyang2golang.py b/tools/pyang_plugins/bgpyang2golang.py index 00e68954..d8f619dd 100644 --- a/tools/pyang_plugins/bgpyang2golang.py +++ b/tools/pyang_plugins/bgpyang2golang.py @@ -531,6 +531,7 @@ _type_translation_map = { 'identityref' : 'string', 'inet:port-number': 'uint16', 'yang:timeticks': 'int64', + 'ptypes:install-protocol-type': 'string', } diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang index c1107ea6..7168e669 100644 --- a/tools/pyang_plugins/gobgp.yang +++ b/tools/pyang_plugins/gobgp.yang @@ -10,6 +10,7 @@ module bgp-gobgp { // import some basic types import bgp { prefix bgp; } import routing-policy {prefix rpol; } + import policy-types {prefix ptypes; } import bgp-policy {prefix bgp-pol; } import ietf-inet-types { prefix inet; } @@ -639,6 +640,11 @@ module bgp-gobgp { description "Configure url for zebra."; } + list redistribute-route-type { + leaf route-type { + type ptypes:install-protocol-type; + } + } } } -- cgit v1.2.3