summaryrefslogtreecommitdiff
path: root/templates/protocols/ospfv3/node.def
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2011-05-04 17:20:24 +0800
committerAn-Cheng Huang <ancheng@vyatta.com>2011-05-04 17:20:24 +0800
commit946db1f1c6c664191b21f98a825c4a4f095bcb03 (patch)
tree9bc3513280a84714f8dc87a2ec39da8a3cb344c4 /templates/protocols/ospfv3/node.def
parent7aba91c07c113619ad003e5d5886e10ca7f43626 (diff)
downloadvyatta-cfg-quagga-946db1f1c6c664191b21f98a825c4a4f095bcb03.tar.gz
vyatta-cfg-quagga-946db1f1c6c664191b21f98a825c4a4f095bcb03.zip
changes for new commitnapa-dev
Diffstat (limited to 'templates/protocols/ospfv3/node.def')
-rw-r--r--templates/protocols/ospfv3/node.def15
1 files changed, 13 insertions, 2 deletions
diff --git a/templates/protocols/ospfv3/node.def b/templates/protocols/ospfv3/node.def
index 72e1886f..56655199 100644
--- a/templates/protocols/ospfv3/node.def
+++ b/templates/protocols/ospfv3/node.def
@@ -1,4 +1,15 @@
priority: 640
help: IPv6 Open Shortest Path First protocol (OSPFv3) parameters
-create: vtysh -c "configure terminal" -c "router ospf6"
-delete: vtysh -c "configure terminal" -c "no router ospf6"
+begin: if [ "$COMMIT_ACTION" != DELETE ]; then
+ if [ -n "$VAR(parameters/router-id/@)" ]; then
+ vtysh -c "configure terminal" -c "router ospf6" \
+ -c "router-id $VAR(parameters/router-id/@)"
+ else
+ vtysh -c "configure terminal" -c "router ospf6" \
+ -c "no router-id"
+ fi
+ fi
+end: if [ "$COMMIT_ACTION" == DELETE ]; then
+ vtysh -c "configure terminal" -c "router ospf6" -c "no router-id"
+ vtysh -c "configure terminal" -c "no router ospf6"
+ fi