*** Settings *** Documentation Test suite for RESTCONF FRM Suite Setup Create Session session http://${CONTROLLER}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML} Suite Teardown Delete All Sessions Library Collections Library RequestsLibrary Library ../../../libraries/Common.py Variables ../../../variables/Variables.py Resource ../../../libraries/Utils.robot *** Variables *** ${REST_CON} /restconf/config/opendaylight-inventory:nodes ${BODY2} 2Foo204810.0.20.1/32152000openflow:1:1 *** Test Cases *** Add a flow - Output to physical port# [Documentation] Push a flow through REST-API ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/0/flow/152 headers=${HEADERS_XML} data=${BODY2} Should Be Equal As Strings ${resp.status_code} 200 Verify after adding flow config - Output to physical port# [Documentation] Verify the flow ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/0 Should Be Equal As Strings ${resp.status_code} 200 Should Contain ${resp.content} 152 Verify after adding flow operational - Output to physical port# [Documentation] Verify the flow ${elements}= Create List 10.0.20.1 Wait Until Keyword Succeeds 6s 2s Check For Elements At URI ${OPERATIONAL_NODES_API}/node/openflow:1/table/0/flow/152 ${elements} Remove a flow - Output to physical port# [Documentation] Remove a flow ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/0/flow/152 Should Be Equal As Strings ${resp.status_code} 200 Verify after deleting flow config - Output to physical port# [Documentation] Verify the flow ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/0 Should Be Equal As Strings ${resp.status_code} 200 Should Not Contain ${resp.content} 152 # Standing bug #368 - This has been fixed Verify after deleting flow operational - Output to physical port# [Documentation] Verify the flow ${elements}= Create List 10.0.20.1 Wait Until Keyword Succeeds 6s 2s Check For Elements Not At URI ${OPERATIONAL_NODES_API}/node/openflow:1/table/0 ${elements}