summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2011-05-25 15:00:11 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2011-05-25 15:00:11 -0700
commitf474b908cebc8d800ac8b39d56931d54acf68f13 (patch)
tree41790ce7ac561f5ba656edf47ff8bed6ce15cd37 /templates
parent89ff907c0b6a1fca53c14a6bff87df93983379b5 (diff)
downloadvyatta-cfg-quagga-f474b908cebc8d800ac8b39d56931d54acf68f13.tar.gz
vyatta-cfg-quagga-f474b908cebc8d800ac8b39d56931d54acf68f13.zip
alternative fix for bug 6069
Diffstat (limited to 'templates')
-rw-r--r--templates/protocols/bgp/node.def8
1 files changed, 3 insertions, 5 deletions
diff --git a/templates/protocols/bgp/node.def b/templates/protocols/bgp/node.def
index 01f75f02..39bb583e 100644
--- a/templates/protocols/bgp/node.def
+++ b/templates/protocols/bgp/node.def
@@ -7,8 +7,6 @@ val_help: u32:1-4294967294; AS number
syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967294 ; \
"AS number must be between 1 and 4294967294"
-end:
-
-if [ "$COMMIT_SIBLING_POSITION" != "LAST" ] ; then
- /opt/vyatta/sbin/vyatta-bgp.pl --main
-fi;
+end: if [ -z "$VAR(.)" ] || [ "$COMMIT_ACTION" != DELETE ]; then
+ /opt/vyatta/sbin/vyatta-bgp.pl --main
+ fi