- [Arguments] ${NETWORK} ${SUBNET} ${IP_SUBNET} ${PORT1} ${PORT2} ${SECURITY_GROUPS}
- ... ${SGP_ID}
- [Documentation] Neutron Setup Creation
- ${net_id} Create Network ${NETWORK}
- Set Global Variable ${net_id}
- ${subnet_id} Create SubNet ${NETWORK} ${SUBNET} ${IP_SUBNET}
- Set Global Variable ${subnet_id}
- ${ADD_ARGMS}= Set Variable ${SECURITY_GROUPS} ${SGP_ID}
- ${port_id} Create Neutron Port With Additional Params ${NETWORK} ${PORT1} ${ADD_ARGMS}
- ${port_id} Create Neutron Port With Additional Params ${NETWORK} ${PORT2} ${ADD_ARGMS}
+ [Arguments] ${network} ${subnet} ${ip_subnet} ${port1} ${port2} ${sg_groups}
+ ... ${sg_id}
+ ${net_id} = OpenStackOperations.Create Network ${network}
+ ${subnet_id} = OpenStackOperations.Create SubNet ${network} ${subnet} ${ip_subnet}
+ ${add_args} = BuiltIn.Set Variable ${sg_groups} ${sg_id}
+ ${port_id} OpenStackOperations.Create Neutron Port With Additional Params ${network} ${port1} ${add_args}
+ ${port_id} OpenStackOperations.Create Neutron Port With Additional Params ${network} ${port2} ${add_args}
+
+Neutron Security Group Suite Teardown
+ : FOR ${port} IN @{PORTS}
+ \ Run Keyword And Ignore Error OpenStackOperations.Delete Port ${port}
+ : FOR ${subnet} IN @{SUBNETS}
+ \ Run Keyword And Ignore Error OpenStackOperations.Delete SubNet ${subnet}
+ : FOR ${network} IN @{NETWORKS}
+ \ Run Keyword And Ignore Error OpenStackOperations.Delete Network ${network}
+ : FOR ${sg} IN @{SGS}
+ \ Run Keyword And Ignore Error OpenStackOperations.Delete SecurityGroup ${sg}
+ Close All Connections