Log ${output}
Should Contain ${output} Created a new subnet
+Create Port
+ [Arguments] ${network_name} ${port_name}
+ [Documentation] Create Port with neutron request.
+ ${devstack_conn_id}= Get ControlNode Connection
+ Switch Connection ${devstack_conn_id}
+ ${output}= Write Commands Until Prompt neutron -v port-create ${network_name} --name ${port_name} 30s
+ Close Connection
+ Log ${output}
+ Should Contain ${output} Created a new port
+
Verify Gateway Ips
[Documentation] Verifies the Gateway Ips with dump flow.
${output}= Write Commands Until Prompt sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
Resource ../../../libraries/Utils.robot
Resource ../../../libraries/OpenStackOperations.robot
Resource ../../../libraries/DevstackUtils.robot
+Variables ../../../variables/Variables.py
*** Variables ***
-${net-1} NET10
-${net-2} NET20
-${subnet-1} SUBNET1
-${subnet-2} SUBNET2
-${subnet-1-cidr} 10.1.1.0/24
-${subnet-2-cidr} 20.1.1.0/24
+${net_1} NET10
+${net_2} NET20
+${subnet_1} SUBNET1
+${subnet_2} SUBNET2
+${subnet_1_cidr} 10.1.1.0/24
+${subnet_2_cidr} 20.1.1.0/24
+${port_1} PORT1
+${port_2} PORT2
+${port_3} PORT3
+${port_4} PORT4
*** Test Cases ***
Verify Tunnel Creation
... test case is critical to run, and if it fails we would be dead in the water for the rest of the suite,
... we should move it to Suite Setup so that nothing else will run and waste time in a broken environment.
+#TC1
Create Neutron Networks
[Documentation] Create two networks
- Create Network ${net-1} --provider:network_type local
- Create Network ${net-2} --provider:network_type local
+ Create Network ${net_1} --provider:network_type local
+ Create Network ${net_2} --provider:network_type local
List Networks
Create Neutron Subnets
[Documentation] Create two subnets for previously created networks
- Create SubNet ${net-1} {subnet-1} ${subnet-1-cidr}
- Create SubNet ${net-2} {subnet-2} ${subnet-2-cidr}
+ Create SubNet ${net_1} ${subnet_1} ${subnet_1_cidr}
+ Create SubNet ${net_2} ${subnet_2} ${subnet_2_cidr}
List Subnets
+Create Neutron Ports
+ [Documentation] Create four ports under previously created subnets
+ Create Port ${net_1} ${port_1}
+ Create Port ${net_1} ${port_2}
+ Create Port ${net_2} ${port_3}
+ Create Port ${net_2} ${port_4}
+
+Check OpenDaylight Neutron Ports
+ [Documentation] Checking OpenDaylight Neutron API for known ports
+ ${resp} RequestsLibrary.Get Request session ${NEUTRON_PORTS_API}
+ Log ${resp.content}
+ Should be Equal As Strings ${resp.status_code} 200
+
*** Keywords ***
Basic Vpnservice Suite Setup
Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS}
Basic Vpnservice Suite Teardown
- Delete All Sessions
\ No newline at end of file
+ Delete All Sessions