summaryrefslogtreecommitdiff
path: root/templates/policy/route-map
diff options
context:
space:
mode:
Diffstat (limited to 'templates/policy/route-map')
-rw-r--r--templates/policy/route-map/node.def2
-rw-r--r--templates/policy/route-map/node.tag/rule/node.tag/set/aggregator/as/node.def4
-rw-r--r--templates/policy/route-map/node.tag/rule/node.tag/set/ipv6-next-hop/prefer-global/node.def12
3 files changed, 15 insertions, 3 deletions
diff --git a/templates/policy/route-map/node.def b/templates/policy/route-map/node.def
index 1a3fd8b7..bbbc5f74 100644
--- a/templates/policy/route-map/node.def
+++ b/templates/policy/route-map/node.def
@@ -4,4 +4,4 @@ type: txt
help: IP route-map
val_help: Route map name
-syntax:expression: pattern $VAR(@) "^[-a-zA-Z0-9.]+$" ; "route-map $VAR(@): name must be alpha-numeric"
+syntax:expression: pattern $VAR(@) "^[-_a-zA-Z0-9.]+$" ; "route-map $VAR(@): can only contain alpha-numeric letters, hyphen and underscores"
diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/aggregator/as/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/aggregator/as/node.def
index b42b4972..5e62a1c4 100644
--- a/templates/policy/route-map/node.tag/rule/node.tag/set/aggregator/as/node.def
+++ b/templates/policy/route-map/node.tag/rule/node.tag/set/aggregator/as/node.def
@@ -1,5 +1,5 @@
type: u32
help: AS number of an aggregation
-val_help: u32:1-65535; BGP AS number
+val_help: u32:1-4294967295; BGP AS number
-syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967294; "BGP AS number must be between 1 and 4294967294"
+syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967295; "BGP AS number must be between 1 and 4294967295"
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"
+