diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-21 12:12:44 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-21 12:12:44 -0700 |
commit | 00503d4c41d85405df7266121dfa125e20dcadb6 (patch) | |
tree | 9929e15af65c7b2d70fd9734fd82d64184f6714a /templates/protocols/bgp | |
parent | e7652a229a81de89f754783287a7293c30457970 (diff) | |
download | vyatta-cfg-quagga-00503d4c41d85405df7266121dfa125e20dcadb6.tar.gz vyatta-cfg-quagga-00503d4c41d85405df7266121dfa125e20dcadb6.zip |
Add syntax validation on BGP access-list rule value
The access-list is a number (in policy)
Diffstat (limited to 'templates/protocols/bgp')
4 files changed, 10 insertions, 4 deletions
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/export/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/export/node.def index 5fec5882..2ffff2dc 100644 --- a/templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/export/node.def +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/export/node.def @@ -1,7 +1,8 @@ -type: txt +type: u32 help: Access-list to filter outgoing route updates to this neighbor val_help: u32:1-65535; Access list number +syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 65535; "Access list must be between 1 and 65535" allowed: local -a params params=$( /opt/vyatta/sbin/vyatta-policy.pl --list-policy access-list ) echo -n ${params[@]##*/} diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/import/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/import/node.def index ba48fb02..068b8048 100644 --- a/templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/import/node.def +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/import/node.def @@ -1,6 +1,8 @@ -type: txt +type: u32 help: Access-list to filter incoming route updates from this neighbor val_help: u32:1-65535; Access-list number +syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 65535; "Access list must be between 1 and 65535" + allowed: local -a params params=$( /opt/vyatta/sbin/vyatta-policy.pl --list-policy access-list ) echo -n ${params[@]##*/} diff --git a/templates/protocols/bgp/node.tag/peer-group/node.tag/distribute-list/export/node.def b/templates/protocols/bgp/node.tag/peer-group/node.tag/distribute-list/export/node.def index 78931f2d..8b05010e 100644 --- a/templates/protocols/bgp/node.tag/peer-group/node.tag/distribute-list/export/node.def +++ b/templates/protocols/bgp/node.tag/peer-group/node.tag/distribute-list/export/node.def @@ -1,6 +1,8 @@ -type: txt +type: u32 help: Access-list to filter outgoing route updates to this peer-group val_help: u32:1-65535; Access list number +syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 65535; "Access list must be between 1 and 65535" + allowed: local -a params params=$( /opt/vyatta/sbin/vyatta-policy.pl --list-policy access-list ) echo -n ${params[@]##*/} diff --git a/templates/protocols/bgp/node.tag/peer-group/node.tag/distribute-list/import/node.def b/templates/protocols/bgp/node.tag/peer-group/node.tag/distribute-list/import/node.def index 190e3bc8..33ee8973 100644 --- a/templates/protocols/bgp/node.tag/peer-group/node.tag/distribute-list/import/node.def +++ b/templates/protocols/bgp/node.tag/peer-group/node.tag/distribute-list/import/node.def @@ -1,6 +1,7 @@ -type: txt +type: u32 help: Access-list to filter incoming route updates from this peer-group val_help: u32:1-65535; Access list number +syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 65535; "Access list must be between 1 and 65535" allowed: local -a params params=$( /opt/vyatta/sbin/vyatta-policy.pl --list-policy access-list ) |