<?xml version="1.0" encoding="UTF-8"?>
<robot generated="20181003 20:35:39.655" 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="20181003 20:35:39.787" 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 0x7f1c2c49c490&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181003 20:35:39.788" starttime="20181003 20:35:39.786"></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="20181003 20:35:40.420" 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 0x7f1c2c311e90&gt;: Failed to establish a new connection: [Errno 111] Connection refused',))</msg>
<status status="FAIL" endtime="20181003 20:35:40.420" starttime="20181003 20:35:39.788"></status>
</kw>
<doc>Get the restconf modules, check 200 status and ietf-restconf presence.</doc>
<status status="FAIL" endtime="20181003 20:35:40.421" critical="yes" starttime="20181003 20:35:39.788">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 0x7f1c2c311e90&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="20181003 20:35:40.422" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181003 20:35:40.422" starttime="20181003 20:35:40.422"></status>
</kw>
<doc>Test suite to verify Restconf is OK.</doc>
<status status="FAIL" endtime="20181003 20:35:40.422" starttime="20181003 20:35:39.702"></status>
</suite>
<status status="FAIL" endtime="20181003 20:35:40.424" starttime="20181003 20:35:39.700"></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="20181003 20:35:40.521" 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="20181003 20:35:40.521" starttime="20181003 20:35:40.520"></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="20181003 20:35:40.522" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20181003 20:35:40.536" 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="20181003 20:35:41.003" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:41.003" starttime="20181003 20:35:40.521"></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="20181003 20:35:41.004" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:41.004" starttime="20181003 20:35:41.003"></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="20181003 20:35:41.005" level="INFO">${TOKEN} = gAAAAABbtSgcdh6GI9EqqBAmyRr6nq5DeV06ZPyNym6BKs0xEsah9otfjgTMwYwE_MI0WYg8mz7DdqPdWgvfxus17DvFOVFm0CBy5b5lPt6gZWUuBTBeUQ2pjaAs9eHryT2Ly4NqIfMf6cSoARcmt73E3V3CLpsyEJISV_w_eO3y7EYfBL-SEXk</msg>
<status status="PASS" endtime="20181003 20:35:41.005" starttime="20181003 20:35:41.004"></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="20181003 20:35:41.006" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABbtSgcdh6GI9EqqBAmyRr6nq5DeV06ZPyNym6BKs0xEsah9otfjgTMwYwE_MI0WYg8mz7DdqPdWgvfxus17DvFOVFm0CBy5b5lPt6gZWUuBTBeUQ2pjaAs9eHryT2Ly4NqIfMf6cSoARcmt73E3V3CLpsyEJISV_w_eO3y7EYfBL-SE...</msg>
<status status="PASS" endtime="20181003 20:35:41.006" starttime="20181003 20:35:41.005"></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="20181003 20:35:41.007" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABbtSgcdh6GI9EqqBAmyRr6nq5DeV06ZPyNym6BKs0xEsah9otfjgTMwYwE_MI0WYg8mz7DdqPdWgvfxus17DvFOVFm0CBy5b5lPt6gZWUuBTBeUQ2pjaAs9eHryT2Ly4NqIfMf6cSoARcmt73E3V3CLpsyEJISV_w_eO3y7EYfBL-SE...</msg>
<status status="PASS" endtime="20181003 20:35:41.007" starttime="20181003 20:35:41.006"></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="20181003 20:35:41.007" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABbtSgcdh6GI9EqqBAmyRr6nq5DeV06ZPyNym6BKs0xEsah9otfjgTMwYwE_MI0WYg8mz7DdqPdWgvfxus17DvFOVFm0CBy5b5lPt6gZWUuBTBeUQ2pjaAs9eHryT2Ly4NqIfMf6cSoARcmt73E3V3CLpsyEJISV_w_eO3y7EYfBL-SE...</msg>
<status status="PASS" endtime="20181003 20:35:41.008" starttime="20181003 20:35:41.007"></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="20181003 20:35:41.008" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABbtSgcdh6GI9EqqBAmyRr6nq5DeV06ZPyNym6BKs0xEsah9otfjgTMwYwE_MI0WYg8mz7DdqPdWgvfxus17DvFOVFm0CBy5b5lPt6gZWUuBTBeUQ2pjaAs9eHryT2Ly4NqIfMf6cSoARcmt73E3V3CLpsyEJISV_w_eO3y7EYfBL-SE...</msg>
<status status="PASS" endtime="20181003 20:35:41.008" starttime="20181003 20:35:41.008"></status>
</kw>
<status status="PASS" endtime="20181003 20:35:41.008" starttime="20181003 20:35:40.520"></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="20181003 20:35:41.025" 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 0x7f1c2c23fb50&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181003 20:35:41.025" starttime="20181003 20:35:41.024"></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="20181003 20:35:41.047" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181003 20:35:41.047" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:41.047" starttime="20181003 20:35:41.026"></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="20181003 20:35:41.048" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:41.048" starttime="20181003 20:35:41.048"></status>
</kw>
<doc>Get the complete list of networks</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181003 20:35:41.048" critical="yes" starttime="20181003 20:35:41.025"></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="20181003 20:35:41.069" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181003 20:35:41.069" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:41.069" starttime="20181003 20:35:41.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="20181003 20:35:41.070" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:41.070" starttime="20181003 20:35:41.069"></status>
</kw>
<doc>Get the complete list of subnets</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181003 20:35:41.070" critical="yes" starttime="20181003 20:35:41.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="20181003 20:35:41.082" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181003 20:35:41.082" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:41.082" starttime="20181003 20:35:41.071"></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="20181003 20:35:41.083" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:41.083" starttime="20181003 20:35:41.082"></status>
</kw>
<doc>Get the complete list of ports</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181003 20:35:41.083" critical="yes" starttime="20181003 20:35:41.071"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181003 20:35:41.084" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181003 20:35:41.084" starttime="20181003 20:35:41.084"></status>
</kw>
<status status="PASS" endtime="20181003 20:35:41.084" starttime="20181003 20:35:41.008"></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="20181003 20:35:41.101" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbtSgcdh6GI9EqqBAmyRr6nq5DeV06ZPyNym6BKs0xEsah9otfjgTMwYwE_MI0WYg8mz7DdqPdWgvfxus17DvFOVFm0CBy5b5lPt6gZWUuBTBeUQ2pjaAs9eHryT2Ly4NqIfMf6cSoARcmt73E3V3CLpsyEJISV_w_eO3y7EYfBL-SEXk', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181003 20:35:41.102" starttime="20181003 20:35:41.101"></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="20181003 20:35:41.103" level="INFO">{u'X-Auth-Token': 'gAAAAABbtSgcdh6GI9EqqBAmyRr6nq5DeV06ZPyNym6BKs0xEsah9otfjgTMwYwE_MI0WYg8mz7DdqPdWgvfxus17DvFOVFm0CBy5b5lPt6gZWUuBTBeUQ2pjaAs9eHryT2Ly4NqIfMf6cSoARcmt73E3V3CLpsyEJISV_w_eO3y7EYfBL-SEXk', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181003 20:35:41.103" starttime="20181003 20:35:41.103"></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="20181003 20:35:41.108" 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="20181003 20:35:41.321" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/networks, headers=None json=None</msg>
<msg timestamp="20181003 20:35:41.321" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:41.321" starttime="20181003 20:35:41.103"></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="20181003 20:35:41.322" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:41.322" starttime="20181003 20:35:41.321"></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="20181003 20:35:41.323" 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":"43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c","router:external":true,"availability_zone_hints":[],"availability_zones":["nova"],"ipv4_address_scope":null,"shared":false,"project_id":"4e23da41fccf4e1382980a84cbc07b58","status":"ACTIVE","subnets":["1c52cca6-3756-47b6-9aba-6e9f4578bea7"],"description":"","tags":[],"updated_at":"2018-10-03T20:24:00Z","is_default":false,"provider:segmentation_id":null,"name":"ext-net","admin_state_up":true,"tenant_id":"4e23da41fccf4e1382980a84cbc07b58","created_at":"2018-10-03T20:23:52Z","provider:network_type":"flat"}]} </msg>
<msg timestamp="20181003 20:35:41.323" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181003 20:35:41.323" 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'43ce81fd-3ad1-...</msg>
<status status="PASS" endtime="20181003 20:35:41.323" starttime="20181003 20:35:41.322"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181003 20:35:41.324" 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'43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c', 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'4e23da41fccf4e1382980a84cbc07b58', u'status': u'ACTIVE', u'subnets': [u'1c52cca6-3756-47b6-9aba-6e9f4578bea7'], u'description': u'', u'tags': [], u'updated_at': u'2018-10-03T20:24:00Z', u'is_default': False, u'provider:segmentation_id': None, u'name': u'ext-net', u'admin_state_up': True, u'tenant_id': u'4e23da41fccf4e1382980a84cbc07b58', u'created_at': u'2018-10-03T20:23:52Z', u'mtu': 1500}]}</msg>
<status status="PASS" endtime="20181003 20:35:41.324" starttime="20181003 20:35:41.323"></status>
</kw>
<doc>Checking OpenStack Neutron for known networks</doc>
<tags>
<tag>Network Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181003 20:35:41.324" critical="yes" starttime="20181003 20:35:41.102"></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="20181003 20:35:41.326" 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 0x7f1c2c22ec90&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181003 20:35:41.326" starttime="20181003 20:35:41.325"></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="20181003 20:35:41.356" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181003 20:35:41.357" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:41.357" starttime="20181003 20:35:41.326"></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="20181003 20:35:41.357" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:41.357" starttime="20181003 20:35:41.357"></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="20181003 20:35:41.358" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c",
      "tenant_id" : "4e23da41fccf4e1382980a84cbc07b58",
      "project_id" : "4e23da41fccf4e1382980a84cbc07b58",
      "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="20181003 20:35:41.358" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181003 20:35:41.358" 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'4e23da41fccf4e1382980a84cbc07b58...</msg>
<status status="PASS" endtime="20181003 20:35:41.358" starttime="20181003 20:35:41.357"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181003 20:35:41.359" 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'4e23da41fccf4e1382980a84cbc07b58', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'4e23da41fccf4e1382980a84cbc07b58', u'id': u'43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c'}, {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="20181003 20:35:41.359" starttime="20181003 20:35:41.358"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known networks</doc>
<tags>
<tag>Network Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181003 20:35:41.359" critical="yes" starttime="20181003 20:35:41.324"></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="20181003 20:35:41.360" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20181003 20:35:41.360" starttime="20181003 20:35:41.360"></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="20181003 20:35:41.362" 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="20181003 20:35:41.793" 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="20181003 20:35:41.794" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:41.794" starttime="20181003 20:35:41.360"></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="20181003 20:35:41.794" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:41.794" starttime="20181003 20:35:41.794"></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="20181003 20:35:41.795" 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":"6f22fa7d-dda6-4a60-94df-66e3a06a3edd","router:external":false,"availability_zone_hints":[],"availability_zones":[],"ipv4_address_scope":null,"shared":false,"project_id":"4e23da41fccf4e1382980a84cbc07b58","status":"ACTIVE","subnets":[],"description":"","tags":[],"updated_at":"2018-10-03T20:35:41Z","is_default":false,"provider:segmentation_id":85,"name":"odl_network","admin_state_up":true,"tenant_id":"4e23da41fccf4e1382980a84cbc07b58","created_at":"2018-10-03T20:35:41Z","mtu":1450}} </msg>
<msg timestamp="20181003 20:35:41.795" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181003 20:35:41.795" 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'6f22fa7d-dda6-4a60-94df-66e3a06a3edd', u'ro...</msg>
<status status="PASS" endtime="20181003 20:35:41.795" starttime="20181003 20:35:41.795"></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="20181003 20:35:41.796" 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'6f22fa7d-dda6-4a60-94df-66e3a06a3edd', u'router:external...</msg>
<status status="PASS" endtime="20181003 20:35:41.796" starttime="20181003 20:35:41.796"></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="20181003 20:35:41.797" level="INFO">${NETID} = 6f22fa7d-dda6-4a60-94df-66e3a06a3edd</msg>
<status status="PASS" endtime="20181003 20:35:41.797" starttime="20181003 20:35:41.796"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181003 20:35:41.797" 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'6f22fa7d-dda6-4a60-94df-66e3a06a3edd', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'4e23da41fccf4e1382980a84cbc07b58', u'status': u'ACTIVE', u'subnets': [], u'description': u'', u'tags': [], u'updated_at': u'2018-10-03T20:35:41Z', u'is_default': False, u'provider:segmentation_id': 85, u'name': u'odl_network', u'admin_state_up': True, u'tenant_id': u'4e23da41fccf4e1382980a84cbc07b58', u'created_at': u'2018-10-03T20:35:41Z', u'provider:network_type': u'vxlan'}</msg>
<status status="PASS" endtime="20181003 20:35:41.797" starttime="20181003 20:35:41.797"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${NETID}</arg>
</arguments>
<msg timestamp="20181003 20:35:41.798" level="INFO">6f22fa7d-dda6-4a60-94df-66e3a06a3edd</msg>
<status status="PASS" endtime="20181003 20:35:41.798" starttime="20181003 20:35:41.797"></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="20181003 20:35:41.798" level="INFO">${NETID} = 6f22fa7d-dda6-4a60-94df-66e3a06a3edd</msg>
<status status="PASS" endtime="20181003 20:35:41.798" starttime="20181003 20:35:41.798"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181003 20:35:43.799" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181003 20:35:43.799" starttime="20181003 20:35:41.798"></status>
</kw>
<doc>Create new network in OpenStack</doc>
<tags>
<tag>Create Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181003 20:35:43.799" critical="yes" starttime="20181003 20:35:41.359"></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="20181003 20:35:43.807" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/6f22fa7d-dda6-4a60-94df-66e3a06a3edd, headers=None json=None</msg>
<msg timestamp="20181003 20:35:43.807" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:43.808" starttime="20181003 20:35:43.800"></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="20181003 20:35:43.808" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:43.808" starttime="20181003 20:35:43.808"></status>
</kw>
<doc>Check network created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181003 20:35:43.808" critical="yes" starttime="20181003 20:35:43.800"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181003 20:35:43.809" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181003 20:35:43.809" starttime="20181003 20:35:43.809"></status>
</kw>
<doc>Checking Network created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181003 20:35:43.809" starttime="20181003 20:35:41.085"></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="20181003 20:35:43.829" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbtSgcdh6GI9EqqBAmyRr6nq5DeV06ZPyNym6BKs0xEsah9otfjgTMwYwE_MI0WYg8mz7DdqPdWgvfxus17DvFOVFm0CBy5b5lPt6gZWUuBTBeUQ2pjaAs9eHryT2Ly4NqIfMf6cSoARcmt73E3V3CLpsyEJISV_w_eO3y7EYfBL-SEXk', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181003 20:35:43.829" starttime="20181003 20:35:43.828"></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="20181003 20:35:43.830" level="INFO">{u'X-Auth-Token': 'gAAAAABbtSgcdh6GI9EqqBAmyRr6nq5DeV06ZPyNym6BKs0xEsah9otfjgTMwYwE_MI0WYg8mz7DdqPdWgvfxus17DvFOVFm0CBy5b5lPt6gZWUuBTBeUQ2pjaAs9eHryT2Ly4NqIfMf6cSoARcmt73E3V3CLpsyEJISV_w_eO3y7EYfBL-SEXk', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181003 20:35:43.830" starttime="20181003 20:35:43.830"></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="20181003 20:35:43.835" 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="20181003 20:35:43.936" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/subnets, headers=None json=None</msg>
<msg timestamp="20181003 20:35:43.936" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:43.936" starttime="20181003 20:35:43.830"></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="20181003 20:35:43.937" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:43.937" starttime="20181003 20:35:43.937"></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="20181003 20:35:43.938" level="INFO">To JSON using : content={"subnets":[{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c","tenant_id":"4e23da41fccf4e1382980a84cbc07b58","created_at":"2018-10-03T20:24:00Z","dns_nameservers":[],"updated_at":"2018-10-03T20:24:00Z","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":"4e23da41fccf4e1382980a84cbc07b58","id":"1c52cca6-3756-47b6-9aba-6e9f4578bea7","subnetpool_id":null,"name":"ext-subnet"}]} </msg>
<msg timestamp="20181003 20:35:43.938" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181003 20:35:43.938" level="INFO">${OSResult} = {u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c', u'tenant_id': u'4e23da41fccf4e1...</msg>
<status status="PASS" endtime="20181003 20:35:43.938" starttime="20181003 20:35:43.937"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181003 20:35:43.939" level="INFO">{u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c', u'tenant_id': u'4e23da41fccf4e1382980a84cbc07b58', u'created_at': u'2018-10-03T20:24:00Z', u'dns_nameservers': [], u'updated_at': u'2018-10-03T20:24:00Z', 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'4e23da41fccf4e1382980a84cbc07b58', u'id': u'1c52cca6-3756-47b6-9aba-6e9f4578bea7', u'subnetpool_id': None, u'name': u'ext-subnet'}]}</msg>
<status status="PASS" endtime="20181003 20:35:43.939" starttime="20181003 20:35:43.938"></status>
</kw>
<doc>Checking OpenStack Neutron for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181003 20:35:43.939" critical="yes" starttime="20181003 20:35:43.829"></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="20181003 20:35:43.940" 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 0x7f1c2c224090&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181003 20:35:43.941" starttime="20181003 20:35:43.940"></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="20181003 20:35:43.952" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181003 20:35:43.952" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:43.952" starttime="20181003 20:35:43.941"></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="20181003 20:35:43.953" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:43.953" starttime="20181003 20:35:43.952"></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="20181003 20:35:43.953" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "1c52cca6-3756-47b6-9aba-6e9f4578bea7",
      "tenant_id" : "4e23da41fccf4e1382980a84cbc07b58",
      "project_id" : "4e23da41fccf4e1382980a84cbc07b58",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c",
      "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="20181003 20:35:43.953" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181003 20:35:43.954" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c', u'tenant_id': u'4e23da41fccf4e1382980a84cbc07b58', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20181003 20:35:43.954" starttime="20181003 20:35:43.953"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181003 20:35:43.954" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c', u'tenant_id': u'4e23da41fccf4e1382980a84cbc07b58', 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'4e23da41fccf4e1382980a84cbc07b58', u'id': u'1c52cca6-3756-47b6-9aba-6e9f4578bea7'}]}</msg>
<status status="PASS" endtime="20181003 20:35:43.954" starttime="20181003 20:35:43.954"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181003 20:35:43.954" critical="yes" starttime="20181003 20:35:43.939"></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="20181003 20:35:43.956" level="INFO">{"subnet":{"network_id":"6f22fa7d-dda6-4a60-94df-66e3a06a3edd","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="20181003 20:35:43.956" starttime="20181003 20:35:43.955"></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="20181003 20:35:43.958" 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="20181003 20:35:44.530" 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="20181003 20:35:44.530" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:44.530" starttime="20181003 20:35:43.956"></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="20181003 20:35:44.531" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:44.531" starttime="20181003 20:35:44.531"></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="20181003 20:35:44.532" level="INFO">To JSON using : content={"subnet":{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"6f22fa7d-dda6-4a60-94df-66e3a06a3edd","tenant_id":"4e23da41fccf4e1382980a84cbc07b58","created_at":"2018-10-03T20:35:44Z","dns_nameservers":[],"updated_at":"2018-10-03T20:35:44Z","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":"4e23da41fccf4e1382980a84cbc07b58","id":"c52ec266-ec9f-4806-85c4-02782e0da09c","subnetpool_id":null,"name":""}} </msg>
<msg timestamp="20181003 20:35:44.532" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181003 20:35:44.532" level="INFO">${result} = {u'subnet': {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'6f22fa7d-dda6-4a60-94df-66e3a06a3edd', u'tenant_id': u'4e23da41fccf4e1382980a84cbc07b58', u'...</msg>
<status status="PASS" endtime="20181003 20:35:44.532" starttime="20181003 20:35:44.532"></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="20181003 20:35:44.533" level="INFO">${result} = {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'6f22fa7d-dda6-4a60-94df-66e3a06a3edd', u'tenant_id': u'4e23da41fccf4e1382980a84cbc07b58', u'created_at':...</msg>
<status status="PASS" endtime="20181003 20:35:44.533" starttime="20181003 20:35:44.532"></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="20181003 20:35:44.533" level="INFO">${SUBNETID} = c52ec266-ec9f-4806-85c4-02782e0da09c</msg>
<status status="PASS" endtime="20181003 20:35:44.534" starttime="20181003 20:35:44.533"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181003 20:35:44.534" level="INFO">{u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'6f22fa7d-dda6-4a60-94df-66e3a06a3edd', u'tenant_id': u'4e23da41fccf4e1382980a84cbc07b58', u'created_at': u'2018-10-03T20:35:44Z', u'dns_nameservers': [], u'updated_at': u'2018-10-03T20:35:44Z', 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'4e23da41fccf4e1382980a84cbc07b58', u'id': u'c52ec266-ec9f-4806-85c4-02782e0da09c', u'subnetpool_id': None, u'name': u''}</msg>
<status status="PASS" endtime="20181003 20:35:44.534" starttime="20181003 20:35:44.534"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${SUBNETID}</arg>
</arguments>
<msg timestamp="20181003 20:35:44.535" level="INFO">c52ec266-ec9f-4806-85c4-02782e0da09c</msg>
<status status="PASS" endtime="20181003 20:35:44.535" starttime="20181003 20:35:44.534"></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="20181003 20:35:44.535" level="INFO">${SUBNETID} = c52ec266-ec9f-4806-85c4-02782e0da09c</msg>
<status status="PASS" endtime="20181003 20:35:44.535" starttime="20181003 20:35:44.535"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181003 20:35:46.536" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181003 20:35:46.536" starttime="20181003 20:35:44.536"></status>
</kw>
<doc>Create new subnet in OpenStack</doc>
<tags>
<tag>Create Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181003 20:35:46.537" critical="yes" starttime="20181003 20:35:43.955"></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="20181003 20:35:46.547" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/c52ec266-ec9f-4806-85c4-02782e0da09c, headers=None json=None</msg>
<msg timestamp="20181003 20:35:46.547" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:46.547" starttime="20181003 20:35:46.538"></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="20181003 20:35:46.548" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:46.548" starttime="20181003 20:35:46.547"></status>
</kw>
<doc>Check new subnet created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>subnet OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181003 20:35:46.548" critical="yes" starttime="20181003 20:35:46.537"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181003 20:35:46.549" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181003 20:35:46.549" starttime="20181003 20:35:46.549"></status>
</kw>
<doc>Checking Subnets created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181003 20:35:46.549" starttime="20181003 20:35:43.811"></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="20181003 20:35:46.568" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbtSgcdh6GI9EqqBAmyRr6nq5DeV06ZPyNym6BKs0xEsah9otfjgTMwYwE_MI0WYg8mz7DdqPdWgvfxus17DvFOVFm0CBy5b5lPt6gZWUuBTBeUQ2pjaAs9eHryT2Ly4NqIfMf6cSoARcmt73E3V3CLpsyEJISV_w_eO3y7EYfBL-SEXk', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181003 20:35:46.568" starttime="20181003 20:35:46.567"></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="20181003 20:35:46.569" level="INFO">{u'X-Auth-Token': 'gAAAAABbtSgcdh6GI9EqqBAmyRr6nq5DeV06ZPyNym6BKs0xEsah9otfjgTMwYwE_MI0WYg8mz7DdqPdWgvfxus17DvFOVFm0CBy5b5lPt6gZWUuBTBeUQ2pjaAs9eHryT2Ly4NqIfMf6cSoARcmt73E3V3CLpsyEJISV_w_eO3y7EYfBL-SEXk', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181003 20:35:46.570" starttime="20181003 20:35:46.569"></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="20181003 20:35:46.575" 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="20181003 20:35:46.730" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/ports, headers=None json=None</msg>
<msg timestamp="20181003 20:35:46.730" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:46.731" starttime="20181003 20:35:46.570"></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="20181003 20:35:46.731" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:46.731" starttime="20181003 20:35:46.731"></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="20181003 20:35:46.732" level="INFO">To JSON using : content={"ports":[{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-03T20:35:46Z","device_owner":"network:dhcp","revision_number":2,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"c52ec266-ec9f-4806-85c4-02782e0da09c","ip_address":"172.16.64.20"}],"id":"87546fb5-38d3-4af5-aae8-c543cb93d5c6","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"e673a37b-332c-4b2a-8ab5-f031fd81dd38","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:33:07:6e","project_id":"4e23da41fccf4e1382980a84cbc07b58","status":"DOWN","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-6f22fa7d-dda6-4a60-94df-66e3a06a3edd","name":"","admin_state_up":true,"network_id":"6f22fa7d-dda6-4a60-94df-66e3a06a3edd","tenant_id":"4e23da41fccf4e1382980a84cbc07b58","created_at":"2018-10-03T20:35:45Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-03T20:24:10Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"1c52cca6-3756-47b6-9aba-6e9f4578bea7","ip_address":"192.16.1.101"}],"id":"9771d42e-1aff-41a4-b299-a52ef475d435","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"e673a37b-332c-4b2a-8ab5-f031fd81dd38","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:6b:9e:c5","project_id":"4e23da41fccf4e1382980a84cbc07b58","status":"ACTIVE","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c","name":"","admin_state_up":true,"network_id":"43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c","tenant_id":"4e23da41fccf4e1382980a84cbc07b58","created_at":"2018-10-03T20:24:01Z","binding:vnic_type":"normal"}]} </msg>
<msg timestamp="20181003 20:35:46.732" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181003 20:35:46.732" level="INFO">${OSResult} = {u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-03T20:35:46Z', u'device_owner': u'network:dhcp', u'revision_number': 2, u'port_security_enabled': False, u'b...</msg>
<status status="PASS" endtime="20181003 20:35:46.732" starttime="20181003 20:35:46.732"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181003 20:35:46.733" level="INFO">{u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-03T20:35:46Z', 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'c52ec266-ec9f-4806-85c4-02782e0da09c', u'ip_address': u'172.16.64.20'}], u'id': u'87546fb5-38d3-4af5-aae8-c543cb93d5c6', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'e673a37b-332c-4b2a-8ab5-f031fd81dd38', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:33:07:6e', u'project_id': u'4e23da41fccf4e1382980a84cbc07b58', u'status': u'DOWN', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-6f22fa7d-dda6-4a60-94df-66e3a06a3edd', u'name': u'', u'admin_state_up': True, u'network_id': u'6f22fa7d-dda6-4a60-94df-66e3a06a3edd', u'tenant_id': u'4e23da41fccf4e1382980a84cbc07b58', u'created_at': u'2018-10-03T20:35:45Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-03T20:24:10Z', 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'1c52cca6-3756-47b6-9aba-6e9f4578bea7', u'ip_address': u'192.16.1.101'}], u'id': u'9771d42e-1aff-41a4-b299-a52ef475d435', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'e673a37b-332c-4b2a-8ab5-f031fd81dd38', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:6b:9e:c5', u'project_id': u'4e23da41fccf4e1382980a84cbc07b58', u'status': u'ACTIVE', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c', u'name': u'', u'admin_state_up': True, u'network_id': u'43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c', u'tenant_id': u'4e23da41fccf4e1382980a84cbc07b58', u'created_at': u'2018-10-03T20:24:01Z', u'binding:vnic_type': u'normal'}]}</msg>
<status status="PASS" endtime="20181003 20:35:46.733" starttime="20181003 20:35:46.733"></status>
</kw>
<doc>Checking OpenStack Neutron for known ports</doc>
<tags>
<tag>Ports Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181003 20:35:46.733" critical="yes" starttime="20181003 20:35:46.569"></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="20181003 20:35:46.735" 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 0x7f1c2c1b4b90&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181003 20:35:46.735" starttime="20181003 20:35:46.734"></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="20181003 20:35:46.752" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181003 20:35:46.752" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:46.752" starttime="20181003 20:35:46.736"></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="20181003 20:35:46.753" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:46.753" starttime="20181003 20:35:46.753"></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="20181003 20:35:46.754" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "87546fb5-38d3-4af5-aae8-c543cb93d5c6",
      "tenant_id" : "4e23da41fccf4e1382980a84cbc07b58",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "6f22fa7d-dda6-4a60-94df-66e3a06a3edd",
      "mac_address" : "fa:16:3e:33:07:6e",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "c52ec266-ec9f-4806-85c4-02782e0da09c"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-6f22fa7d-dda6-4a60-94df-66e3a06a3edd",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "e673a37b-332c-4b2a-8ab5-f031fd81dd38",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "9771d42e-1aff-41a4-b299-a52ef475d435",
      "tenant_id" : "4e23da41fccf4e1382980a84cbc07b58",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c",
      "mac_address" : "fa:16:3e:6b:9e:c5",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "1c52cca6-3756-47b6-9aba-6e9f4578bea7"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "e673a37b-332c-4b2a-8ab5-f031fd81dd38",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20181003 20:35:46.754" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181003 20:35:46.754" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'e673a37b-332c-4b2a-8ab5-f031fd81dd38'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20181003 20:35:46.754" starttime="20181003 20:35:46.753"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181003 20:35:46.755" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'e673a37b-332c-4b2a-8ab5-f031fd81dd38'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'6f22fa7d-dda6-4a60-94df-66e3a06a3edd', u'tenant_id': u'4e23da41fccf4e1382980a84cbc07b58', 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:33:07:6e', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'c52ec266-ec9f-4806-85c4-02782e0da09c', u'ip_address': u'172.16.64.20'}], u'id': u'87546fb5-38d3-4af5-aae8-c543cb93d5c6', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-6f22fa7d-dda6-4a60-94df-66e3a06a3edd'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'e673a37b-332c-4b2a-8ab5-f031fd81dd38'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c', u'tenant_id': u'4e23da41fccf4e1382980a84cbc07b58', 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:6b:9e:c5', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'1c52cca6-3756-47b6-9aba-6e9f4578bea7', u'ip_address': u'192.16.1.101'}], u'id': u'9771d42e-1aff-41a4-b299-a52ef475d435', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c'}]}</msg>
<status status="PASS" endtime="20181003 20:35:46.755" starttime="20181003 20:35:46.754"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known ports</doc>
<tags>
<tag>Ports Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181003 20:35:46.755" critical="yes" starttime="20181003 20:35:46.734"></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="20181003 20:35:46.756" level="INFO">{"port":{"network_id":"6f22fa7d-dda6-4a60-94df-66e3a06a3edd","admin_state_up": true}}</msg>
<status status="PASS" endtime="20181003 20:35:46.756" starttime="20181003 20:35:46.756"></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="20181003 20:35:46.758" 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="20181003 20:35:48.323" 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="20181003 20:35:48.323" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:48.323" starttime="20181003 20:35:46.757"></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="20181003 20:35:48.324" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:48.324" starttime="20181003 20:35:48.324"></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="20181003 20:35:48.325" level="INFO">To JSON using : content={"port":{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-03T20:35:47Z","device_owner":"","revision_number":1,"binding:profile":{},"port_security_enabled":true,"fixed_ips":[{"subnet_id":"c52ec266-ec9f-4806-85c4-02782e0da09c","ip_address":"172.16.64.29"}],"id":"f11be78b-d1f1-4438-bf13-614542f72937","security_groups":["12968163-6f4f-4f24-8cd3-dcb9f08e735e"],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:41:9b:a3","project_id":"4e23da41fccf4e1382980a84cbc07b58","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"","name":"","admin_state_up":true,"network_id":"6f22fa7d-dda6-4a60-94df-66e3a06a3edd","tenant_id":"4e23da41fccf4e1382980a84cbc07b58","created_at":"2018-10-03T20:35:47Z","binding:vnic_type":"normal"}} </msg>
<msg timestamp="20181003 20:35:48.325" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181003 20:35:48.325" level="INFO">${result} = {u'port': {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-03T20:35:47Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': ...</msg>
<status status="PASS" endtime="20181003 20:35:48.325" starttime="20181003 20:35:48.324"></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="20181003 20:35:48.326" level="INFO">${result} = {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-03T20:35:47Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fi...</msg>
<status status="PASS" endtime="20181003 20:35:48.326" starttime="20181003 20:35:48.325"></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="20181003 20:35:48.326" level="INFO">${PORTID} = f11be78b-d1f1-4438-bf13-614542f72937</msg>
<status status="PASS" endtime="20181003 20:35:48.326" starttime="20181003 20:35:48.326"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181003 20:35:48.327" level="INFO">{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-03T20:35:47Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fixed_ips': [{u'subnet_id': u'c52ec266-ec9f-4806-85c4-02782e0da09c', u'ip_address': u'172.16.64.29'}], u'id': u'f11be78b-d1f1-4438-bf13-614542f72937', u'security_groups': [u'12968163-6f4f-4f24-8cd3-dcb9f08e735e'], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:41:9b:a3', u'project_id': u'4e23da41fccf4e1382980a84cbc07b58', 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'6f22fa7d-dda6-4a60-94df-66e3a06a3edd', u'tenant_id': u'4e23da41fccf4e1382980a84cbc07b58', u'created_at': u'2018-10-03T20:35:47Z', u'binding:vnic_type': u'normal'}</msg>
<status status="PASS" endtime="20181003 20:35:48.327" starttime="20181003 20:35:48.327"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${PORTID}</arg>
</arguments>
<msg timestamp="20181003 20:35:48.327" level="INFO">f11be78b-d1f1-4438-bf13-614542f72937</msg>
<status status="PASS" endtime="20181003 20:35:48.327" starttime="20181003 20:35:48.327"></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="20181003 20:35:48.328" level="INFO">${PORTID} = f11be78b-d1f1-4438-bf13-614542f72937</msg>
<status status="PASS" endtime="20181003 20:35:48.328" starttime="20181003 20:35:48.328"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181003 20:35:50.329" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181003 20:35:50.329" starttime="20181003 20:35:48.328"></status>
</kw>
<doc>Create new port in OpenStack</doc>
<tags>
<tag>Create port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181003 20:35:50.329" critical="yes" starttime="20181003 20:35:46.755"></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="20181003 20:35:50.361" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/f11be78b-d1f1-4438-bf13-614542f72937, headers=None json=None</msg>
<msg timestamp="20181003 20:35:50.361" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:50.361" starttime="20181003 20:35:50.330"></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="20181003 20:35:50.362" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:50.362" starttime="20181003 20:35:50.361"></status>
</kw>
<doc>Check new port created in OpenDaylight</doc>
<tags>
<tag>Check port OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181003 20:35:50.362" critical="yes" starttime="20181003 20:35:50.329"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181003 20:35:50.363" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181003 20:35:50.363" starttime="20181003 20:35:50.363"></status>
</kw>
<doc>Checking Port created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181003 20:35:50.363" starttime="20181003 20:35:46.551"></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="20181003 20:35:50.382" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbtSgcdh6GI9EqqBAmyRr6nq5DeV06ZPyNym6BKs0xEsah9otfjgTMwYwE_MI0WYg8mz7DdqPdWgvfxus17DvFOVFm0CBy5b5lPt6gZWUuBTBeUQ2pjaAs9eHryT2Ly4NqIfMf6cSoARcmt73E3V3CLpsyEJISV_w_eO3y7EYfBL-SEXk'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181003 20:35:50.382" starttime="20181003 20:35:50.381"></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="20181003 20:35:50.383" 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 0x7f1c2c1b9bd0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181003 20:35:50.383" starttime="20181003 20:35:50.382"></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="20181003 20:35:50.399" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/f11be78b-d1f1-4438-bf13-614542f72937, headers=None json=None</msg>
<msg timestamp="20181003 20:35:50.399" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:50.399" starttime="20181003 20:35:50.384"></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="20181003 20:35:50.400" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:50.400" starttime="20181003 20:35:50.399"></status>
</kw>
<status status="PASS" endtime="20181003 20:35:50.400" starttime="20181003 20:35:50.383"></status>
</kw>
<status status="PASS" endtime="20181003 20:35:50.401" starttime="20181003 20:35:50.381"></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="20181003 20:35:50.402" level="INFO">{"port":{"network_id":"6f22fa7d-dda6-4a60-94df-66e3a06a3edd","admin_state_up": true}}</msg>
<status status="PASS" endtime="20181003 20:35:50.402" starttime="20181003 20:35:50.401"></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="20181003 20:35:50.407" 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="20181003 20:35:51.344" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/ports/f11be78b-d1f1-4438-bf13-614542f72937, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181003 20:35:51.344" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:51.344" starttime="20181003 20:35:50.402"></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="20181003 20:35:51.345" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:51.345" starttime="20181003 20:35:51.344"></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="20181003 20:35:51.346" level="INFO"></msg>
<status status="PASS" endtime="20181003 20:35:51.346" starttime="20181003 20:35:51.345"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181003 20:35:53.346" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181003 20:35:53.347" starttime="20181003 20:35:51.346"></status>
</kw>
<doc>Delete previously created port in OpenStack</doc>
<tags>
<tag>Delete port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181003 20:35:53.347" critical="yes" starttime="20181003 20:35:50.401"></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="20181003 20:35:53.365" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181003 20:35:53.365" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:53.365" starttime="20181003 20:35:53.349"></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="20181003 20:35:53.366" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:53.366" starttime="20181003 20:35:53.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="20181003 20:35:53.367" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "87546fb5-38d3-4af5-aae8-c543cb93d5c6",
      "tenant_id" : "4e23da41fccf4e1382980a84cbc07b58",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "6f22fa7d-dda6-4a60-94df-66e3a06a3edd",
      "mac_address" : "fa:16:3e:33:07:6e",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "c52ec266-ec9f-4806-85c4-02782e0da09c"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-6f22fa7d-dda6-4a60-94df-66e3a06a3edd",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "e673a37b-332c-4b2a-8ab5-f031fd81dd38",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "9771d42e-1aff-41a4-b299-a52ef475d435",
      "tenant_id" : "4e23da41fccf4e1382980a84cbc07b58",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c",
      "mac_address" : "fa:16:3e:6b:9e:c5",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "1c52cca6-3756-47b6-9aba-6e9f4578bea7"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "e673a37b-332c-4b2a-8ab5-f031fd81dd38",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20181003 20:35:53.367" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181003 20:35:53.367" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'e673a37b-332c-4b2a-8ab5-f031fd81dd38'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20181003 20:35:53.367" starttime="20181003 20:35:53.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="20181003 20:35:53.368" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'e673a37b-332c-4b2a-8ab5-f031fd81dd38'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'6f22fa7d-dda6-4a60-94df-66e3a06a3edd', u'tenant_id': u'4e23da41fccf4e1382980a84cbc07b58', 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:33:07:6e', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'c52ec266-ec9f-4806-85c4-02782e0da09c', u'ip_address': u'172.16.64.20'}], u'id': u'87546fb5-38d3-4af5-aae8-c543cb93d5c6', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-6f22fa7d-dda6-4a60-94df-66e3a06a3edd'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'e673a37b-332c-4b2a-8ab5-f031fd81dd38'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c', u'tenant_id': u'4e23da41fccf4e1382980a84cbc07b58', 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:6b:9e:c5', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'1c52cca6-3756-47b6-9aba-6e9f4578bea7', u'ip_address': u'192.16.1.101'}], u'id': u'9771d42e-1aff-41a4-b299-a52ef475d435', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c'}]}</msg>
<status status="PASS" endtime="20181003 20:35:53.368" starttime="20181003 20:35:53.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="20181003 20:35:53.384" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/f11be78b-d1f1-4438-bf13-614542f72937, headers=None json=None</msg>
<msg timestamp="20181003 20:35:53.384" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:53.384" starttime="20181003 20:35:53.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="20181003 20:35:53.385" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:53.385" starttime="20181003 20:35:53.384"></status>
</kw>
<doc>Check port deleted in OpenDaylight</doc>
<tags>
<tag>Check port deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181003 20:35:53.385" critical="yes" starttime="20181003 20:35:53.348"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181003 20:35:53.386" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181003 20:35:53.386" starttime="20181003 20:35:53.386"></status>
</kw>
<doc>Checking Port deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181003 20:35:53.386" starttime="20181003 20:35:50.365"></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="20181003 20:35:53.405" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbtSgcdh6GI9EqqBAmyRr6nq5DeV06ZPyNym6BKs0xEsah9otfjgTMwYwE_MI0WYg8mz7DdqPdWgvfxus17DvFOVFm0CBy5b5lPt6gZWUuBTBeUQ2pjaAs9eHryT2Ly4NqIfMf6cSoARcmt73E3V3CLpsyEJISV_w_eO3y7EYfBL-SEXk'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181003 20:35:53.406" starttime="20181003 20:35:53.405"></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="20181003 20:35:53.406" 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 0x7f1c2c1f6410&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181003 20:35:53.407" starttime="20181003 20:35:53.406"></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="20181003 20:35:53.423" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/c52ec266-ec9f-4806-85c4-02782e0da09c, headers=None json=None</msg>
<msg timestamp="20181003 20:35:53.423" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:53.423" starttime="20181003 20:35:53.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>200</arg>
</arguments>
<msg timestamp="20181003 20:35:53.424" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:53.424" starttime="20181003 20:35:53.424"></status>
</kw>
<status status="PASS" endtime="20181003 20:35:53.424" starttime="20181003 20:35:53.407"></status>
</kw>
<status status="PASS" endtime="20181003 20:35:53.425" starttime="20181003 20:35:53.404"></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="20181003 20:35:53.426" level="INFO">{"subnet":{"network_id":"6f22fa7d-dda6-4a60-94df-66e3a06a3edd","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="20181003 20:35:53.426" starttime="20181003 20:35:53.426"></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="20181003 20:35:53.432" 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="20181003 20:35:55.434" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/subnets/c52ec266-ec9f-4806-85c4-02782e0da09c, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181003 20:35:55.435" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:55.435" starttime="20181003 20:35:53.426"></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="20181003 20:35:55.436" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:55.436" starttime="20181003 20:35:55.435"></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="20181003 20:35:55.437" level="INFO"></msg>
<status status="PASS" endtime="20181003 20:35:55.437" starttime="20181003 20:35:55.436"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181003 20:35:57.437" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181003 20:35:57.438" starttime="20181003 20:35:55.437"></status>
</kw>
<doc>Delete previously created subnet in OpenStack</doc>
<tags>
<tag>Delete Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181003 20:35:57.438" critical="yes" starttime="20181003 20:35:53.425"></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="20181003 20:35:57.448" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181003 20:35:57.449" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:57.449" starttime="20181003 20:35:57.440"></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="20181003 20:35:57.450" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:57.450" starttime="20181003 20:35:57.449"></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="20181003 20:35:57.451" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "1c52cca6-3756-47b6-9aba-6e9f4578bea7",
      "tenant_id" : "4e23da41fccf4e1382980a84cbc07b58",
      "project_id" : "4e23da41fccf4e1382980a84cbc07b58",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c",
      "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="20181003 20:35:57.451" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181003 20:35:57.452" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c', u'tenant_id': u'4e23da41fccf4e1382980a84cbc07b58', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20181003 20:35:57.452" starttime="20181003 20:35:57.450"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181003 20:35:57.453" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c', u'tenant_id': u'4e23da41fccf4e1382980a84cbc07b58', 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'4e23da41fccf4e1382980a84cbc07b58', u'id': u'1c52cca6-3756-47b6-9aba-6e9f4578bea7'}]}</msg>
<status status="PASS" endtime="20181003 20:35:57.453" starttime="20181003 20:35:57.452"></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="20181003 20:35:57.469" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/c52ec266-ec9f-4806-85c4-02782e0da09c, headers=None json=None</msg>
<msg timestamp="20181003 20:35:57.469" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:57.469" starttime="20181003 20:35:57.453"></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="20181003 20:35:57.470" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:57.470" starttime="20181003 20:35:57.469"></status>
</kw>
<doc>Check subnet deleted in OpenDaylight</doc>
<tags>
<tag>Check subnet deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181003 20:35:57.470" critical="yes" starttime="20181003 20:35:57.439"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181003 20:35:57.472" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181003 20:35:57.472" starttime="20181003 20:35:57.471"></status>
</kw>
<doc>Checking Subnets deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181003 20:35:57.472" starttime="20181003 20:35:53.387"></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="20181003 20:35:57.492" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbtSgcdh6GI9EqqBAmyRr6nq5DeV06ZPyNym6BKs0xEsah9otfjgTMwYwE_MI0WYg8mz7DdqPdWgvfxus17DvFOVFm0CBy5b5lPt6gZWUuBTBeUQ2pjaAs9eHryT2Ly4NqIfMf6cSoARcmt73E3V3CLpsyEJISV_w_eO3y7EYfBL-SEXk'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181003 20:35:57.492" starttime="20181003 20:35:57.491"></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="20181003 20:35:57.493" 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 0x7f1c2c181f50&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181003 20:35:57.493" starttime="20181003 20:35:57.492"></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="20181003 20:35:57.504" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/6f22fa7d-dda6-4a60-94df-66e3a06a3edd, headers=None json=None</msg>
<msg timestamp="20181003 20:35:57.504" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181003 20:35:57.504" starttime="20181003 20:35:57.494"></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="20181003 20:35:57.506" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:35:57.506" starttime="20181003 20:35:57.505"></status>
</kw>
<status status="PASS" endtime="20181003 20:35:57.506" starttime="20181003 20:35:57.493"></status>
</kw>
<status status="PASS" endtime="20181003 20:35:57.507" starttime="20181003 20:35:57.491"></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="20181003 20:35:57.508" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20181003 20:35:57.508" starttime="20181003 20:35:57.508"></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="20181003 20:35:57.515" 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="20181003 20:36:00.409" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/networks/6f22fa7d-dda6-4a60-94df-66e3a06a3edd, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181003 20:36:00.409" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181003 20:36:00.409" starttime="20181003 20:35:57.508"></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="20181003 20:36:00.410" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:36:00.410" starttime="20181003 20:36:00.409"></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="20181003 20:36:00.411" level="INFO"></msg>
<status status="PASS" endtime="20181003 20:36:00.411" starttime="20181003 20:36:00.410"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181003 20:36:02.412" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181003 20:36:02.412" starttime="20181003 20:36:00.411"></status>
</kw>
<doc>Delete network in OpenStack</doc>
<tags>
<tag>Delete Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181003 20:36:02.412" critical="yes" starttime="20181003 20:35:57.507"></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="20181003 20:36:02.423" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181003 20:36:02.424" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181003 20:36:02.424" starttime="20181003 20:36:02.413"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181003 20:36:02.424" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:36:02.424" starttime="20181003 20:36:02.424"></status>
</kw>
<kw name="To Json" library="RequestsLibrary">
<doc>Convert a string to a JSON object</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<assign>
<var>${ODLResult}</var>
</assign>
<msg timestamp="20181003 20:36:02.425" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c",
      "tenant_id" : "4e23da41fccf4e1382980a84cbc07b58",
      "project_id" : "4e23da41fccf4e1382980a84cbc07b58",
      "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="20181003 20:36:02.425" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181003 20:36:02.425" 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'4e23da41fccf4e1382980a84cbc07b58...</msg>
<status status="PASS" endtime="20181003 20:36:02.425" starttime="20181003 20:36:02.425"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181003 20:36:02.426" 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'4e23da41fccf4e1382980a84cbc07b58', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'4e23da41fccf4e1382980a84cbc07b58', u'id': u'43ce81fd-3ad1-409d-b98f-d8bb1b58fe1c'}, {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="20181003 20:36:02.426" starttime="20181003 20:36:02.426"></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="20181003 20:36:02.431" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/6f22fa7d-dda6-4a60-94df-66e3a06a3edd, headers=None json=None</msg>
<msg timestamp="20181003 20:36:02.431" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181003 20:36:02.431" starttime="20181003 20:36:02.426"></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="20181003 20:36:02.431" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181003 20:36:02.432" starttime="20181003 20:36:02.431"></status>
</kw>
<doc>Check network deleted in OpenDaylight</doc>
<tags>
<tag>Check Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181003 20:36:02.432" critical="yes" starttime="20181003 20:36:02.412"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181003 20:36:02.433" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181003 20:36:02.433" starttime="20181003 20:36:02.432"></status>
</kw>
<doc>Checking Network deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181003 20:36:02.433" starttime="20181003 20:35:57.473"></status>
</suite>
<kw type="teardown" name="Stop Suite">
<kw name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181003 20:36:02.436" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181003 20:36:02.436" starttime="20181003 20:36:02.436"></status>
</kw>
<status status="PASS" endtime="20181003 20:36:02.436" starttime="20181003 20:36:02.435"></status>
</kw>
<doc>Test suite for Neutron Plugin</doc>
<status status="PASS" endtime="20181003 20:36:02.436" starttime="20181003 20:35:40.425"></status>
</suite>
<status status="FAIL" endtime="20181003 20:36:02.442" starttime="20181003 20:35:39.656"></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="20181003 20:35:40.522" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20181003 20:35:40.536" 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="20181003 20:35:41.108" 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="20181003 20:35:41.362" 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="20181003 20:35:43.835" 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="20181003 20:35:43.958" 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="20181003 20:35:46.575" 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="20181003 20:35:46.758" 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="20181003 20:35:50.407" 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="20181003 20:35:53.432" 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="20181003 20:35:57.515" 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>
