2 Documentation Checking Subnets 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/subnets
10 ${OSREST} /v2.0/subnets/${SUBNETID}
11 ${data} {"subnet":{"network_id":"${NETID}","ip_version":4,"cidr":"172.16.64.0/24","allocation_pools":[{"start":"172.16.64.20","end":"172.16.64.120"}]}}
15 [Documentation] Delete previously created subnet in OpenStack
16 [Tags] Delete Subnet OpenStack Neutron
18 ${resp} delete request OSSession ${OSREST}
19 Should be Equal As Strings ${resp.status_code} 204
23 Check New subnet deleted
24 [Documentation] Check subnet deleted in OpenDaylight
25 [Tags] Check subnet deleted 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}/${SUBNETID}
31 Should be Equal As Strings ${resp.status_code} 404
35 [Arguments] ${subnetid}
36 ${resp} get request ODLSession ${ODLREST}/${subnetid}
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 Subnet Exists ${SUBNETID}