diff options
Diffstat (limited to 'templates/protocols/ospfv3/redistribute/ripng/node.def')
-rw-r--r-- | templates/protocols/ospfv3/redistribute/ripng/node.def | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/protocols/ospfv3/redistribute/ripng/node.def b/templates/protocols/ospfv3/redistribute/ripng/node.def index 0aba8758..f418999a 100644 --- a/templates/protocols/ospfv3/redistribute/ripng/node.def +++ b/templates/protocols/ospfv3/redistribute/ripng/node.def @@ -1 +1,13 @@ help: Redistribute RIPNG routes + +end: vtysh -c "configure terminal" \ + -c "router ospf6" \ + -c "no redistribute ripng"; + 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 ripng $COND"; + fi; |