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>
This commit is contained in:
Chirag Shah 2019-10-08 18:17:12 -07:00
parent 3d2ab385ca
commit 1b9468cc7c
2 changed files with 38 additions and 13 deletions

View file

@ -10,6 +10,9 @@ module frr-nexthop {
import ietf-routing-types {
prefix rt-types;
}
import frr-interface {
prefix frr-interface;
}
organization
"Free Range Routing";
@ -112,13 +115,15 @@ module frr-nexthop {
}
leaf vrf {
type string;
type string {
length "1..36";
}
description
"The nexthop vrf name, if different from the route.";
}
leaf interface {
type string;
type frr-interface:interface-ref;
description
"The nexthop egress interface.";
}

View file

@ -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.";
}