lib, zebra: fix exit from link-params node

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>
This commit is contained in:
Igor Ryzhov 2021-07-21 17:23:45 +03:00
parent 92de4c7fb6
commit d9331fc67c

View 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;
}