diff options
author | Robert Bays <rbays@moresby.(none)> | 2007-11-12 14:19:44 -0800 |
---|---|---|
committer | Robert Bays <rbays@moresby.(none)> | 2007-11-12 14:19:44 -0800 |
commit | 7efa91641403204640a43d115167b7fea4058e27 (patch) | |
tree | 85bb3febc422e505491e6b16d0e17560325ee378 /templates/policy/route-map | |
parent | b83bab57ebbe9f295d517301ebd96402c836f25e (diff) | |
download | vyatta-cfg-quagga-7efa91641403204640a43d115167b7fea4058e27.tar.gz vyatta-cfg-quagga-7efa91641403204640a43d115167b7fea4058e27.zip |
removing TODO comments related to broken comparison from template files.
Way to go An-cheng for fixing the cli! you rock like slayer.
Diffstat (limited to 'templates/policy/route-map')
9 files changed, 9 insertions, 18 deletions
diff --git a/templates/policy/route-map/node.tag/rule/node.tag/continue/node.def b/templates/policy/route-map/node.tag/rule/node.tag/continue/node.def index f46fd5dd..3c3fa8d1 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/continue/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/continue/node.def @@ -1,8 +1,7 @@ type: u32 help: "Continue on a different entry within the route-map" syntax: $(@) >= 1 && $(@) <= 65535; "continue must be between 1 and 65535" -# TODO - conditional not working -#syntax: $(@) > $(../../@); "you may only continue forward in the route-map" +syntax: $(@) > $(../../@); "you may only continue forward in the route-map" update: "/usr/bin/vtysh -c \"configure terminal\" -c \"route-map $(../../@) $(../action/@) $(../@)\" \ -c \"continue $(@)\" " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/ip/address/access-list/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/ip/address/access-list/node.def index 33c698b1..08f834b7 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/match/ip/address/access-list/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/match/ip/address/access-list/node.def @@ -1,7 +1,6 @@ type: u32 help: "access-list number" -# TODO - comparison not working -#commit: $(../prefix-list/) == ""; "You may only specify a prefix-list or access-list" +commit: $(../prefix-list/) == ""; "You may only specify a prefix-list or access-list" commit: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy access-list $(@)\" "; "access-list $(@) does not exist" update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../../../@) $(../../../../action/@) $(../../../../@)\" \ diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/ip/address/prefix-list/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/ip/address/prefix-list/node.def index b7870eb4..c1a8cdbb 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/match/ip/address/prefix-list/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/match/ip/address/prefix-list/node.def @@ -1,7 +1,6 @@ type: txt help: "prefix-list name" -# TODO - comparison not working -#commit: $(../access-list/) == ""; "You can only specify a prefix-list or access-list" +commit: $(../access-list/) == ""; "You can only specify a prefix-list or access-list" commit: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy prefix-list $(@)\" "; "prefix-list $(@) does not exist" update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../../../@) $(../../../../action/@) $(../../../../@)\" \ diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/ip/nexthop/access-list/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/ip/nexthop/access-list/node.def index d83479e9..00972d5c 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/match/ip/nexthop/access-list/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/match/ip/nexthop/access-list/node.def @@ -1,7 +1,6 @@ type: u32 help: "access-list number" -# TODO - comparison not working -#commit: $(../prefix-list/) == ""; "You may only specify a prefix-list or access-list" +commit: $(../prefix-list/) == ""; "You may only specify a prefix-list or access-list" commit: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy access-list $(@)\" "; "access-list $(@) does not exist" update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../../../@) $(../../../../action/@) $(../../../../@)\" \ diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/ip/nexthop/prefix-list/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/ip/nexthop/prefix-list/node.def index cf8a0844..3f88c51d 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/match/ip/nexthop/prefix-list/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/match/ip/nexthop/prefix-list/node.def @@ -1,7 +1,6 @@ type: txt help: "prefix-list name" -# TODO - comparison not working -#commit: $(../access-list/) == ""; "You can only specify a prefix-list or access-list" +commit: $(../access-list/) == ""; "You can only specify a prefix-list or access-list" commit: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy prefix-list $(@)\" "; "prefix-list $(@) does not exist" update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../../../@) $(../../../../action/@) $(../../../../@)\" \ diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/ip/route-source/access-list/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/ip/route-source/access-list/node.def index 18b46ebb..c323adbb 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/match/ip/route-source/access-list/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/match/ip/route-source/access-list/node.def @@ -1,7 +1,6 @@ type: u32 help: "access-list number" -# TODO - comparison not working -#commit: $(../prefix-list/) == ""; "You may only specify a prefix-list or access-list" +commit: $(../prefix-list/) == ""; "You may only specify a prefix-list or access-list" commit: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy access-list $(@)\" "; "access-list $(@) does not exist" update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../../../@) $(../../../../action/@) $(../../../../@)\" \ diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/ip/route-source/prefix-list/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/ip/route-source/prefix-list/node.def index c8016bcc..26b7f47d 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/match/ip/route-source/prefix-list/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/match/ip/route-source/prefix-list/node.def @@ -1,7 +1,6 @@ type: txt help: "prefix-list name" -# TODO - comparison not working -#commit: $(../access-list/) == ""; "You can only specify a prefix-list or access-list" +commit: $(../access-list/) == ""; "You can only specify a prefix-list or access-list" commit: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy prefix-list $(@)\" "; "prefix-list $(@) does not exist" update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../../../@) $(../../../../action/@) $(../../../../@)\" \ diff --git a/templates/policy/route-map/node.tag/rule/node.tag/on-match/goto/node.def b/templates/policy/route-map/node.tag/rule/node.tag/on-match/goto/node.def index deaa79b7..d519dfbb 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/on-match/goto/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/on-match/goto/node.def @@ -1,7 +1,6 @@ type: u32 help: "Goto sequence number" -# TODO - comparison doesn't work -#syntax: $(../next/) == ""; "you can set only goto or next" +syntax: $(../next/) == ""; "you can set only goto or next" syntax: $(@) >= 1 && $(@) <= 65535; "tag must be between 1 and 65535" commit: $(../../action/) != ""; "You must specify an action for route-map $(../../../@) rule $(../../@)" update: "/usr/bin/vtysh -c \"configure terminal\" \ diff --git a/templates/policy/route-map/node.tag/rule/node.tag/on-match/next/node.def b/templates/policy/route-map/node.tag/rule/node.tag/on-match/next/node.def index 839a5c37..43a66465 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/on-match/next/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/on-match/next/node.def @@ -1,6 +1,5 @@ help: "Goto next sequence number" -# TODO - comparison doesn't work -#syntax: $(../goto/) == ""; "you can set only goto or next" +syntax: $(../goto/) == ""; "you can set only goto or next" commit: $(../../action/) != ""; "You must specify an action for route-map $(../../../@) rule $(../../@)" update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ |