Refactor Is Feature Installed
[integration/test.git] / csit / suites / openstack / connectivity / l2.robot
index 27e09f9505f12cb16c6fb5f4c6a8cba9bdf98b81..c38eac350e6350ff4fce58f62223ad26c78a6a21 100644 (file)
@@ -30,9 +30,7 @@ Create VLAN Network net_1
     [Documentation]    Create Network with neutron request.
     # in the case that the controller under test is using legacy netvirt features, vlan segmentation is not supported,
     # and we cannot create a vlan network. If those features are installed we will instead stick with vxlan.
-    : FOR    ${feature_name}    IN    @{legacy_feature_list}
-    \    ${feature_check_status} =    BuiltIn.Run Keyword And Return Status    KarafKeywords.Verify Feature Is Installed    ${feature_name}
-    \    Exit For Loop If    '${feature_check_status}' == 'True'
+    ${feature_check_status} =    OpenStackOperations.Is Feature Installed    ${legacy_feature_list}
     BuiltIn.Run Keyword If    '${feature_check_status}' == 'True'    OpenStackOperations.Create Network    @{NETWORKS}[0]
     ...    ELSE    OpenStackOperations.Create Network    @{NETWORKS}[0]    --provider-network-type vlan --provider-physical-network ${PUBLIC_PHYSICAL_NETWORK} --provider-segment ${NET_1_VLAN_ID}