From: Chirag Shah Date: Wed, 24 Mar 2021 01:19:28 +0000 (-0700) Subject: yang: add policy support for l2vpn-evpn nbr tree X-Git-Tag: base_8.0~182^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=36ace674c43c3a85fbce7a5a73989bafbe7cea80;p=mirror%2Ffrr.git yang: add policy support for l2vpn-evpn nbr tree Add bgp routing policy support for unnumbered and peer-group. For numbered peer the policy support is already present. +--rw bgp! +--rw neighbors | +--rw unnumbered-neighbor* [interface] | +--rw afi-safis | +--rw afi-safi* [afi-safi-name] +--rw l2vpn-evpn | | | +--rw filter-config | | | +--rw rmap-import? frr-route-map:route-map-ref | | | +--rw rmap-export? frr-route-map:route-map-ref | | | +--rw plist-import? frr-bgp-types:plist-ref | | | +--rw plist-export? frr-bgp-types:plist-ref | | | +--rw access-list-import? frr-bgp-types:access-list-ref | | | +--rw access-list-export? frr-bgp-types:access-list-ref | | | +--rw as-path-filter-list-import? frr-bgp-types:as-path-filter-ref | | | +--rw as-path-filter-list-export? frr-bgp-types:as-path-filter-ref | | | +--rw unsuppress-map-import? frr-route-map:route-map-ref | | | +--rw unsuppress-map-export? frr-route-map:route-map-ref ... +--rw peer-groups +--rw peer-group* [peer-group-name] | +--rw afi-safis | +--rw afi-safi* [afi-safi-name] +--rw l2vpn-evpn | | | +--rw filter-config | | | +--rw rmap-import? frr-route-map:route-map-ref | | | +--rw rmap-export? frr-route-map:route-map-ref | | | +--rw plist-import? frr-bgp-types:plist-ref | | | +--rw plist-export? frr-bgp-types:plist-ref | | | +--rw access-list-import? frr-bgp-types:access-list-ref | | | +--rw access-list-export? frr-bgp-types:access-list-ref | | | +--rw as-path-filter-list-import? frr-bgp-types:as-path-filter-ref | | | +--rw as-path-filter-list-export? frr-bgp-types:as-path-filter-ref | | | +--rw unsuppress-map-import? frr-route-map:route-map-ref | | | +--rw unsuppress-map-export? frr-route-map:route-map-ref ... Signed-off-by: Chirag Shah --- diff --git a/yang/frr-bgp.yang b/yang/frr-bgp.yang index 24998a470d..ae44447df7 100644 --- a/yang/frr-bgp.yang +++ b/yang/frr-bgp.yang @@ -1057,6 +1057,8 @@ module frr-bgp { uses structure-neighbor-route-server; uses structure-neighbor-group-soft-reconfiguration; + + uses structure-neighbor-group-filter-config; } augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-flowspec" { @@ -1332,6 +1334,8 @@ module frr-bgp { uses structure-neighbor-route-server; uses structure-neighbor-group-soft-reconfiguration; + + uses structure-neighbor-group-filter-config; } augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-flowspec" {