From e4f7ad26d16b90e20088ce6c077de9b15bd8d2a4 Mon Sep 17 00:00:00 2001 From: Robert Bays Date: Tue, 1 Jun 2010 10:28:39 -0700 Subject: yet another putback for another bug but we will call it 5593 again --- .../protocols/bgp/node.tag/neighbor/node.tag/shutdown/node.def | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/shutdown/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/shutdown/node.def index 38898848..ff2f162f 100644 --- a/templates/protocols/bgp/node.tag/neighbor/node.tag/shutdown/node.def +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/shutdown/node.def @@ -6,6 +6,12 @@ update: if [ -n "$VAR(../remote-as/@)" ]; then else peer="peer-group $VAR(../peer-group/@)"; fi; + if /opt/vyatta/sbin/vyatta-bgp.pl --check-if-peer-group \ + --peergroup $VAR(../@); then + vyatta-vtysh --noerr -c "configure terminal" \ + -c "router bgp $VAR(../../@)" \ + -c "neighbor $VAR(../@) peer-group"; + fi; vyatta-vtysh -c "configure terminal" -c "router bgp $VAR(../../@)" \ -c "neighbor $VAR(../@) $peer" \ -c "neighbor $VAR(../@) shutdown" -- cgit v1.2.3