diff options
Diffstat (limited to 'templates/protocols/ospf')
-rw-r--r-- | templates/protocols/ospf/disable/node.def | 12 | ||||
-rw-r--r-- | templates/protocols/ospf/node.def | 4 |
2 files changed, 13 insertions, 3 deletions
diff --git a/templates/protocols/ospf/disable/node.def b/templates/protocols/ospf/disable/node.def new file mode 100644 index 00000000..eeccb9a1 --- /dev/null +++ b/templates/protocols/ospf/disable/node.def @@ -0,0 +1,12 @@ +type: bool +help: Disable OSPF daemon +default: false +update: if [ $VAR(@) == "true" ]; + then sudo ${vyatta_sbindir}/vyatta-protocol stop ospfd + else sudo ${vyatta_sbindir}/vyatta-protocol start ospfd + fi +possible completions: + true Stop OSPF daemon + false Start OSPF daemon + +allowed: echo "true false" diff --git a/templates/protocols/ospf/node.def b/templates/protocols/ospf/node.def index f14b1fb8..b28f5553 100644 --- a/templates/protocols/ospf/node.def +++ b/templates/protocols/ospf/node.def @@ -1,5 +1,3 @@ help: Configure Open Shortest Path First protocol (OSPF) parameters -create: sudo ${vyatta_sbindir}/vyatta-protocol start ospfd - vyatta-vtysh -c "configure terminal" -c "router ospf" +create: vyatta-vtysh -c "configure terminal" -c "router ospf" delete: vyatta-vtysh -c "configure terminal" -c "no router ospf" - sudo ${vyatta_sbindir}/vyatta-protocol stop ospfd |