diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-05 16:42:48 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-05 16:42:48 -0800 |
commit | 5db776a29c90d05f864645e7e171840660f4b268 (patch) | |
tree | df8d452272a33ffea3732138c17e8439967e402f /templates | |
parent | dc847212c3a95016a315f4aaf3bf3e134d2bbebd (diff) | |
download | vyatta-cfg-quagga-5db776a29c90d05f864645e7e171840660f4b268.tar.gz vyatta-cfg-quagga-5db776a29c90d05f864645e7e171840660f4b268.zip |
Move sudo from vyatta-protocol to nodes
Much cleaner to do sudo once rather than repeatedly
Diffstat (limited to 'templates')
-rw-r--r-- | templates/protocols/bgp/node.def | 4 | ||||
-rw-r--r-- | templates/protocols/ospf/node.def | 4 | ||||
-rw-r--r-- | templates/protocols/rip/node.def | 4 | ||||
-rw-r--r-- | templates/protocols/ripng/node.def | 4 |
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 |