Skip to content

Commit

Permalink
yang: added advertise container to ./global/afi-safis/afi-safi/l2vpn-…
Browse files Browse the repository at this point in the history
…evpn

Signed-off-by: ali aqrabawi <aaqrabaw@okdanetworks.com>
  • Loading branch information
Ali-aqrabawi committed Sep 24, 2024
1 parent 571cca2 commit f2ad7b4
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions yang/frr-bgp.yang
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -526,6 +530,66 @@ 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" {
container advertise {
description
"Advertisment configuration for the 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;
}
Expand Down

0 comments on commit f2ad7b4

Please sign in to comment.