\ Wait Until Keyword Succeeds 25s 5s Verify VM Is ACTIVE ${VM}
Log Check for routes
Wait Until Keyword Succeeds 30s 10s Wait For Routes To Propogate
- ${VM_IP_NET10} ${DHCP_IP1} Wait Until Keyword Succeeds 30s 10s Verify VMs Received DHCP Lease @{VM_INSTANCES_NET10}
+ : FOR ${index} IN RANGE 1 5
+ \ ${VM_IP_NET10} ${DHCP_IP1} Wait Until Keyword Succeeds 30s 10s Verify VMs Received DHCP Lease
+ \ ... @{VM_INSTANCES_NET10}
+ \ ${VM_IP_NET20} ${DHCP_IP2} Wait Until Keyword Succeeds 30s 10s Verify VMs Received DHCP Lease
+ \ ... @{VM_INSTANCES_NET20}
+ \ ${VM_IPS}= Collections.Combine Lists ${VM_IP_NET10} ${VM_IP_NET20}
+ \ ${status} ${message} Run Keyword And Ignore Error List Should Not Contain Value ${VM_IPS} None
+ \ Exit For Loop If '${status}' == 'PASS'
+ \ BuiltIn.Sleep 5s
+ : FOR ${vm} IN @{VM_INSTANCES_NET10} @{VM_INSTANCES_NET20}
+ \ Write Commands Until Prompt nova console-log ${vm} 30s
Log ${VM_IP_NET10}
Set Suite Variable ${VM_IP_NET10}
- ${VM_IP_NET20} ${DHCP_IP2} Wait Until Keyword Succeeds 30s 10s Verify VMs Received DHCP Lease @{VM_INSTANCES_NET20}
Log ${VM_IP_NET20}
Set Suite Variable ${VM_IP_NET20}
+ Should Not Contain ${VM_IP_NET10) None
+ Should Not Contain ${VM_IP_NET20} None
Check ELAN Datapath Traffic Within The Networks
[Documentation] Checks datapath within the same network with different vlans.
# for dhcp addresses
: FOR ${vm} IN @{NET_1_VM_INSTANCES} @{NET_2_VM_INSTANCES}
\ Wait Until Keyword Succeeds 15s 5s Verify VM Is ACTIVE ${vm}
- ${NET1_VM_COUNT} Get Length ${NET_1_VM_INSTANCES}
- ${NET2_VM_COUNT} Get Length ${NET_2_VM_INSTANCES}
- ${LOOP_COUNT} Evaluate ${NET1_VM_COUNT}+${NET2_VM_COUNT}
- : FOR ${index} IN RANGE 1 ${LOOP_COUNT}
+ : FOR ${index} IN RANGE 1 5
\ ${NET1_VM_IPS} ${NET1_DHCP_IP} Verify VMs Received DHCP Lease @{NET_1_VM_INSTANCES}
\ ${NET2_VM_IPS} ${NET2_DHCP_IP} Verify VMs Received DHCP Lease @{NET_2_VM_INSTANCES}
- \ ${NET1_VM_LIST_LENGTH}= Get Length ${NET1_VM_IPS}
- \ ${NET2_VM_LIST_LENGTH}= Get Length ${NET2_VM_IPS}
- \ Exit For Loop If ${NET1_VM_LIST_LENGTH}==${NET1_VM_COUNT} and ${NET2_VM_LIST_LENGTH}==${NET2_VM_COUNT}
+ \ ${VM_IPS}= Collections.Combine Lists ${NET1_VM_IPS} ${NET2_VM_IPS}
+ \ ${status} ${message} Run Keyword And Ignore Error List Should Not Contain Value ${VM_IPS} None
+ \ Exit For Loop If '${status}' == 'PASS'
+ \ BuiltIn.Sleep 5s
+ : FOR ${vm} IN @{NET_1_VM_INSTANCES} @{NET_2_VM_INSTANCES}
+ \ Write Commands Until Prompt nova console-log ${vm} 30s
Append To List ${NET1_VM_IPS} ${NET1_DHCP_IP}
Set Suite Variable ${NET1_VM_IPS}
Append To List ${NET2_VM_IPS} ${NET2_DHCP_IP}
Set Suite Variable ${NET2_VM_IPS}
+ Should Not Contain ${NET1_VM_IPS} None
+ Should Not Contain ${NET2_VM_IPS} None
[Teardown] Run Keywords Show Debugs @{NET_1_VM_INSTANCES} @{NET_2_VM_INSTANCES}
... AND Get Test Teardown Debugs
# for dhcp addresses
: FOR ${vm} IN @{NET_1_VM_INSTANCES} @{NET_2_VM_INSTANCES}
\ Wait Until Keyword Succeeds 15s 5s Verify VM Is ACTIVE ${vm}
- ${NET1_VM_COUNT} Get Length ${NET_1_VM_INSTANCES}
- ${NET2_VM_COUNT} Get Length ${NET_2_VM_INSTANCES}
- ${LOOP_COUNT} Evaluate ${NET1_VM_COUNT}+${NET2_VM_COUNT}
- : FOR ${index} IN RANGE 1 ${LOOP_COUNT}
+ : FOR ${index} IN RANGE 1 5
\ ${NET1_L3_VM_IPS} ${NET1_DHCP_IP} Verify VMs Received DHCP Lease @{NET_1_VM_INSTANCES}
\ ${NET2_L3_VM_IPS} ${NET2_DHCP_IP} Verify VMs Received DHCP Lease @{NET_2_VM_INSTANCES}
- \ ${NET1_VM_LIST_LENGTH}= Get Length ${NET1_L3_VM_IPS}
- \ ${NET2_VM_LIST_LENGTH}= Get Length ${NET2_L3_VM_IPS}
- \ Exit For Loop If ${NET1_VM_LIST_LENGTH}==${NET1_VM_COUNT} and ${NET2_VM_LIST_LENGTH}==${NET2_VM_COUNT}
+ \ ${VM_IPS}= Collections.Combine Lists ${NET1_L3_VM_IPS} ${NET2_L3_VM_IPS}
+ \ ${status} ${message} Run Keyword And Ignore Error List Should Not Contain Value ${VM_IPS} None
+ \ Exit For Loop If '${status}' == 'PASS'
+ \ BuiltIn.Sleep 5s
+ : FOR ${vm} IN @{NET_1_VM_INSTANCES} @{NET_2_VM_INSTANCES}
+ \ Write Commands Until Prompt nova console-log ${vm} 30s
Set Suite Variable ${NET1_L3_VM_IPS}
Set Suite Variable ${NET1_DHCP_IP}
Set Suite Variable ${NET2_L3_VM_IPS}
Set Suite Variable ${NET2_DHCP_IP}
+ Should Not Contain ${NET1_L3_VM_IPS} None
+ Should Not Contain ${NET2_L3_VM_IPS} None
[Teardown] Run Keywords Show Debugs @{NET_1_VM_INSTANCES} @{NET_2_VM_INSTANCES}
... AND Get Test Teardown Debugs
# for dhcp addresses
: FOR ${vm} IN @{NET_1_VM_INSTANCES} @{NET_2_VM_INSTANCES}
\ Wait Until Keyword Succeeds 15s 5s Verify VM Is ACTIVE ${vm}
- ${NET1_VM_COUNT} Get Length ${NET_1_VM_INSTANCES}
- ${NET2_VM_COUNT} Get Length ${NET_2_VM_INSTANCES}
- ${LOOP_COUNT} Evaluate ${NET1_VM_COUNT}+${NET2_VM_COUNT}
- : FOR ${index} IN RANGE 1 ${LOOP_COUNT}
+ : FOR ${index} IN RANGE 1 5
+ \ # creating 50s pool at 5s interval
\ ${NET1_VM_IPS} ${NET1_DHCP_IP} Verify VMs Received DHCP Lease @{NET_1_VM_INSTANCES}
\ ${NET2_VM_IPS} ${NET2_DHCP_IP} Verify VMs Received DHCP Lease @{NET_2_VM_INSTANCES}
- \ ${NET1_VM_LIST_LENGTH}= Get Length ${NET1_VM_IPS}
- \ ${NET2_VM_LIST_LENGTH}= Get Length ${NET2_VM_IPS}
- \ Exit For Loop If ${NET1_VM_LIST_LENGTH}==${NET1_VM_COUNT} and ${NET2_VM_LIST_LENGTH}==${NET2_VM_COUNT}
+ \ ${VM_IPS}= Collections.Combine Lists ${NET1_VM_IPS} ${NET2_VM_IPS}
+ \ ${status} ${message} Run Keyword And Ignore Error List Should Not Contain Value ${VM_IPS} None
+ \ Exit For Loop If '${status}' == 'PASS'
+ \ BuiltIn.Sleep 5s
+ : FOR ${vm} IN @{NET_1_VM_INSTANCES} @{NET_2_VM_INSTANCES}
+ \ Write Commands Until Prompt nova console-log ${vm} 30s
Append To List ${NET1_VM_IPS} ${NET1_DHCP_IP}
Set Suite Variable ${NET1_VM_IPS}
Append To List ${NET2_VM_IPS} ${NET2_DHCP_IP}
Set Suite Variable ${NET2_VM_IPS}
+ Should Not Contain ${NET1_VM_IPS} None
+ Should Not Contain ${NET2_VM_IPS} None
[Teardown] Run Keywords Show Debugs @{NET_1_VM_INSTANCES} @{NET_2_VM_INSTANCES}
... AND Get Test Teardown Debugs
# for dhcp addresses
: FOR ${vm} IN @{NET_1_VM_INSTANCES} @{NET_2_VM_INSTANCES}
\ Wait Until Keyword Succeeds 15s 5s Verify VM Is ACTIVE ${vm}
- ${NET1_VM_COUNT} Get Length ${NET_1_VM_INSTANCES}
- ${NET2_VM_COUNT} Get Length ${NET_2_VM_INSTANCES}
- ${LOOP_COUNT} Evaluate ${NET1_VM_COUNT}+${NET2_VM_COUNT}
- : FOR ${index} IN RANGE 1 ${LOOP_COUNT}
+ : FOR ${index} IN RANGE 1 5
\ ${NET1_L3_VM_IPS} ${NET1_DHCP_IP} Verify VMs Received DHCP Lease @{NET_1_VM_INSTANCES}
\ ${NET2_L3_VM_IPS} ${NET2_DHCP_IP} Verify VMs Received DHCP Lease @{NET_2_VM_INSTANCES}
- \ ${NET1_VM_LIST_LENGTH}= Get Length ${NET1_L3_VM_IPS}
- \ ${NET2_VM_LIST_LENGTH}= Get Length ${NET2_L3_VM_IPS}
- \ Exit For Loop If ${NET1_VM_LIST_LENGTH}==${NET1_VM_COUNT} and ${NET2_VM_LIST_LENGTH}==${NET2_VM_COUNT}
+ \ ${VM_IPS}= Collections.Combine Lists ${NET1_L3_VM_IPS} ${NET2_L3_VM_IPS}
+ \ ${status} ${message} Run Keyword And Ignore Error List Should Not Contain Value ${VM_IPS} None
+ \ Exit For Loop If '${status}' == 'PASS'
+ \ BuiltIn.Sleep 5s
+ : FOR ${vm} IN @{NET_1_VM_INSTANCES} @{NET_2_VM_INSTANCES}
+ \ Write Commands Until Prompt nova console-log ${vm} 30s
Set Suite Variable ${NET1_L3_VM_IPS}
Set Suite Variable ${NET1_DHCP_IP}
Set Suite Variable ${NET2_L3_VM_IPS}
Set Suite Variable ${NET2_DHCP_IP}
+ Should Not Contain ${NET1_L3_VM_IPS} None
+ Should Not Contain ${NET2_L3_VM_IPS} None
[Teardown] Run Keywords Show Debugs @{NET_1_VM_INSTANCES} @{NET_2_VM_INSTANCES}
... AND Get Test Teardown Debugs