From c882b87d7dd218719821acf746e2247aa4e60fc8 Mon Sep 17 00:00:00 2001 From: Denis Ovsienko Date: Tue, 27 Nov 2007 09:18:33 +0000 Subject: [PATCH] r1310 + fixed a regexp for long VLAN names --- gateways/switchvlans/cisco.connector | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateways/switchvlans/cisco.connector b/gateways/switchvlans/cisco.connector index 23f32029..01e35df6 100755 --- a/gateways/switchvlans/cisco.connector +++ b/gateways/switchvlans/cisco.connector @@ -83,7 +83,7 @@ do_fetch() fi nc $ENDPOINT 23 < $CMDS2 > "$OUT2" nc $ENDPOINT 23 < $CMDS3 > "$OUT3" - cat "$OUT1" | fgrep ' active ' | sed -E 's/^([[:digit:]]+)[[:space:]]+(.+)[[:space:]]+ active (.*)/\1=\2/;s/[[:space:]]+$//' > $FILE1 + cat "$OUT1" | fgrep ' active ' | sed -E 's/^([[:digit:]]+)[[:space:]]+(.+)[[:space:]]+active (.*)/\1=\2/;s/[[:space:]]+$//' > $FILE1 cat "$OUT2" | egrep '^(Et|Fa|Gi|Te)' | sed -E 's/^([A-Za-z/0-9]+).+(connected|notconnect|disabled) +/\1=\2,/;s/,(trunk|([0-9]+)) .*$/,\1/' > $FILE2 # FIXME # Here we need to distinguish between different platforms and IOS version, -- 2.25.1