2 Documentation Checking Port deleted in OpenStack are deleted also in OpenDaylight
3 Suite Setup Create Session OSSession http://${NEUTRON}:9696 headers=${X-AUTH}
4 Suite Teardown Delete All Sessions
7 Library OperatingSystem
8 Library ../../../libraries/RequestsLibrary.py
9 Library ../../../libraries/Common.py
10 Variables ../../../variables/Variables.py
13 ${ODLREST} /controller/nb/v2/neutron/ports
14 ${OSREST} /v2.0/ports/${PORTID}
15 ${data} {"port":{"network_id":"${NETID}","admin_state_up": true}}
19 [Documentation] Delete previously created port in OpenStack
20 [Tags] Delete port OpenStack Neutron
22 ${resp} delete OSSession ${OSREST}
23 Should be Equal As Strings ${resp.status_code} 204
28 [Documentation] Check port deleted in OpenDaylight
29 [Tags] Check port deleted OpenDaylight
30 Create Session ODLSession http://${CONTROLLER}:${PORT} headers=${HEADERS} auth=${AUTH}
31 ${resp} get ODLSession ${ODLREST}
32 Should be Equal As Strings ${resp.status_code} 200
33 ${ODLResult} To Json ${resp.content}
34 Set Suite Variable ${ODLResult}
36 ${resp} get ODLSession ${ODLREST}/${PORTID}
37 Should be Equal As Strings ${resp.status_code} 404