diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2009-10-30 12:19:25 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2009-10-30 12:19:25 -0700 |
commit | 722b77390b977f4ff67c63afcdc4dde61408cb8f (patch) | |
tree | eb640f39303232a883fe55f1ae76c0fcd3ec001e /templates/policy/route-map | |
parent | b7ed3c86dbbe8dfc711d0e194294f1e2d137d56d (diff) | |
download | vyatta-cfg-quagga-722b77390b977f4ff67c63afcdc4dde61408cb8f.tar.gz vyatta-cfg-quagga-722b77390b977f4ff67c63afcdc4dde61408cb8f.zip |
First pass of IPv6 policy.
Diffstat (limited to 'templates/policy/route-map')
7 files changed, 85 insertions, 0 deletions
diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/address/access-list/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/address/access-list/node.def new file mode 100644 index 00000000..2cb8ca32 --- /dev/null +++ b/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/address/access-list/node.def @@ -0,0 +1,22 @@ +type: u32 +help: Set an IP access-list to match + +commit:expression: $VAR(../prefix-list/) == ""; "policy route-map $VAR(../../../../../@) rule $VAR(../../../../@) match ip address access-list: you may only specify a prefix-list or access-list" + +commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy access-list $VAR(@)\" "; "policy route-map $VAR(../../../../../@) rule $VAR(../../../../@) match ipv6 address access-list: access-list $VAR(@) does not exist" + +commit:expression: $VAR(../../../../action/) != ""; "policy route-map $VAR(../../../../../@) rule $VAR(../../../../@): you must specify an action" + +update: vyatta-vtysh -c "configure terminal" \ + -c "route-map $VAR(../../../../../@) $VAR(../../../../action/@) $VAR(../../../../@)" \ + -c "match ipv6 address $VAR(@) " + +delete: vyatta-vtysh -c "configure terminal" \ + -c "route-map $VAR(../../../../../@) $VAR(../../../../action/@) $VAR(../../../../@)" \ + -c "no match ipv6 address $VAR(@) " + +comp_help: possible completions: + <1-99> IP standard access list number + <100-199> IP extended access list number + <1300-1999> IP standard access list number (expanded range) + <2000-2699> IP extended access list number (expanded range)
\ No newline at end of file diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/address/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/address/node.def new file mode 100644 index 00000000..0b32b653 --- /dev/null +++ b/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/address/node.def @@ -0,0 +1 @@ +help: Set IPv6 address of route to match diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/address/prefix-list/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/address/prefix-list/node.def new file mode 100644 index 00000000..5b544c6f --- /dev/null +++ b/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/address/prefix-list/node.def @@ -0,0 +1,19 @@ +type: txt +help: Set an IPv6 prefix-list to match + +commit:expression: $VAR(../access-list/) == ""; "policy route-map $VAR(../../../../../@) rule $VAR(../../../../@) match ipv6 address prefix-list: you may only specify a prefix-list or access-list" + +commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy prefix-list6 $VAR(@)\" "; "policy route-map $VAR(../../../../../@) rule $VAR(../../../../@) match ipv6 address prefix-list: prefix-list6 $VAR(@) does not exist" + +commit:expression: $VAR(../../../../action/) != ""; "policy route-map $VAR(../../../../../@) rule $VAR(../../../../@): you must specify an action" + +update: vyatta-vtysh -c "configure terminal" \ + -c "route-map $VAR(../../../../../@) $VAR(../../../../action/@) $VAR(../../../../@)" \ + -c "match ipv6 address prefix-list $VAR(@)" + +delete: vyatta-vtysh -c "configure terminal" \ + -c "route-map $VAR(../../../../../@) $VAR(../../../../action/@) $VAR(../../../../@)" \ + -c "no match ipv6 address prefix-list $VAR(@)" + +comp_help: possible completions: + <txt> prefix-list6 name 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 new file mode 100644 index 00000000..03b8c244 --- /dev/null +++ b/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/nexthop/access-list/node.def @@ -0,0 +1,22 @@ +type: u32 +help: Set an IP access-list to match + +commit:expression: $VAR(../prefix-list/) == ""; "policy route-map $VAR(../../../../../@) rule $VAR(../../../../@) match ipv6 nexthop access-list: you may only specify a prefix-list or access-list" + +commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy access-list $VAR(@)\" "; "policy route-map $VAR(../../../../../@) rule $VAR(../../../../@) match ipv6 nexthop access-list: access-list $VAR(@) does not exist" + +commit:expression: $VAR(../../../../action/) != ""; "policy route-map $VAR(../../../../../@) rule $VAR(../../../../@): you must specify an action" + +update: vyatta-vtysh -c "configure terminal" \ + -c "route-map $VAR(../../../../../@) $VAR(../../../../action/@) $VAR(../../../../@)" \ + -c "match ipv6 next-hop $VAR(@)" + +delete: vyatta-vtysh -c "configure terminal" \ + -c "route-map $VAR(../../../../../@) $VAR(../../../../action/@) $VAR(../../../../@)" \ + -c "no match ipv6 next-hop $VAR(@)" + +comp_help: possible completions: + <1-99> IP standard access list number + <100-199> IP extended access list number + <1300-1999> IP standard access list number (expanded range) + <2000-2699> IP extended access list number (expanded range) 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 new file mode 100644 index 00000000..aeba3cb4 --- /dev/null +++ b/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/nexthop/node.def @@ -0,0 +1 @@ +help: Set IP next-hop of route to match 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 new file mode 100644 index 00000000..d5b68037 --- /dev/null +++ b/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/nexthop/prefix-list/node.def @@ -0,0 +1,19 @@ +type: txt +help: Set an IPv6 prefix-list to match + +commit:expression: $VAR(../access-list/) == ""; "policy route-map $VAR(../../../../../@) rule $VAR(../../../../@) match ipv6 nexthop prefix-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(@)\" "; "policy route-map $VAR(../../../../../@) rule $VAR(../../../../@) match ipv6 nexthop prefix-list: prefix-list $VAR(@) does not exist" + +commit:expression: $VAR(../../../../action/) != ""; "policy route-map $VAR(../../../../../@) rule $VAR(../../../../@): you must specify an action" + +update: vyatta-vtysh -c "configure terminal" \ + -c "route-map $VAR(../../../../../@) $VAR(../../../../action/@) $VAR(../../../../@)" \ + -c "match ipv6 next-hop prefix-list $VAR(@)" + +delete: vyatta-vtysh -c "configure terminal" \ + -c "route-map $VAR(../../../../../@) $VAR(../../../../action/@) $VAR(../../../../@)" \ + -c "no match ipv6 next-hop prefix-list $VAR(@)" + +comp_help: possible completions: + <txt> prefix-list6 name diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/node.def new file mode 100644 index 00000000..2281146d --- /dev/null +++ b/templates/policy/route-map/node.tag/rule/node.tag/match/ipv6/node.def @@ -0,0 +1 @@ +help: Set IPv6 prefix parameters to match |