summaryrefslogtreecommitdiffstats
path: root/yang/frr-zebra.yang
diff options
context:
space:
mode:
authorChirag Shah <chirag@cumulusnetworks.com>2019-10-09 03:17:12 +0200
committerChirag Shah <chirag@cumulusnetworks.com>2019-10-10 16:44:33 +0200
commit1b9468cc7c02708a48ce0e2113a5cd10f59151aa (patch)
treeb8fccff5741465747db849475941adf2036cacfa /yang/frr-zebra.yang
parentyang: align indent zebra modules (diff)
downloadfrr-1b9468cc7c02708a48ce0e2113a5cd10f59151aa.tar.xz
frr-1b9468cc7c02708a48ce0e2113a5cd10f59151aa.zip
yang: add range to string nodes in zebra modules
Add range to few of the string nodes (including vrf, iptable names) Use interface reference instead of interface string. Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'yang/frr-zebra.yang')
-rw-r--r--yang/frr-zebra.yang42
1 files changed, 31 insertions, 11 deletions
diff --git a/yang/frr-zebra.yang b/yang/frr-zebra.yang
index 43e92eba0..74922a22f 100644
--- a/yang/frr-zebra.yang
+++ b/yang/frr-zebra.yang
@@ -129,7 +129,9 @@ module frr-zebra {
description
"Common information about a route.";
leaf vrf {
- type string;
+ type string {
+ length "1..36";
+ }
description
"The route's vrf name.";
}
@@ -306,7 +308,9 @@ module frr-zebra {
}
leaf vrf {
- type string;
+ type string {
+ length "1..36";
+ }
description
"The tenant VRF.";
}
@@ -360,7 +364,7 @@ module frr-zebra {
grouping vni-l3-detail {
leaf svi-interface {
- type string;
+ type frr-interface:interface-ref;
description
"The SVI interface.";
}
@@ -556,7 +560,9 @@ module frr-zebra {
choice vrf-choice {
case single {
leaf vrf {
- type string;
+ type string {
+ length "1..36";
+ }
description
"Retrieve routes in a non-default vrf.";
}
@@ -654,7 +660,9 @@ module frr-zebra {
choice vrf-choice {
case single {
leaf vrf {
- type string;
+ type string {
+ length "1..36";
+ }
description
"Retrieve routes in a non-default vrf.";
}
@@ -690,7 +698,9 @@ module frr-zebra {
output {
list vrf-list {
leaf name {
- type string;
+ type string {
+ length "1..36";
+ }
description
"The VRF name";
}
@@ -745,7 +755,9 @@ module frr-zebra {
output {
list vrf-vni-list {
leaf vrf-name {
- type string;
+ type string {
+ length "1..36";
+ }
description
"The VRF name.";
}
@@ -1467,7 +1479,9 @@ module frr-zebra {
rpc get-pbr-ipset {
input {
leaf name {
- type string;
+ type string {
+ length "1..32";
+ }
description
"An optional specific IPset name.";
}
@@ -1476,7 +1490,9 @@ module frr-zebra {
output {
list ipset-list {
leaf name {
- type string;
+ type string {
+ length "1..32";
+ }
description
"The IPset name.";
}
@@ -1606,7 +1622,9 @@ module frr-zebra {
rpc get-pbr-iptable {
input {
leaf name {
- type string;
+ type string {
+ length "1..32";
+ }
description
"An optional single IPtable name.";
}
@@ -1615,7 +1633,9 @@ module frr-zebra {
output {
list iptable-list {
leaf name {
- type string;
+ type string {
+ length "1..32";
+ }
description
"The IPtable name.";
}