diff options
author | selias <samelias@cisco.com> | 2016-08-18 16:28:45 +0200 |
---|---|---|
committer | Jan Gelety <jgelety@cisco.com> | 2016-08-25 23:33:15 +0000 |
commit | 2e070f982606a7846984d38a8b0f58c12df6824f (patch) | |
tree | 552f10e5121d1625a8d351eb7b045665d7d0800d /resources/libraries/robot | |
parent | 32b486ea63b5af17a4a2c4450954f4897fc3fd72 (diff) |
CSIT-234 IPFIX - ipv4 functional scale
- add traffic script for classify session scale test
- add keyword for classify session scale test
- add packet scale and session scale test to IPFIX IPv4 suite
Change-Id: I3abd07dbf705fe664b723916ce1d82cd9649a2ae
Signed-off-by: selias <samelias@cisco.com>
Diffstat (limited to 'resources/libraries/robot')
-rw-r--r-- | resources/libraries/robot/ipfix.robot | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/resources/libraries/robot/ipfix.robot b/resources/libraries/robot/ipfix.robot index a5adacfc0f..d8840a5261 100644 --- a/resources/libraries/robot/ipfix.robot +++ b/resources/libraries/robot/ipfix.robot @@ -65,3 +65,47 @@ | | ... | ${args} --protocol ${protocol} --port ${port} --count ${count} | | Run Traffic Script On Node | ipfix_check.py | ${tg_node} | ${args} | | ... | ${timeout} + +| Send session sweep and verify IPFIX +| | [Documentation] | Send simple TCP or UDP packets from source interface\ +| | ... | to destination interface using a range of source addresses. Listen\ +| | ... | for IPFIX flow report on source interface and verify received report\ +| | ... | against number of packets sent from each source address. +| | ... +| | ... | *Arguments:* +| | ... +| | ... | - tg_node - TG node. Type: dictionary +| | ... | - dst_node - Destination node. Type: dictionary +| | ... | - src_int - Source interface. Type: string +| | ... | - dst_int - Destination interface. Type: string +| | ... | - src_ip - Source IP address. Type: string +| | ... | - dst_ip - Destination IP address. Type: string +| | ... | - ip_range - Number of sequential source addresses. Type:integer +| | ... | - protocol - TCP or UDP (Optional, defaults to TCP). Type: string +| | ... | - port - Source and destination ports to use (Optional). Type: integer +| | ... | - count - Number of packets to send (Optional). Type: integer +| | ... | - timeout - Timeout value in seconds (optional). Type:integer +| | ... +| | ... | *Return:* +| | ... +| | ... | - No value returned +| | ... +| | ... | *Example:* +| | ... +| | ... | \| Send packets and verify IPFIX \| ${nodes['TG']} | ${nodes['DUT1']}\ +| | ... | \| eth1 \| GigabitEthernet0/8/0 \| 16.0.0.1 \| 192.168.0.2 \| 20 \| +| | ... | UDP \| ${20} \| ${5} \| ${10} \| +| | ... | +| | [Arguments] | ${tg_node} | ${dst_node} | ${src_int} | ${dst_int} | +| | ... | ${src_ip} | ${dst_ip} | ${ip_range} | ${protocol}=tcp | ${port}=20 +| | ... | ${count}=${1} | ${timeout}=${10} +| | ${src_mac}= | Get Interface Mac | ${tg_node} | ${src_int} +| | ${dst_mac}= | Set Variable | ${dut1_to_tg_mac} +| | ${src_int_name}= | Get interface name | ${tg_node} | ${src_int} +| | ${dst_int_name}= | Get interface name | ${dst_node} | ${dst_int} +| | ${args}= | Traffic Script Gen Arg | ${dst_int_name} | ${src_int_name} +| | ... | ${src_mac} | ${dst_mac} | ${src_ip} | ${dst_ip} +| | ${args}= | Set Variable | ${args} --protocol ${protocol} --port ${port} +| | ${args}= | Set Variable | ${args} --count ${count} --sessions ${ip_range} +| | Run Traffic Script On Node | ipfix_sessions.py | ${tg_node} | ${args} +| | ... | ${timeout}
\ No newline at end of file |