2 Documentation Checking Port deleted in OpenStack are deleted also in OpenDaylight
4 Library RequestsLibrary
5 Resource ../../../variables/Variables.robot
7 Suite Setup Start Suite
8 Suite Teardown Delete All Sessions
12 ${OSREST} /v2.0/ports/${PORTID}
13 ${data} {"port":{"network_id":"${NETID}","admin_state_up": true}}
18 [Documentation] Delete previously created port in OpenStack
19 [Tags] delete port openstack neutron
21 ${resp} delete request OSSession ${OSREST}
22 Should be Equal As Strings ${resp.status_code} 204
27 [Documentation] Check port deleted in OpenDaylight
28 [Tags] check port deleted opendaylight
29 ${resp} get request ODLSession ${NEUTRON_PORTS_API}
30 Should be Equal As Strings ${resp.status_code} 200
31 ${ODLResult} To Json ${resp.text}
33 ${resp} get request ODLSession ${NEUTRON_PORTS_API}/${PORTID}
34 Should be Equal As Strings ${resp.status_code} 404
40 ${resp} get request ODLSession ${NEUTRON_PORTS_API}/${portid}
41 Should be Equal As Strings ${resp.status_code} 200
44 Create Session OSSession ${NEUTRONURL} headers=${X-AUTH-NOCONTENT}
45 Create Session ODLSession http://${ODL_SYSTEM_IP}:${PORT} headers=${HEADERS} auth=${AUTH}
46 Check Port Exists ${PORTID}