Get ControlNode Connection
BuiltIn.Run Keyword And Ignore Error SSHLibrary.Get Directory /opt/stack/data/neutron/dhcp ${dstdir} recursive=True
SSHLibrary.Close Connection
+
+Is Feature Installed
+ [Arguments] ${features}=none
+ : FOR ${feature} IN ${features}
+ \ ${status} ${output} Run Keyword And Ignore Error Builtin.Should Contain ${CFEATURES} ${feature}
+ \ Return From Keyword If "${status}" == "PASS" True
+ [Return] False
[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}
[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}
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}