summaryrefslogtreecommitdiffstats
path: root/yang/frr-zebra.yang
diff options
context:
space:
mode:
authorSarita Patra <saritap@vmware.com>2020-10-30 07:40:10 +0100
committerIgor Ryzhov <iryzhov@nfware.com>2021-03-30 21:58:42 +0200
commitb702f424455b208cd4171f84048c65ec8a349184 (patch)
treeed6da7252813ce7279227a1e8a3ebde3d4520095 /yang/frr-zebra.yang
parentMerge pull request #8058 from rgirada/ospf-ecmp (diff)
downloadfrr-b702f424455b208cd4171f84048c65ec8a349184.tar.xz
frr-b702f424455b208cd4171f84048c65ec8a349184.zip
lib,zebra,bgpd,ospfd,ospf6d: Route-map yang defns
This commit includes the following: 1) Modifications to the frr-route-map.yang to enable addition of bgpd, ospfd, ospf6d and zebra specific route map match/set clauses. 2) Yang definitions for bgpd match/set clauses. 3) Yang definitions for ospfd and ospf6d match/set clauses. 4) Yang definitions for zebra match/set clauses. Signed-off-by: NaveenThanikachalam <nthanikachal@vmware.com> Signed-off-by: Sarita Patra <saritap@vmware.com>
Diffstat (limited to 'yang/frr-zebra.yang')
-rw-r--r--yang/frr-zebra.yang61
1 files changed, 0 insertions, 61 deletions
diff --git a/yang/frr-zebra.yang b/yang/frr-zebra.yang
index be2f7b5a6..5c2560837 100644
--- a/yang/frr-zebra.yang
+++ b/yang/frr-zebra.yang
@@ -2175,65 +2175,4 @@ module frr-zebra {
}
// End of operational / state container
}
-
- // End interface model augmentation
-
- augment "/frr-route-map:lib"
- + "/frr-route-map:route-map"
- + "/frr-route-map:entry"
- + "/frr-route-map:match-condition"
- + "/frr-route-map:condition-value" {
- case ipv4-prefix-length {
- when "./condition = 'ipv4-prefix-length' or
- ./condition = 'ipv4-next-hop-prefix-length'";
- leaf ipv4-prefix-length {
- type uint8 {
- range "0..32";
- }
- }
- }
- case ipv6-prefix-length {
- when "./condition = 'ipv6-prefix-length'";
- leaf ipv6-prefix-length {
- type uint8 {
- range "0..128";
- }
- }
- }
- case source-protocol {
- when "./condition = 'source-protocol'";
- leaf source-protocol {
- type frr-route-types:frr-route-types;
- }
- }
- case source-instance {
- when "./condition = 'source-instance'";
- leaf source-instance {
- type uint8 {
- range "0..255";
- }
- }
- }
- }
-
- augment "/frr-route-map:lib"
- + "/frr-route-map:route-map"
- + "/frr-route-map:entry"
- + "/frr-route-map:set-action"
- + "/frr-route-map:action-value" {
- case source-v4 {
- when "./action = 'source'";
- leaf source-v4 {
- description "IPv4 address";
- type inet:ipv4-address;
- }
- }
- case source-v6 {
- when "./action = 'source'";
- leaf source-v6 {
- description "IPv6 address";
- type inet:ipv6-address;
- }
- }
- }
}