]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib, zebra: fix exit from link-params node 9105/head
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 21 Jul 2021 14:23:45 +0000 (17:23 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 21 Jul 2021 14:23:45 +0000 (17:23 +0300)
When exiting from link-params node, we must not decrement xpath_index
because it is not incremented when entering the node.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
lib/command.c

index 9dac60599c27ad0c18609d1120ea0919422f4dbc..fe17c68a8ba57df739f4aca8f2b3223c8a0bef9a 100644 (file)
@@ -160,6 +160,9 @@ static bool vty_check_node_for_xpath_decrement(enum node_type target_node,
                || node == BGP_FLOWSPECV6_NODE))
                return false;
 
+       if (target_node == INTERFACE_NODE && node == LINK_PARAMS_NODE)
+               return false;
+
        return true;
 }