summaryrefslogtreecommitdiffstats
path: root/yang
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2020-10-02 17:44:03 +0200
committerRafael Zalamena <rzalamena@opensourcerouting.org>2020-10-04 12:05:17 +0200
commit4c213457dde3a3d0b3b39f700da7645f425cd373 (patch)
tree90a59560954897dce2337d3524c01fb43c27f454 /yang
parentMerge pull request #6882 from vishaldhingra/static (diff)
downloadfrr-4c213457dde3a3d0b3b39f700da7645f425cd373.tar.xz
frr-4c213457dde3a3d0b3b39f700da7645f425cd373.zip
yang: fix cisco access list network information
Don't attempt to put the wildcard information into a 1 byte field otherwise we'll lose information. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'yang')
-rw-r--r--yang/frr-filter.yang28
1 files changed, 22 insertions, 6 deletions
diff --git a/yang/frr-filter.yang b/yang/frr-filter.yang
index 1e44c2569..400a09317 100644
--- a/yang/frr-filter.yang
+++ b/yang/frr-filter.yang
@@ -158,9 +158,17 @@ module frr-filter {
description "Host to match";
type inet:ipv4-address;
}
- leaf network {
- description "Network to match";
- type inet:ipv4-prefix;
+ container network {
+ leaf address {
+ mandatory true;
+ description "Network address part.";
+ type inet:ipv4-address;
+ }
+ leaf mask {
+ mandatory true;
+ description "Network mask/wildcard part.";
+ type inet:ipv4-address;
+ }
}
leaf source-any {
/*
@@ -178,9 +186,17 @@ module frr-filter {
description "Host to match";
type inet:ipv4-address;
}
- leaf destination-network {
- description "Network to match";
- type inet:ipv4-prefix;
+ container destination-network {
+ leaf address {
+ mandatory true;
+ description "Network address part.";
+ type inet:ipv4-address;
+ }
+ leaf mask {
+ mandatory true;
+ description "Network mask/wildcard part.";
+ type inet:ipv4-address;
+ }
}
leaf destination-any {
description "Match any";