[TSA]: Fix TSC. Avoid 'Not consistent' state (#5968)

This commit is contained in:
pavel-shirshov 2020-11-23 09:30:39 -08:00 committed by Abhishek Dosi
parent 3b97d4375d
commit 0931280466

View File

@ -4,7 +4,7 @@ function check_not_installed()
{
c=0
config=$(vtysh -c "show run")
for route_map_name in $(echo "$config" | sed -ne 's/ neighbor \S* route-map \(\S*\) out/\1/p');
for route_map_name in $(echo "$config" | sed -ne 's/ neighbor \S* route-map \(\S*\) out/\1/p' | egrep 'V4|V6');
do
echo "$config" | grep -q "route-map $route_map_name permit 2"
c=$((c+$?))
@ -19,7 +19,7 @@ function check_installed()
c=0
e=0
config=$(vtysh -c "show run")
for route_map_name in $(echo "$config" | sed -ne 's/ neighbor \S* route-map \(\S*\) out/\1/p');
for route_map_name in $(echo "$config" | sed -ne 's/ neighbor \S* route-map \(\S*\) out/\1/p' | egrep 'V4|V6');
do
echo "$config" | grep -q "route-map $route_map_name permit 2"
c=$((c+$?))