forked from Mirror/frr
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:
parent
3d2ab385ca
commit
1b9468cc7c
|
@ -10,6 +10,9 @@ module frr-nexthop {
|
||||||
import ietf-routing-types {
|
import ietf-routing-types {
|
||||||
prefix rt-types;
|
prefix rt-types;
|
||||||
}
|
}
|
||||||
|
import frr-interface {
|
||||||
|
prefix frr-interface;
|
||||||
|
}
|
||||||
|
|
||||||
organization
|
organization
|
||||||
"Free Range Routing";
|
"Free Range Routing";
|
||||||
|
@ -112,13 +115,15 @@ module frr-nexthop {
|
||||||
}
|
}
|
||||||
|
|
||||||
leaf vrf {
|
leaf vrf {
|
||||||
type string;
|
type string {
|
||||||
|
length "1..36";
|
||||||
|
}
|
||||||
description
|
description
|
||||||
"The nexthop vrf name, if different from the route.";
|
"The nexthop vrf name, if different from the route.";
|
||||||
}
|
}
|
||||||
|
|
||||||
leaf interface {
|
leaf interface {
|
||||||
type string;
|
type frr-interface:interface-ref;
|
||||||
description
|
description
|
||||||
"The nexthop egress interface.";
|
"The nexthop egress interface.";
|
||||||
}
|
}
|
||||||
|
|
|
@ -129,7 +129,9 @@ module frr-zebra {
|
||||||
description
|
description
|
||||||
"Common information about a route.";
|
"Common information about a route.";
|
||||||
leaf vrf {
|
leaf vrf {
|
||||||
type string;
|
type string {
|
||||||
|
length "1..36";
|
||||||
|
}
|
||||||
description
|
description
|
||||||
"The route's vrf name.";
|
"The route's vrf name.";
|
||||||
}
|
}
|
||||||
|
@ -306,7 +308,9 @@ module frr-zebra {
|
||||||
}
|
}
|
||||||
|
|
||||||
leaf vrf {
|
leaf vrf {
|
||||||
type string;
|
type string {
|
||||||
|
length "1..36";
|
||||||
|
}
|
||||||
description
|
description
|
||||||
"The tenant VRF.";
|
"The tenant VRF.";
|
||||||
}
|
}
|
||||||
|
@ -360,7 +364,7 @@ module frr-zebra {
|
||||||
|
|
||||||
grouping vni-l3-detail {
|
grouping vni-l3-detail {
|
||||||
leaf svi-interface {
|
leaf svi-interface {
|
||||||
type string;
|
type frr-interface:interface-ref;
|
||||||
description
|
description
|
||||||
"The SVI interface.";
|
"The SVI interface.";
|
||||||
}
|
}
|
||||||
|
@ -556,7 +560,9 @@ module frr-zebra {
|
||||||
choice vrf-choice {
|
choice vrf-choice {
|
||||||
case single {
|
case single {
|
||||||
leaf vrf {
|
leaf vrf {
|
||||||
type string;
|
type string {
|
||||||
|
length "1..36";
|
||||||
|
}
|
||||||
description
|
description
|
||||||
"Retrieve routes in a non-default vrf.";
|
"Retrieve routes in a non-default vrf.";
|
||||||
}
|
}
|
||||||
|
@ -654,7 +660,9 @@ module frr-zebra {
|
||||||
choice vrf-choice {
|
choice vrf-choice {
|
||||||
case single {
|
case single {
|
||||||
leaf vrf {
|
leaf vrf {
|
||||||
type string;
|
type string {
|
||||||
|
length "1..36";
|
||||||
|
}
|
||||||
description
|
description
|
||||||
"Retrieve routes in a non-default vrf.";
|
"Retrieve routes in a non-default vrf.";
|
||||||
}
|
}
|
||||||
|
@ -690,7 +698,9 @@ module frr-zebra {
|
||||||
output {
|
output {
|
||||||
list vrf-list {
|
list vrf-list {
|
||||||
leaf name {
|
leaf name {
|
||||||
type string;
|
type string {
|
||||||
|
length "1..36";
|
||||||
|
}
|
||||||
description
|
description
|
||||||
"The VRF name";
|
"The VRF name";
|
||||||
}
|
}
|
||||||
|
@ -745,7 +755,9 @@ module frr-zebra {
|
||||||
output {
|
output {
|
||||||
list vrf-vni-list {
|
list vrf-vni-list {
|
||||||
leaf vrf-name {
|
leaf vrf-name {
|
||||||
type string;
|
type string {
|
||||||
|
length "1..36";
|
||||||
|
}
|
||||||
description
|
description
|
||||||
"The VRF name.";
|
"The VRF name.";
|
||||||
}
|
}
|
||||||
|
@ -1467,7 +1479,9 @@ module frr-zebra {
|
||||||
rpc get-pbr-ipset {
|
rpc get-pbr-ipset {
|
||||||
input {
|
input {
|
||||||
leaf name {
|
leaf name {
|
||||||
type string;
|
type string {
|
||||||
|
length "1..32";
|
||||||
|
}
|
||||||
description
|
description
|
||||||
"An optional specific IPset name.";
|
"An optional specific IPset name.";
|
||||||
}
|
}
|
||||||
|
@ -1476,7 +1490,9 @@ module frr-zebra {
|
||||||
output {
|
output {
|
||||||
list ipset-list {
|
list ipset-list {
|
||||||
leaf name {
|
leaf name {
|
||||||
type string;
|
type string {
|
||||||
|
length "1..32";
|
||||||
|
}
|
||||||
description
|
description
|
||||||
"The IPset name.";
|
"The IPset name.";
|
||||||
}
|
}
|
||||||
|
@ -1606,7 +1622,9 @@ module frr-zebra {
|
||||||
rpc get-pbr-iptable {
|
rpc get-pbr-iptable {
|
||||||
input {
|
input {
|
||||||
leaf name {
|
leaf name {
|
||||||
type string;
|
type string {
|
||||||
|
length "1..32";
|
||||||
|
}
|
||||||
description
|
description
|
||||||
"An optional single IPtable name.";
|
"An optional single IPtable name.";
|
||||||
}
|
}
|
||||||
|
@ -1615,7 +1633,9 @@ module frr-zebra {
|
||||||
output {
|
output {
|
||||||
list iptable-list {
|
list iptable-list {
|
||||||
leaf name {
|
leaf name {
|
||||||
type string;
|
type string {
|
||||||
|
length "1..32";
|
||||||
|
}
|
||||||
description
|
description
|
||||||
"The IPtable name.";
|
"The IPtable name.";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue