2 Documentation Checking Network deleted in OpenStack are deleted also in OpenDaylight
3 Suite Setup Start Suite
4 Suite Teardown Delete All Sessions
5 Library RequestsLibrary
6 Variables ../../../variables/Variables.py
9 ${ODLREST} /controller/nb/v2/neutron/networks
10 ${OSREST} /v2.0/networks/${NETID}
11 ${postNet} {"network":{"name":"odl_network","admin_state_up":true}}
15 [Documentation] Delete network in OpenStack
16 [Tags] Delete Network OpenStack Neutron
18 ${resp} delete request OSSession ${OSREST}
19 Should be Equal As Strings ${resp.status_code} 204
24 [Documentation] Check network deleted in OpenDaylight
25 [Tags] Check Network OpenDaylight
26 ${resp} get request ODLSession ${ODLREST}
27 Should be Equal As Strings ${resp.status_code} 200
28 ${ODLResult} To Json ${resp.content}
30 ${resp} get request ODLSession ${ODLREST}/${NETID}
31 Should be Equal As Strings ${resp.status_code} 404
36 ${resp} get request ODLSession ${ODLREST}/${netid}
37 Should be Equal As Strings ${resp.status_code} 200
40 Create Session OSSession http://${NEUTRON}:9696 headers=${X-AUTH}
41 Create Session ODLSession http://${ODL_SYSTEM_IP}:${PORT} headers=${HEADERS} auth=${AUTH}
42 Check Network Exists ${NETID}