Merge pull request #7510 from donaldsharp/xpath_stay

lib: Fix crash walking up command chain in bgp commands
This commit is contained in:
Donatas Abraitis 2020-11-16 10:06:08 +02:00 committed by GitHub
commit 9ccd17bc12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,7 +154,8 @@ static bool vty_check_node_for_xpath_decrement(enum node_type target_node,
|| node == BGP_IPV4M_NODE || node == BGP_IPV6M_NODE
|| node == BGP_VPNV4_NODE || node == BGP_VPNV6_NODE
|| node == BGP_EVPN_NODE || node == BGP_IPV4L_NODE
|| node == BGP_IPV6L_NODE ))
|| node == BGP_IPV6L_NODE || node == BGP_FLOWSPECV4_NODE
|| node == BGP_FLOWSPECV6_NODE))
return false;
return true;