summaryrefslogtreecommitdiffstats
path: root/yang/frr-bgp-common.yang
diff options
context:
space:
mode:
authorChirag Shah <chirag@cumulusnetworks.com>2020-08-12 01:58:14 +0200
committerChirag Shah <chirag@nvidia.com>2020-10-26 16:57:14 +0100
commit3b66fcef5833da4eeb2dd19922778b108a1c63c1 (patch)
tree036b33b90541d06fbd1e726ea8f0c885cb4a83fa /yang/frr-bgp-common.yang
parentMerge pull request #7217 from AnuradhaKaruppiah/fix-es-del-regression (diff)
downloadfrr-3b66fcef5833da4eeb2dd19922778b108a1c63c1.tar.xz
frr-3b66fcef5833da4eeb2dd19922778b108a1c63c1.zip
yang: update bgp module afi-safi parameters
add vnc-direct route-type. Signed-off-by: Chirag Shah <chirag@nvidia.com>
Diffstat (limited to 'yang/frr-bgp-common.yang')
-rw-r--r--yang/frr-bgp-common.yang38
1 files changed, 37 insertions, 1 deletions
diff --git a/yang/frr-bgp-common.yang b/yang/frr-bgp-common.yang
index f02d28800..9c412c3d8 100644
--- a/yang/frr-bgp-common.yang
+++ b/yang/frr-bgp-common.yang
@@ -779,6 +779,34 @@ submodule frr-bgp-common {
description
"Apply route map to aggregate network.";
}
+
+ leaf origin {
+ type enumeration {
+ enum "igp" {
+ value 0;
+ description
+ "Local IGP.";
+ }
+ enum "egp" {
+ value 1;
+ description
+ "Remote EGP.";
+ }
+ enum "incomplete" {
+ value 2;
+ description
+ "Unknown heritage.";
+ }
+ enum "unspecified" {
+ value 255;
+ description
+ "Unspecified.";
+ }
+ }
+ default "unspecified";
+ description
+ "BGP origin type.";
+ }
}
grouping admin-distance {
@@ -791,6 +819,7 @@ submodule frr-bgp-common {
type uint8 {
range "1..255";
}
+ default "20";
description
"Administrative distance for routes learned from
external BGP (EBGP).";
@@ -800,6 +829,7 @@ submodule frr-bgp-common {
type uint8 {
range "1..255";
}
+ default "200";
description
"Administrative distance for routes learned from
internal BGP (IBGP).";
@@ -809,6 +839,7 @@ submodule frr-bgp-common {
type uint8 {
range "1..255";
}
+ default "200";
description
"Administrative distance for routes learned from
local.";
@@ -1017,6 +1048,7 @@ submodule frr-bgp-common {
case import-export {
uses rt-list;
}
+
case both {
leaf-list rt-list {
type rt-types:route-target;
@@ -1064,7 +1096,11 @@ submodule frr-bgp-common {
grouping global-afi-safi-vpn-config {
container vpn-config {
- uses route-distinguisher-params;
+ leaf rd {
+ type string;
+ description
+ "Route distinguisher value as per RFC4364.";
+ }
uses vpn-label-params;