diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/policy/route-map/node.tag/rule/node.tag/set/ipv6-next-hop/prefer-global/node.def | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/ipv6-next-hop/prefer-global/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/ipv6-next-hop/prefer-global/node.def new file mode 100644 index 00000000..83061d4c --- /dev/null +++ b/templates/policy/route-map/node.tag/rule/node.tag/set/ipv6-next-hop/prefer-global/node.def @@ -0,0 +1,12 @@ +help: Prefer global address as the nexthop + +commit:expression: $VAR(../../../action/) != ""; "you must specify an action" + +update: vtysh -c "configure terminal" \ + -c "route-map $VAR(../../../../@) $VAR(../../../action/@) $VAR(../../../@)" \ + -c "set ipv6 next-hop prefer-global" + +delete: vtysh -c "configure terminal" \ + -c "route-map $VAR(../../../../@) $VAR(../../../action/@) $VAR(../../../@)" \ + -c "no set ipv6 next-hop prefer-global" + |