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>
This commit is contained in:
Renato Westphal 2020-10-19 23:46:19 -03:00
parent c85b63238a
commit d6160c0acf

View File

@ -275,7 +275,7 @@ module frr-nexthop {
description description
"List of nexthop groups, each contains group of nexthops"; "List of nexthop groups, each contains group of nexthops";
leaf name { leaf name {
type nexthop-group-ref; type string;
description description
"The nexthop-group name."; "The nexthop-group name.";
} }