summaryrefslogtreecommitdiff
path: root/yang/frr-nexthop.yang
diff options
context:
space:
mode:
authorChirag Shah <chirag@cumulusnetworks.com>2019-10-08 18:17:12 -0700
committerChirag Shah <chirag@cumulusnetworks.com>2019-10-10 07:44:33 -0700
commit1b9468cc7c02708a48ce0e2113a5cd10f59151aa (patch)
treeb8fccff5741465747db849475941adf2036cacfa /yang/frr-nexthop.yang
parent3d2ab385ca355cf28eae5a5e1f166df995a5d5f4 (diff)
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-nexthop.yang')
-rw-r--r--yang/frr-nexthop.yang9
1 files changed, 7 insertions, 2 deletions
diff --git a/yang/frr-nexthop.yang b/yang/frr-nexthop.yang
index d844e38428..7d8ce1b8ed 100644
--- a/yang/frr-nexthop.yang
+++ b/yang/frr-nexthop.yang
@@ -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.";
}