summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2020-10-19 23:46:19 -0300
committerRenato Westphal <renato@opensourcerouting.org>2020-10-19 23:46:19 -0300
commitd6160c0acf9de9f4ca2c9fdb2d6f88a7405bf8c2 (patch)
treeb13fc305df2a3453e8c48b2bca143afc35f64c1f
parentc85b63238ae18baaabd833cdbfba79bba227a0e0 (diff)
yang: fix circular chain of leafrefs
Fix the following libyang error when trying to load the "frr-nexthop" module explicitly (e.g. using the 'gen_northbound_callbacks' tool): libyang: A circular chain of leafrefs detected. (/frr-nexthop:frr-nexthop-group/nexthop-groups/name) libyang: Invalid value "frr-nexthop-grouping" of "uses". (/frr-nexthop:frr-nexthop-group/frr-nexthop-grouping) libyang: Copying data from grouping failed. (/frr-nexthop:frr-nexthop-group/frr-nexthop-grouping) libyang: Module "frr-nexthop" parsing failed. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
-rw-r--r--yang/frr-nexthop.yang2
1 files changed, 1 insertions, 1 deletions
diff --git a/yang/frr-nexthop.yang b/yang/frr-nexthop.yang
index 52155dcd16..619514de7d 100644
--- a/yang/frr-nexthop.yang
+++ b/yang/frr-nexthop.yang
@@ -275,7 +275,7 @@ module frr-nexthop {
description
"List of nexthop groups, each contains group of nexthops";
leaf name {
- type nexthop-group-ref;
+ type string;
description
"The nexthop-group name.";
}