summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Bays <rbays@roatan.(none)>2010-06-01 10:28:39 -0700
committerRobert Bays <rbays@roatan.(none)>2010-06-01 10:28:39 -0700
commite4f7ad26d16b90e20088ce6c077de9b15bd8d2a4 (patch)
treee7dd847d5922333b49d1cc22e72b8a5a739fee71
parent3a36403cf21c692aca67b755f9a7242988b54a3d (diff)
downloadvyatta-cfg-quagga-e4f7ad26d16b90e20088ce6c077de9b15bd8d2a4.tar.gz
vyatta-cfg-quagga-e4f7ad26d16b90e20088ce6c077de9b15bd8d2a4.zip
yet another putback for another bug but we will call it 5593 again
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.tag/shutdown/node.def6
1 files changed, 6 insertions, 0 deletions
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"