From 5df8af5378ed8c63c7489e5a98d49a3a1e064074 Mon Sep 17 00:00:00 2001 From: pavel-shirshov Date: Mon, 23 Nov 2020 09:30:39 -0800 Subject: [PATCH] [TSA]: Fix TSC. Avoid 'Not consistent' state (#5968) --- dockers/docker-fpm-frr/TSC | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dockers/docker-fpm-frr/TSC b/dockers/docker-fpm-frr/TSC index 3a3ad73d00b4..8c17cea7eea7 100755 --- a/dockers/docker-fpm-frr/TSC +++ b/dockers/docker-fpm-frr/TSC @@ -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+$?))