diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/pyang_plugins/gobgp.yang | 22 |
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; } |