]> git.proxmox.com Git - mirror_frr.git/commitdiff
yang: fix circular chain of leafrefs
authorRenato Westphal <renato@opensourcerouting.org>
Tue, 20 Oct 2020 02:46:19 +0000 (23:46 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 20 Oct 2020 02:46:19 +0000 (23:46 -0300)
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>
yang/frr-nexthop.yang

index 52155dcd1664796ace6c7bc2f691d1c4b35b1b08..619514de7d4b2e50a8981f4c006fa7160dd20345 100644 (file)
@@ -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.";
       }