diff options
author | Stig Thormodsrud <stig@uffda.(none)> | 2007-11-19 18:44:27 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@uffda.(none)> | 2007-11-19 18:44:27 -0800 |
commit | 8306b478bee23055c5b0c47991ca5f35225e885d (patch) | |
tree | aaa721162759c932f5a0ae59b7b86bfece94af53 /templates/policy | |
parent | 5318fb1b6189e564dd533ffc4857c8743b19deee (diff) | |
download | vyatta-cfg-quagga-8306b478bee23055c5b0c47991ca5f35225e885d.tar.gz vyatta-cfg-quagga-8306b478bee23055c5b0c47991ca5f35225e885d.zip |
Add syntax validation for as-path prepend.
Diffstat (limited to 'templates/policy')
-rw-r--r-- | templates/policy/route-map/node.tag/rule/node.tag/set/as-path-prepend/node.def | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/as-path-prepend/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/as-path-prepend/node.def index cb444663..f3ca53fb 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/set/as-path-prepend/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/set/as-path-prepend/node.def @@ -1,5 +1,6 @@ type: txt help: "Prepend string for a BGP AS-path attribute" +syntax: exec "/opt/vyatta/sbin/vyatta-check-as-prepend.pl \"$(@)\" "; "Invalid AS path." commit: $(../../action/) != ""; "You must specify an action for route-map $(../../../@) rule $(../../@)" update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ @@ -7,3 +8,4 @@ update: "/usr/bin/vtysh -c \"configure terminal\" \ delete: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no set as-path prepend \" " +#comp_help: Enter a list of AS numbers to prepend. Use double quotes around the list (f.g. "456 64500 45001") |