summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-04-27 09:45:42 +0000
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-04-27 10:32:39 +0000
commitf99362e876873ebab5bcfa8a9e88e65200a9bac1 (patch)
treee26599591299f84e7001836694194d19a50356f4 /tools
parentf6c70e980d41066df51ce8cf63f2351911391e47 (diff)
config: make listen config struct aligned with open-config model
have config/state container Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'tools')
-rw-r--r--tools/pyang_plugins/gobgp.yang22
1 files changed, 14 insertions, 8 deletions
diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang
index 9ca5f78d..480bca9b 100644
--- a/tools/pyang_plugins/gobgp.yang
+++ b/tools/pyang_plugins/gobgp.yang
@@ -801,17 +801,23 @@ module gobgp {
}
}
- augment "/bgp:bgp/bgp:global" {
- container listen-config {
- leaf port {
- type int32;
- }
- leaf-list local-address {
- type string;
- }
+ grouping listen-config {
+ leaf port {
+ type int32;
+ }
+ leaf-list local-address {
+ type string;
}
}
+ augment "/bgp:bgp/bgp:global/bgp:config" {
+ uses listen-config;
+ }
+
+ augment "/bgp:bgp/bgp:global/bgp:state" {
+ uses listen-config;
+ }
+
augment "/bgp:bgp/bgp:global/bgp:afi-safis/bgp:afi-safi" {
uses bgp-mp:all-afi-safi-common;
}