summaryrefslogtreecommitdiffhomepage
path: root/tools/pyang_plugins
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pyang_plugins')
-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;
}