diff options
Diffstat (limited to 'templates/protocols/ospf/disable/node.def')
-rw-r--r-- | templates/protocols/ospf/disable/node.def | 12 |
1 files changed, 12 insertions, 0 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" |