summaryrefslogtreecommitdiffstats
path: root/yang/frr-zebra.yang
diff options
context:
space:
mode:
authorChirag Shah <chirag@cumulusnetworks.com>2020-07-14 19:55:37 +0200
committerChirag Shah <chirag@cumulusnetworks.com>2020-07-20 17:39:14 +0200
commitee4b89c784416b9c65f5797a5754a8d3247d3604 (patch)
tree0db5d7cfa3a75cde8ac9ecd0d7aa75ac1b064088 /yang/frr-zebra.yang
parentMerge pull request #6729 from volta-networks/fix_stale_pw_status (diff)
downloadfrr-ee4b89c784416b9c65f5797a5754a8d3247d3604.tar.xz
frr-ee4b89c784416b9c65f5797a5754a8d3247d3604.zip
yang: move evpn l3vni config under vrf
Move EVPN L3VNI configuration under vrf tree. augment /frr-vrf:lib/frr-vrf:vrf: +--rw zebra | +--rw vni-id? vni-id-type +--rw prefix-only? boolean Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r--yang/frr-zebra.yang41
1 files changed, 21 insertions, 20 deletions
diff --git a/yang/frr-zebra.yang b/yang/frr-zebra.yang
index 8894eeaa2..7762c75d6 100644
--- a/yang/frr-zebra.yang
+++ b/yang/frr-zebra.yang
@@ -648,6 +648,23 @@ module frr-zebra {
}
}
+ grouping vrf-vni-mapping {
+ description
+ "EVPN L3-VNI mapping corresponding to a VRF.";
+ leaf l3vni-id {
+ type vni-id-type;
+ description
+ "EVPN L3-VNI id to map to the VRF.";
+ }
+
+ leaf prefix-only {
+ type boolean;
+ default "false";
+ description
+ "EVPN asymmetric mode advertise prefix routes only.";
+ }
+ }
+
// End of zebra container
/*
* RPCs
@@ -2041,7 +2058,11 @@ module frr-zebra {
description
"Extends VRF model with Zebra-related parameters.";
container zebra {
+ description
+ "Zebra's vrf specific configuration and operational model.";
uses ribs;
+
+ uses vrf-vni-mapping;
}
}
@@ -2144,26 +2165,6 @@ module frr-zebra {
description
"Limit on the number of updates queued to the dataplane subsystem.";
}
- list vrf-vni-mapping {
- key "vrf-id";
- description
- "EVPN VNI mapping corresponding to a VRF.";
- leaf vrf-id {
- type uint32;
- description
- "The identifier for a VRF.";
- }
- leaf vni-id {
- type vni-id-type;
- description
- "The VNI id to map to the VRF.";
- }
- leaf prefix-only {
- type empty;
- description
- "Prefix routes only.";
- }
- }
/*
* Debug options
*/