--- /dev/null
+*** Settings ***
+Documentation Test suite for bug 6917 validation.
+Suite Setup Initialization Phase
+Suite Teardown Final Phase
+Library XML
+Library RequestsLibrary
+Resource ../../../libraries/MininetKeywords.robot
+Resource ../../../libraries/FlowLib.robot
+Variables ../../../variables/Variables.py
+
+*** Variables ***
+${XmlsDir} ${CURDIR}/../../../variables/xmls
+${flowfile} f161.xml
+${switch_idx} 1
+${switch_name} s${switch_idx}
+
+*** Test Cases ***
+Add Alien Flow And Verify It Is In Operational DS
+ [Documentation] Add flow with incorrent in-port format to generate alien ID
+ FlowLib.Create Flow Variables For Suite From XML File ${XmlsDir}/${flowfile}
+ FlowLib.Add Flow Via Restconf ${switch_idx} ${table_id} ${data}
+ BuiltIn.Wait Until Keyword Succeeds 10s 1s FlowLib.Check Datastore Presence ${flowfile} ${True} ${True}
+ ... ${False} ${False}
+ [Teardown] Report_Failure_Due_To_Bug 7258
+
+*** Keywords ***
+Initialization Phase
+ [Documentation] Starts mininet and verify if topology is in operational datastore.
+ ${mininet_conn_id}= MininetKeywords.Start Mininet Single Controller
+ BuiltIn.Set Suite Variable ${mininet_conn_id}
+ RequestsLibrary.Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}
+ BuiltIn.Wait Until Keyword Succeeds 10s 1s Are Switches Connected Topo
+
+Final Phase
+ [Documentation] Stops mininet.
+ BuiltIn.Run Keyword And Ignore Error RequestsLibrary.Delete Request session ${CONFIG_NODES_API}
+ MininetKeywords.Stop Mininet And Exit ${mininet_conn_id}
+ RequestsLibrary.Delete All Sessions
+
+Are Switches Connected Topo
+ [Documentation] Checks wheather switches are connected to controller
+ ${resp}= RequestsLibrary.Get Request session ${OPERATIONAL_TOPO_API}/topology/flow:1 headers=${ACCEPT_XML}
+ Log ${resp.content}
+ ${count}= XML.Get Element Count ${resp.content} xpath=node
+ BuiltIn.Should Be Equal As Numbers ${count} 1