summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/protocols/bgp/node.def4
-rw-r--r--templates/protocols/ospf/node.def4
-rw-r--r--templates/protocols/rip/node.def4
-rw-r--r--templates/protocols/ripng/node.def4
4 files changed, 8 insertions, 8 deletions
diff --git a/templates/protocols/bgp/node.def b/templates/protocols/bgp/node.def
index ca1ae005..ea3a9c4c 100644
--- a/templates/protocols/bgp/node.def
+++ b/templates/protocols/bgp/node.def
@@ -6,14 +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 ${vyatta_sbindir}/vyatta-protocol start bgpd
+ then sudo ${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
+ then sudo ${vyatta_sbindir}/vyatta-protocol stop bgpd
fi
diff --git a/templates/protocols/ospf/node.def b/templates/protocols/ospf/node.def
index 5405abac..f14b1fb8 100644
--- a/templates/protocols/ospf/node.def
+++ b/templates/protocols/ospf/node.def
@@ -1,5 +1,5 @@
help: Configure Open Shortest Path First protocol (OSPF) parameters
-create: /opt/vyatta/sbin/vyatta-protocol start ospfd
+create: sudo ${vyatta_sbindir}/vyatta-protocol start ospfd
vyatta-vtysh -c "configure terminal" -c "router ospf"
delete: vyatta-vtysh -c "configure terminal" -c "no router ospf"
- /opt/vyatta/sbin/vyatta-protocol stop ospfd
+ sudo ${vyatta_sbindir}/vyatta-protocol stop ospfd
diff --git a/templates/protocols/rip/node.def b/templates/protocols/rip/node.def
index a77bdb30..20cb58ad 100644
--- a/templates/protocols/rip/node.def
+++ b/templates/protocols/rip/node.def
@@ -1,7 +1,7 @@
help: Configure Routing Information Protocol (RIP) parameters
-create: /opt/vyatta/sbin/vyatta-protocol start ripd
+create: sudo ${vyatta_sbindir}/vyatta-protocol start ripd
vyatta-vtysh -c "configure terminal" -c "router rip"
delete: vyatta-vtysh -c "configure terminal" -c "no router rip"
- /opt/vyatta/sbin/vyatta-protocol stop ripd
+ sudo ${vyatta_sbindir}/vyatta-protocol stop ripd
diff --git a/templates/protocols/ripng/node.def b/templates/protocols/ripng/node.def
index 18735607..73f86c92 100644
--- a/templates/protocols/ripng/node.def
+++ b/templates/protocols/ripng/node.def
@@ -1,5 +1,5 @@
help: Configure Routing Information Protocol (RIPng) parameters
-create: /opt/vyatta/sbin/vyatta-protocol start ripngd
+create: sudo ${vyatta_sbindir}/vyatta-protocol start ripngd
vyatta-vtysh -c "configure terminal" -c "router ripng"
delete: vyatta-vtysh -c "configure terminal" -c "no router ripng"
- /opt/vyatta/sbin/vyatta-protocol stop ripngd
+ sudo ${vyatta_sbindir}/vyatta-protocol stop ripngd