diff options
author | Chirag Shah <chirag@cumulusnetworks.com> | 2020-08-12 01:58:14 +0200 |
---|---|---|
committer | Chirag Shah <chirag@nvidia.com> | 2020-10-26 16:57:14 +0100 |
commit | 3b66fcef5833da4eeb2dd19922778b108a1c63c1 (patch) | |
tree | 036b33b90541d06fbd1e726ea8f0c885cb4a83fa /yang | |
parent | Merge pull request #7217 from AnuradhaKaruppiah/fix-es-del-regression (diff) | |
download | frr-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')
-rw-r--r-- | yang/frr-bgp-common.yang | 38 | ||||
-rw-r--r-- | yang/frr-bgp.yang | 12 | ||||
-rw-r--r-- | yang/frr-route-types.yang | 6 |
3 files changed, 55 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; diff --git a/yang/frr-bgp.yang b/yang/frr-bgp.yang index e10b5e784..820c4b286 100644 --- a/yang/frr-bgp.yang +++ b/yang/frr-bgp.yang @@ -353,6 +353,8 @@ module frr-bgp { uses distance-per-route-config; } + uses route-flap-dampening; + uses mp-afi-unicast-common; uses global-filter-config; @@ -362,10 +364,14 @@ module frr-bgp { augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/global/afi-safis/afi-safi/ipv4-labeled-unicast" { uses global-group-use-multiple-paths; + + uses route-flap-dampening; } augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/global/afi-safis/afi-safi/ipv6-labeled-unicast" { uses global-group-use-multiple-paths; + + uses route-flap-dampening; } augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/global/afi-safis/afi-safi/ipv4-multicast" { @@ -411,6 +417,8 @@ module frr-bgp { description "IPv4 multicast destination prefix."; } + + uses distance-per-route-config; } uses admin-distance; @@ -463,8 +471,12 @@ module frr-bgp { description "IPv6 multicast destination prefix."; } + + uses distance-per-route-config; } + uses route-flap-dampening; + uses admin-distance; } diff --git a/yang/frr-route-types.yang b/yang/frr-route-types.yang index 057c32a7e..5a0f58071 100644 --- a/yang/frr-route-types.yang +++ b/yang/frr-route-types.yang @@ -76,6 +76,9 @@ module frr-route-types { enum vnc { value 17; } + enum vnc-direct { + value 18; + } enum babel { value 22; } @@ -120,6 +123,9 @@ module frr-route-types { enum vnc { value 17; } + enum vnc-direct { + value 18; + } enum babel { value 22; } |