Variables ../../../variables/Variables.py
*** Variables ***
-${ODLREST} /controller/nb/v2/neutron/ports
${OSREST} /v2.0/ports
${data} {"port":{"network_id":"${NETID}","admin_state_up": true}}
[Documentation] Checking OpenDaylight Neutron API for known ports
[Tags] Ports Neutron OpenDaylight
Create Session ODLSession http://${ODL_SYSTEM_IP}:${PORT} headers=${HEADERS} auth=${AUTH}
- ${resp} get request ODLSession ${ODLREST}
+ ${resp} get request ODLSession ${NEUTRON_PORTS_API}
Should be Equal As Strings ${resp.status_code} 200
${ODLResult} To Json ${resp.content}
Log ${ODLResult}
Check New Port
[Documentation] Check new port created in OpenDaylight
[Tags] Check port OpenDaylight
- ${resp} get request ODLSession ${ODLREST}/${PORTID}
+ ${resp} get request ODLSession ${NEUTRON_PORTS_API}/${PORTID}
Should be Equal As Strings ${resp.status_code} 200