X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fcrypto%2Fipsec.robot;h=135881f83e72bb8ffe084ef12506b7f298aca8c3;hp=5c0fc863a617695ddee2c7b531f30f69290982cf;hb=6871d4e7f6ed43ce0bb003cb08e88b2581a474eb;hpb=8f062925cda31b6521380497faeaac7b5736905b diff --git a/resources/libraries/robot/crypto/ipsec.robot b/resources/libraries/robot/crypto/ipsec.robot index 5c0fc863a6..135881f83e 100644 --- a/resources/libraries/robot/crypto/ipsec.robot +++ b/resources/libraries/robot/crypto/ipsec.robot @@ -12,19 +12,17 @@ # limitations under the License. *** Settings *** -| Resource | resources/libraries/robot/shared/default.robot +| Library | String +| Library | resources.libraries.python.InterfaceUtil | Library | resources.libraries.python.IPsecUtil +| Library | resources.libraries.python.IPUtil +| Library | resources.libraries.python.IPv6Util | Library | resources.libraries.python.NodePath | Library | resources.libraries.python.TrafficScriptExecutor -| Library | resources.libraries.python.IPv4Util.IPv4Util -| Library | resources.libraries.python.InterfaceUtil -| Library | resources.libraries.python.Routing -| Library | String -| Library | resources.libraries.python.IPv6Util -| Library | resources.libraries.python.IPv6Setup -| Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT1']} -| ... | WITH NAME | dut1_v4 -| Documentation | *IPsec keywords.* +| ... +| Resource | resources/libraries/robot/shared/default.robot +| ... +| Documentation | IPsec keywords *** Keywords *** | Generate keys for IPSec @@ -94,11 +92,11 @@ | | ... | *Example:* | | ... | \| Configure topology for IPv4 IPsec testing \| | | Configure path for IPSec test -| | Set Interface Address | ${dut_node} | ${dut_if} | ${dut_if_ip4} +| | VPP Interface Set IP Address | ${dut_node} | ${dut_if} | ${dut_if_ip4} | | ... | ${ip4_plen} -| | Set Interface Address | ${dut_node} | ${dut_lo} | ${dut_lo_ip4} +| | VPP Interface Set IP Address | ${dut_node} | ${dut_lo} | ${dut_lo_ip4} | | ... | ${ip4_plen} -| | dut1_v4.Set Arp | ${dut_if} | ${tg_if_ip4} | ${tg_if_mac} +| | VPP Add IP Neighbor | ${dut_node} | ${dut_if} | ${tg_if_ip4} | ${tg_if_mac} | | Vpp Route Add | ${dut_node} | ${tg_lo_ip4} | ${ip4_plen} | | ... | gateway=${tg_if_ip4} | interface=${dut_if} | | Set Test Variable | ${dut_tun_ip} | ${dut_if_ip4} @@ -118,9 +116,11 @@ | | ... | *Example:* | | ... | \| Configure topology for IPv6 IPsec testing \| | | Configure path for IPSec test -| | VPP Set If IPv6 Addr | ${dut_node} | ${dut_if} | ${dut_if_ip6} | ${ip6_plen} -| | VPP Set If IPv6 Addr | ${dut_node} | ${dut_lo} | ${dut_lo_ip6} | ${ip6_plen} -| | Add IP Neighbor | ${dut_node} | ${dut_if} | ${tg_if_ip6} | ${tg_if_mac} +| | VPP Interface Set IP Address +| | ... | ${dut_node} | ${dut_if} | ${dut_if_ip6} | ${ip6_plen} +| | VPP Interface Set IP Address +| | ... | ${dut_node} | ${dut_lo} | ${dut_lo_ip6} | ${ip6_plen} +| | VPP Add IP Neighbor | ${dut_node} | ${dut_if} | ${tg_if_ip6} | ${tg_if_mac} | | Vpp All RA Suppress Link Layer | ${nodes} | | Vpp Route Add | ${dut_node} | ${tg_lo_ip6} | ${ip6_plen_rt} | | ... | gateway=${tg_if_ip6} | interface=${dut_if} @@ -250,34 +250,5 @@ | | ... | | [Arguments] | ${ip_version} | | ... -| | ${duts}= | Get Matches | ${nodes} | DUT* -| | :FOR | ${dut} | IN | @{duts} -| | | Import Library | resources.libraries.python.VppConfigGenerator -| | | ... | WITH NAME | ${dut} -| | | Run keyword | ${dut}.Set Node | ${nodes['${dut}']} -| | | Run keyword | ${dut}.Set Vpp Startup Conf Backup -| | | Run keyword | ${dut}.Set Vpp Logfile | /tmp/vpp.log -| | | Run keyword | ${dut}.Add Unix Nodaemon -| | | Run keyword | ${dut}.Add Unix Log -| | | Run keyword | ${dut}.Add Unix Coredump -| | | Run keyword | ${dut}.Add Unix CLI Listen | /run/vpp/cli.sock -| | | Run keyword | ${dut}.Add Unix Gid -| | | Run keyword | ${dut}.Add Api Segment Gid -| | | ${socket_id}= | Set Variable | ${0} -| | | ${sw_dev_count}= | Set Variable | ${1} -| | | Run keyword | ${dut}.Add DPDK SW Cryptodev | aesni_mb | ${socket_id} -| | | ... | ${sw_dev_count} -| | | Run keyword | ${dut}.Add DPDK SW Cryptodev | aesni_gcm | ${socket_id} -| | | ... | ${sw_dev_count} -| | Write startup configuration on all VPP DUTs | | Set up VPP device test | | Run Keyword | Configure topology for ${ip_version} IPsec testing - -| Tear down IPSec SW device functional test -| | [Documentation] -| | ... | Tear down IPSec SW device functional test. -| | ... -| | ${duts}= | Get Matches | ${nodes} | DUT* -| | :FOR | ${dut} | IN | @{duts} -| | | Run keyword | ${dut}.Restore Config -| | Tear down VPP device test