diff options
Diffstat (limited to 'templates/protocols/ospfv3/redistribute/static/node.def')
-rw-r--r-- | templates/protocols/ospfv3/redistribute/static/node.def | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/protocols/ospfv3/redistribute/static/node.def b/templates/protocols/ospfv3/redistribute/static/node.def new file mode 100644 index 00000000..df31b1b1 --- /dev/null +++ b/templates/protocols/ospfv3/redistribute/static/node.def @@ -0,0 +1,13 @@ +help: Set to redistribute static routes + +end: vtysh -c "configure terminal" \ + -c "router ospf6" \ + -c "no redistribute static"; + if [ "$COMMIT_ACTION" = "SET" -o "$COMMIT_ACTION" = "ACTIVE" ]; then + if [ -n "$VAR(./route-map/@)" ]; then + COND="route-map $VAR(./route-map/@)"; + fi; + vtysh -c "configure terminal" \ + -c "router ospf6" \ + -c "redistribute static $COND"; + fi; |