diff options
author | Stig Thormodsrud <stig@io.vyatta.com> | 2009-02-16 18:02:17 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@io.vyatta.com> | 2009-02-16 18:02:17 -0800 |
commit | c45f7b9f8daae3b96c76fac3363a507c22b9d9f3 (patch) | |
tree | b8e46d0fe080426aaa9beca23cd843a0212ee73f /templates/protocols/rip | |
parent | 0f4a6d1a24f937aafc6ba2014c94dc42cf9251eb (diff) | |
parent | 5205f4cd0d68a78c86fce6588f9c276861bb9cdd (diff) | |
download | vyatta-cfg-quagga-c45f7b9f8daae3b96c76fac3363a507c22b9d9f3.tar.gz vyatta-cfg-quagga-c45f7b9f8daae3b96c76fac3363a507c22b9d9f3.zip |
Merge branch 'jenner' of http://git.vyatta.com/vyatta-cfg-quagga into jenner
Diffstat (limited to 'templates/protocols/rip')
-rw-r--r-- | templates/protocols/rip/disable/node.def | 12 | ||||
-rw-r--r-- | templates/protocols/rip/node.def | 6 |
2 files changed, 13 insertions, 5 deletions
diff --git a/templates/protocols/rip/disable/node.def b/templates/protocols/rip/disable/node.def new file mode 100644 index 00000000..4cd56588 --- /dev/null +++ b/templates/protocols/rip/disable/node.def @@ -0,0 +1,12 @@ +type: bool +help: Disable RIP daemon +default: false +update: if [ $VAR(@) == "true" ]; + then sudo ${vyatta_sbindir}/vyatta-protocol stop ripd + else sudo ${vyatta_sbindir}/vyatta-protocol start ripd + fi +possible completions: + true Stop RIP daemon + false Start RIP daemon + +allowed: echo "true false" diff --git a/templates/protocols/rip/node.def b/templates/protocols/rip/node.def index a77bdb30..541baa8d 100644 --- a/templates/protocols/rip/node.def +++ b/templates/protocols/rip/node.def @@ -1,7 +1,3 @@ help: Configure Routing Information Protocol (RIP) parameters -create: /opt/vyatta/sbin/vyatta-protocol start ripd - vyatta-vtysh -c "configure terminal" -c "router rip" +create: 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 - - |