summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/nexthop/access-list/node.def15
-rw-r--r--templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/nexthop/node.def12
-rw-r--r--templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/nexthop/prefix-list/node.def15
3 files changed, 11 insertions, 31 deletions
diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/nexthop/access-list/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/nexthop/access-list/node.def
deleted file mode 100644
index 18b6a1ce..00000000
--- a/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/nexthop/access-list/node.def
+++ /dev/null
@@ -1,15 +0,0 @@
-type: txt
-help: IPv6 access-list6 to match
-val_help: IPv6 access list
-
-commit:expression: $VAR(../prefix-list/) == ""; "you may only specify a prefix-list or access-list"
-commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy access-list6 $VAR(@)\" "; "access-list6 $VAR(@) does not exist"
-commit:expression: $VAR(../../../../action/) != ""; "you must specify an action"
-
-update: vtysh -c "configure terminal" \
- -c "route-map $VAR(../../../../../@) $VAR(../../../../action/@) $VAR(../../../../@)" \
- -c "match ipv6 next-hop $VAR(@)"
-
-delete: vtysh -c "configure terminal" \
- -c "route-map $VAR(../../../../../@) $VAR(../../../../action/@) $VAR(../../../../@)" \
- -c "no match ipv6 next-hop $VAR(@)"
diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/nexthop/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/nexthop/node.def
index 31b6bd93..b5757965 100644
--- a/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/nexthop/node.def
+++ b/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/nexthop/node.def
@@ -1 +1,11 @@
-help: IP next-hop of route to match
+help: IPv6 next-hop of route to match
+type: ipv6
+val_help: next-hop ipv6 address IPv6
+
+update: vtysh -c "configure terminal" \
+ -c "route-map $VAR(../../../../@) $VAR(../../../action/@) $VAR(../../../@)" \
+ -c "match ipv6 next-hop $VAR(@)"
+
+delete: vtysh -c "configure terminal" \
+ -c "route-map $VAR(../../../../@) $VAR(../../../action/@) $VAR(../../../@)" \
+ -c "no match ipv6 next-hop $VAR(@)"
diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/nexthop/prefix-list/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/nexthop/prefix-list/node.def
deleted file mode 100644
index ec9a4d2f..00000000
--- a/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/nexthop/prefix-list/node.def
+++ /dev/null
@@ -1,15 +0,0 @@
-type: txt
-help: IPv6 prefix-list to match
-val_help: IPv6 prefix list name
-
-commit:expression: $VAR(../access-list/) == ""; "you can only specify a prefix-list or access-list"
-commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy prefix-list $VAR(@)\" "; "prefix-list $VAR(@) does not exist"
-commit:expression: $VAR(../../../../action/) != ""; "you must specify an action"
-
-update: vtysh -c "configure terminal" \
- -c "route-map $VAR(../../../../../@) $VAR(../../../../action/@) $VAR(../../../../@)" \
- -c "match ipv6 next-hop prefix-list $VAR(@)"
-
-delete: vtysh -c "configure terminal" \
- -c "route-map $VAR(../../../../../@) $VAR(../../../../action/@) $VAR(../../../../@)" \
- -c "no match ipv6 next-hop prefix-list $VAR(@)"