${step} Convert to Integer ${step}
: FOR ${switches} IN RANGE ${start} ${stop+1} ${step}
\ Start Mininet Linear ${switches}
- \ ${status} ${result} Run Keyword And Ignore Error Wait Until Keyword Succeeds ${switches*2} 5s
+ \ ${status} ${result} Run Keyword And Ignore Error Wait Until Keyword Succeeds ${switches*2} 10s
\ ... Check Every Switch ${switches}
\ Return From Keyword If '${status}' == 'FAIL'
- \ ${status} ${result} Run Keyword And Ignore Error Wait Until Keyword Succeeds ${switches*2} 5s
+ \ ${status} ${result} Run Keyword And Ignore Error Wait Until Keyword Succeeds ${switches*2} 10s
\ ... Check Linear Topology ${switches}
\ Return From Keyword If '${status}' == 'FAIL'
\ Stop Mininet
- \ ${status} ${result} Run Keyword And Ignore Error Wait Until Keyword Succeeds ${switches*2} 5s
+ \ ${status} ${result} Run Keyword And Ignore Error Wait Until Keyword Succeeds ${switches*2} 10s
\ ... Check No Switches ${switches}
\ Return From Keyword If '${status}' == 'FAIL'
- \ ${status} ${result} Run Keyword And Ignore Error Wait Until Keyword Succeeds ${switches*2} 5s
+ \ ${status} ${result} Run Keyword And Ignore Error Wait Until Keyword Succeeds ${switches*2} 10s
\ ... Check No Topology ${switches}
\ Return From Keyword If '${status}' == 'FAIL'
\ ${max-switches} Convert To String ${switches}
Start Mininet Linear
[Arguments] ${switches}
[Documentation] Start mininet linear topology with ${switches} nodes
- Log Start mininet linear ${switches}
- ${mininet_conn_id}= Open Connection ${MININET} prompt=${linux_prompt} timeout=${switches*2}
+ Log To Console Starting mininet linear ${switches}
+ ${mininet_conn_id}= Open Connection ${MININET} prompt=${linux_prompt} timeout=${switches*3}
Set Suite Variable ${mininet_conn_id}
Login With Public Key ${MININET_USER} ${USER_HOME}/.ssh/id_rsa any
Write sudo mn --controller=remote,ip=${CONTROLLER} --topo linear,${switches} --switch ovsk,protocols=OpenFlow13
[Documentation] Check all switches and stats in operational inventory
: FOR ${switch} IN RANGE 1 ${switches+1}
\ ${resp} RequestsLibrary.Get session /restconf/operational/opendaylight-inventory:nodes/node/openflow:${switch}
- \ Log ${resp.content}
+ \ Log To Console Checking Switch ${switch}
\ Should Be Equal As Strings ${resp.status_code} 200
\ Should Contain ${resp.content} flow-capable-node-connector-statistics
\ Should Contain ${resp.content} flow-table-statistics
[Arguments] ${switches}
[Documentation] Check Linear topology given ${switches}
${resp} RequestsLibrary.Get session /restconf/operational/network-topology:network-topology/
- Log ${resp.content}
+ Log To Console Checking Topology
Should Be Equal As Strings ${resp.status_code} 200
: FOR ${switch} IN RANGE 1 ${switches+1}
\ Should Contain ${resp.content} "node-id":"openflow:${switch}"
[Arguments] ${switches}
[Documentation] Check no switch is in inventory
${resp} RequestsLibrary.Get session /restconf/operational/opendaylight-inventory:nodes
- Log ${resp.content}
+ Log To Console Checking No Switches
Should Be Equal As Strings ${resp.status_code} 200
: FOR ${switch} IN RANGE 1 ${switches+1}
\ Should Not Contain ${resp.content} openflow:${switch}
[Arguments] ${switches}
[Documentation] Check no switch is in topology
${resp} RequestsLibrary.Get session /restconf/operational/network-topology:network-topology/
- Log ${resp.content}
+ Log To Console Checking No Topology
Should Be Equal As Strings ${resp.status_code} 200
: FOR ${switch} IN RANGE 1 ${switches+1}
\ Should Not Contain ${resp.content} openflow:${switch}
Stop Mininet
[Documentation] Stop mininet
- Log Stop Mininet
+ Log To Console Stopping Mininet
Switch Connection ${mininet_conn_id}
Read
Write exit