File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -521,12 +521,12 @@ save_bgp_neighbor() {
521
521
local asic_id=${1:- " " }
522
522
local ns=$( get_vtysh_namespace $asic_id )
523
523
524
- neighbor_list_v4=$( ${timeout_cmd} bash -c " vtysh $ns -c 'show ip bgp neighbors' | grep 'BGP neighbor is' | awk -F '[, ]' '{print \$ 4}'" )
524
+ neighbor_list_v4=$( ${timeout_cmd} bash -c " vtysh $ns -c 'show ip bgp neighbors' | grep 'BGP neighbor is' | awk -F '[, ]' '{print \$ 4}' | awk / \\ \./ " )
525
525
for word in $neighbor_list_v4 ; do
526
526
save_cmd " vtysh $ns -c \" show ip bgp neighbors $word advertised-routes\" " " ip.bgp.neighbor.$word .adv$asic_id "
527
527
save_cmd " vtysh $ns -c \" show ip bgp neighbors $word routes\" " " ip.bgp.neighbor.$word .rcv$asic_id "
528
528
done
529
- neighbor_list_v6=$( ${timeout_cmd} bash -c " vtysh $ns -c 'show bgp ipv6 neighbors' | grep 'BGP neighbor is' | awk -F '[, ]' '{print \$ 4}' | fgrep ':' " )
529
+ neighbor_list_v6=$( ${timeout_cmd} bash -c " vtysh $ns -c 'show bgp ipv6 neighbors' | grep 'BGP neighbor is' | awk -F '[, ]' '{print \$ 4}' | awk /:/ " )
530
530
for word in $neighbor_list_v6 ; do
531
531
save_cmd " vtysh $ns -c \" show bgp ipv6 neighbors $word advertised-routes\" " " ipv6.bgp.neighbor.$word .adv$asic_id "
532
532
save_cmd " vtysh $ns -c \" show bgp ipv6 neighbors $word routes\" " " ipv6.bgp.neighbor.$word .rcv$asic_id "
You can’t perform that action at this time.
0 commit comments