<?xml version="1.0" encoding="UTF-8"?>
<robot generated="20181013 00:27:51.627" 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="20181013 00:27:51.773" 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 0x7fe773160cd0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181013 00:27:51.774" starttime="20181013 00:27:51.773"></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="20181013 00:27:52.405" 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 0x7fe77316ba90&gt;: Failed to establish a new connection: [Errno 111] Connection refused',))</msg>
<status status="FAIL" endtime="20181013 00:27:52.405" starttime="20181013 00:27:51.775"></status>
</kw>
<doc>Get the restconf modules, check 200 status and ietf-restconf presence.</doc>
<status status="FAIL" endtime="20181013 00:27:52.405" critical="yes" starttime="20181013 00:27:51.774">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 0x7fe77316ba90&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="20181013 00:27:52.406" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181013 00:27:52.407" starttime="20181013 00:27:52.406"></status>
</kw>
<doc>Test suite to verify Restconf is OK.</doc>
<status status="FAIL" endtime="20181013 00:27:52.407" starttime="20181013 00:27:51.683"></status>
</suite>
<status status="FAIL" endtime="20181013 00:27:52.409" starttime="20181013 00:27:51.681"></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="20181013 00:27:52.470" 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="20181013 00:27:52.470" starttime="20181013 00:27:52.470"></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="20181013 00:27:52.471" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20181013 00:27:52.482" 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="20181013 00:27:53.001" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181013 00:27:53.001" starttime="20181013 00:27:52.471"></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="20181013 00:27:53.002" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:27:53.002" starttime="20181013 00:27:53.001"></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="20181013 00:27:53.003" level="INFO">${TOKEN} = gAAAAABbwTwI7FIZtM5MVvG8GccR0KM5sNrXIzj0b45okszSG7S9fJCRomYS4kGO97RR0_LVBA327hllgpXcK51DR_6ZL0oyjuHjSNc_bjctxRfsSnoS1q62nFzvfXZHIVI6yAx-5yDamXlKSOoyVxPoebgqrxDZC7NNGb69jNkyaDP1_20ren4</msg>
<status status="PASS" endtime="20181013 00:27:53.003" starttime="20181013 00:27:53.002"></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="20181013 00:27:53.003" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABbwTwI7FIZtM5MVvG8GccR0KM5sNrXIzj0b45okszSG7S9fJCRomYS4kGO97RR0_LVBA327hllgpXcK51DR_6ZL0oyjuHjSNc_bjctxRfsSnoS1q62nFzvfXZHIVI6yAx-5yDamXlKSOoyVxPoebgqrxDZC7NNGb69jNkyaDP1_20re...</msg>
<status status="PASS" endtime="20181013 00:27:53.003" starttime="20181013 00:27:53.003"></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="20181013 00:27:53.004" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABbwTwI7FIZtM5MVvG8GccR0KM5sNrXIzj0b45okszSG7S9fJCRomYS4kGO97RR0_LVBA327hllgpXcK51DR_6ZL0oyjuHjSNc_bjctxRfsSnoS1q62nFzvfXZHIVI6yAx-5yDamXlKSOoyVxPoebgqrxDZC7NNGb69jNkyaDP1_20re...</msg>
<status status="PASS" endtime="20181013 00:27:53.004" starttime="20181013 00:27:53.004"></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="20181013 00:27:53.005" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABbwTwI7FIZtM5MVvG8GccR0KM5sNrXIzj0b45okszSG7S9fJCRomYS4kGO97RR0_LVBA327hllgpXcK51DR_6ZL0oyjuHjSNc_bjctxRfsSnoS1q62nFzvfXZHIVI6yAx-5yDamXlKSOoyVxPoebgqrxDZC7NNGb69jNkyaDP1_20re...</msg>
<status status="PASS" endtime="20181013 00:27:53.005" starttime="20181013 00:27:53.004"></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="20181013 00:27:53.005" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABbwTwI7FIZtM5MVvG8GccR0KM5sNrXIzj0b45okszSG7S9fJCRomYS4kGO97RR0_LVBA327hllgpXcK51DR_6ZL0oyjuHjSNc_bjctxRfsSnoS1q62nFzvfXZHIVI6yAx-5yDamXlKSOoyVxPoebgqrxDZC7NNGb69jNkyaDP1_20re...</msg>
<status status="PASS" endtime="20181013 00:27:53.006" starttime="20181013 00:27:53.005"></status>
</kw>
<status status="PASS" endtime="20181013 00:27:53.006" starttime="20181013 00:27:52.469"></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="20181013 00:27:53.026" 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 0x7fe773075d50&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181013 00:27:53.026" starttime="20181013 00:27:53.025"></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="20181013 00:27:53.048" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181013 00:27:53.048" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181013 00:27:53.048" starttime="20181013 00:27:53.027"></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="20181013 00:27:53.049" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:27:53.049" starttime="20181013 00:27:53.048"></status>
</kw>
<doc>Get the complete list of networks</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181013 00:27:53.049" critical="yes" starttime="20181013 00:27:53.026"></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="20181013 00:27:53.073" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181013 00:27:53.074" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181013 00:27:53.074" starttime="20181013 00:27:53.050"></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="20181013 00:27:53.075" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:27:53.075" starttime="20181013 00:27:53.074"></status>
</kw>
<doc>Get the complete list of subnets</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181013 00:27:53.075" critical="yes" starttime="20181013 00:27:53.049"></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="20181013 00:27:53.090" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181013 00:27:53.090" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181013 00:27:53.090" starttime="20181013 00:27:53.076"></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="20181013 00:27:53.090" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:27:53.091" starttime="20181013 00:27:53.090"></status>
</kw>
<doc>Get the complete list of ports</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181013 00:27:53.091" critical="yes" starttime="20181013 00:27:53.076"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181013 00:27:53.092" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181013 00:27:53.092" starttime="20181013 00:27:53.091"></status>
</kw>
<status status="PASS" endtime="20181013 00:27:53.092" starttime="20181013 00:27:53.006"></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="20181013 00:27:53.111" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbwTwI7FIZtM5MVvG8GccR0KM5sNrXIzj0b45okszSG7S9fJCRomYS4kGO97RR0_LVBA327hllgpXcK51DR_6ZL0oyjuHjSNc_bjctxRfsSnoS1q62nFzvfXZHIVI6yAx-5yDamXlKSOoyVxPoebgqrxDZC7NNGb69jNkyaDP1_20ren4', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181013 00:27:53.112" starttime="20181013 00:27:53.111"></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="20181013 00:27:53.114" level="INFO">{u'X-Auth-Token': 'gAAAAABbwTwI7FIZtM5MVvG8GccR0KM5sNrXIzj0b45okszSG7S9fJCRomYS4kGO97RR0_LVBA327hllgpXcK51DR_6ZL0oyjuHjSNc_bjctxRfsSnoS1q62nFzvfXZHIVI6yAx-5yDamXlKSOoyVxPoebgqrxDZC7NNGb69jNkyaDP1_20ren4', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181013 00:27:53.115" starttime="20181013 00:27:53.114"></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="20181013 00:27:53.122" 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="20181013 00:27:53.317" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/networks, headers=None json=None</msg>
<msg timestamp="20181013 00:27:53.317" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181013 00:27:53.317" starttime="20181013 00:27:53.115"></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="20181013 00:27:53.318" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:27:53.318" starttime="20181013 00:27:53.317"></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="20181013 00:27:53.318" 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":"73047a23-028d-4872-a664-ba65a0865dba","router:external":true,"availability_zone_hints":[],"availability_zones":["nova"],"ipv4_address_scope":null,"shared":false,"project_id":"d669ba82f4134d5fab874c42ea59b1a6","status":"ACTIVE","subnets":["edade380-fcc4-4e0b-80ae-12eaba882b9c"],"description":"","tags":[],"updated_at":"2018-10-13T00:06:33Z","is_default":false,"provider:segmentation_id":null,"name":"ext-net","admin_state_up":true,"tenant_id":"d669ba82f4134d5fab874c42ea59b1a6","created_at":"2018-10-13T00:06:26Z","provider:network_type":"flat"}]} </msg>
<msg timestamp="20181013 00:27:53.319" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181013 00:27:53.319" 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'73047a23-028d-...</msg>
<status status="PASS" endtime="20181013 00:27:53.319" starttime="20181013 00:27:53.318"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181013 00:27:53.319" 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'73047a23-028d-4872-a664-ba65a0865dba', 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'd669ba82f4134d5fab874c42ea59b1a6', u'status': u'ACTIVE', u'subnets': [u'edade380-fcc4-4e0b-80ae-12eaba882b9c'], u'description': u'', u'tags': [], u'updated_at': u'2018-10-13T00:06:33Z', u'is_default': False, u'provider:segmentation_id': None, u'name': u'ext-net', u'admin_state_up': True, u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', u'created_at': u'2018-10-13T00:06:26Z', u'mtu': 1500}]}</msg>
<status status="PASS" endtime="20181013 00:27:53.319" starttime="20181013 00:27:53.319"></status>
</kw>
<doc>Checking OpenStack Neutron for known networks</doc>
<tags>
<tag>Network Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181013 00:27:53.320" critical="yes" starttime="20181013 00:27:53.112"></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="20181013 00:27:53.322" 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 0x7fe773016910&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181013 00:27:53.322" starttime="20181013 00:27:53.321"></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="20181013 00:27:53.331" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181013 00:27:53.331" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181013 00:27:53.331" starttime="20181013 00:27:53.322"></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="20181013 00:27:53.332" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:27:53.332" starttime="20181013 00:27:53.331"></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="20181013 00:27:53.332" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "73047a23-028d-4872-a664-ba65a0865dba",
      "tenant_id" : "d669ba82f4134d5fab874c42ea59b1a6",
      "project_id" : "d669ba82f4134d5fab874c42ea59b1a6",
      "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="20181013 00:27:53.332" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181013 00:27:53.333" 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'd669ba82f4134d5fab874c42ea59b1a6...</msg>
<status status="PASS" endtime="20181013 00:27:53.333" starttime="20181013 00:27:53.332"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181013 00:27:53.333" 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'd669ba82f4134d5fab874c42ea59b1a6', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'd669ba82f4134d5fab874c42ea59b1a6', u'id': u'73047a23-028d-4872-a664-ba65a0865dba'}, {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="20181013 00:27:53.333" starttime="20181013 00:27:53.333"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known networks</doc>
<tags>
<tag>Network Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181013 00:27:53.333" critical="yes" starttime="20181013 00:27:53.320"></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="20181013 00:27:53.335" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20181013 00:27:53.335" starttime="20181013 00:27:53.334"></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="20181013 00:27:53.336" 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="20181013 00:27:53.616" 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="20181013 00:27:53.616" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181013 00:27:53.616" starttime="20181013 00:27:53.335"></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="20181013 00:27:53.617" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:27:53.617" starttime="20181013 00:27:53.617"></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="20181013 00:27:53.618" 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":"6ff63da4-33b1-4ff4-8bee-961fbc995373","router:external":false,"availability_zone_hints":[],"availability_zones":[],"ipv4_address_scope":null,"shared":false,"project_id":"d669ba82f4134d5fab874c42ea59b1a6","status":"ACTIVE","subnets":[],"description":"","tags":[],"updated_at":"2018-10-13T00:27:53Z","is_default":false,"provider:segmentation_id":86,"name":"odl_network","admin_state_up":true,"tenant_id":"d669ba82f4134d5fab874c42ea59b1a6","created_at":"2018-10-13T00:27:53Z","mtu":1450}} </msg>
<msg timestamp="20181013 00:27:53.618" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181013 00:27:53.618" 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'6ff63da4-33b1-4ff4-8bee-961fbc995373', u'ro...</msg>
<status status="PASS" endtime="20181013 00:27:53.618" starttime="20181013 00:27:53.617"></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="20181013 00:27:53.619" 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'6ff63da4-33b1-4ff4-8bee-961fbc995373', u'router:external...</msg>
<status status="PASS" endtime="20181013 00:27:53.619" starttime="20181013 00:27:53.618"></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="20181013 00:27:53.619" level="INFO">${NETID} = 6ff63da4-33b1-4ff4-8bee-961fbc995373</msg>
<status status="PASS" endtime="20181013 00:27:53.619" starttime="20181013 00:27:53.619"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181013 00:27:53.620" 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'6ff63da4-33b1-4ff4-8bee-961fbc995373', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'd669ba82f4134d5fab874c42ea59b1a6', u'status': u'ACTIVE', u'subnets': [], u'description': u'', u'tags': [], u'updated_at': u'2018-10-13T00:27:53Z', u'is_default': False, u'provider:segmentation_id': 86, u'name': u'odl_network', u'admin_state_up': True, u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', u'created_at': u'2018-10-13T00:27:53Z', u'provider:network_type': u'vxlan'}</msg>
<status status="PASS" endtime="20181013 00:27:53.620" starttime="20181013 00:27:53.619"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${NETID}</arg>
</arguments>
<msg timestamp="20181013 00:27:53.620" level="INFO">6ff63da4-33b1-4ff4-8bee-961fbc995373</msg>
<status status="PASS" endtime="20181013 00:27:53.620" starttime="20181013 00:27:53.620"></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="20181013 00:27:53.621" level="INFO">${NETID} = 6ff63da4-33b1-4ff4-8bee-961fbc995373</msg>
<status status="PASS" endtime="20181013 00:27:53.621" starttime="20181013 00:27:53.621"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181013 00:27:55.622" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181013 00:27:55.622" starttime="20181013 00:27:53.621"></status>
</kw>
<doc>Create new network in OpenStack</doc>
<tags>
<tag>Create Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181013 00:27:55.622" critical="yes" starttime="20181013 00:27:53.334"></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="20181013 00:27:55.630" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/6ff63da4-33b1-4ff4-8bee-961fbc995373, headers=None json=None</msg>
<msg timestamp="20181013 00:27:55.631" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181013 00:27:55.631" starttime="20181013 00:27:55.623"></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="20181013 00:27:55.631" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:27:55.631" starttime="20181013 00:27:55.631"></status>
</kw>
<doc>Check network created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181013 00:27:55.632" critical="yes" starttime="20181013 00:27:55.622"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181013 00:27:55.632" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181013 00:27:55.633" starttime="20181013 00:27:55.632"></status>
</kw>
<doc>Checking Network created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181013 00:27:55.633" starttime="20181013 00:27:53.093"></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="20181013 00:27:55.652" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbwTwI7FIZtM5MVvG8GccR0KM5sNrXIzj0b45okszSG7S9fJCRomYS4kGO97RR0_LVBA327hllgpXcK51DR_6ZL0oyjuHjSNc_bjctxRfsSnoS1q62nFzvfXZHIVI6yAx-5yDamXlKSOoyVxPoebgqrxDZC7NNGb69jNkyaDP1_20ren4', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181013 00:27:55.652" starttime="20181013 00:27:55.652"></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="20181013 00:27:55.653" level="INFO">{u'X-Auth-Token': 'gAAAAABbwTwI7FIZtM5MVvG8GccR0KM5sNrXIzj0b45okszSG7S9fJCRomYS4kGO97RR0_LVBA327hllgpXcK51DR_6ZL0oyjuHjSNc_bjctxRfsSnoS1q62nFzvfXZHIVI6yAx-5yDamXlKSOoyVxPoebgqrxDZC7NNGb69jNkyaDP1_20ren4', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181013 00:27:55.654" starttime="20181013 00:27:55.653"></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="20181013 00:27:55.659" 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="20181013 00:27:55.748" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/subnets, headers=None json=None</msg>
<msg timestamp="20181013 00:27:55.748" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181013 00:27:55.748" starttime="20181013 00:27:55.654"></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="20181013 00:27:55.749" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:27:55.749" starttime="20181013 00:27:55.749"></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="20181013 00:27:55.750" level="INFO">To JSON using : content={"subnets":[{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"73047a23-028d-4872-a664-ba65a0865dba","tenant_id":"d669ba82f4134d5fab874c42ea59b1a6","created_at":"2018-10-13T00:06:33Z","dns_nameservers":[],"updated_at":"2018-10-13T00:06:33Z","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":"d669ba82f4134d5fab874c42ea59b1a6","id":"edade380-fcc4-4e0b-80ae-12eaba882b9c","subnetpool_id":null,"name":"ext-subnet"}]} </msg>
<msg timestamp="20181013 00:27:55.750" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181013 00:27:55.750" level="INFO">${OSResult} = {u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'73047a23-028d-4872-a664-ba65a0865dba', u'tenant_id': u'd669ba82f4134d5...</msg>
<status status="PASS" endtime="20181013 00:27:55.750" starttime="20181013 00:27:55.750"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181013 00:27:55.751" level="INFO">{u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'73047a23-028d-4872-a664-ba65a0865dba', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', u'created_at': u'2018-10-13T00:06:33Z', u'dns_nameservers': [], u'updated_at': u'2018-10-13T00:06:33Z', 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'd669ba82f4134d5fab874c42ea59b1a6', u'id': u'edade380-fcc4-4e0b-80ae-12eaba882b9c', u'subnetpool_id': None, u'name': u'ext-subnet'}]}</msg>
<status status="PASS" endtime="20181013 00:27:55.751" starttime="20181013 00:27:55.751"></status>
</kw>
<doc>Checking OpenStack Neutron for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181013 00:27:55.751" critical="yes" starttime="20181013 00:27:55.652"></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="20181013 00:27:55.753" 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 0x7fe772fdcf50&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181013 00:27:55.754" starttime="20181013 00:27:55.753"></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="20181013 00:27:55.766" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181013 00:27:55.766" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181013 00:27:55.766" starttime="20181013 00:27:55.754"></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="20181013 00:27:55.767" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:27:55.767" starttime="20181013 00:27:55.766"></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="20181013 00:27:55.768" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "edade380-fcc4-4e0b-80ae-12eaba882b9c",
      "tenant_id" : "d669ba82f4134d5fab874c42ea59b1a6",
      "project_id" : "d669ba82f4134d5fab874c42ea59b1a6",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "73047a23-028d-4872-a664-ba65a0865dba",
      "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="20181013 00:27:55.768" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181013 00:27:55.768" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'73047a23-028d-4872-a664-ba65a0865dba', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20181013 00:27:55.768" starttime="20181013 00:27:55.767"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181013 00:27:55.768" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'73047a23-028d-4872-a664-ba65a0865dba', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', 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'd669ba82f4134d5fab874c42ea59b1a6', u'id': u'edade380-fcc4-4e0b-80ae-12eaba882b9c'}]}</msg>
<status status="PASS" endtime="20181013 00:27:55.768" starttime="20181013 00:27:55.768"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181013 00:27:55.769" critical="yes" starttime="20181013 00:27:55.752"></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="20181013 00:27:55.770" level="INFO">{"subnet":{"network_id":"6ff63da4-33b1-4ff4-8bee-961fbc995373","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="20181013 00:27:55.771" starttime="20181013 00:27:55.770"></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="20181013 00:27:55.772" 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="20181013 00:27:56.737" 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="20181013 00:27:56.737" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181013 00:27:56.737" starttime="20181013 00:27:55.771"></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="20181013 00:27:56.738" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:27:56.738" starttime="20181013 00:27:56.737"></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="20181013 00:27:56.739" level="INFO">To JSON using : content={"subnet":{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"6ff63da4-33b1-4ff4-8bee-961fbc995373","tenant_id":"d669ba82f4134d5fab874c42ea59b1a6","created_at":"2018-10-13T00:27:55Z","dns_nameservers":[],"updated_at":"2018-10-13T00:27:55Z","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":"d669ba82f4134d5fab874c42ea59b1a6","id":"554e3c26-74f0-4f85-90e3-d47a07035fb0","subnetpool_id":null,"name":""}} </msg>
<msg timestamp="20181013 00:27:56.739" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181013 00:27:56.739" level="INFO">${result} = {u'subnet': {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'6ff63da4-33b1-4ff4-8bee-961fbc995373', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', u'...</msg>
<status status="PASS" endtime="20181013 00:27:56.739" starttime="20181013 00:27:56.738"></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="20181013 00:27:56.740" level="INFO">${result} = {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'6ff63da4-33b1-4ff4-8bee-961fbc995373', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', u'created_at':...</msg>
<status status="PASS" endtime="20181013 00:27:56.740" starttime="20181013 00:27:56.739"></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="20181013 00:27:56.740" level="INFO">${SUBNETID} = 554e3c26-74f0-4f85-90e3-d47a07035fb0</msg>
<status status="PASS" endtime="20181013 00:27:56.740" starttime="20181013 00:27:56.740"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181013 00:27:56.741" level="INFO">{u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'6ff63da4-33b1-4ff4-8bee-961fbc995373', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', u'created_at': u'2018-10-13T00:27:55Z', u'dns_nameservers': [], u'updated_at': u'2018-10-13T00:27:55Z', 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'd669ba82f4134d5fab874c42ea59b1a6', u'id': u'554e3c26-74f0-4f85-90e3-d47a07035fb0', u'subnetpool_id': None, u'name': u''}</msg>
<status status="PASS" endtime="20181013 00:27:56.741" starttime="20181013 00:27:56.740"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${SUBNETID}</arg>
</arguments>
<msg timestamp="20181013 00:27:56.741" level="INFO">554e3c26-74f0-4f85-90e3-d47a07035fb0</msg>
<status status="PASS" endtime="20181013 00:27:56.741" starttime="20181013 00:27:56.741"></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="20181013 00:27:56.742" level="INFO">${SUBNETID} = 554e3c26-74f0-4f85-90e3-d47a07035fb0</msg>
<status status="PASS" endtime="20181013 00:27:56.742" starttime="20181013 00:27:56.742"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181013 00:27:58.743" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181013 00:27:58.743" starttime="20181013 00:27:56.742"></status>
</kw>
<doc>Create new subnet in OpenStack</doc>
<tags>
<tag>Create Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181013 00:27:58.743" critical="yes" starttime="20181013 00:27:55.769"></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="20181013 00:27:58.751" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/554e3c26-74f0-4f85-90e3-d47a07035fb0, headers=None json=None</msg>
<msg timestamp="20181013 00:27:58.752" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181013 00:27:58.752" starttime="20181013 00:27:58.745"></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="20181013 00:27:58.753" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:27:58.753" starttime="20181013 00:27:58.752"></status>
</kw>
<doc>Check new subnet created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>subnet OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181013 00:27:58.753" critical="yes" starttime="20181013 00:27:58.744"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181013 00:27:58.754" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181013 00:27:58.755" starttime="20181013 00:27:58.754"></status>
</kw>
<doc>Checking Subnets created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181013 00:27:58.755" starttime="20181013 00:27:55.634"></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="20181013 00:27:58.773" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbwTwI7FIZtM5MVvG8GccR0KM5sNrXIzj0b45okszSG7S9fJCRomYS4kGO97RR0_LVBA327hllgpXcK51DR_6ZL0oyjuHjSNc_bjctxRfsSnoS1q62nFzvfXZHIVI6yAx-5yDamXlKSOoyVxPoebgqrxDZC7NNGb69jNkyaDP1_20ren4', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181013 00:27:58.773" starttime="20181013 00:27:58.772"></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="20181013 00:27:58.774" level="INFO">{u'X-Auth-Token': 'gAAAAABbwTwI7FIZtM5MVvG8GccR0KM5sNrXIzj0b45okszSG7S9fJCRomYS4kGO97RR0_LVBA327hllgpXcK51DR_6ZL0oyjuHjSNc_bjctxRfsSnoS1q62nFzvfXZHIVI6yAx-5yDamXlKSOoyVxPoebgqrxDZC7NNGb69jNkyaDP1_20ren4', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181013 00:27:58.775" starttime="20181013 00:27:58.774"></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="20181013 00:27:58.780" 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="20181013 00:27:58.871" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/ports, headers=None json=None</msg>
<msg timestamp="20181013 00:27:58.872" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181013 00:27:58.872" starttime="20181013 00:27:58.775"></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="20181013 00:27:58.872" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:27:58.872" starttime="20181013 00:27:58.872"></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="20181013 00:27:58.873" level="INFO">To JSON using : content={"ports":[{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-13T00:06:41Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"edade380-fcc4-4e0b-80ae-12eaba882b9c","ip_address":"192.16.1.101"}],"id":"20a4432a-94a1-4e51-85e9-5018c91d3b97","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"6313bc5e-f9c9-4299-bcd5-ee60f51c5c45","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:a2:96:3b","project_id":"d669ba82f4134d5fab874c42ea59b1a6","status":"ACTIVE","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-73047a23-028d-4872-a664-ba65a0865dba","name":"","admin_state_up":true,"network_id":"73047a23-028d-4872-a664-ba65a0865dba","tenant_id":"d669ba82f4134d5fab874c42ea59b1a6","created_at":"2018-10-13T00:06:34Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-13T00:27:58Z","device_owner":"network:dhcp","revision_number":1,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"554e3c26-74f0-4f85-90e3-d47a07035fb0","ip_address":"172.16.64.21"}],"id":"463eaf29-412c-4097-8602-ba3c8920318e","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:fc:48:3d","project_id":"d669ba82f4134d5fab874c42ea59b1a6","status":"DOWN","binding:host_id":"host3","description":"","tags":[],"device_id":"dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-6ff63da4-33b1-4ff4-8bee-961fbc995373","name":"","admin_state_up":true,"network_id":"6ff63da4-33b1-4ff4-8bee-961fbc995373","tenant_id":"d669ba82f4134d5fab874c42ea59b1a6","created_at":"2018-10-13T00:27:58Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-13T00:06:42Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"edade380-fcc4-4e0b-80ae-12eaba882b9c","ip_address":"192.16.1.103"}],"id":"59216d69-0b02-4569-85a4-0ea2d9c19e7f","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"cc0eecef-bb34-4a75-9aaa-3dc289c966ee","host_addresses":["host2"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:4e:47:8e","project_id":"d669ba82f4134d5fab874c42ea59b1a6","status":"ACTIVE","binding:host_id":"host2","description":"","tags":[],"device_id":"dhcp6e683b9c-430b-509e-9237-cf130714d68f-73047a23-028d-4872-a664-ba65a0865dba","name":"","admin_state_up":true,"network_id":"73047a23-028d-4872-a664-ba65a0865dba","tenant_id":"d669ba82f4134d5fab874c42ea59b1a6","created_at":"2018-10-13T00:06:37Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-13T00:06:42Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"edade380-fcc4-4e0b-80ae-12eaba882b9c","ip_address":"192.16.1.102"}],"id":"ad70cb3a-53ae-42fe-a520-e1512e6bb954","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"a0ad3f36-ba13-417b-b9a1-30f695f826f2","host_addresses":["host3"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:97:4a:50","project_id":"d669ba82f4134d5fab874c42ea59b1a6","status":"ACTIVE","binding:host_id":"host3","description":"","tags":[],"device_id":"dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-73047a23-028d-4872-a664-ba65a0865dba","name":"","admin_state_up":true,"network_id":"73047a23-028d-4872-a664-ba65a0865dba","tenant_id":"d669ba82f4134d5fab874c42ea59b1a6","created_at":"2018-10-13T00:06:35Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-13T00:27:57Z","device_owner":"network:dhcp","revision_number":2,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"554e3c26-74f0-4f85-90e3-d47a07035fb0","ip_address":"172.16.64.20"}],"id":"c35ace49-a243-48fa-b235-ffa5da5bba9c","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"cc0eecef-bb34-4a75-9aaa-3dc289c966ee","host_addresses":["host2"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:7c:40:ce","project_id":"d669ba82f4134d5fab874c42ea59b1a6","status":"DOWN","binding:host_id":"host2","description":"","tags":[],"device_id":"dhcp6e683b9c-430b-509e-9237-cf130714d68f-6ff63da4-33b1-4ff4-8bee-961fbc995373","name":"","admin_state_up":true,"network_id":"6ff63da4-33b1-4ff4-8bee-961fbc995373","tenant_id":"d669ba82f4134d5fab874c42ea59b1a6","created_at":"2018-10-13T00:27:57Z","binding:vnic_type":"normal"}]} </msg>
<msg timestamp="20181013 00:27:58.873" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181013 00:27:58.874" level="INFO">${OSResult} = {u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-13T00:06:41Z', u'device_owner': u'network:dhcp', u'revision_number': 3, u'port_security_enabled': False, u'b...</msg>
<status status="PASS" endtime="20181013 00:27:58.874" starttime="20181013 00:27:58.873"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181013 00:27:58.874" level="INFO">{u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-13T00:06:41Z', 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'edade380-fcc4-4e0b-80ae-12eaba882b9c', u'ip_address': u'192.16.1.101'}], u'id': u'20a4432a-94a1-4e51-85e9-5018c91d3b97', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'6313bc5e-f9c9-4299-bcd5-ee60f51c5c45', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:a2:96:3b', u'project_id': u'd669ba82f4134d5fab874c42ea59b1a6', u'status': u'ACTIVE', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-73047a23-028d-4872-a664-ba65a0865dba', u'name': u'', u'admin_state_up': True, u'network_id': u'73047a23-028d-4872-a664-ba65a0865dba', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', u'created_at': u'2018-10-13T00:06:34Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-13T00:27:58Z', u'device_owner': u'network:dhcp', u'revision_number': 1, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'554e3c26-74f0-4f85-90e3-d47a07035fb0', u'ip_address': u'172.16.64.21'}], u'id': u'463eaf29-412c-4097-8602-ba3c8920318e', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:fc:48:3d', u'project_id': u'd669ba82f4134d5fab874c42ea59b1a6', u'status': u'DOWN', u'binding:host_id': u'host3', u'description': u'', u'tags': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-6ff63da4-33b1-4ff4-8bee-961fbc995373', u'name': u'', u'admin_state_up': True, u'network_id': u'6ff63da4-33b1-4ff4-8bee-961fbc995373', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', u'created_at': u'2018-10-13T00:27:58Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-13T00:06:42Z', 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'edade380-fcc4-4e0b-80ae-12eaba882b9c', u'ip_address': u'192.16.1.103'}], u'id': u'59216d69-0b02-4569-85a4-0ea2d9c19e7f', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'cc0eecef-bb34-4a75-9aaa-3dc289c966ee', u'host_addresses': [u'host2']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:4e:47:8e', u'project_id': u'd669ba82f4134d5fab874c42ea59b1a6', u'status': u'ACTIVE', u'binding:host_id': u'host2', u'description': u'', u'tags': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-73047a23-028d-4872-a664-ba65a0865dba', u'name': u'', u'admin_state_up': True, u'network_id': u'73047a23-028d-4872-a664-ba65a0865dba', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', u'created_at': u'2018-10-13T00:06:37Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-13T00:06:42Z', 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'edade380-fcc4-4e0b-80ae-12eaba882b9c', u'ip_address': u'192.16.1.102'}], u'id': u'ad70cb3a-53ae-42fe-a520-e1512e6bb954', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'a0ad3f36-ba13-417b-b9a1-30f695f826f2', u'host_addresses': [u'host3']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:97:4a:50', u'project_id': u'd669ba82f4134d5fab874c42ea59b1a6', u'status': u'ACTIVE', u'binding:host_id': u'host3', u'description': u'', u'tags': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-73047a23-028d-4872-a664-ba65a0865dba', u'name': u'', u'admin_state_up': True, u'network_id': u'73047a23-028d-4872-a664-ba65a0865dba', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', u'created_at': u'2018-10-13T00:06:35Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-13T00:27:57Z', 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'554e3c26-74f0-4f85-90e3-d47a07035fb0', u'ip_address': u'172.16.64.20'}], u'id': u'c35ace49-a243-48fa-b235-ffa5da5bba9c', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'cc0eecef-bb34-4a75-9aaa-3dc289c966ee', u'host_addresses': [u'host2']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:7c:40:ce', u'project_id': u'd669ba82f4134d5fab874c42ea59b1a6', u'status': u'DOWN', u'binding:host_id': u'host2', u'description': u'', u'tags': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-6ff63da4-33b1-4ff4-8bee-961fbc995373', u'name': u'', u'admin_state_up': True, u'network_id': u'6ff63da4-33b1-4ff4-8bee-961fbc995373', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', u'created_at': u'2018-10-13T00:27:57Z', u'binding:vnic_type': u'normal'}]}</msg>
<status status="PASS" endtime="20181013 00:27:58.875" starttime="20181013 00:27:58.874"></status>
</kw>
<doc>Checking OpenStack Neutron for known ports</doc>
<tags>
<tag>Ports Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181013 00:27:58.875" critical="yes" starttime="20181013 00:27:58.773"></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="20181013 00:27:58.876" 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 0x7fe772fdfed0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181013 00:27:58.877" starttime="20181013 00:27:58.876"></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="20181013 00:27:58.897" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181013 00:27:58.898" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181013 00:27:58.898" starttime="20181013 00:27:58.877"></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="20181013 00:27:58.899" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:27:58.899" starttime="20181013 00:27:58.898"></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="20181013 00:27:58.900" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "c35ace49-a243-48fa-b235-ffa5da5bba9c",
      "tenant_id" : "d669ba82f4134d5fab874c42ea59b1a6",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "6ff63da4-33b1-4ff4-8bee-961fbc995373",
      "mac_address" : "fa:16:3e:7c:40:ce",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "554e3c26-74f0-4f85-90e3-d47a07035fb0"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-6ff63da4-33b1-4ff4-8bee-961fbc995373",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host2",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "cc0eecef-bb34-4a75-9aaa-3dc289c966ee",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "20a4432a-94a1-4e51-85e9-5018c91d3b97",
      "tenant_id" : "d669ba82f4134d5fab874c42ea59b1a6",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "73047a23-028d-4872-a664-ba65a0865dba",
      "mac_address" : "fa:16:3e:a2:96:3b",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "edade380-fcc4-4e0b-80ae-12eaba882b9c"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-73047a23-028d-4872-a664-ba65a0865dba",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "6313bc5e-f9c9-4299-bcd5-ee60f51c5c45",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "ad70cb3a-53ae-42fe-a520-e1512e6bb954",
      "tenant_id" : "d669ba82f4134d5fab874c42ea59b1a6",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "73047a23-028d-4872-a664-ba65a0865dba",
      "mac_address" : "fa:16:3e:97:4a:50",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.102",
         "subnet_id" : "edade380-fcc4-4e0b-80ae-12eaba882b9c"
      } ],
      "device_id" : "dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-73047a23-028d-4872-a664-ba65a0865dba",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host3",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "a0ad3f36-ba13-417b-b9a1-30f695f826f2",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "59216d69-0b02-4569-85a4-0ea2d9c19e7f",
      "tenant_id" : "d669ba82f4134d5fab874c42ea59b1a6",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "73047a23-028d-4872-a664-ba65a0865dba",
      "mac_address" : "fa:16:3e:4e:47:8e",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.103",
         "subnet_id" : "edade380-fcc4-4e0b-80ae-12eaba882b9c"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-73047a23-028d-4872-a664-ba65a0865dba",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host2",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "cc0eecef-bb34-4a75-9aaa-3dc289c966ee",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20181013 00:27:58.900" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181013 00:27:58.900" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'cc0eecef-bb34-4a75-9aaa-3dc289c966ee'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20181013 00:27:58.901" starttime="20181013 00:27:58.899"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181013 00:27:58.901" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'cc0eecef-bb34-4a75-9aaa-3dc289c966ee'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'6ff63da4-33b1-4ff4-8bee-961fbc995373', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', 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:7c:40:ce', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'554e3c26-74f0-4f85-90e3-d47a07035fb0', u'ip_address': u'172.16.64.20'}], u'id': u'c35ace49-a243-48fa-b235-ffa5da5bba9c', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-6ff63da4-33b1-4ff4-8bee-961fbc995373'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'6313bc5e-f9c9-4299-bcd5-ee60f51c5c45'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'73047a23-028d-4872-a664-ba65a0865dba', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', 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:a2:96:3b', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'edade380-fcc4-4e0b-80ae-12eaba882b9c', u'ip_address': u'192.16.1.101'}], u'id': u'20a4432a-94a1-4e51-85e9-5018c91d3b97', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-73047a23-028d-4872-a664-ba65a0865dba'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'a0ad3f36-ba13-417b-b9a1-30f695f826f2'}, u'binding:host_id': u'host3', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'73047a23-028d-4872-a664-ba65a0865dba', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', 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:97:4a:50', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'edade380-fcc4-4e0b-80ae-12eaba882b9c', u'ip_address': u'192.16.1.102'}], u'id': u'ad70cb3a-53ae-42fe-a520-e1512e6bb954', u'security_groups': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-73047a23-028d-4872-a664-ba65a0865dba'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'cc0eecef-bb34-4a75-9aaa-3dc289c966ee'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'73047a23-028d-4872-a664-ba65a0865dba', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', 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:4e:47:8e', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'edade380-fcc4-4e0b-80ae-12eaba882b9c', u'ip_address': u'192.16.1.103'}], u'id': u'59216d69-0b02-4569-85a4-0ea2d9c19e7f', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-73047a23-028d-4872-a664-ba65a0865dba'}]}</msg>
<status status="PASS" endtime="20181013 00:27:58.901" starttime="20181013 00:27:58.901"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known ports</doc>
<tags>
<tag>Ports Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181013 00:27:58.901" critical="yes" starttime="20181013 00:27:58.875"></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="20181013 00:27:58.903" level="INFO">{"port":{"network_id":"6ff63da4-33b1-4ff4-8bee-961fbc995373","admin_state_up": true}}</msg>
<status status="PASS" endtime="20181013 00:27:58.903" starttime="20181013 00:27:58.903"></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="20181013 00:27:58.905" 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="20181013 00:27:59.964" 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="20181013 00:27:59.964" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181013 00:27:59.964" starttime="20181013 00:27:58.903"></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="20181013 00:27:59.965" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:27:59.965" starttime="20181013 00:27:59.964"></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="20181013 00:27:59.966" level="INFO">To JSON using : content={"port":{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-13T00:27:59Z","device_owner":"","revision_number":1,"binding:profile":{},"port_security_enabled":true,"fixed_ips":[{"subnet_id":"554e3c26-74f0-4f85-90e3-d47a07035fb0","ip_address":"172.16.64.24"}],"id":"33c074e6-3818-4821-adf9-6b559d2b8741","security_groups":["a53e6eca-c7f1-45b9-bc3c-06e81c7b5556"],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:11:45:19","project_id":"d669ba82f4134d5fab874c42ea59b1a6","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"","name":"","admin_state_up":true,"network_id":"6ff63da4-33b1-4ff4-8bee-961fbc995373","tenant_id":"d669ba82f4134d5fab874c42ea59b1a6","created_at":"2018-10-13T00:27:59Z","binding:vnic_type":"normal"}} </msg>
<msg timestamp="20181013 00:27:59.966" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181013 00:27:59.966" level="INFO">${result} = {u'port': {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-13T00:27:59Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': ...</msg>
<status status="PASS" endtime="20181013 00:27:59.966" starttime="20181013 00:27:59.965"></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="20181013 00:27:59.967" level="INFO">${result} = {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-13T00:27:59Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fi...</msg>
<status status="PASS" endtime="20181013 00:27:59.967" starttime="20181013 00:27:59.966"></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="20181013 00:27:59.967" level="INFO">${PORTID} = 33c074e6-3818-4821-adf9-6b559d2b8741</msg>
<status status="PASS" endtime="20181013 00:27:59.967" starttime="20181013 00:27:59.967"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181013 00:27:59.968" level="INFO">{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-13T00:27:59Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fixed_ips': [{u'subnet_id': u'554e3c26-74f0-4f85-90e3-d47a07035fb0', u'ip_address': u'172.16.64.24'}], u'id': u'33c074e6-3818-4821-adf9-6b559d2b8741', u'security_groups': [u'a53e6eca-c7f1-45b9-bc3c-06e81c7b5556'], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:11:45:19', u'project_id': u'd669ba82f4134d5fab874c42ea59b1a6', 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'6ff63da4-33b1-4ff4-8bee-961fbc995373', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', u'created_at': u'2018-10-13T00:27:59Z', u'binding:vnic_type': u'normal'}</msg>
<status status="PASS" endtime="20181013 00:27:59.968" starttime="20181013 00:27:59.967"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${PORTID}</arg>
</arguments>
<msg timestamp="20181013 00:27:59.968" level="INFO">33c074e6-3818-4821-adf9-6b559d2b8741</msg>
<status status="PASS" endtime="20181013 00:27:59.968" starttime="20181013 00:27:59.968"></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="20181013 00:27:59.969" level="INFO">${PORTID} = 33c074e6-3818-4821-adf9-6b559d2b8741</msg>
<status status="PASS" endtime="20181013 00:27:59.969" starttime="20181013 00:27:59.969"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181013 00:28:01.970" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181013 00:28:01.970" starttime="20181013 00:27:59.969"></status>
</kw>
<doc>Create new port in OpenStack</doc>
<tags>
<tag>Create port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181013 00:28:01.970" critical="yes" starttime="20181013 00:27:58.902"></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="20181013 00:28:01.994" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/33c074e6-3818-4821-adf9-6b559d2b8741, headers=None json=None</msg>
<msg timestamp="20181013 00:28:01.994" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181013 00:28:01.994" starttime="20181013 00:28:01.972"></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="20181013 00:28:01.995" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:28:01.995" starttime="20181013 00:28:01.995"></status>
</kw>
<doc>Check new port created in OpenDaylight</doc>
<tags>
<tag>Check port OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181013 00:28:01.996" critical="yes" starttime="20181013 00:28:01.971"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181013 00:28:01.997" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181013 00:28:01.997" starttime="20181013 00:28:01.996"></status>
</kw>
<doc>Checking Port created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181013 00:28:01.997" starttime="20181013 00:27:58.756"></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="20181013 00:28:02.016" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbwTwI7FIZtM5MVvG8GccR0KM5sNrXIzj0b45okszSG7S9fJCRomYS4kGO97RR0_LVBA327hllgpXcK51DR_6ZL0oyjuHjSNc_bjctxRfsSnoS1q62nFzvfXZHIVI6yAx-5yDamXlKSOoyVxPoebgqrxDZC7NNGb69jNkyaDP1_20ren4'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181013 00:28:02.016" starttime="20181013 00:28:02.015"></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="20181013 00:28:02.017" 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 0x7fe772fe94d0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181013 00:28:02.017" starttime="20181013 00:28:02.016"></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="20181013 00:28:02.029" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/33c074e6-3818-4821-adf9-6b559d2b8741, headers=None json=None</msg>
<msg timestamp="20181013 00:28:02.029" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181013 00:28:02.029" starttime="20181013 00:28:02.018"></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="20181013 00:28:02.030" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:28:02.030" starttime="20181013 00:28:02.030"></status>
</kw>
<status status="PASS" endtime="20181013 00:28:02.031" starttime="20181013 00:28:02.018"></status>
</kw>
<status status="PASS" endtime="20181013 00:28:02.031" starttime="20181013 00:28:02.015"></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="20181013 00:28:02.033" level="INFO">{"port":{"network_id":"6ff63da4-33b1-4ff4-8bee-961fbc995373","admin_state_up": true}}</msg>
<status status="PASS" endtime="20181013 00:28:02.033" starttime="20181013 00:28:02.032"></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="20181013 00:28:02.038" 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="20181013 00:28:03.340" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/ports/33c074e6-3818-4821-adf9-6b559d2b8741, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181013 00:28:03.341" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181013 00:28:03.341" starttime="20181013 00:28:02.033"></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="20181013 00:28:03.342" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:28:03.342" starttime="20181013 00:28:03.341"></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="20181013 00:28:03.343" level="INFO"></msg>
<status status="PASS" endtime="20181013 00:28:03.343" starttime="20181013 00:28:03.342"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181013 00:28:05.343" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181013 00:28:05.344" starttime="20181013 00:28:03.343"></status>
</kw>
<doc>Delete previously created port in OpenStack</doc>
<tags>
<tag>Delete port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181013 00:28:05.344" critical="yes" starttime="20181013 00:28:02.031"></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="20181013 00:28:05.365" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181013 00:28:05.365" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181013 00:28:05.365" starttime="20181013 00:28:05.346"></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="20181013 00:28:05.365" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:28:05.366" starttime="20181013 00:28:05.365"></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="20181013 00:28:05.366" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "20a4432a-94a1-4e51-85e9-5018c91d3b97",
      "tenant_id" : "d669ba82f4134d5fab874c42ea59b1a6",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "73047a23-028d-4872-a664-ba65a0865dba",
      "mac_address" : "fa:16:3e:a2:96:3b",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "edade380-fcc4-4e0b-80ae-12eaba882b9c"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-73047a23-028d-4872-a664-ba65a0865dba",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "6313bc5e-f9c9-4299-bcd5-ee60f51c5c45",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "463eaf29-412c-4097-8602-ba3c8920318e",
      "tenant_id" : "d669ba82f4134d5fab874c42ea59b1a6",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "6ff63da4-33b1-4ff4-8bee-961fbc995373",
      "mac_address" : "fa:16:3e:fc:48:3d",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.21",
         "subnet_id" : "554e3c26-74f0-4f85-90e3-d47a07035fb0"
      } ],
      "device_id" : "dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-6ff63da4-33b1-4ff4-8bee-961fbc995373",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host3",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "a0ad3f36-ba13-417b-b9a1-30f695f826f2",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "c35ace49-a243-48fa-b235-ffa5da5bba9c",
      "tenant_id" : "d669ba82f4134d5fab874c42ea59b1a6",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "6ff63da4-33b1-4ff4-8bee-961fbc995373",
      "mac_address" : "fa:16:3e:7c:40:ce",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "554e3c26-74f0-4f85-90e3-d47a07035fb0"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-6ff63da4-33b1-4ff4-8bee-961fbc995373",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host2",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "cc0eecef-bb34-4a75-9aaa-3dc289c966ee",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "71fc3ca2-2f56-4a9f-afac-dd1987ac861a",
      "tenant_id" : "d669ba82f4134d5fab874c42ea59b1a6",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "6ff63da4-33b1-4ff4-8bee-961fbc995373",
      "mac_address" : "fa:16:3e:0d:bb:f6",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.22",
         "subnet_id" : "554e3c26-74f0-4f85-90e3-d47a07035fb0"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-6ff63da4-33b1-4ff4-8bee-961fbc995373",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "6313bc5e-f9c9-4299-bcd5-ee60f51c5c45",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "ad70cb3a-53ae-42fe-a520-e1512e6bb954",
      "tenant_id" : "d669ba82f4134d5fab874c42ea59b1a6",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "73047a23-028d-4872-a664-ba65a0865dba",
      "mac_address" : "fa:16:3e:97:4a:50",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.102",
         "subnet_id" : "edade380-fcc4-4e0b-80ae-12eaba882b9c"
      } ],
      "device_id" : "dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-73047a23-028d-4872-a664-ba65a0865dba",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host3",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "a0ad3f36-ba13-417b-b9a1-30f695f826f2",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "59216d69-0b02-4569-85a4-0ea2d9c19e7f",
      "tenant_id" : "d669ba82f4134d5fab874c42ea59b1a6",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "73047a23-028d-4872-a664-ba65a0865dba",
      "mac_address" : "fa:16:3e:4e:47:8e",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.103",
         "subnet_id" : "edade380-fcc4-4e0b-80ae-12eaba882b9c"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-73047a23-028d-4872-a664-ba65a0865dba",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host2",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "cc0eecef-bb34-4a75-9aaa-3dc289c966ee",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20181013 00:28:05.367" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181013 00:28:05.367" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'6313bc5e-f9c9-4299-bcd5-ee60f51c5c45'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20181013 00:28:05.367" starttime="20181013 00:28:05.366"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181013 00:28:05.368" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'6313bc5e-f9c9-4299-bcd5-ee60f51c5c45'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'73047a23-028d-4872-a664-ba65a0865dba', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', 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:a2:96:3b', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'edade380-fcc4-4e0b-80ae-12eaba882b9c', u'ip_address': u'192.16.1.101'}], u'id': u'20a4432a-94a1-4e51-85e9-5018c91d3b97', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-73047a23-028d-4872-a664-ba65a0865dba'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'a0ad3f36-ba13-417b-b9a1-30f695f826f2'}, u'binding:host_id': u'host3', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'6ff63da4-33b1-4ff4-8bee-961fbc995373', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', 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:fc:48:3d', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'554e3c26-74f0-4f85-90e3-d47a07035fb0', u'ip_address': u'172.16.64.21'}], u'id': u'463eaf29-412c-4097-8602-ba3c8920318e', u'security_groups': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-6ff63da4-33b1-4ff4-8bee-961fbc995373'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'cc0eecef-bb34-4a75-9aaa-3dc289c966ee'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'6ff63da4-33b1-4ff4-8bee-961fbc995373', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', 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:7c:40:ce', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'554e3c26-74f0-4f85-90e3-d47a07035fb0', u'ip_address': u'172.16.64.20'}], u'id': u'c35ace49-a243-48fa-b235-ffa5da5bba9c', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-6ff63da4-33b1-4ff4-8bee-961fbc995373'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'6313bc5e-f9c9-4299-bcd5-ee60f51c5c45'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'6ff63da4-33b1-4ff4-8bee-961fbc995373', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', 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:0d:bb:f6', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'554e3c26-74f0-4f85-90e3-d47a07035fb0', u'ip_address': u'172.16.64.22'}], u'id': u'71fc3ca2-2f56-4a9f-afac-dd1987ac861a', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-6ff63da4-33b1-4ff4-8bee-961fbc995373'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'a0ad3f36-ba13-417b-b9a1-30f695f826f2'}, u'binding:host_id': u'host3', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'73047a23-028d-4872-a664-ba65a0865dba', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', 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:97:4a:50', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'edade380-fcc4-4e0b-80ae-12eaba882b9c', u'ip_address': u'192.16.1.102'}], u'id': u'ad70cb3a-53ae-42fe-a520-e1512e6bb954', u'security_groups': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-73047a23-028d-4872-a664-ba65a0865dba'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'cc0eecef-bb34-4a75-9aaa-3dc289c966ee'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'73047a23-028d-4872-a664-ba65a0865dba', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', 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:4e:47:8e', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'edade380-fcc4-4e0b-80ae-12eaba882b9c', u'ip_address': u'192.16.1.103'}], u'id': u'59216d69-0b02-4569-85a4-0ea2d9c19e7f', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-73047a23-028d-4872-a664-ba65a0865dba'}]}</msg>
<status status="PASS" endtime="20181013 00:28:05.368" starttime="20181013 00:28:05.367"></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="20181013 00:28:05.373" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/33c074e6-3818-4821-adf9-6b559d2b8741, headers=None json=None</msg>
<msg timestamp="20181013 00:28:05.373" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181013 00:28:05.373" starttime="20181013 00:28:05.368"></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="20181013 00:28:05.374" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:28:05.374" starttime="20181013 00:28:05.373"></status>
</kw>
<doc>Check port deleted in OpenDaylight</doc>
<tags>
<tag>Check port deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181013 00:28:05.374" critical="yes" starttime="20181013 00:28:05.345"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181013 00:28:05.375" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181013 00:28:05.375" starttime="20181013 00:28:05.375"></status>
</kw>
<doc>Checking Port deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181013 00:28:05.375" starttime="20181013 00:28:01.998"></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="20181013 00:28:05.393" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbwTwI7FIZtM5MVvG8GccR0KM5sNrXIzj0b45okszSG7S9fJCRomYS4kGO97RR0_LVBA327hllgpXcK51DR_6ZL0oyjuHjSNc_bjctxRfsSnoS1q62nFzvfXZHIVI6yAx-5yDamXlKSOoyVxPoebgqrxDZC7NNGb69jNkyaDP1_20ren4'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181013 00:28:05.394" starttime="20181013 00:28:05.393"></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="20181013 00:28:05.395" 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 0x7fe77305b610&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181013 00:28:05.395" starttime="20181013 00:28:05.394"></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="20181013 00:28:05.405" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/554e3c26-74f0-4f85-90e3-d47a07035fb0, headers=None json=None</msg>
<msg timestamp="20181013 00:28:05.405" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181013 00:28:05.405" starttime="20181013 00:28:05.396"></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="20181013 00:28:05.406" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:28:05.406" starttime="20181013 00:28:05.405"></status>
</kw>
<status status="PASS" endtime="20181013 00:28:05.406" starttime="20181013 00:28:05.395"></status>
</kw>
<status status="PASS" endtime="20181013 00:28:05.407" starttime="20181013 00:28:05.393"></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="20181013 00:28:05.408" level="INFO">{"subnet":{"network_id":"6ff63da4-33b1-4ff4-8bee-961fbc995373","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="20181013 00:28:05.408" starttime="20181013 00:28:05.408"></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="20181013 00:28:05.414" 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="20181013 00:28:08.815" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/subnets/554e3c26-74f0-4f85-90e3-d47a07035fb0, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181013 00:28:08.815" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181013 00:28:08.815" starttime="20181013 00:28:05.408"></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="20181013 00:28:08.816" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:28:08.817" starttime="20181013 00:28:08.816"></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="20181013 00:28:08.817" level="INFO"></msg>
<status status="PASS" endtime="20181013 00:28:08.817" starttime="20181013 00:28:08.817"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181013 00:28:10.818" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181013 00:28:10.818" starttime="20181013 00:28:08.817"></status>
</kw>
<doc>Delete previously created subnet in OpenStack</doc>
<tags>
<tag>Delete Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181013 00:28:10.819" critical="yes" starttime="20181013 00:28:05.407"></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="20181013 00:28:10.828" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181013 00:28:10.828" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181013 00:28:10.828" starttime="20181013 00:28:10.820"></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="20181013 00:28:10.829" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:28:10.829" starttime="20181013 00:28:10.828"></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="20181013 00:28:10.829" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "edade380-fcc4-4e0b-80ae-12eaba882b9c",
      "tenant_id" : "d669ba82f4134d5fab874c42ea59b1a6",
      "project_id" : "d669ba82f4134d5fab874c42ea59b1a6",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "73047a23-028d-4872-a664-ba65a0865dba",
      "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="20181013 00:28:10.830" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181013 00:28:10.830" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'73047a23-028d-4872-a664-ba65a0865dba', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20181013 00:28:10.830" starttime="20181013 00:28:10.829"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181013 00:28:10.830" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'73047a23-028d-4872-a664-ba65a0865dba', u'tenant_id': u'd669ba82f4134d5fab874c42ea59b1a6', 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'd669ba82f4134d5fab874c42ea59b1a6', u'id': u'edade380-fcc4-4e0b-80ae-12eaba882b9c'}]}</msg>
<status status="PASS" endtime="20181013 00:28:10.830" starttime="20181013 00:28:10.830"></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="20181013 00:28:10.837" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/554e3c26-74f0-4f85-90e3-d47a07035fb0, headers=None json=None</msg>
<msg timestamp="20181013 00:28:10.837" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181013 00:28:10.837" starttime="20181013 00:28:10.831"></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="20181013 00:28:10.838" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:28:10.838" starttime="20181013 00:28:10.837"></status>
</kw>
<doc>Check subnet deleted in OpenDaylight</doc>
<tags>
<tag>Check subnet deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181013 00:28:10.838" critical="yes" starttime="20181013 00:28:10.819"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181013 00:28:10.840" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181013 00:28:10.840" starttime="20181013 00:28:10.839"></status>
</kw>
<doc>Checking Subnets deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181013 00:28:10.840" starttime="20181013 00:28:05.376"></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="20181013 00:28:10.860" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbwTwI7FIZtM5MVvG8GccR0KM5sNrXIzj0b45okszSG7S9fJCRomYS4kGO97RR0_LVBA327hllgpXcK51DR_6ZL0oyjuHjSNc_bjctxRfsSnoS1q62nFzvfXZHIVI6yAx-5yDamXlKSOoyVxPoebgqrxDZC7NNGb69jNkyaDP1_20ren4'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181013 00:28:10.860" starttime="20181013 00:28:10.859"></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="20181013 00:28:10.861" 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 0x7fe772fb1f90&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181013 00:28:10.862" starttime="20181013 00:28:10.861"></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="20181013 00:28:10.873" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/6ff63da4-33b1-4ff4-8bee-961fbc995373, headers=None json=None</msg>
<msg timestamp="20181013 00:28:10.873" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181013 00:28:10.873" starttime="20181013 00:28:10.862"></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="20181013 00:28:10.874" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:28:10.874" starttime="20181013 00:28:10.873"></status>
</kw>
<status status="PASS" endtime="20181013 00:28:10.874" starttime="20181013 00:28:10.862"></status>
</kw>
<status status="PASS" endtime="20181013 00:28:10.875" starttime="20181013 00:28:10.859"></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="20181013 00:28:10.876" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20181013 00:28:10.876" starttime="20181013 00:28:10.875"></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="20181013 00:28:10.881" 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="20181013 00:28:13.485" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/networks/6ff63da4-33b1-4ff4-8bee-961fbc995373, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181013 00:28:13.485" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181013 00:28:13.485" starttime="20181013 00:28:10.876"></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="20181013 00:28:13.486" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:28:13.486" starttime="20181013 00:28:13.485"></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="20181013 00:28:13.487" level="INFO"></msg>
<status status="PASS" endtime="20181013 00:28:13.487" starttime="20181013 00:28:13.486"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181013 00:28:15.487" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181013 00:28:15.488" starttime="20181013 00:28:13.487"></status>
</kw>
<doc>Delete network in OpenStack</doc>
<tags>
<tag>Delete Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181013 00:28:15.488" critical="yes" starttime="20181013 00:28:10.875"></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="20181013 00:28:15.508" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181013 00:28:15.508" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181013 00:28:15.508" starttime="20181013 00:28:15.489"></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="20181013 00:28:15.509" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:28:15.509" starttime="20181013 00:28:15.508"></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="20181013 00:28:15.510" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "73047a23-028d-4872-a664-ba65a0865dba",
      "tenant_id" : "d669ba82f4134d5fab874c42ea59b1a6",
      "project_id" : "d669ba82f4134d5fab874c42ea59b1a6",
      "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="20181013 00:28:15.510" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181013 00:28:15.510" 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'd669ba82f4134d5fab874c42ea59b1a6...</msg>
<status status="PASS" endtime="20181013 00:28:15.510" starttime="20181013 00:28:15.509"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181013 00:28:15.511" 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'd669ba82f4134d5fab874c42ea59b1a6', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'd669ba82f4134d5fab874c42ea59b1a6', u'id': u'73047a23-028d-4872-a664-ba65a0865dba'}, {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="20181013 00:28:15.511" starttime="20181013 00:28:15.510"></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="20181013 00:28:15.522" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/6ff63da4-33b1-4ff4-8bee-961fbc995373, headers=None json=None</msg>
<msg timestamp="20181013 00:28:15.522" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181013 00:28:15.522" starttime="20181013 00:28:15.511"></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="20181013 00:28:15.523" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181013 00:28:15.523" starttime="20181013 00:28:15.522"></status>
</kw>
<doc>Check network deleted in OpenDaylight</doc>
<tags>
<tag>Check Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181013 00:28:15.523" critical="yes" starttime="20181013 00:28:15.488"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181013 00:28:15.524" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181013 00:28:15.524" starttime="20181013 00:28:15.524"></status>
</kw>
<doc>Checking Network deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181013 00:28:15.524" starttime="20181013 00:28:10.842"></status>
</suite>
<kw type="teardown" name="Stop Suite">
<kw name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181013 00:28:15.528" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181013 00:28:15.528" starttime="20181013 00:28:15.528"></status>
</kw>
<status status="PASS" endtime="20181013 00:28:15.528" starttime="20181013 00:28:15.527"></status>
</kw>
<doc>Test suite for Neutron Plugin</doc>
<status status="PASS" endtime="20181013 00:28:15.528" starttime="20181013 00:27:52.410"></status>
</suite>
<status status="FAIL" endtime="20181013 00:28:15.533" starttime="20181013 00:27:51.628"></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="20181013 00:27:52.471" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20181013 00:27:52.482" 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="20181013 00:27:53.122" 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="20181013 00:27:53.336" 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="20181013 00:27:55.659" 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="20181013 00:27:55.772" 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="20181013 00:27:58.780" 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="20181013 00:27:58.905" 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="20181013 00:28:02.038" 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="20181013 00:28:05.414" 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="20181013 00:28:10.881" 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>
