aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Gelety <jgelety@cisco.com>2019-04-14 01:57:33 +0200
committerJan Gelety <jgelety@cisco.com>2019-04-23 09:56:42 +0000
commit48b40a6789050e8f40405663cc0e437df26fc56a (patch)
treebc4efc20f34bf7f05dc73a023b6ac040b7683b9c
parent0bf09bff6d3d35ed022927eb8fdbbbff32aa0d78 (diff)
FIX: Create TAP interface after API change
Change-Id: Ib39671dcb808142037c2950b8b02b9aa64d72a3b Signed-off-by: Jan Gelety <jgelety@cisco.com>
-rw-r--r--resources/libraries/python/Tap.py2
-rw-r--r--tests/vpp/func/interfaces/api-crud-tap-func.robot14
2 files changed, 7 insertions, 9 deletions
diff --git a/resources/libraries/python/Tap.py b/resources/libraries/python/Tap.py
index 6b8ae87c04..4e04a4ab33 100644
--- a/resources/libraries/python/Tap.py
+++ b/resources/libraries/python/Tap.py
@@ -34,7 +34,7 @@ class Tap(object):
:returns: Returns a interface index.
:rtype: int
"""
- command = 'connect'
+ command = 'create'
if mac is not None:
args = 'tapname {} mac {}'.format(tap_name, mac)
else:
diff --git a/tests/vpp/func/interfaces/api-crud-tap-func.robot b/tests/vpp/func/interfaces/api-crud-tap-func.robot
index 8110b704b5..e0df1f2cb1 100644
--- a/tests/vpp/func/interfaces/api-crud-tap-func.robot
+++ b/tests/vpp/func/interfaces/api-crud-tap-func.robot
@@ -39,9 +39,8 @@
| ... | *[Ref] Applicable standard specifications:*
*** Variables ***
-| ${tap_int1}= | tap_int1
-| ${tap_int2}= | tap_int2
-| ${mod_tap_name}= | tap_int1MOD
+| ${tap_int1}= | tap0
+| ${tap_int2}= | tap1
*** Test Cases ***
| TC01: Tap Interface Modify And Delete
@@ -55,16 +54,15 @@
| | Given Configure path in 2-node circular topology | ${nodes['TG']}
| | ... | ${nodes['DUT1']} | ${nodes['TG']}
| | And Set interfaces in 2-node circular topology up
-| | ${int1}= | And Add Tap Interface | ${dut_node} | ${tap_int1}
+| | ${int1}= | When Add Tap Interface | ${dut_node} | ${tap_int1}
| | ${int2}= | And Add Tap Interface | ${dut_node} | ${tap_int2}
| | And Set Interface State | ${dut_node} | ${int1} | up
| | And Set Interface State | ${dut_node} | ${int2} | up
-| | When Modify Tap Interface | ${dut_node} | ${int1} | ${mod_tap_name}
-| | Then Check Tap Present | ${dut_node} | ${mod_tap_name}
+| | Then Check Tap Present | ${dut_node} | ${tap_int1}
| | When Delete Tap Interface | ${dut_node} | ${int1}
| | Then Run Keyword And Expect Error
-| | ... | Tap interface :${mod_tap_name} does not exist
-| | ... | Check Tap Present | ${dut_node} | ${mod_tap_name}
+| | ... | Tap interface :${tap_int1} does not exist
+| | ... | Check Tap Present | ${dut_node} | ${tap_int1}
| | And Check Tap Present | ${dut_node} | ${tap_int2}
| | When Delete Tap Interface | ${dut_node} | ${int2}
| | Then Run Keyword And Expect Error