summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-09-24 11:07:13 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-09-25 18:20:45 +0900
commit72113e364524297ab1caf62c8c62f0a4ff228849 (patch)
treed28a674edfa327b9be31cf1a0ab6571ed3cd0b72 /tools
parentfbed186687489efd7295a44d991590c1ffe27853 (diff)
config: add zebra redistribution configuration
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'tools')
-rw-r--r--tools/pyang_plugins/bgpyang2golang.py1
-rw-r--r--tools/pyang_plugins/gobgp.yang6
2 files changed, 7 insertions, 0 deletions
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;
+ }
+ }
}
}