<?xml version="1.0" encoding="UTF-8"?>
<robot generated="20181027 17:33:07.290" generator="Robot 3.0.2 (Python 2.7.15 on linux2)">
<suite id="s1" name="Basic &amp; Neutron">
<suite source="/src/odl_test/csit/suites/integration/basic" id="s1-s1" name="Basic">
<suite source="/src/odl_test/csit/suites/integration/basic/restconf_modules.robot" id="s1-s1-s1" name="Restconf Modules">
<kw type="setup" name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>session</arg>
<arg>http://${ODL_SYSTEM_IP}:${RESTCONFPORT}</arg>
<arg>auth=${AUTH}</arg>
<arg>headers=${HEADERS_XML}</arg>
</arguments>
<msg timestamp="20181027 17:33:07.353" level="INFO">Creating Session using : alias=session, url=http://192.16.1.222:8181, headers={u'Content-Type': u'application/xml'},                     cookies=None, auth=&lt;requests.auth.HTTPBasicAuth object at 0x7f52e0b23990&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181027 17:33:07.354" starttime="20181027 17:33:07.352"></status>
</kw>
<test id="s1-s1-s1-t1" name="Get Controller Modules">
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>session</arg>
<arg>${MODULES_API}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:07.961" level="FAIL">ConnectionError: HTTPConnectionPool(host='192.16.1.222', port=8181): Max retries exceeded with url: /restconf/modules (Caused by NewConnectionError('&lt;urllib3.connection.HTTPConnection object at 0x7f52e0b35650&gt;: Failed to establish a new connection: [Errno 111] Connection refused',))</msg>
<status status="FAIL" endtime="20181027 17:33:07.961" starttime="20181027 17:33:07.354"></status>
</kw>
<doc>Get the restconf modules, check 200 status and ietf-restconf presence.</doc>
<status status="FAIL" endtime="20181027 17:33:07.962" critical="yes" starttime="20181027 17:33:07.354">ConnectionError: HTTPConnectionPool(host='192.16.1.222', port=8181): Max retries exceeded with url: /restconf/modules (Caused by NewConnectionError('&lt;urllib3.connection.HTTPConnection object at 0x7f52e0b35650&gt;: Failed to establish a new connection: [Errno 111] Connection refused',))</status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181027 17:33:07.963" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181027 17:33:07.963" starttime="20181027 17:33:07.962"></status>
</kw>
<doc>Test suite to verify Restconf is OK.</doc>
<status status="FAIL" endtime="20181027 17:33:07.963" starttime="20181027 17:33:07.322"></status>
</suite>
<status status="FAIL" endtime="20181027 17:33:07.964" starttime="20181027 17:33:07.320"></status>
</suite>
<suite source="/src/odl_test/csit/suites/openstack/neutron" id="s1-s2" name="Neutron">
<kw type="setup" name="Start Suite">
<kw name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>KeyStoneSession</arg>
<arg>${KEYSTONEURL}</arg>
<arg>headers=${HEADERS}</arg>
</arguments>
<msg timestamp="20181027 17:33:08.009" level="INFO">Creating Session using : alias=KeyStoneSession, url=https://192.16.1.222:5000, headers={u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181027 17:33:08.010" starttime="20181027 17:33:08.009"></status>
</kw>
<kw name="Post" library="RequestsLibrary">
<doc>**Deprecated- See Post Request now**</doc>
<arguments>
<arg>KeyStoneSession</arg>
<arg>/v3/auth/tokens</arg>
<arg>${UserInfo}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:08.011" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20181027 17:33:08.016" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181027 17:33:08.447" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:08.447" starttime="20181027 17:33:08.010"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>201</arg>
</arguments>
<msg timestamp="20181027 17:33:08.487" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:08.487" starttime="20181027 17:33:08.447"></status>
</kw>
<kw name="Get From Dictionary" library="Collections">
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<arguments>
<arg>${resp.headers}</arg>
<arg>X-Subject-Token</arg>
</arguments>
<assign>
<var>${TOKEN}</var>
</assign>
<msg timestamp="20181027 17:33:08.488" level="INFO">${TOKEN} = gAAAAABb1KFUsHxzcoAkN_GCpOVqx9OIZZHAr8ILFvnrq0Dy33qqPlaa3Uy6qsOBrYekWWqz5ZFptSc1f_n151GHIc0xbTS3GuRvBEzU5C58RAjLuZF87CiZplPEqp2K8puMqH4-P5eKae2moukfzI6sh_VCuFiWa61QnOpsJuv3KOlRE-oNofE</msg>
<status status="PASS" endtime="20181027 17:33:08.488" starttime="20181027 17:33:08.487"></status>
</kw>
<kw name="Create Dictionary" library="BuiltIn">
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
<arguments>
<arg>X-Auth-Token=${TOKEN}</arg>
<arg>Content-Type=application/json</arg>
</arguments>
<assign>
<var>${X-AUTH}</var>
</assign>
<msg timestamp="20181027 17:33:08.489" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABb1KFUsHxzcoAkN_GCpOVqx9OIZZHAr8ILFvnrq0Dy33qqPlaa3Uy6qsOBrYekWWqz5ZFptSc1f_n151GHIc0xbTS3GuRvBEzU5C58RAjLuZF87CiZplPEqp2K8puMqH4-P5eKae2moukfzI6sh_VCuFiWa61QnOpsJuv3KOlRE-oNo...</msg>
<status status="PASS" endtime="20181027 17:33:08.489" starttime="20181027 17:33:08.488"></status>
</kw>
<kw name="Create Dictionary" library="BuiltIn">
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
<arguments>
<arg>X-Auth-Token=${TOKEN}</arg>
</arguments>
<assign>
<var>${X-AUTH-NOCONTENT}</var>
</assign>
<msg timestamp="20181027 17:33:08.489" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABb1KFUsHxzcoAkN_GCpOVqx9OIZZHAr8ILFvnrq0Dy33qqPlaa3Uy6qsOBrYekWWqz5ZFptSc1f_n151GHIc0xbTS3GuRvBEzU5C58RAjLuZF87CiZplPEqp2K8puMqH4-P5eKae2moukfzI6sh_VCuFiWa61QnOpsJuv3KOlRE-oNo...</msg>
<status status="PASS" endtime="20181027 17:33:08.490" starttime="20181027 17:33:08.489"></status>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<doc>Makes a variable available globally in all tests and suites.</doc>
<arguments>
<arg>${X-AUTH}</arg>
</arguments>
<msg timestamp="20181027 17:33:08.490" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABb1KFUsHxzcoAkN_GCpOVqx9OIZZHAr8ILFvnrq0Dy33qqPlaa3Uy6qsOBrYekWWqz5ZFptSc1f_n151GHIc0xbTS3GuRvBEzU5C58RAjLuZF87CiZplPEqp2K8puMqH4-P5eKae2moukfzI6sh_VCuFiWa61QnOpsJuv3KOlRE-oNo...</msg>
<status status="PASS" endtime="20181027 17:33:08.490" starttime="20181027 17:33:08.490"></status>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<doc>Makes a variable available globally in all tests and suites.</doc>
<arguments>
<arg>${X-AUTH-NOCONTENT}</arg>
</arguments>
<msg timestamp="20181027 17:33:08.491" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABb1KFUsHxzcoAkN_GCpOVqx9OIZZHAr8ILFvnrq0Dy33qqPlaa3Uy6qsOBrYekWWqz5ZFptSc1f_n151GHIc0xbTS3GuRvBEzU5C58RAjLuZF87CiZplPEqp2K8puMqH4-P5eKae2moukfzI6sh_VCuFiWa61QnOpsJuv3KOlRE-oNo...</msg>
<status status="PASS" endtime="20181027 17:33:08.491" starttime="20181027 17:33:08.491"></status>
</kw>
<status status="PASS" endtime="20181027 17:33:08.491" starttime="20181027 17:33:08.008"></status>
</kw>
<suite source="/src/odl_test/csit/suites/openstack/neutron/001__reachability.robot" id="s1-s2-s1" name="Reachability">
<kw type="setup" name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>ODL</arg>
<arg>http://${ODL_SYSTEM_IP}:${PORT}</arg>
<arg>headers=${HEADERS}</arg>
<arg>auth=${AUTH}</arg>
</arguments>
<msg timestamp="20181027 17:33:08.509" level="INFO">Creating Session using : alias=ODL, url=http://192.16.1.222:8080, headers={u'Content-Type': u'application/json'},                     cookies=None, auth=&lt;requests.auth.HTTPBasicAuth object at 0x7f52e1b71510&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181027 17:33:08.509" starttime="20181027 17:33:08.508"></status>
</kw>
<test id="s1-s2-s1-t1" name="Get the complete list of networks">
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>ODL</arg>
<arg>${NEUTRON_NETWORKS_API}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:08.551" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181027 17:33:08.551" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:08.551" starttime="20181027 17:33:08.510"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181027 17:33:08.552" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:08.552" starttime="20181027 17:33:08.551"></status>
</kw>
<doc>Get the complete list of networks</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181027 17:33:08.552" critical="yes" starttime="20181027 17:33:08.510"></status>
</test>
<test id="s1-s2-s1-t2" name="Get the complete list of subnets">
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>ODL</arg>
<arg>${NEUTRON_SUBNETS_API}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:08.569" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181027 17:33:08.569" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:08.569" starttime="20181027 17:33:08.553"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181027 17:33:08.570" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:08.570" starttime="20181027 17:33:08.570"></status>
</kw>
<doc>Get the complete list of subnets</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181027 17:33:08.570" critical="yes" starttime="20181027 17:33:08.553"></status>
</test>
<test id="s1-s2-s1-t3" name="Get the complete list of ports">
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>ODL</arg>
<arg>${NEUTRON_PORTS_API}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:08.582" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181027 17:33:08.582" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:08.582" starttime="20181027 17:33:08.571"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181027 17:33:08.583" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:08.583" starttime="20181027 17:33:08.582"></status>
</kw>
<doc>Get the complete list of ports</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181027 17:33:08.583" critical="yes" starttime="20181027 17:33:08.571"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181027 17:33:08.584" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181027 17:33:08.584" starttime="20181027 17:33:08.584"></status>
</kw>
<status status="PASS" endtime="20181027 17:33:08.584" starttime="20181027 17:33:08.491"></status>
</suite>
<suite source="/src/odl_test/csit/suites/openstack/neutron/010__networks.robot" id="s1-s2-s2" name="Networks">
<kw type="setup" name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>OSSession</arg>
<arg>${NEUTRONURL}</arg>
<arg>headers=${X-AUTH}</arg>
</arguments>
<msg timestamp="20181027 17:33:08.606" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABb1KFUsHxzcoAkN_GCpOVqx9OIZZHAr8ILFvnrq0Dy33qqPlaa3Uy6qsOBrYekWWqz5ZFptSc1f_n151GHIc0xbTS3GuRvBEzU5C58RAjLuZF87CiZplPEqp2K8puMqH4-P5eKae2moukfzI6sh_VCuFiWa61QnOpsJuv3KOlRE-oNofE', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181027 17:33:08.606" starttime="20181027 17:33:08.605"></status>
</kw>
<test id="s1-s2-s2-t1" name="Check OpenStack Networks">
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${X-AUTH}</arg>
</arguments>
<msg timestamp="20181027 17:33:08.607" level="INFO">{u'X-Auth-Token': 'gAAAAABb1KFUsHxzcoAkN_GCpOVqx9OIZZHAr8ILFvnrq0Dy33qqPlaa3Uy6qsOBrYekWWqz5ZFptSc1f_n151GHIc0xbTS3GuRvBEzU5C58RAjLuZF87CiZplPEqp2K8puMqH4-P5eKae2moukfzI6sh_VCuFiWa61QnOpsJuv3KOlRE-oNofE', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181027 17:33:08.607" starttime="20181027 17:33:08.607"></status>
</kw>
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>OSSession</arg>
<arg>${OSREST}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:08.613" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181027 17:33:08.955" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/networks, headers=None json=None</msg>
<msg timestamp="20181027 17:33:08.955" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:08.955" starttime="20181027 17:33:08.608"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181027 17:33:08.956" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:08.956" starttime="20181027 17:33:08.955"></status>
</kw>
<kw name="To Json" library="RequestsLibrary">
<doc>Convert a string to a JSON object</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<assign>
<var>${OSResult}</var>
</assign>
<msg timestamp="20181027 17:33:08.956" level="INFO">To JSON using : content={"networks":[{"provider:physical_network":"physnet","ipv6_address_scope":null,"revision_number":2,"port_security_enabled":true,"mtu":1500,"id":"195e714e-d384-4ae7-a767-9f493dff62ea","router:external":true,"availability_zone_hints":[],"availability_zones":["nova"],"ipv4_address_scope":null,"shared":false,"project_id":"22c91d859f0649d594aace4ac42a81af","status":"ACTIVE","subnets":["f03fceb4-e1a2-44f5-affb-13944184c993"],"description":"","tags":[],"updated_at":"2018-10-27T17:22:48Z","is_default":false,"provider:segmentation_id":null,"name":"ext-net","admin_state_up":true,"tenant_id":"22c91d859f0649d594aace4ac42a81af","created_at":"2018-10-27T17:22:40Z","provider:network_type":"flat"}]} </msg>
<msg timestamp="20181027 17:33:08.957" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181027 17:33:08.957" level="INFO">${OSResult} = {u'networks': [{u'provider:physical_network': u'physnet', u'ipv6_address_scope': None, u'revision_number': 2, u'port_security_enabled': True, u'provider:network_type': u'flat', u'id': u'195e714e-d384-...</msg>
<status status="PASS" endtime="20181027 17:33:08.957" starttime="20181027 17:33:08.956"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181027 17:33:08.957" level="INFO">{u'networks': [{u'provider:physical_network': u'physnet', u'ipv6_address_scope': None, u'revision_number': 2, u'port_security_enabled': True, u'provider:network_type': u'flat', u'id': u'195e714e-d384-4ae7-a767-9f493dff62ea', u'router:external': True, u'availability_zone_hints': [], u'availability_zones': [u'nova'], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'22c91d859f0649d594aace4ac42a81af', u'status': u'ACTIVE', u'subnets': [u'f03fceb4-e1a2-44f5-affb-13944184c993'], u'description': u'', u'tags': [], u'updated_at': u'2018-10-27T17:22:48Z', u'is_default': False, u'provider:segmentation_id': None, u'name': u'ext-net', u'admin_state_up': True, u'tenant_id': u'22c91d859f0649d594aace4ac42a81af', u'created_at': u'2018-10-27T17:22:40Z', u'mtu': 1500}]}</msg>
<status status="PASS" endtime="20181027 17:33:08.957" starttime="20181027 17:33:08.957"></status>
</kw>
<doc>Checking OpenStack Neutron for known networks</doc>
<tags>
<tag>Network Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181027 17:33:08.958" critical="yes" starttime="20181027 17:33:08.606"></status>
</test>
<test id="s1-s2-s2-t2" name="Check OpenDaylight Networks">
<kw name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>ODLSession</arg>
<arg>http://${ODL_SYSTEM_IP}:${PORT}</arg>
<arg>headers=${HEADERS}</arg>
<arg>auth=${AUTH}</arg>
</arguments>
<msg timestamp="20181027 17:33:08.959" level="INFO">Creating Session using : alias=ODLSession, url=http://192.16.1.222:8080, headers={u'Content-Type': u'application/json'},                     cookies=None, auth=&lt;requests.auth.HTTPBasicAuth object at 0x7f52e0cfa310&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181027 17:33:08.960" starttime="20181027 17:33:08.959"></status>
</kw>
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>ODLSession</arg>
<arg>${NEUTRON_NETWORKS_API}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:08.976" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181027 17:33:08.977" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:08.977" starttime="20181027 17:33:08.960"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181027 17:33:08.978" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:08.978" starttime="20181027 17:33:08.977"></status>
</kw>
<kw name="To Json" library="RequestsLibrary">
<doc>Convert a string to a JSON object</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<assign>
<var>${ODLResult}</var>
</assign>
<msg timestamp="20181027 17:33:08.979" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "195e714e-d384-4ae7-a767-9f493dff62ea",
      "tenant_id" : "22c91d859f0649d594aace4ac42a81af",
      "project_id" : "22c91d859f0649d594aace4ac42a81af",
      "revision_number" : 1,
      "name" : "ext-net",
      "admin_state_up" : true,
      "status" : "ACTIVE",
      "shared" : false,
      "router:external" : true,
      "provider:network_type" : "flat",
      "provider:physical_network" : "physnet",
      "segments" : [ ]
   }, {
      "id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
      "tenant_id" : "bd8db3a82b304083a8b3b3fd46401142",
      "project_id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
      "name" : "Sync Canary Network",
      "admin_state_up" : false,
      "status" : "ACTIVE",
      "shared" : false,
      "router:external" : false,
      "provider:network_type" : "flat",
      "segments" : [ ]
   } ]
} </msg>
<msg timestamp="20181027 17:33:08.979" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181027 17:33:08.979" level="INFO">${ODLResult} = {u'networks': [{u'status': u'ACTIVE', u'router:external': True, u'name': u'ext-net', u'provider:physical_network': u'physnet', u'admin_state_up': True, u'tenant_id': u'22c91d859f0649d594aace4ac42a81af...</msg>
<status status="PASS" endtime="20181027 17:33:08.979" starttime="20181027 17:33:08.978"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181027 17:33:08.979" level="INFO">{u'networks': [{u'status': u'ACTIVE', u'router:external': True, u'name': u'ext-net', u'provider:physical_network': u'physnet', u'admin_state_up': True, u'tenant_id': u'22c91d859f0649d594aace4ac42a81af', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'22c91d859f0649d594aace4ac42a81af', u'id': u'195e714e-d384-4ae7-a767-9f493dff62ea'}, {u'status': u'ACTIVE', u'router:external': False, u'name': u'Sync Canary Network', u'admin_state_up': False, u'tenant_id': u'bd8db3a82b304083a8b3b3fd46401142', u'segments': [], u'provider:network_type': u'flat', u'shared': False, u'project_id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142', u'id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142'}]}</msg>
<status status="PASS" endtime="20181027 17:33:08.980" starttime="20181027 17:33:08.979"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known networks</doc>
<tags>
<tag>Network Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181027 17:33:08.980" critical="yes" starttime="20181027 17:33:08.958"></status>
</test>
<test id="s1-s2-s2-t3" name="Create Network">
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${postNet}</arg>
</arguments>
<msg timestamp="20181027 17:33:08.982" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20181027 17:33:08.982" starttime="20181027 17:33:08.982"></status>
</kw>
<kw name="Post Request" library="RequestsLibrary">
<doc>Send a POST request on the session object found using the</doc>
<arguments>
<arg>OSSession</arg>
<arg>${OSREST}</arg>
<arg>data=${postNet}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:08.984" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181027 17:33:09.296" level="INFO">Post Request using : alias=OSSession, uri=/v2.0/networks, data=&lt;empty&gt;, headers=None, files=None, allow_redirects=True </msg>
<msg timestamp="20181027 17:33:09.297" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:09.297" starttime="20181027 17:33:08.982"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>201</arg>
</arguments>
<msg timestamp="20181027 17:33:09.297" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:09.298" starttime="20181027 17:33:09.297"></status>
</kw>
<kw name="To Json" library="RequestsLibrary">
<doc>Convert a string to a JSON object</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<assign>
<var>${result}</var>
</assign>
<msg timestamp="20181027 17:33:09.298" level="INFO">To JSON using : content={"network":{"provider:physical_network":null,"ipv6_address_scope":null,"revision_number":1,"port_security_enabled":true,"provider:network_type":"vxlan","id":"cb59e200-2d95-4fc7-aad5-1a186269235c","router:external":false,"availability_zone_hints":[],"availability_zones":[],"ipv4_address_scope":null,"shared":false,"project_id":"22c91d859f0649d594aace4ac42a81af","status":"ACTIVE","subnets":[],"description":"","tags":[],"updated_at":"2018-10-27T17:33:09Z","is_default":false,"provider:segmentation_id":86,"name":"odl_network","admin_state_up":true,"tenant_id":"22c91d859f0649d594aace4ac42a81af","created_at":"2018-10-27T17:33:09Z","mtu":1450}} </msg>
<msg timestamp="20181027 17:33:09.298" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181027 17:33:09.299" level="INFO">${result} = {u'network': {u'provider:physical_network': None, u'ipv6_address_scope': None, u'revision_number': 1, u'port_security_enabled': True, u'mtu': 1450, u'id': u'cb59e200-2d95-4fc7-aad5-1a186269235c', u'ro...</msg>
<status status="PASS" endtime="20181027 17:33:09.299" starttime="20181027 17:33:09.298"></status>
</kw>
<kw name="Get From Dictionary" library="Collections">
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<arguments>
<arg>${result}</arg>
<arg>network</arg>
</arguments>
<assign>
<var>${result}</var>
</assign>
<msg timestamp="20181027 17:33:09.299" level="INFO">${result} = {u'provider:physical_network': None, u'ipv6_address_scope': None, u'revision_number': 1, u'port_security_enabled': True, u'mtu': 1450, u'id': u'cb59e200-2d95-4fc7-aad5-1a186269235c', u'router:external...</msg>
<status status="PASS" endtime="20181027 17:33:09.299" starttime="20181027 17:33:09.299"></status>
</kw>
<kw name="Get From Dictionary" library="Collections">
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<arguments>
<arg>${result}</arg>
<arg>id</arg>
</arguments>
<assign>
<var>${NETID}</var>
</assign>
<msg timestamp="20181027 17:33:09.300" level="INFO">${NETID} = cb59e200-2d95-4fc7-aad5-1a186269235c</msg>
<status status="PASS" endtime="20181027 17:33:09.300" starttime="20181027 17:33:09.299"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181027 17:33:09.300" level="INFO">{u'provider:physical_network': None, u'ipv6_address_scope': None, u'revision_number': 1, u'port_security_enabled': True, u'mtu': 1450, u'id': u'cb59e200-2d95-4fc7-aad5-1a186269235c', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'22c91d859f0649d594aace4ac42a81af', u'status': u'ACTIVE', u'subnets': [], u'description': u'', u'tags': [], u'updated_at': u'2018-10-27T17:33:09Z', u'is_default': False, u'provider:segmentation_id': 86, u'name': u'odl_network', u'admin_state_up': True, u'tenant_id': u'22c91d859f0649d594aace4ac42a81af', u'created_at': u'2018-10-27T17:33:09Z', u'provider:network_type': u'vxlan'}</msg>
<status status="PASS" endtime="20181027 17:33:09.300" starttime="20181027 17:33:09.300"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${NETID}</arg>
</arguments>
<msg timestamp="20181027 17:33:09.301" level="INFO">cb59e200-2d95-4fc7-aad5-1a186269235c</msg>
<status status="PASS" endtime="20181027 17:33:09.301" starttime="20181027 17:33:09.301"></status>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<doc>Makes a variable available globally in all tests and suites.</doc>
<arguments>
<arg>${NETID}</arg>
</arguments>
<msg timestamp="20181027 17:33:09.302" level="INFO">${NETID} = cb59e200-2d95-4fc7-aad5-1a186269235c</msg>
<status status="PASS" endtime="20181027 17:33:09.302" starttime="20181027 17:33:09.301"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181027 17:33:11.303" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181027 17:33:11.303" starttime="20181027 17:33:09.302"></status>
</kw>
<doc>Create new network in OpenStack</doc>
<tags>
<tag>Create Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181027 17:33:11.303" critical="yes" starttime="20181027 17:33:08.980"></status>
</test>
<test id="s1-s2-s2-t4" name="Check Network">
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>ODLSession</arg>
<arg>${NEUTRON_NETWORKS_API}/${NetID}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:11.312" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/cb59e200-2d95-4fc7-aad5-1a186269235c, headers=None json=None</msg>
<msg timestamp="20181027 17:33:11.312" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:11.312" starttime="20181027 17:33:11.304"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181027 17:33:11.313" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:11.313" starttime="20181027 17:33:11.312"></status>
</kw>
<doc>Check network created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181027 17:33:11.313" critical="yes" starttime="20181027 17:33:11.304"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181027 17:33:11.314" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181027 17:33:11.314" starttime="20181027 17:33:11.314"></status>
</kw>
<doc>Checking Network created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181027 17:33:11.314" starttime="20181027 17:33:08.585"></status>
</suite>
<suite source="/src/odl_test/csit/suites/openstack/neutron/020__subnets.robot" id="s1-s2-s3" name="Subnets">
<kw type="setup" name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>OSSession</arg>
<arg>${NEUTRONURL}</arg>
<arg>headers=${X-AUTH}</arg>
</arguments>
<msg timestamp="20181027 17:33:11.334" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABb1KFUsHxzcoAkN_GCpOVqx9OIZZHAr8ILFvnrq0Dy33qqPlaa3Uy6qsOBrYekWWqz5ZFptSc1f_n151GHIc0xbTS3GuRvBEzU5C58RAjLuZF87CiZplPEqp2K8puMqH4-P5eKae2moukfzI6sh_VCuFiWa61QnOpsJuv3KOlRE-oNofE', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181027 17:33:11.335" starttime="20181027 17:33:11.334"></status>
</kw>
<test id="s1-s2-s3-t1" name="Check OpenStack Subnets">
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${X-AUTH}</arg>
</arguments>
<msg timestamp="20181027 17:33:11.336" level="INFO">{u'X-Auth-Token': 'gAAAAABb1KFUsHxzcoAkN_GCpOVqx9OIZZHAr8ILFvnrq0Dy33qqPlaa3Uy6qsOBrYekWWqz5ZFptSc1f_n151GHIc0xbTS3GuRvBEzU5C58RAjLuZF87CiZplPEqp2K8puMqH4-P5eKae2moukfzI6sh_VCuFiWa61QnOpsJuv3KOlRE-oNofE', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181027 17:33:11.336" starttime="20181027 17:33:11.335"></status>
</kw>
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>OSSession</arg>
<arg>${OSREST}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:11.341" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181027 17:33:11.408" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/subnets, headers=None json=None</msg>
<msg timestamp="20181027 17:33:11.408" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:11.408" starttime="20181027 17:33:11.336"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181027 17:33:11.409" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:11.409" starttime="20181027 17:33:11.408"></status>
</kw>
<kw name="To Json" library="RequestsLibrary">
<doc>Convert a string to a JSON object</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<assign>
<var>${OSResult}</var>
</assign>
<msg timestamp="20181027 17:33:11.409" level="INFO">To JSON using : content={"subnets":[{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"195e714e-d384-4ae7-a767-9f493dff62ea","tenant_id":"22c91d859f0649d594aace4ac42a81af","created_at":"2018-10-27T17:22:48Z","dns_nameservers":[],"updated_at":"2018-10-27T17:22:48Z","ipv6_ra_mode":null,"allocation_pools":[{"start":"192.16.1.101","end":"192.16.1.199"}],"gateway_ip":"192.16.1.1","revision_number":0,"ipv6_address_mode":null,"ip_version":4,"host_routes":[],"cidr":"192.16.1.0/24","project_id":"22c91d859f0649d594aace4ac42a81af","id":"f03fceb4-e1a2-44f5-affb-13944184c993","subnetpool_id":null,"name":"ext-subnet"}]} </msg>
<msg timestamp="20181027 17:33:11.410" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181027 17:33:11.410" level="INFO">${OSResult} = {u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'195e714e-d384-4ae7-a767-9f493dff62ea', u'tenant_id': u'22c91d859f0649d...</msg>
<status status="PASS" endtime="20181027 17:33:11.410" starttime="20181027 17:33:11.409"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181027 17:33:11.410" level="INFO">{u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'195e714e-d384-4ae7-a767-9f493dff62ea', u'tenant_id': u'22c91d859f0649d594aace4ac42a81af', u'created_at': u'2018-10-27T17:22:48Z', u'dns_nameservers': [], u'updated_at': u'2018-10-27T17:22:48Z', u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'192.16.1.101', u'end': u'192.16.1.199'}], u'gateway_ip': u'192.16.1.1', u'revision_number': 0, u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'192.16.1.0/24', u'project_id': u'22c91d859f0649d594aace4ac42a81af', u'id': u'f03fceb4-e1a2-44f5-affb-13944184c993', u'subnetpool_id': None, u'name': u'ext-subnet'}]}</msg>
<status status="PASS" endtime="20181027 17:33:11.410" starttime="20181027 17:33:11.410"></status>
</kw>
<doc>Checking OpenStack Neutron for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181027 17:33:11.411" critical="yes" starttime="20181027 17:33:11.335"></status>
</test>
<test id="s1-s2-s3-t2" name="Check OpenDaylight subnets">
<kw name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>ODLSession</arg>
<arg>http://${ODL_SYSTEM_IP}:${PORT}</arg>
<arg>headers=${HEADERS}</arg>
<arg>auth=${AUTH}</arg>
</arguments>
<msg timestamp="20181027 17:33:11.412" level="INFO">Creating Session using : alias=ODLSession, url=http://192.16.1.222:8080, headers={u'Content-Type': u'application/json'},                     cookies=None, auth=&lt;requests.auth.HTTPBasicAuth object at 0x7f52e0b7e490&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181027 17:33:11.412" starttime="20181027 17:33:11.411"></status>
</kw>
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>ODLSession</arg>
<arg>${NEUTRON_SUBNETS_API}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:11.424" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181027 17:33:11.424" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:11.424" starttime="20181027 17:33:11.413"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181027 17:33:11.425" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:11.425" starttime="20181027 17:33:11.424"></status>
</kw>
<kw name="To Json" library="RequestsLibrary">
<doc>Convert a string to a JSON object</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<assign>
<var>${ODLResult}</var>
</assign>
<msg timestamp="20181027 17:33:11.425" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "f03fceb4-e1a2-44f5-affb-13944184c993",
      "tenant_id" : "22c91d859f0649d594aace4ac42a81af",
      "project_id" : "22c91d859f0649d594aace4ac42a81af",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "195e714e-d384-4ae7-a767-9f493dff62ea",
      "ip_version" : 4,
      "cidr" : "192.16.1.0/24",
      "gateway_ip" : "192.16.1.1",
      "dns_nameservers" : [ ],
      "allocation_pools" : [ {
         "start" : "192.16.1.101",
         "end" : "192.16.1.199"
      } ],
      "host_routes" : [ ],
      "enable_dhcp" : true,
      "ipv6_address_mode" : null,
      "ipv6_ra_mode" : null
   } ]
} </msg>
<msg timestamp="20181027 17:33:11.426" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181027 17:33:11.426" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'195e714e-d384-4ae7-a767-9f493dff62ea', u'tenant_id': u'22c91d859f0649d594aace4ac42a81af', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20181027 17:33:11.426" starttime="20181027 17:33:11.425"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181027 17:33:11.426" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'195e714e-d384-4ae7-a767-9f493dff62ea', u'tenant_id': u'22c91d859f0649d594aace4ac42a81af', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'192.16.1.101', u'end': u'192.16.1.199'}], u'gateway_ip': u'192.16.1.1', u'revision_number': 0, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'192.16.1.0/24', u'project_id': u'22c91d859f0649d594aace4ac42a81af', u'id': u'f03fceb4-e1a2-44f5-affb-13944184c993'}]}</msg>
<status status="PASS" endtime="20181027 17:33:11.426" starttime="20181027 17:33:11.426"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181027 17:33:11.427" critical="yes" starttime="20181027 17:33:11.411"></status>
</test>
<test id="s1-s2-s3-t3" name="Create New subnet">
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${data}</arg>
</arguments>
<msg timestamp="20181027 17:33:11.428" level="INFO">{"subnet":{"network_id":"cb59e200-2d95-4fc7-aad5-1a186269235c","ip_version":4,"cidr":"172.16.64.0/24","allocation_pools":[{"start":"172.16.64.20","end":"172.16.64.120"}]}}</msg>
<status status="PASS" endtime="20181027 17:33:11.428" starttime="20181027 17:33:11.428"></status>
</kw>
<kw name="Post Request" library="RequestsLibrary">
<doc>Send a POST request on the session object found using the</doc>
<arguments>
<arg>OSSession</arg>
<arg>${OSREST}</arg>
<arg>data=${data}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:11.430" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181027 17:33:11.990" level="INFO">Post Request using : alias=OSSession, uri=/v2.0/subnets, data=&lt;empty&gt;, headers=None, files=None, allow_redirects=True </msg>
<msg timestamp="20181027 17:33:11.990" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:11.990" starttime="20181027 17:33:11.428"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>201</arg>
</arguments>
<msg timestamp="20181027 17:33:11.991" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:11.991" starttime="20181027 17:33:11.990"></status>
</kw>
<kw name="To Json" library="RequestsLibrary">
<doc>Convert a string to a JSON object</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<assign>
<var>${result}</var>
</assign>
<msg timestamp="20181027 17:33:11.991" level="INFO">To JSON using : content={"subnet":{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"cb59e200-2d95-4fc7-aad5-1a186269235c","tenant_id":"22c91d859f0649d594aace4ac42a81af","created_at":"2018-10-27T17:33:11Z","dns_nameservers":[],"updated_at":"2018-10-27T17:33:11Z","gateway_ip":"172.16.64.1","ipv6_ra_mode":null,"allocation_pools":[{"start":"172.16.64.20","end":"172.16.64.120"}],"host_routes":[],"revision_number":0,"ip_version":4,"ipv6_address_mode":null,"cidr":"172.16.64.0/24","project_id":"22c91d859f0649d594aace4ac42a81af","id":"06195de4-07f4-46ce-bbe7-d90b504eb1ba","subnetpool_id":null,"name":""}} </msg>
<msg timestamp="20181027 17:33:11.991" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181027 17:33:11.992" level="INFO">${result} = {u'subnet': {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'cb59e200-2d95-4fc7-aad5-1a186269235c', u'tenant_id': u'22c91d859f0649d594aace4ac42a81af', u'...</msg>
<status status="PASS" endtime="20181027 17:33:11.992" starttime="20181027 17:33:11.991"></status>
</kw>
<kw name="Get From Dictionary" library="Collections">
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<arguments>
<arg>${result}</arg>
<arg>subnet</arg>
</arguments>
<assign>
<var>${result}</var>
</assign>
<msg timestamp="20181027 17:33:11.992" level="INFO">${result} = {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'cb59e200-2d95-4fc7-aad5-1a186269235c', u'tenant_id': u'22c91d859f0649d594aace4ac42a81af', u'created_at':...</msg>
<status status="PASS" endtime="20181027 17:33:11.992" starttime="20181027 17:33:11.992"></status>
</kw>
<kw name="Get From Dictionary" library="Collections">
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<arguments>
<arg>${result}</arg>
<arg>id</arg>
</arguments>
<assign>
<var>${SUBNETID}</var>
</assign>
<msg timestamp="20181027 17:33:11.993" level="INFO">${SUBNETID} = 06195de4-07f4-46ce-bbe7-d90b504eb1ba</msg>
<status status="PASS" endtime="20181027 17:33:11.993" starttime="20181027 17:33:11.992"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181027 17:33:11.993" level="INFO">{u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'cb59e200-2d95-4fc7-aad5-1a186269235c', u'tenant_id': u'22c91d859f0649d594aace4ac42a81af', u'created_at': u'2018-10-27T17:33:11Z', u'dns_nameservers': [], u'updated_at': u'2018-10-27T17:33:11Z', u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'172.16.64.20', u'end': u'172.16.64.120'}], u'gateway_ip': u'172.16.64.1', u'revision_number': 0, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'172.16.64.0/24', u'project_id': u'22c91d859f0649d594aace4ac42a81af', u'id': u'06195de4-07f4-46ce-bbe7-d90b504eb1ba', u'subnetpool_id': None, u'name': u''}</msg>
<status status="PASS" endtime="20181027 17:33:11.993" starttime="20181027 17:33:11.993"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${SUBNETID}</arg>
</arguments>
<msg timestamp="20181027 17:33:11.994" level="INFO">06195de4-07f4-46ce-bbe7-d90b504eb1ba</msg>
<status status="PASS" endtime="20181027 17:33:11.994" starttime="20181027 17:33:11.994"></status>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<doc>Makes a variable available globally in all tests and suites.</doc>
<arguments>
<arg>${SUBNETID}</arg>
</arguments>
<msg timestamp="20181027 17:33:11.995" level="INFO">${SUBNETID} = 06195de4-07f4-46ce-bbe7-d90b504eb1ba</msg>
<status status="PASS" endtime="20181027 17:33:11.995" starttime="20181027 17:33:11.994"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181027 17:33:13.995" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181027 17:33:13.995" starttime="20181027 17:33:11.995"></status>
</kw>
<doc>Create new subnet in OpenStack</doc>
<tags>
<tag>Create Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181027 17:33:13.996" critical="yes" starttime="20181027 17:33:11.427"></status>
</test>
<test id="s1-s2-s3-t4" name="Check New subnet">
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>ODLSession</arg>
<arg>${NEUTRON_SUBNETS_API}/${SUBNETID}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:14.004" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/06195de4-07f4-46ce-bbe7-d90b504eb1ba, headers=None json=None</msg>
<msg timestamp="20181027 17:33:14.004" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:14.004" starttime="20181027 17:33:13.997"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181027 17:33:14.005" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:14.005" starttime="20181027 17:33:14.004"></status>
</kw>
<doc>Check new subnet created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>subnet OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181027 17:33:14.006" critical="yes" starttime="20181027 17:33:13.996"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181027 17:33:14.007" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181027 17:33:14.007" starttime="20181027 17:33:14.007"></status>
</kw>
<doc>Checking Subnets created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181027 17:33:14.007" starttime="20181027 17:33:11.316"></status>
</suite>
<suite source="/src/odl_test/csit/suites/openstack/neutron/030__ports.robot" id="s1-s2-s4" name="Ports">
<kw type="setup" name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>OSSession</arg>
<arg>${NEUTRONURL}</arg>
<arg>headers=${X-AUTH}</arg>
</arguments>
<msg timestamp="20181027 17:33:14.029" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABb1KFUsHxzcoAkN_GCpOVqx9OIZZHAr8ILFvnrq0Dy33qqPlaa3Uy6qsOBrYekWWqz5ZFptSc1f_n151GHIc0xbTS3GuRvBEzU5C58RAjLuZF87CiZplPEqp2K8puMqH4-P5eKae2moukfzI6sh_VCuFiWa61QnOpsJuv3KOlRE-oNofE', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181027 17:33:14.030" starttime="20181027 17:33:14.029"></status>
</kw>
<test id="s1-s2-s4-t1" name="Check OpenStack ports">
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${X-AUTH}</arg>
</arguments>
<msg timestamp="20181027 17:33:14.031" level="INFO">{u'X-Auth-Token': 'gAAAAABb1KFUsHxzcoAkN_GCpOVqx9OIZZHAr8ILFvnrq0Dy33qqPlaa3Uy6qsOBrYekWWqz5ZFptSc1f_n151GHIc0xbTS3GuRvBEzU5C58RAjLuZF87CiZplPEqp2K8puMqH4-P5eKae2moukfzI6sh_VCuFiWa61QnOpsJuv3KOlRE-oNofE', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181027 17:33:14.031" starttime="20181027 17:33:14.030"></status>
</kw>
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>OSSession</arg>
<arg>${OSREST}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:14.037" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181027 17:33:14.140" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/ports, headers=None json=None</msg>
<msg timestamp="20181027 17:33:14.141" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:14.141" starttime="20181027 17:33:14.031"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181027 17:33:14.142" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:14.142" starttime="20181027 17:33:14.141"></status>
</kw>
<kw name="To Json" library="RequestsLibrary">
<doc>Convert a string to a JSON object</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<assign>
<var>${OSResult}</var>
</assign>
<msg timestamp="20181027 17:33:14.143" level="INFO">To JSON using : content={"ports":[{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-27T17:22:57Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"f03fceb4-e1a2-44f5-affb-13944184c993","ip_address":"192.16.1.101"}],"id":"5e986b3a-a91d-46ed-bd39-fb79a5e74605","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"119caf4c-8da5-42a3-9227-391b650c755a","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:cc:bf:eb","project_id":"22c91d859f0649d594aace4ac42a81af","status":"ACTIVE","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-195e714e-d384-4ae7-a767-9f493dff62ea","name":"","admin_state_up":true,"network_id":"195e714e-d384-4ae7-a767-9f493dff62ea","tenant_id":"22c91d859f0649d594aace4ac42a81af","created_at":"2018-10-27T17:22:49Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-27T17:33:13Z","device_owner":"network:dhcp","revision_number":2,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"06195de4-07f4-46ce-bbe7-d90b504eb1ba","ip_address":"172.16.64.20"}],"id":"cdd53097-0162-46a1-9d4a-79f2706371a2","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"119caf4c-8da5-42a3-9227-391b650c755a","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:a6:fd:67","project_id":"22c91d859f0649d594aace4ac42a81af","status":"DOWN","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-cb59e200-2d95-4fc7-aad5-1a186269235c","name":"","admin_state_up":true,"network_id":"cb59e200-2d95-4fc7-aad5-1a186269235c","tenant_id":"22c91d859f0649d594aace4ac42a81af","created_at":"2018-10-27T17:33:12Z","binding:vnic_type":"normal"}]} </msg>
<msg timestamp="20181027 17:33:14.143" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181027 17:33:14.143" level="INFO">${OSResult} = {u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-27T17:22:57Z', u'device_owner': u'network:dhcp', u'revision_number': 3, u'port_security_enabled': False, u'b...</msg>
<status status="PASS" endtime="20181027 17:33:14.143" starttime="20181027 17:33:14.142"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181027 17:33:14.144" level="INFO">{u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-27T17:22:57Z', u'device_owner': u'network:dhcp', u'revision_number': 3, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'f03fceb4-e1a2-44f5-affb-13944184c993', u'ip_address': u'192.16.1.101'}], u'id': u'5e986b3a-a91d-46ed-bd39-fb79a5e74605', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'119caf4c-8da5-42a3-9227-391b650c755a', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:cc:bf:eb', u'project_id': u'22c91d859f0649d594aace4ac42a81af', u'status': u'ACTIVE', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-195e714e-d384-4ae7-a767-9f493dff62ea', u'name': u'', u'admin_state_up': True, u'network_id': u'195e714e-d384-4ae7-a767-9f493dff62ea', u'tenant_id': u'22c91d859f0649d594aace4ac42a81af', u'created_at': u'2018-10-27T17:22:49Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-27T17:33:13Z', u'device_owner': u'network:dhcp', u'revision_number': 2, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'06195de4-07f4-46ce-bbe7-d90b504eb1ba', u'ip_address': u'172.16.64.20'}], u'id': u'cdd53097-0162-46a1-9d4a-79f2706371a2', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'119caf4c-8da5-42a3-9227-391b650c755a', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:a6:fd:67', u'project_id': u'22c91d859f0649d594aace4ac42a81af', u'status': u'DOWN', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-cb59e200-2d95-4fc7-aad5-1a186269235c', u'name': u'', u'admin_state_up': True, u'network_id': u'cb59e200-2d95-4fc7-aad5-1a186269235c', u'tenant_id': u'22c91d859f0649d594aace4ac42a81af', u'created_at': u'2018-10-27T17:33:12Z', u'binding:vnic_type': u'normal'}]}</msg>
<status status="PASS" endtime="20181027 17:33:14.144" starttime="20181027 17:33:14.143"></status>
</kw>
<doc>Checking OpenStack Neutron for known ports</doc>
<tags>
<tag>Ports Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181027 17:33:14.144" critical="yes" starttime="20181027 17:33:14.030"></status>
</test>
<test id="s1-s2-s4-t2" name="Check OpenDaylight ports">
<kw name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>ODLSession</arg>
<arg>http://${ODL_SYSTEM_IP}:${PORT}</arg>
<arg>headers=${HEADERS}</arg>
<arg>auth=${AUTH}</arg>
</arguments>
<msg timestamp="20181027 17:33:14.147" level="INFO">Creating Session using : alias=ODLSession, url=http://192.16.1.222:8080, headers={u'Content-Type': u'application/json'},                     cookies=None, auth=&lt;requests.auth.HTTPBasicAuth object at 0x7f52e0b88610&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181027 17:33:14.147" starttime="20181027 17:33:14.145"></status>
</kw>
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>ODLSession</arg>
<arg>${NEUTRON_PORTS_API}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:14.192" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181027 17:33:14.192" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:14.192" starttime="20181027 17:33:14.147"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181027 17:33:14.193" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:14.193" starttime="20181027 17:33:14.192"></status>
</kw>
<kw name="To Json" library="RequestsLibrary">
<doc>Convert a string to a JSON object</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<assign>
<var>${ODLResult}</var>
</assign>
<msg timestamp="20181027 17:33:14.194" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "cdd53097-0162-46a1-9d4a-79f2706371a2",
      "tenant_id" : "22c91d859f0649d594aace4ac42a81af",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "cb59e200-2d95-4fc7-aad5-1a186269235c",
      "mac_address" : "fa:16:3e:a6:fd:67",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "06195de4-07f4-46ce-bbe7-d90b504eb1ba"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-cb59e200-2d95-4fc7-aad5-1a186269235c",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "119caf4c-8da5-42a3-9227-391b650c755a",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "5e986b3a-a91d-46ed-bd39-fb79a5e74605",
      "tenant_id" : "22c91d859f0649d594aace4ac42a81af",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "195e714e-d384-4ae7-a767-9f493dff62ea",
      "mac_address" : "fa:16:3e:cc:bf:eb",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "f03fceb4-e1a2-44f5-affb-13944184c993"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-195e714e-d384-4ae7-a767-9f493dff62ea",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "119caf4c-8da5-42a3-9227-391b650c755a",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20181027 17:33:14.194" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181027 17:33:14.194" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'119caf4c-8da5-42a3-9227-391b650c755a'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20181027 17:33:14.194" starttime="20181027 17:33:14.193"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181027 17:33:14.195" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'119caf4c-8da5-42a3-9227-391b650c755a'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'cb59e200-2d95-4fc7-aad5-1a186269235c', u'tenant_id': u'22c91d859f0649d594aace4ac42a81af', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'revision_number': 1, u'mac_address': u'fa:16:3e:a6:fd:67', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'06195de4-07f4-46ce-bbe7-d90b504eb1ba', u'ip_address': u'172.16.64.20'}], u'id': u'cdd53097-0162-46a1-9d4a-79f2706371a2', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-cb59e200-2d95-4fc7-aad5-1a186269235c'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'119caf4c-8da5-42a3-9227-391b650c755a'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'195e714e-d384-4ae7-a767-9f493dff62ea', u'tenant_id': u'22c91d859f0649d594aace4ac42a81af', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'revision_number': 3, u'mac_address': u'fa:16:3e:cc:bf:eb', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'f03fceb4-e1a2-44f5-affb-13944184c993', u'ip_address': u'192.16.1.101'}], u'id': u'5e986b3a-a91d-46ed-bd39-fb79a5e74605', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-195e714e-d384-4ae7-a767-9f493dff62ea'}]}</msg>
<status status="PASS" endtime="20181027 17:33:14.195" starttime="20181027 17:33:14.194"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known ports</doc>
<tags>
<tag>Ports Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181027 17:33:14.195" critical="yes" starttime="20181027 17:33:14.145"></status>
</test>
<test id="s1-s2-s4-t3" name="Create New Port">
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${data}</arg>
</arguments>
<msg timestamp="20181027 17:33:14.196" level="INFO">{"port":{"network_id":"cb59e200-2d95-4fc7-aad5-1a186269235c","admin_state_up": true}}</msg>
<status status="PASS" endtime="20181027 17:33:14.196" starttime="20181027 17:33:14.196"></status>
</kw>
<kw name="Post Request" library="RequestsLibrary">
<doc>Send a POST request on the session object found using the</doc>
<arguments>
<arg>OSSession</arg>
<arg>${OSREST}</arg>
<arg>data=${data}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:14.198" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181027 17:33:15.164" level="INFO">Post Request using : alias=OSSession, uri=/v2.0/ports, data=&lt;empty&gt;, headers=None, files=None, allow_redirects=True </msg>
<msg timestamp="20181027 17:33:15.165" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:15.165" starttime="20181027 17:33:14.196"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>201</arg>
</arguments>
<msg timestamp="20181027 17:33:15.166" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:15.166" starttime="20181027 17:33:15.165"></status>
</kw>
<kw name="To Json" library="RequestsLibrary">
<doc>Convert a string to a JSON object</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<assign>
<var>${result}</var>
</assign>
<msg timestamp="20181027 17:33:15.167" level="INFO">To JSON using : content={"port":{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-27T17:33:14Z","device_owner":"","revision_number":1,"binding:profile":{},"port_security_enabled":true,"fixed_ips":[{"subnet_id":"06195de4-07f4-46ce-bbe7-d90b504eb1ba","ip_address":"172.16.64.29"}],"id":"3872ba48-6dbb-4f0f-b968-12ad7d66224b","security_groups":["c2a8b0a8-fe55-4717-91d5-a0c3373ad789"],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:9d:3a:e4","project_id":"22c91d859f0649d594aace4ac42a81af","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"","name":"","admin_state_up":true,"network_id":"cb59e200-2d95-4fc7-aad5-1a186269235c","tenant_id":"22c91d859f0649d594aace4ac42a81af","created_at":"2018-10-27T17:33:14Z","binding:vnic_type":"normal"}} </msg>
<msg timestamp="20181027 17:33:15.167" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181027 17:33:15.167" level="INFO">${result} = {u'port': {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-27T17:33:14Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': ...</msg>
<status status="PASS" endtime="20181027 17:33:15.167" starttime="20181027 17:33:15.166"></status>
</kw>
<kw name="Get From Dictionary" library="Collections">
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<arguments>
<arg>${result}</arg>
<arg>port</arg>
</arguments>
<assign>
<var>${result}</var>
</assign>
<msg timestamp="20181027 17:33:15.167" level="INFO">${result} = {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-27T17:33:14Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fi...</msg>
<status status="PASS" endtime="20181027 17:33:15.167" starttime="20181027 17:33:15.167"></status>
</kw>
<kw name="Get From Dictionary" library="Collections">
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<arguments>
<arg>${result}</arg>
<arg>id</arg>
</arguments>
<assign>
<var>${PORTID}</var>
</assign>
<msg timestamp="20181027 17:33:15.168" level="INFO">${PORTID} = 3872ba48-6dbb-4f0f-b968-12ad7d66224b</msg>
<status status="PASS" endtime="20181027 17:33:15.168" starttime="20181027 17:33:15.168"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181027 17:33:15.169" level="INFO">{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-27T17:33:14Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fixed_ips': [{u'subnet_id': u'06195de4-07f4-46ce-bbe7-d90b504eb1ba', u'ip_address': u'172.16.64.29'}], u'id': u'3872ba48-6dbb-4f0f-b968-12ad7d66224b', u'security_groups': [u'c2a8b0a8-fe55-4717-91d5-a0c3373ad789'], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:9d:3a:e4', u'project_id': u'22c91d859f0649d594aace4ac42a81af', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'', u'name': u'', u'admin_state_up': True, u'network_id': u'cb59e200-2d95-4fc7-aad5-1a186269235c', u'tenant_id': u'22c91d859f0649d594aace4ac42a81af', u'created_at': u'2018-10-27T17:33:14Z', u'binding:vnic_type': u'normal'}</msg>
<status status="PASS" endtime="20181027 17:33:15.169" starttime="20181027 17:33:15.168"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${PORTID}</arg>
</arguments>
<msg timestamp="20181027 17:33:15.169" level="INFO">3872ba48-6dbb-4f0f-b968-12ad7d66224b</msg>
<status status="PASS" endtime="20181027 17:33:15.169" starttime="20181027 17:33:15.169"></status>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<doc>Makes a variable available globally in all tests and suites.</doc>
<arguments>
<arg>${PORTID}</arg>
</arguments>
<msg timestamp="20181027 17:33:15.170" level="INFO">${PORTID} = 3872ba48-6dbb-4f0f-b968-12ad7d66224b</msg>
<status status="PASS" endtime="20181027 17:33:15.170" starttime="20181027 17:33:15.169"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181027 17:33:17.170" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181027 17:33:17.171" starttime="20181027 17:33:15.170"></status>
</kw>
<doc>Create new port in OpenStack</doc>
<tags>
<tag>Create port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181027 17:33:17.171" critical="yes" starttime="20181027 17:33:14.195"></status>
</test>
<test id="s1-s2-s4-t4" name="Check New Port">
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>ODLSession</arg>
<arg>${NEUTRON_PORTS_API}/${PORTID}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:17.193" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/3872ba48-6dbb-4f0f-b968-12ad7d66224b, headers=None json=None</msg>
<msg timestamp="20181027 17:33:17.194" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:17.194" starttime="20181027 17:33:17.172"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181027 17:33:17.194" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:17.195" starttime="20181027 17:33:17.194"></status>
</kw>
<doc>Check new port created in OpenDaylight</doc>
<tags>
<tag>Check port OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181027 17:33:17.195" critical="yes" starttime="20181027 17:33:17.171"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181027 17:33:17.196" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181027 17:33:17.196" starttime="20181027 17:33:17.196"></status>
</kw>
<doc>Checking Port created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181027 17:33:17.196" starttime="20181027 17:33:14.009"></status>
</suite>
<suite source="/src/odl_test/csit/suites/openstack/neutron/040__delete_ports.robot" id="s1-s2-s5" name="Delete Ports">
<kw type="setup" name="Start Suite">
<kw name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>OSSession</arg>
<arg>${NEUTRONURL}</arg>
<arg>headers=${X-AUTH-NOCONTENT}</arg>
</arguments>
<msg timestamp="20181027 17:33:17.214" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABb1KFUsHxzcoAkN_GCpOVqx9OIZZHAr8ILFvnrq0Dy33qqPlaa3Uy6qsOBrYekWWqz5ZFptSc1f_n151GHIc0xbTS3GuRvBEzU5C58RAjLuZF87CiZplPEqp2K8puMqH4-P5eKae2moukfzI6sh_VCuFiWa61QnOpsJuv3KOlRE-oNofE'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181027 17:33:17.215" starttime="20181027 17:33:17.214"></status>
</kw>
<kw name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>ODLSession</arg>
<arg>http://${ODL_SYSTEM_IP}:${PORT}</arg>
<arg>headers=${HEADERS}</arg>
<arg>auth=${AUTH}</arg>
</arguments>
<msg timestamp="20181027 17:33:17.216" level="INFO">Creating Session using : alias=ODLSession, url=http://192.16.1.222:8080, headers={u'Content-Type': u'application/json'},                     cookies=None, auth=&lt;requests.auth.HTTPBasicAuth object at 0x7f52e0a1d4d0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181027 17:33:17.216" starttime="20181027 17:33:17.215"></status>
</kw>
<kw name="Check Port Exists">
<arguments>
<arg>${PORTID}</arg>
</arguments>
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>ODLSession</arg>
<arg>${NEUTRON_PORTS_API}/${portid}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:17.229" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/3872ba48-6dbb-4f0f-b968-12ad7d66224b, headers=None json=None</msg>
<msg timestamp="20181027 17:33:17.230" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:17.230" starttime="20181027 17:33:17.217"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181027 17:33:17.231" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:17.231" starttime="20181027 17:33:17.230"></status>
</kw>
<status status="PASS" endtime="20181027 17:33:17.231" starttime="20181027 17:33:17.216"></status>
</kw>
<status status="PASS" endtime="20181027 17:33:17.231" starttime="20181027 17:33:17.214"></status>
</kw>
<test id="s1-s2-s5-t1" name="Delete New Port">
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${data}</arg>
</arguments>
<msg timestamp="20181027 17:33:17.233" level="INFO">{"port":{"network_id":"cb59e200-2d95-4fc7-aad5-1a186269235c","admin_state_up": true}}</msg>
<status status="PASS" endtime="20181027 17:33:17.233" starttime="20181027 17:33:17.232"></status>
</kw>
<kw name="Delete Request" library="RequestsLibrary">
<doc>Send a DELETE request on the session object found using the</doc>
<arguments>
<arg>OSSession</arg>
<arg>${OSREST}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:17.239" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181027 17:33:18.539" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/ports/3872ba48-6dbb-4f0f-b968-12ad7d66224b, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181027 17:33:18.539" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:18.539" starttime="20181027 17:33:17.233"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>204</arg>
</arguments>
<msg timestamp="20181027 17:33:18.540" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:18.540" starttime="20181027 17:33:18.539"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<msg timestamp="20181027 17:33:18.540" level="INFO"></msg>
<status status="PASS" endtime="20181027 17:33:18.541" starttime="20181027 17:33:18.540"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181027 17:33:20.541" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181027 17:33:20.541" starttime="20181027 17:33:18.541"></status>
</kw>
<doc>Delete previously created port in OpenStack</doc>
<tags>
<tag>Delete port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181027 17:33:20.542" critical="yes" starttime="20181027 17:33:17.231"></status>
</test>
<test id="s1-s2-s5-t2" name="Check Port Deleted">
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>ODLSession</arg>
<arg>${NEUTRON_PORTS_API}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:20.564" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181027 17:33:20.565" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:20.565" starttime="20181027 17:33:20.543"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181027 17:33:20.566" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:20.566" starttime="20181027 17:33:20.565"></status>
</kw>
<kw name="To Json" library="RequestsLibrary">
<doc>Convert a string to a JSON object</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<assign>
<var>${ODLResult}</var>
</assign>
<msg timestamp="20181027 17:33:20.567" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "cdd53097-0162-46a1-9d4a-79f2706371a2",
      "tenant_id" : "22c91d859f0649d594aace4ac42a81af",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "cb59e200-2d95-4fc7-aad5-1a186269235c",
      "mac_address" : "fa:16:3e:a6:fd:67",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "06195de4-07f4-46ce-bbe7-d90b504eb1ba"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-cb59e200-2d95-4fc7-aad5-1a186269235c",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "119caf4c-8da5-42a3-9227-391b650c755a",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "5e986b3a-a91d-46ed-bd39-fb79a5e74605",
      "tenant_id" : "22c91d859f0649d594aace4ac42a81af",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "195e714e-d384-4ae7-a767-9f493dff62ea",
      "mac_address" : "fa:16:3e:cc:bf:eb",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "f03fceb4-e1a2-44f5-affb-13944184c993"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-195e714e-d384-4ae7-a767-9f493dff62ea",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "119caf4c-8da5-42a3-9227-391b650c755a",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20181027 17:33:20.567" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181027 17:33:20.567" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'119caf4c-8da5-42a3-9227-391b650c755a'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20181027 17:33:20.567" starttime="20181027 17:33:20.566"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181027 17:33:20.568" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'119caf4c-8da5-42a3-9227-391b650c755a'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'cb59e200-2d95-4fc7-aad5-1a186269235c', u'tenant_id': u'22c91d859f0649d594aace4ac42a81af', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'revision_number': 3, u'mac_address': u'fa:16:3e:a6:fd:67', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'06195de4-07f4-46ce-bbe7-d90b504eb1ba', u'ip_address': u'172.16.64.20'}], u'id': u'cdd53097-0162-46a1-9d4a-79f2706371a2', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-cb59e200-2d95-4fc7-aad5-1a186269235c'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'119caf4c-8da5-42a3-9227-391b650c755a'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'195e714e-d384-4ae7-a767-9f493dff62ea', u'tenant_id': u'22c91d859f0649d594aace4ac42a81af', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'revision_number': 3, u'mac_address': u'fa:16:3e:cc:bf:eb', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'f03fceb4-e1a2-44f5-affb-13944184c993', u'ip_address': u'192.16.1.101'}], u'id': u'5e986b3a-a91d-46ed-bd39-fb79a5e74605', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-195e714e-d384-4ae7-a767-9f493dff62ea'}]}</msg>
<status status="PASS" endtime="20181027 17:33:20.568" starttime="20181027 17:33:20.567"></status>
</kw>
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>ODLSession</arg>
<arg>${NEUTRON_PORTS_API}/${PORTID}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:20.572" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/3872ba48-6dbb-4f0f-b968-12ad7d66224b, headers=None json=None</msg>
<msg timestamp="20181027 17:33:20.572" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:20.572" starttime="20181027 17:33:20.568"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>404</arg>
</arguments>
<msg timestamp="20181027 17:33:20.573" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:20.573" starttime="20181027 17:33:20.573"></status>
</kw>
<doc>Check port deleted in OpenDaylight</doc>
<tags>
<tag>Check port deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181027 17:33:20.573" critical="yes" starttime="20181027 17:33:20.542"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181027 17:33:20.574" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181027 17:33:20.575" starttime="20181027 17:33:20.574"></status>
</kw>
<doc>Checking Port deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181027 17:33:20.575" starttime="20181027 17:33:17.197"></status>
</suite>
<suite source="/src/odl_test/csit/suites/openstack/neutron/050__delete_subnets.robot" id="s1-s2-s6" name="Delete Subnets">
<kw type="setup" name="Start Suite">
<kw name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>OSSession</arg>
<arg>${NEUTRONURL}</arg>
<arg>headers=${X-AUTH-NOCONTENT}</arg>
</arguments>
<msg timestamp="20181027 17:33:20.593" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABb1KFUsHxzcoAkN_GCpOVqx9OIZZHAr8ILFvnrq0Dy33qqPlaa3Uy6qsOBrYekWWqz5ZFptSc1f_n151GHIc0xbTS3GuRvBEzU5C58RAjLuZF87CiZplPEqp2K8puMqH4-P5eKae2moukfzI6sh_VCuFiWa61QnOpsJuv3KOlRE-oNofE'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181027 17:33:20.594" starttime="20181027 17:33:20.593"></status>
</kw>
<kw name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>ODLSession</arg>
<arg>http://${ODL_SYSTEM_IP}:${PORT}</arg>
<arg>headers=${HEADERS}</arg>
<arg>auth=${AUTH}</arg>
</arguments>
<msg timestamp="20181027 17:33:20.594" level="INFO">Creating Session using : alias=ODLSession, url=http://192.16.1.222:8080, headers={u'Content-Type': u'application/json'},                     cookies=None, auth=&lt;requests.auth.HTTPBasicAuth object at 0x7f52e09e4310&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181027 17:33:20.595" starttime="20181027 17:33:20.594"></status>
</kw>
<kw name="Check Subnet Exists">
<arguments>
<arg>${SUBNETID}</arg>
</arguments>
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>ODLSession</arg>
<arg>${NEUTRON_SUBNETS_API}/${subnetid}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:20.604" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/06195de4-07f4-46ce-bbe7-d90b504eb1ba, headers=None json=None</msg>
<msg timestamp="20181027 17:33:20.605" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:20.605" starttime="20181027 17:33:20.595"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181027 17:33:20.606" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:20.606" starttime="20181027 17:33:20.605"></status>
</kw>
<status status="PASS" endtime="20181027 17:33:20.606" starttime="20181027 17:33:20.595"></status>
</kw>
<status status="PASS" endtime="20181027 17:33:20.606" starttime="20181027 17:33:20.592"></status>
</kw>
<test id="s1-s2-s6-t1" name="Delete New subnet">
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${data}</arg>
</arguments>
<msg timestamp="20181027 17:33:20.607" level="INFO">{"subnet":{"network_id":"cb59e200-2d95-4fc7-aad5-1a186269235c","ip_version":4,"cidr":"172.16.64.0/24","allocation_pools":[{"start":"172.16.64.20","end":"172.16.64.120"}]}}</msg>
<status status="PASS" endtime="20181027 17:33:20.607" starttime="20181027 17:33:20.607"></status>
</kw>
<kw name="Delete Request" library="RequestsLibrary">
<doc>Send a DELETE request on the session object found using the</doc>
<arguments>
<arg>OSSession</arg>
<arg>${OSREST}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:20.613" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181027 17:33:22.194" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/subnets/06195de4-07f4-46ce-bbe7-d90b504eb1ba, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181027 17:33:22.195" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:22.195" starttime="20181027 17:33:20.608"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>204</arg>
</arguments>
<msg timestamp="20181027 17:33:22.196" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:22.196" starttime="20181027 17:33:22.195"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<msg timestamp="20181027 17:33:22.196" level="INFO"></msg>
<status status="PASS" endtime="20181027 17:33:22.197" starttime="20181027 17:33:22.196"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181027 17:33:24.197" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181027 17:33:24.198" starttime="20181027 17:33:22.197"></status>
</kw>
<doc>Delete previously created subnet in OpenStack</doc>
<tags>
<tag>Delete Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181027 17:33:24.198" critical="yes" starttime="20181027 17:33:20.606"></status>
</test>
<test id="s1-s2-s6-t2" name="Check New subnet deleted">
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>ODLSession</arg>
<arg>${NEUTRON_SUBNETS_API}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:24.209" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181027 17:33:24.209" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:24.209" starttime="20181027 17:33:24.199"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181027 17:33:24.210" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:24.210" starttime="20181027 17:33:24.210"></status>
</kw>
<kw name="To Json" library="RequestsLibrary">
<doc>Convert a string to a JSON object</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<assign>
<var>${ODLResult}</var>
</assign>
<msg timestamp="20181027 17:33:24.211" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "f03fceb4-e1a2-44f5-affb-13944184c993",
      "tenant_id" : "22c91d859f0649d594aace4ac42a81af",
      "project_id" : "22c91d859f0649d594aace4ac42a81af",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "195e714e-d384-4ae7-a767-9f493dff62ea",
      "ip_version" : 4,
      "cidr" : "192.16.1.0/24",
      "gateway_ip" : "192.16.1.1",
      "dns_nameservers" : [ ],
      "allocation_pools" : [ {
         "start" : "192.16.1.101",
         "end" : "192.16.1.199"
      } ],
      "host_routes" : [ ],
      "enable_dhcp" : true,
      "ipv6_address_mode" : null,
      "ipv6_ra_mode" : null
   } ]
} </msg>
<msg timestamp="20181027 17:33:24.211" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181027 17:33:24.211" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'195e714e-d384-4ae7-a767-9f493dff62ea', u'tenant_id': u'22c91d859f0649d594aace4ac42a81af', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20181027 17:33:24.211" starttime="20181027 17:33:24.210"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181027 17:33:24.212" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'195e714e-d384-4ae7-a767-9f493dff62ea', u'tenant_id': u'22c91d859f0649d594aace4ac42a81af', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'192.16.1.101', u'end': u'192.16.1.199'}], u'gateway_ip': u'192.16.1.1', u'revision_number': 0, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'192.16.1.0/24', u'project_id': u'22c91d859f0649d594aace4ac42a81af', u'id': u'f03fceb4-e1a2-44f5-affb-13944184c993'}]}</msg>
<status status="PASS" endtime="20181027 17:33:24.212" starttime="20181027 17:33:24.211"></status>
</kw>
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>ODLSession</arg>
<arg>${NEUTRON_SUBNETS_API}/${SUBNETID}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:24.216" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/06195de4-07f4-46ce-bbe7-d90b504eb1ba, headers=None json=None</msg>
<msg timestamp="20181027 17:33:24.217" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:24.217" starttime="20181027 17:33:24.212"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>404</arg>
</arguments>
<msg timestamp="20181027 17:33:24.217" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:24.217" starttime="20181027 17:33:24.217"></status>
</kw>
<doc>Check subnet deleted in OpenDaylight</doc>
<tags>
<tag>Check subnet deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181027 17:33:24.218" critical="yes" starttime="20181027 17:33:24.198"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181027 17:33:24.219" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181027 17:33:24.219" starttime="20181027 17:33:24.218"></status>
</kw>
<doc>Checking Subnets deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181027 17:33:24.219" starttime="20181027 17:33:20.576"></status>
</suite>
<suite source="/src/odl_test/csit/suites/openstack/neutron/060__delete_networks.robot" id="s1-s2-s7" name="Delete Networks">
<kw type="setup" name="Start Suite">
<kw name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>OSSession</arg>
<arg>${NEUTRONURL}</arg>
<arg>headers=${X-AUTH-NOCONTENT}</arg>
</arguments>
<msg timestamp="20181027 17:33:24.242" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABb1KFUsHxzcoAkN_GCpOVqx9OIZZHAr8ILFvnrq0Dy33qqPlaa3Uy6qsOBrYekWWqz5ZFptSc1f_n151GHIc0xbTS3GuRvBEzU5C58RAjLuZF87CiZplPEqp2K8puMqH4-P5eKae2moukfzI6sh_VCuFiWa61QnOpsJuv3KOlRE-oNofE'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181027 17:33:24.243" starttime="20181027 17:33:24.242"></status>
</kw>
<kw name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>ODLSession</arg>
<arg>http://${ODL_SYSTEM_IP}:${PORT}</arg>
<arg>headers=${HEADERS}</arg>
<arg>auth=${AUTH}</arg>
</arguments>
<msg timestamp="20181027 17:33:24.244" level="INFO">Creating Session using : alias=ODLSession, url=http://192.16.1.222:8080, headers={u'Content-Type': u'application/json'},                     cookies=None, auth=&lt;requests.auth.HTTPBasicAuth object at 0x7f52e09edc50&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181027 17:33:24.244" starttime="20181027 17:33:24.243"></status>
</kw>
<kw name="Check Network Exists">
<arguments>
<arg>${NETID}</arg>
</arguments>
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>ODLSession</arg>
<arg>${NEUTRON_NETWORKS_API}/${netid}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:24.254" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/cb59e200-2d95-4fc7-aad5-1a186269235c, headers=None json=None</msg>
<msg timestamp="20181027 17:33:24.254" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:24.254" starttime="20181027 17:33:24.245"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181027 17:33:24.255" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:24.255" starttime="20181027 17:33:24.254"></status>
</kw>
<status status="PASS" endtime="20181027 17:33:24.255" starttime="20181027 17:33:24.244"></status>
</kw>
<status status="PASS" endtime="20181027 17:33:24.255" starttime="20181027 17:33:24.241"></status>
</kw>
<test id="s1-s2-s7-t1" name="Delete Network">
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${postNet}</arg>
</arguments>
<msg timestamp="20181027 17:33:24.257" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20181027 17:33:24.257" starttime="20181027 17:33:24.256"></status>
</kw>
<kw name="Delete Request" library="RequestsLibrary">
<doc>Send a DELETE request on the session object found using the</doc>
<arguments>
<arg>OSSession</arg>
<arg>${OSREST}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:24.263" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181027 17:33:25.218" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/networks/cb59e200-2d95-4fc7-aad5-1a186269235c, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181027 17:33:25.219" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:25.219" starttime="20181027 17:33:24.257"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>204</arg>
</arguments>
<msg timestamp="20181027 17:33:25.220" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:25.220" starttime="20181027 17:33:25.219"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<msg timestamp="20181027 17:33:25.220" level="INFO"></msg>
<status status="PASS" endtime="20181027 17:33:25.220" starttime="20181027 17:33:25.220"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181027 17:33:27.221" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181027 17:33:27.221" starttime="20181027 17:33:25.220"></status>
</kw>
<doc>Delete network in OpenStack</doc>
<tags>
<tag>Delete Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181027 17:33:27.222" critical="yes" starttime="20181027 17:33:24.256"></status>
</test>
<test id="s1-s2-s7-t2" name="Check Network deleted">
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>ODLSession</arg>
<arg>${NEUTRON_NETWORKS_API}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:27.238" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181027 17:33:27.238" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:27.239" starttime="20181027 17:33:27.223"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181027 17:33:27.240" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:27.240" starttime="20181027 17:33:27.239"></status>
</kw>
<kw name="To Json" library="RequestsLibrary">
<doc>Convert a string to a JSON object</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<assign>
<var>${ODLResult}</var>
</assign>
<msg timestamp="20181027 17:33:27.240" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
      "tenant_id" : "bd8db3a82b304083a8b3b3fd46401142",
      "project_id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
      "name" : "Sync Canary Network",
      "admin_state_up" : false,
      "status" : "ACTIVE",
      "shared" : false,
      "router:external" : false,
      "provider:network_type" : "flat",
      "segments" : [ ]
   }, {
      "id" : "195e714e-d384-4ae7-a767-9f493dff62ea",
      "tenant_id" : "22c91d859f0649d594aace4ac42a81af",
      "project_id" : "22c91d859f0649d594aace4ac42a81af",
      "revision_number" : 1,
      "name" : "ext-net",
      "admin_state_up" : true,
      "status" : "ACTIVE",
      "shared" : false,
      "router:external" : true,
      "provider:network_type" : "flat",
      "provider:physical_network" : "physnet",
      "segments" : [ ]
   } ]
} </msg>
<msg timestamp="20181027 17:33:27.241" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181027 17:33:27.241" level="INFO">${ODLResult} = {u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'name': u'Sync Canary Network', u'admin_state_up': False, u'tenant_id': u'bd8db3a82b304083a8b3b3fd46401142', u'segments': [], u'provid...</msg>
<status status="PASS" endtime="20181027 17:33:27.241" starttime="20181027 17:33:27.240"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181027 17:33:27.241" level="INFO">{u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'name': u'Sync Canary Network', u'admin_state_up': False, u'tenant_id': u'bd8db3a82b304083a8b3b3fd46401142', u'segments': [], u'provider:network_type': u'flat', u'shared': False, u'project_id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142', u'id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142'}, {u'status': u'ACTIVE', u'router:external': True, u'name': u'ext-net', u'provider:physical_network': u'physnet', u'admin_state_up': True, u'tenant_id': u'22c91d859f0649d594aace4ac42a81af', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'22c91d859f0649d594aace4ac42a81af', u'id': u'195e714e-d384-4ae7-a767-9f493dff62ea'}]}</msg>
<status status="PASS" endtime="20181027 17:33:27.242" starttime="20181027 17:33:27.241"></status>
</kw>
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>ODLSession</arg>
<arg>${NEUTRON_NETWORKS_API}/${NETID}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181027 17:33:27.248" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/cb59e200-2d95-4fc7-aad5-1a186269235c, headers=None json=None</msg>
<msg timestamp="20181027 17:33:27.249" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181027 17:33:27.249" starttime="20181027 17:33:27.242"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>404</arg>
</arguments>
<msg timestamp="20181027 17:33:27.250" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181027 17:33:27.250" starttime="20181027 17:33:27.249"></status>
</kw>
<doc>Check network deleted in OpenDaylight</doc>
<tags>
<tag>Check Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181027 17:33:27.251" critical="yes" starttime="20181027 17:33:27.222"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181027 17:33:27.252" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181027 17:33:27.252" starttime="20181027 17:33:27.252"></status>
</kw>
<doc>Checking Network deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181027 17:33:27.253" starttime="20181027 17:33:24.221"></status>
</suite>
<kw type="teardown" name="Stop Suite">
<kw name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181027 17:33:27.257" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181027 17:33:27.257" starttime="20181027 17:33:27.257"></status>
</kw>
<status status="PASS" endtime="20181027 17:33:27.258" starttime="20181027 17:33:27.256"></status>
</kw>
<doc>Test suite for Neutron Plugin</doc>
<status status="PASS" endtime="20181027 17:33:27.258" starttime="20181027 17:33:07.965"></status>
</suite>
<status status="FAIL" endtime="20181027 17:33:27.264" starttime="20181027 17:33:07.291"></status>
</suite>
<statistics>
<total>
<stat fail="1" pass="21">Critical Tests</stat>
<stat fail="1" pass="21">All Tests</stat>
</total>
<tag>
<stat fail="0" pass="2">Check</stat>
<stat fail="0" pass="1">Check Network OpenDaylight</stat>
<stat fail="0" pass="1">Check port deleted OpenDaylight</stat>
<stat fail="0" pass="1">Check port OpenDaylight</stat>
<stat fail="0" pass="1">Check subnet deleted OpenDaylight</stat>
<stat fail="0" pass="1">Create Network OpenStack Neutron</stat>
<stat fail="0" pass="1">Create port OpenStack Neutron</stat>
<stat fail="0" pass="1">Create Subnet OpenStack Neutron</stat>
<stat fail="0" pass="1">Delete Network OpenStack Neutron</stat>
<stat fail="0" pass="1">Delete port OpenStack Neutron</stat>
<stat fail="0" pass="1">Delete Subnet OpenStack Neutron</stat>
<stat fail="0" pass="1">Network Neutron OpenDaylight</stat>
<stat fail="0" pass="1">Network Neutron OpenStack</stat>
<stat fail="0" pass="1">Network OpenDaylight</stat>
<stat fail="0" pass="1">Ports Neutron OpenDaylight</stat>
<stat fail="0" pass="1">Ports Neutron OpenStack</stat>
<stat fail="0" pass="3">reachability</stat>
<stat fail="0" pass="1">subnet OpenDaylight</stat>
<stat fail="0" pass="1">Subnets Neutron OpenDaylight</stat>
<stat fail="0" pass="1">Subnets Neutron OpenStack</stat>
</tag>
<suite>
<stat fail="1" id="s1" name="Basic &amp; Neutron" pass="21">Basic &amp; Neutron</stat>
<stat fail="1" id="s1-s1" name="Basic" pass="0">Basic &amp; Neutron.Basic</stat>
<stat fail="1" id="s1-s1-s1" name="Restconf Modules" pass="0">Basic &amp; Neutron.Basic.Restconf Modules</stat>
<stat fail="0" id="s1-s2" name="Neutron" pass="21">Basic &amp; Neutron.Neutron</stat>
<stat fail="0" id="s1-s2-s1" name="Reachability" pass="3">Basic &amp; Neutron.Neutron.Reachability</stat>
<stat fail="0" id="s1-s2-s2" name="Networks" pass="4">Basic &amp; Neutron.Neutron.Networks</stat>
<stat fail="0" id="s1-s2-s3" name="Subnets" pass="4">Basic &amp; Neutron.Neutron.Subnets</stat>
<stat fail="0" id="s1-s2-s4" name="Ports" pass="4">Basic &amp; Neutron.Neutron.Ports</stat>
<stat fail="0" id="s1-s2-s5" name="Delete Ports" pass="2">Basic &amp; Neutron.Neutron.Delete Ports</stat>
<stat fail="0" id="s1-s2-s6" name="Delete Subnets" pass="2">Basic &amp; Neutron.Neutron.Delete Subnets</stat>
<stat fail="0" id="s1-s2-s7" name="Delete Networks" pass="2">Basic &amp; Neutron.Neutron.Delete Networks</stat>
</suite>
</statistics>
<errors>
<msg timestamp="20181027 17:33:08.011" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20181027 17:33:08.016" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181027 17:33:08.613" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181027 17:33:08.984" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181027 17:33:11.341" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181027 17:33:11.430" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181027 17:33:14.037" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181027 17:33:14.198" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181027 17:33:17.239" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181027 17:33:20.613" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181027 17:33:24.263" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
</errors>
</robot>
