X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fperformance%2Fperformance_configuration.robot;h=231004700c1a92154d9eac0ad289600b7fa366a4;hb=5d6479beed22bb3d14a39e9c130946959c13f03e;hp=045a5d36ef5a69700591b8afb3debba1c0117233;hpb=ad71afc5baa8008bd5d4ea26f51a71eefe3fbe62;p=csit.git diff --git a/resources/libraries/robot/performance/performance_configuration.robot b/resources/libraries/robot/performance/performance_configuration.robot index 045a5d36ef..231004700c 100644 --- a/resources/libraries/robot/performance/performance_configuration.robot +++ b/resources/libraries/robot/performance/performance_configuration.robot @@ -29,6 +29,7 @@ | Resource | resources/libraries/robot/shared/counters.robot | Resource | resources/libraries/robot/l2/l2_bridge_domain.robot | Resource | resources/libraries/robot/l2/l2_xconnect.robot +| Resource | resources/libraries/robot/l2/l2_patch.robot | Resource | resources/libraries/robot/ip/ip4.robot | Resource | resources/libraries/robot/ip/ip6.robot | Resource | resources/libraries/robot/vm/qemu.robot @@ -101,8 +102,7 @@ | | ... | Set UP state on VPP interfaces in path on nodes in 2-node circular | | ... | topology. Get the interface MAC addresses and setup ARP on all VPP | | ... | interfaces. Setup IPv4 addresses with /24 prefix on DUT-TG links and -| | ... | /30 prefix on DUT1 link. Set routing on DUT node with prefix /24 and -| | ... | next hop of neighbour DUT interface IPv4 address. +| | ... | /30 prefix on DUT1 link. | | ... | | Set Interface State | ${dut1} | ${dut1_if1} | up | | Set Interface State | ${dut1} | ${dut1_if2} | up @@ -513,6 +513,23 @@ | | Policer Classify Set Match IP | 10.10.10.2 | ${False} | | Policer Set Configuration +| Initialize IPv6 forwarding in 2-node circular topology +| | [Documentation] +| | ... | Set UP state on VPP interfaces in path on nodes in 2-node circular +| | ... | topology. Get the interface MAC addresses and setup neighbour on all +| | ... | VPP interfaces. Setup IPv6 addresses with /128 prefixes on all +| | ... | interfaces. +| | ... +| | ${prefix}= | Set Variable | 64 +| | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1} +| | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2} +| | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | 2001:1::1 | ${prefix} +| | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | 2001:2::1 | ${prefix} +| | Suppress ICMPv6 router advertisement message | ${nodes} +| | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:1::2 | ${tg1_if1_mac} +| | Add Ip Neighbor | ${dut1} | ${dut1_if2} | 2001:2::2 | ${tg1_if2_mac} +| | All Vpp Interfaces Ready Wait | ${nodes} + | Initialize IPv6 forwarding in 3-node circular topology | | [Documentation] | | ... | Set UP state on VPP interfaces in path on nodes in 3-node circular @@ -537,6 +554,7 @@ | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | 2001:3::1 | ${dut1_if2_mac} | | Vpp Route Add | ${dut1} | 2001:2::0 | ${prefix} | 2001:3::2 | ${dut1_if2} | | Vpp Route Add | ${dut2} | 2001:1::0 | ${prefix} | 2001:3::1 | ${dut2_if1} +| | All Vpp Interfaces Ready Wait | ${nodes} | Initialize IPv6 forwarding with scaling in 3-node circular topology | | [Documentation] @@ -579,6 +597,7 @@ | | ... | interface=${dut2_if1} | count=${count} | | Vpp Route Add | ${dut2} | 2001:2::0 | ${host_prefix} | 2001:5::2 | | ... | interface=${dut2_if2} | count=${count} +| | All Vpp Interfaces Ready Wait | ${nodes} | Initialize IPv6 iAcl whitelist in 3-node circular topology | | [Documentation] @@ -787,6 +806,16 @@ | | ... | ELSE | Fail | Unsupported behaviour: ${behavior} | | All Vpp Interfaces Ready Wait | ${nodes} +| Initialize L2 patch +| | [Documentation] +| | ... | Setup L2 patch topology by cross connecting two interfaces on +| | ... | each DUT. Interfaces are brought up. +| | ... +| | ${duts}= | Get Matches | ${nodes} | DUT* +| | :FOR | ${dut} | IN | @{duts} +| | | Configure L2patch | ${nodes['${dut}']} | ${${dut}_if1} | ${${dut}_if2} +| | All Vpp Interfaces Ready Wait | ${nodes} + | Initialize L2 xconnect in 2-node circular topology | | [Documentation] | | ... | Setup L2 xconnect topology by cross connecting two interfaces on @@ -1866,6 +1895,7 @@ | | ... | Type: integer | | ... | - jumbo_frames - Set True if jumbo frames are used in the test. | | ... | Type: bool +| | ... | - use_tuned_cfs - FIXME. | | ... | | ... | *Example:* | | ... @@ -1968,6 +1998,7 @@ | | ... | - count - number of cpus which will be allocated for qemu. Type: int | | ... | - jumbo_frames - Set True if jumbo frames are used in the test. | | ... | Type: bool +| | ... | - use_tuned_cfs - FIXME. | | ... | | ... | *Example:* | | ... @@ -2032,6 +2063,7 @@ | | ... | Type: integer | | ... | - jumbo_frames - Set True if jumbo frames are used in the test. | | ... | Type: bool +| | ... | - use_tuned_cfs - FIXME. | | ... | | ... | *Example:* | | ... @@ -2146,6 +2178,7 @@ | | ... | - count - number of cpus which will be allocated for qemu. Type: int | | ... | - jumbo_frames - Set True if jumbo frames are used in the test. | | ... | Type: bool +| | ... | - use_tuned_cfs - FIXME. | | ... | | ... | *Example:* | | ... @@ -2729,3 +2762,33 @@ | | ... | ${number} | | All Vpp Interfaces Ready Wait | ${nodes} | | Show Memif on all DUTs | ${nodes} + +| Configure ACLs on a single interface +| | [Documentation] +| | ... | Configure ACL +| | ... +| | ... | *Arguments:* +| | ... | - dut - DUT node. Type: string +| | ... | - dut_if - DUT node interface name. Type: string +| | ... | - acl_apply_type - To what path apply the ACL - input or output. +| | ... | - acl_action - Action for the rule - deny, permit, permit+reflect. +| | ... | - subnets - Subnets to apply the specific ACL. Type: list +| | ... +| | ... | *Example:* +| | ... +| | ... | \| Configure ACLs on a single interface \| ${nodes['DUT1']} +| | ... | \| ... \| GigabitEthernet0/7/0 \| input \| permit | 0.0.0.0/0 +| | ... +| | [Arguments] | ${dut} | ${dut_if} | ${acl_apply_type} | ${acl_action} +| | ... | @{subnets} +| | Set Test variable | ${acl} | ${EMPTY} +| | :FOR | ${subnet} | IN | @{subnets} +| | | ${acl} = | Run Keyword If | '${acl}' == '${EMPTY}' +| | | ... | Set Variable | ipv4 ${acl_action} src ${subnet} +| | | ... | ELSE +| | | ... | Catenate | SEPARATOR=, | ${acl} +| | | ... | ipv4 ${acl_action} src ${subnet} +| | Add Replace Acl Multi Entries | ${dut} | rules=${acl} +| | @{acl_list} = | Create List | ${0} +| | Set Acl List For Interface | ${dut} | ${dut_if} | ${acl_apply_type} +| | ... | ${acl_list}