+ ${TOOLS_SYSTEM_IP1} Replace String ${TOOLS_SYSTEM_IP} ${TOOLS_SYSTEM_IP} "${TOOLS_SYSTEM_IP}"
+ ${dictionary} Create Dictionary ${TOOLS_SYSTEM_IP1}=1 ${OVSDBPORT}=4 ${BRIDGE}=1
+ Wait Until Keyword Succeeds
+ ... 5s
+ ... 1s
+ ... ClusterManagement.Put_As_Json_And_Check_Member_List_Or_All
+ ... ${RFC8040_SOUTHBOUND_NODE_API}uuid%2F${ovsdb_uuid}%2Fbridge%2F${BRIDGE}
+ ... ${body}
+ ... ${controller_index}
+ ... ${controller_index_list}
+ Wait Until Keyword Succeeds
+ ... 10s
+ ... 2s
+ ... ClusterManagement.Check_Item_Occurrence_Member_List_Or_All
+ ... uri=${RFC8040_SOUTHBOUND_NODE_API}uuid%2F${ovsdb_uuid}?${RFC8040_OPERATIONAL_CONTENT}
+ ... dictionary=${dictionary}
+ ... member_index_list=${controller_index_list}
+
+Create Sample Port And Verify
+ [Documentation] Add Port vx2 to bridge ${BRIDGE} in controller ${controller_index} and verify it gets added in all instances in ${controller_index_list}.
+ [Arguments] ${controller_index} ${controller_index_list}=${EMPTY}
+ ${sample} OperatingSystem.Get File ${OVSDB_CONFIG_DIR}/create_port_3node.json
+ ${body} Replace String ${sample} 192.168.1.10 ${TOOLS_SYSTEM_IP}
+ Log ${body}
+ Log URL is ${RFC8040_SOUTHBOUND_NODE_API}uuid%2F${ovsdb_uuid}%2Fbridge%2F${BRIDGE}/termination-point=vx2
+ ${port_dictionary} Create Dictionary ${BRIDGE}=1 vx2=3
+ ClusterManagement.Put_As_Json_And_Check_Member_List_Or_All
+ ... ${RFC8040_SOUTHBOUND_NODE_API}uuid%2F${ovsdb_uuid}%2Fbridge%2F${BRIDGE}/termination-point=vx2
+ ... ${body}
+ ... ${controller_index}
+ ... ${controller_index_list}
+ Wait Until Keyword Succeeds
+ ... 10s
+ ... 2s
+ ... ClusterManagement.Check_Item_Occurrence_Member_List_Or_All
+ ... uri=${RFC8040_SOUTHBOUND_NODE_API}uuid%2F${ovsdb_uuid}%2Fbridge%2F${BRIDGE}/termination-point=vx2?${RFC8040_OPERATIONAL_CONTENT}
+ ... dictionary=${port_dictionary}
+ ... member_index_list=${controller_index_list}
+
+Modify the destination IP of Sample Port
+ [Documentation] Modify the dst ip of port vx2 in bridge ${BRIDGE} in controller ${controller_index}.
+ [Arguments] ${controller_index} ${controller_index_list}=${EMPTY}
+ ${sample} OperatingSystem.Get File ${OVSDB_CONFIG_DIR}/create_port_3node.json
+ ${body} Replace String ${sample} 192.168.1.10 10.0.0.19
+ Log URL is ${RFC8040_SOUTHBOUND_NODE_API}uuid%2F${ovsdb_uuid}%2Fbridge%2F${BRIDGE}/termination-point=vx2
+ Log ${body}
+ ClusterManagement.Put_As_Json_And_Check_Member_List_Or_All
+ ... ${RFC8040_SOUTHBOUND_NODE_API}uuid%2F${ovsdb_uuid}%2Fbridge%2F${BRIDGE}/termination-point=vx2
+ ... ${body}
+ ... ${controller_index}
+ ... ${controller_index_list}
+
+Verify Sample Port Is Modified
+ [Documentation] Verify dst ip of port vx2 in bridge ${BRIDGE} gets modified in all instances in ${controller_index_list}.
+ [Arguments] ${controller_index_list}=${EMPTY}
+ ${port_dictionary} Create Dictionary br01=6 vx2=3 10.0.0.19=1
+ Wait Until Keyword Succeeds
+ ... 5s
+ ... 1s
+ ... ClusterManagement.Check_Item_Occurrence_Member_List_Or_All
+ ... uri=${RFC8040_SOUTHBOUND_NODE_API}uuid%2F${ovsdb_uuid}%2Fbridge%2F${BRIDGE}?${RFC8040_OPERATIONAL_CONTENT}
+ ... dictionary=${port_dictionary}
+ ... member_index_list=${controller_index_list}
+
+Delete Sample Port And Verify
+ [Documentation] Delete port vx2 from bridge ${BRIDGE} in controller ${controller_index} and verify it gets deleted in all instances in ${controller_index_list}.
+ [Arguments] ${controller_index} ${controller_index_list}=${EMPTY}
+ ${dictionary} Create Dictionary vx2=0
+ ClusterManagement.Delete_And_Check_Member_List_Or_All
+ ... ${RFC8040_SOUTHBOUND_NODE_API}uuid%2F${ovsdb_uuid}%2Fbridge%2F${BRIDGE}/termination-point=vx2
+ ... ${controller_index}
+ ... ${controller_index_list}
+ Wait Until Keyword Succeeds
+ ... 5s
+ ... 1s
+ ... ClusterManagement.Check_Item_Occurrence_Member_List_Or_All
+ ... uri=${RFC8040_SOUTHBOUND_NODE_API}uuid%2F${ovsdb_uuid}?${RFC8040_OPERATIONAL_CONTENT}
+ ... dictionary=${dictionary}
+ ... member_index_list=${controller_index_list}
+
+Delete Sample Bridge And Verify
+ [Documentation] Delete bridge ${BRIDGE} in ${controller_index} and verify it gets deleted in all instances in ${controller_index_list}.
+ [Arguments] ${controller_index} ${controller_index_list}=${EMPTY}
+ ${dictionary} Create Dictionary ${BRIDGE}=0
+ Wait Until Keyword Succeeds
+ ... 5s
+ ... 1s
+ ... ClusterManagement.Delete_And_Check_Member_List_Or_All
+ ... ${RFC8040_SOUTHBOUND_NODE_API}uuid%2F${ovsdb_uuid}%2Fbridge%2F${BRIDGE}
+ ... ${controller_index}
+ ... ${controller_index_list}
+ Wait Until Keyword Succeeds
+ ... 5s
+ ... 1s
+ ... ClusterManagement.Check_Item_Occurrence_Member_List_Or_All
+ ... uri=${RFC8040_SOUTHBOUND_NODE_API}uuid%2F${ovsdb_uuid}?${RFC8040_OPERATIONAL_CONTENT}
+ ... dictionary=${dictionary}
+ ... member_index_list=${controller_index_list}
+
+Configure Exit OVSDB Connection
+ [Documentation] Cleans up test environment, close existing sessions.
+ [Arguments] ${controller_index_list}=${EMPTY}
+ OVSDB.Clean OVSDB Test Environment ${TOOLS_SYSTEM_IP}
+ ${dictionary} Create Dictionary ovsdb://uuid=0
+ Wait Until Keyword Succeeds
+ ... 5s
+ ... 1s
+ ... ClusterManagement.Check_Item_Occurrence_Member_List_Or_All
+ ... uri=${RFC8040_OPERATIONAL_TOPO_API}
+ ... dictionary=${dictionary}
+ ... member_index_list=${controller_index_list}