diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2021-08-10 21:10:56 +0200 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-08-10 21:39:32 +0200 |
commit | 2831ade3c2527cb28f1a20c10641134430c2ca84 (patch) | |
tree | 764ae890fe848a8966900f7f460963c017e37e2c /yang | |
parent | Merge pull request #9236 from AnuradhaKaruppiah/v6-nh-rmac (diff) | |
download | frr-2831ade3c2527cb28f1a20c10641134430c2ca84.tar.xz frr-2831ade3c2527cb28f1a20c10641134430c2ca84.zip |
yang: mark a couple of prefix-list/access-list leafs as mandatory
The code assumes that these leafs always exist when their complementary
leafs exist. For example, when processing `ipv4-exact-match`, the code
always expects to have access to `ipv4-prefix`. If those leafs are not
provided, code crashes. It doesn't happen when using the CLI because it
always does the right thing, but it can happen when using other
frontends.
Also fix incorrect description for prefix-list sequence leaf.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'yang')
-rw-r--r-- | yang/frr-filter.yang | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/yang/frr-filter.yang b/yang/frr-filter.yang index 9a864213e..46a9100ab 100644 --- a/yang/frr-filter.yang +++ b/yang/frr-filter.yang @@ -145,6 +145,7 @@ module frr-filter { leaf ipv4-prefix { description "Configure IPv4 prefix to match"; type inet:ipv4-prefix; + mandatory true; } leaf ipv4-exact-match { @@ -216,6 +217,7 @@ module frr-filter { leaf ipv6-prefix { description "Configure IPv6 prefix to match"; type inet:ipv6-prefix; + mandatory true; } leaf ipv6-exact-match { @@ -277,7 +279,7 @@ module frr-filter { key "sequence"; leaf sequence { - description "Access list sequence value"; + description "Prefix list sequence value"; type access-list-sequence; } @@ -295,6 +297,7 @@ module frr-filter { leaf ipv4-prefix { description "Configure IPv4 prefix to match"; type inet:ipv4-prefix; + mandatory true; } leaf ipv4-prefix-length-greater-or-equal { @@ -319,6 +322,7 @@ module frr-filter { leaf ipv6-prefix { description "Configure IPv6 prefix to match"; type inet:ipv6-prefix; + mandatory true; } leaf ipv6-prefix-length-greater-or-equal { |