summaryrefslogtreecommitdiff
path: root/yang
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-08-10 22:10:56 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-08-10 22:39:32 +0300
commit2831ade3c2527cb28f1a20c10641134430c2ca84 (patch)
tree764ae890fe848a8966900f7f460963c017e37e2c /yang
parentdd4c59d79a0f053ff1a2c2acc177e6a26e6c4137 (diff)
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.yang6
1 files changed, 5 insertions, 1 deletions
diff --git a/yang/frr-filter.yang b/yang/frr-filter.yang
index 9a864213ee..46a9100ab2 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 {