X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Foverlay%2Fvxlan.robot;h=92da03eaf1fc6651903397f10f7c41999e45f4d6;hp=06c8e94eb727c6d8d40d3b4cc5979e0c4f59ceb7;hb=7829fea4a2c8936513fa95215b7d84997f814a69;hpb=7ac38855defc0cf8140180d3abc1f5afeb467a74 diff --git a/resources/libraries/robot/overlay/vxlan.robot b/resources/libraries/robot/overlay/vxlan.robot index 06c8e94eb7..92da03eaf1 100644 --- a/resources/libraries/robot/overlay/vxlan.robot +++ b/resources/libraries/robot/overlay/vxlan.robot @@ -1,4 +1,4 @@ -# Copyright (c) 2019 Cisco and/or its affiliates. +# Copyright (c) 2021 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -12,54 +12,20 @@ # limitations under the License. *** Settings *** -| Library | Collections | Library | resources.libraries.python.InterfaceUtil -| Library | resources.libraries.python.IPUtil -| Library | resources.libraries.python.IPv6Util -| Library | resources.libraries.python.L2Util -| Library | resources.libraries.python.NodePath -| ... -| Resource | resources/libraries/robot/l2/l2_bridge_domain.robot -| Resource | resources/libraries/robot/l2/l2_xconnect.robot -| Resource | resources/libraries/robot/shared/default.robot -| Resource | resources/libraries/robot/shared/interfaces.robot -| ... -| Documentation | VXLAN keywords +| +| Documentation | VXLAN keywords. *** Keywords *** -| Create vlan interfaces for VXLAN -| | [Documentation] | *Create VLAN subinterface on interfaces on DUTs with given -| | ... | VLAN ID.* -| | ... -| | ... | _Set testcase variables with name and index of created interfaces:_ -| | ... | - ${dut1s_vlan_name} -| | ... | - ${dut1s_vlan_index} -| | ... | - ${dut2s_vlan_name} -| | ... | - ${dut2s_vlan_index} -| | ... -| | [Arguments] | ${VLAN} | ${DUT1} | ${INT1} | ${DUT2} | ${INT2} -| | ${INT1_NAME}= | Get interface name | ${DUT1} | ${INT1} -| | ${INT2_NAME}= | Get interface name | ${DUT2} | ${INT2} -| | ${dut1s_vlan_name} | ${dut1s_vlan_index}= | Create Vlan Subinterface -| | ... | ${DUT1} | ${INT1_NAME} | ${VLAN} -| | ${dut2s_vlan_name} | ${dut2s_vlan_index}= | Create Vlan Subinterface -| | ... | ${DUT2} | ${INT2_NAME} | ${VLAN} -| | Set Interface State | ${DUT1} | ${dut1s_vlan_index} | up -| | Set Interface State | ${DUT2} | ${dut2s_vlan_index} | up -| | Set Test Variable | ${dut1s_vlan_name} -| | Set Test Variable | ${dut1s_vlan_index} -| | Set Test Variable | ${dut2s_vlan_name} -| | Set Test Variable | ${dut2s_vlan_index} - | Get VXLAN dump | | [Documentation] | Get VXLAN dump. -| | ... +| | | | ... | *Arguments:* | | ... | - node - DUT node data. Type: dictionary | | ... | - interface - Interface on the VPP node (Optional). Type: string -| | ... +| | | | [Arguments] | ${dut_node} | ${interface}=${None} -| | ... +| | | | [Return] | ${vxlan_dump} -| | ... +| | | | ${vxlan_dump}= | VXLAN Dump | ${dut_node} | ${interface}