summaryrefslogtreecommitdiff
path: root/templates/protocols/bgp/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/protocols/bgp/node.def')
-rw-r--r--templates/protocols/bgp/node.def6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/protocols/bgp/node.def b/templates/protocols/bgp/node.def
index ef80d812..ca1ae005 100644
--- a/templates/protocols/bgp/node.def
+++ b/templates/protocols/bgp/node.def
@@ -6,10 +6,14 @@ syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967294 ; \
"AS number must be between 1 and 4294967294"
create: if [ $(pgrep -c -x vyatta-bgpd) -eq 0 ]
- then /opt/vyatta/sbin/vyatta-protocol start bgp
+ then ${vyatta_sbindir}/vyatta-protocol start bgpd
fi
vyatta-vtysh -c "configure terminal" -c "router bgp $VAR(@)"
update: vyatta-vtysh -c "configure terminal" -c "router bgp $VAR(@)" \
-c "bgp network import-check"
delete: vyatta-vtysh -c "configure terminal" -c "no router bgp $VAR(@)"
+ if ! ${vyatta_sbindir}/vyatta-check-typeless-node.pl "protocols bgp"
+ then ${vyatta_sbindir}/vyatta-protocol stop bgpd
+ fi
+