From 2392e2e066ff35221ac5a201dce657156e0e8d21 Mon Sep 17 00:00:00 2001 From: ali aqrabawi Date: Tue, 24 Sep 2024 22:29:03 +0300 Subject: [PATCH] yang: added advertise knobs to ./global/afi-safis/afi-safi/l2vpn-evpn Signed-off-by: ali aqrabawi --- yang/frr-bgp.yang | 60 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/yang/frr-bgp.yang b/yang/frr-bgp.yang index b34fd43e78..2f5657770e 100644 --- a/yang/frr-bgp.yang +++ b/yang/frr-bgp.yang @@ -24,6 +24,10 @@ module frr-bgp { prefix frr-route-types; } + import frr-route-map { + prefix frr-route-map; + } + include "frr-bgp-common"; include "frr-bgp-common-structure"; @@ -526,6 +530,62 @@ module frr-bgp { uses global-afi-safi-vpn-network-config; } + augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/global/afi-safis/afi-safi/l2vpn-evpn" { + list adververtise-prefix { + description + "Advertise prefix routes"; + key "afi safi"; + leaf afi { + description + "Address Family"; + type enumeration { + enum "ipv4" {value 1;} + enum "ipv6" {value 2;} + } + } + + leaf safi { + description + "Subsequent Address Family"; + type enumeration { + enum "unicast" {value 1;} + enum "multicast" {value 2;} + enum "vpn" {value 3;} + } + } + + leaf gateway-ip { + type inet:ipv4-address; + description + "Advertise gateway IP overlay index"; + } + + leaf route-map { + type frr-route-map:route-map-ref; + description + "Route-map for filtering specific routes"; + } + } + + leaf advertise-all-vni { + type boolean; + description + "Advertise All local VNIs"; + } + + leaf advertise-default-gw { + type boolean; + description + "Advertise All default g/w mac-ip routes in EVPN"; + } + + leaf advertise-svi-ip { + type boolean; + description + "Advertise svi mac-ip routes in EVPN"; + } + } + augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/global/bmp-config/target-list/afi-safis/afi-safi/ipv4-unicast" { uses bmp-afi-safi-common-config; }