Skip to content

Commit

Permalink
[TSA]: Fix TSC. Avoid 'Not consistent' state (#5968)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-shirshov authored Nov 23, 2020
1 parent 5410290 commit 5df8af5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dockers/docker-fpm-frr/TSC
Original file line number Diff line number Diff line change
Expand Up @@ -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+$?))
Expand All @@ -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+$?))
Expand Down

0 comments on commit 5df8af5

Please sign in to comment.