summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
e638785)
Description: In a 3 node cluster initial inventory shard status is
verified and following tests are performed.
- Mininet switch is connected to a follower node and flow is added via
another follower node. Disconnect the switch and restarts the Leader.
Connect the switch again once Cluster is formed and verify flow is
installed in the switch again
- Disconnect the switch and restarts one of the follower node. Connect
the switch and verify the flow is installed in the switch again.
- Disconnect the switch and restarts the Cluster. Connect the switch
again when Cluster is formed and verify the flow is installed
successfully.
Change-Id: Ibd01664bc355a41bc95794930b1e40f3468ce858
Signed-off-by: Sanjib Mohapatra <sanjib.mohapatra@ericsson.com>
${inventory_leader} ${inventory_followers} ClusterOpenFlow.Get InventoryConfig Shard Status ${original_cluster_list}
${follower_node_1}= Get From List ${inventory_followers} 0
${follower_node_2}= Get From List ${inventory_followers} 1
${inventory_leader} ${inventory_followers} ClusterOpenFlow.Get InventoryConfig Shard Status ${original_cluster_list}
${follower_node_1}= Get From List ${inventory_followers} 0
${follower_node_2}= Get From List ${inventory_followers} 1
+ Set Suite Variable ${inventory_leader_old} ${inventory_leader}
Set Suite Variable ${follower_node_1}
Set Suite Variable ${follower_node_2}
Set Suite Variable ${inventory_leader}
Set Suite Variable ${follower_node_1}
Set Suite Variable ${follower_node_2}
Set Suite Variable ${inventory_leader}
Set Suite Variable ${follower_node_2}
Set Suite Variable ${inventory_leader}
Set Suite Variable ${follower_node_2}
Set Suite Variable ${inventory_leader}
-Start Mininet Connect To Follower Node2
- [Documentation] Start mininet with connection to cluster Follower Node2.
- ${mininet_conn_id}= MininetKeywords.Start Mininet Single Controller ${TOOLS_SYSTEM_IP} ${ODL_SYSTEM_${follower_node_2}_IP}
+Start Mininet Connect To Old Leader
+ [Documentation] Start mininet with connection to cluster old leader.
+ ${mininet_conn_id}= MininetKeywords.Start Mininet Single Controller ${TOOLS_SYSTEM_IP} ${ODL_SYSTEM_${inventory_leader_old}_IP}
Set Suite Variable ${mininet_conn_id}
Verify Flows In Switch After Leader Restart
[Documentation] Verify flows are installed in switch after leader restart.
MininetKeywords.Verify Aggregate Flow From Mininet Session ${mininet_conn_id} ${switch_count_per_node} ${flow_count_per_switch} ${operation_timeout}
Set Suite Variable ${mininet_conn_id}
Verify Flows In Switch After Leader Restart
[Documentation] Verify flows are installed in switch after leader restart.
MininetKeywords.Verify Aggregate Flow From Mininet Session ${mininet_conn_id} ${switch_count_per_node} ${flow_count_per_switch} ${operation_timeout}
-Stop Mininet Connected To Follower Node2 and Exit
+Stop Mininet Connected To Old Leader and Exit
[Documentation] Stop mininet and exit connection.
MininetKeywords.Stop Mininet And Exit ${mininet_conn_id}
Utils.Clean Mininet System
[Documentation] Stop mininet and exit connection.
MininetKeywords.Stop Mininet And Exit ${mininet_conn_id}
Utils.Clean Mininet System