Skip to content

Commit

Permalink
yang: fix zebra module
Browse files Browse the repository at this point in the history
Fixes: #8521
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
  • Loading branch information
idryzhov committed Apr 22, 2021
1 parent d8d6003 commit 7573cb8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions yang/frr-zebra.yang
Original file line number Diff line number Diff line change
Expand Up @@ -2184,30 +2184,30 @@ module frr-zebra {
+ "/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'";
when "./frr-route-map:condition = 'ipv4-prefix-length' or
./frr-route-map:condition = 'ipv4-next-hop-prefix-length'";
leaf ipv4-prefix-length {
type uint8 {
range "0..32";
}
}
}
case ipv6-prefix-length {
when "./condition = 'ipv6-prefix-length'";
when "./frr-route-map:condition = 'ipv6-prefix-length'";
leaf ipv6-prefix-length {
type uint8 {
range "0..128";
}
}
}
case source-protocol {
when "./condition = 'source-protocol'";
when "./frr-route-map:condition = 'source-protocol'";
leaf source-protocol {
type frr-route-types:frr-route-types;
}
}
case source-instance {
when "./condition = 'source-instance'";
when "./frr-route-map:condition = 'source-instance'";
leaf source-instance {
type uint8 {
range "0..255";
Expand All @@ -2222,14 +2222,14 @@ module frr-zebra {
+ "/frr-route-map:set-action"
+ "/frr-route-map:action-value" {
case source-v4 {
when "./action = 'source'";
when "./frr-route-map:action = 'source'";
leaf source-v4 {
description "IPv4 address";
type inet:ipv4-address;
}
}
case source-v6 {
when "./action = 'source'";
when "./frr-route-map:action = 'source'";
leaf source-v6 {
description "IPv6 address";
type inet:ipv6-address;
Expand Down

0 comments on commit 7573cb8

Please sign in to comment.