<?xml version="1.0" encoding="UTF-8"?>
<robot generated="20181025 18:06:11.658" 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="20181025 18:06:11.721" 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 0x7f987d9759d0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181025 18:06:11.721" starttime="20181025 18:06:11.720"></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="20181025 18:06:12.331" 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 0x7f987d988690&gt;: Failed to establish a new connection: [Errno 111] Connection refused',))</msg>
<status status="FAIL" endtime="20181025 18:06:12.331" starttime="20181025 18:06:11.722"></status>
</kw>
<doc>Get the restconf modules, check 200 status and ietf-restconf presence.</doc>
<status status="FAIL" endtime="20181025 18:06:12.331" critical="yes" starttime="20181025 18:06:11.721">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 0x7f987d988690&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="20181025 18:06:12.332" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181025 18:06:12.332" starttime="20181025 18:06:12.332"></status>
</kw>
<doc>Test suite to verify Restconf is OK.</doc>
<status status="FAIL" endtime="20181025 18:06:12.332" starttime="20181025 18:06:11.687"></status>
</suite>
<status status="FAIL" endtime="20181025 18:06:12.334" starttime="20181025 18:06:11.685"></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="20181025 18:06:12.377" 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="20181025 18:06:12.378" starttime="20181025 18:06:12.377"></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="20181025 18:06:12.378" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20181025 18:06:12.384" 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="20181025 18:06:12.832" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:12.832" starttime="20181025 18:06:12.378"></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="20181025 18:06:12.878" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:12.878" starttime="20181025 18:06:12.832"></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="20181025 18:06:12.879" level="INFO">${TOKEN} = gAAAAABb0gYUWxC2eK1DyN1An3dcZsmzWaGEFcgJb4dQgfe2Go9Vd1u-aVgICuf6I4QdPYKBSs8zVj7ha0pL6pwrNpPMQbpeobUNWKTent719zHss5fovE1w7xc57ifeWTdyTw4vCgfX6BT1iyO8GlvY63qRM4dCI3q0k3ngj157doEU1lZNOio</msg>
<status status="PASS" endtime="20181025 18:06:12.879" starttime="20181025 18:06:12.879"></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="20181025 18:06:12.880" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABb0gYUWxC2eK1DyN1An3dcZsmzWaGEFcgJb4dQgfe2Go9Vd1u-aVgICuf6I4QdPYKBSs8zVj7ha0pL6pwrNpPMQbpeobUNWKTent719zHss5fovE1w7xc57ifeWTdyTw4vCgfX6BT1iyO8GlvY63qRM4dCI3q0k3ngj157doEU1lZNO...</msg>
<status status="PASS" endtime="20181025 18:06:12.880" starttime="20181025 18:06:12.879"></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="20181025 18:06:12.881" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABb0gYUWxC2eK1DyN1An3dcZsmzWaGEFcgJb4dQgfe2Go9Vd1u-aVgICuf6I4QdPYKBSs8zVj7ha0pL6pwrNpPMQbpeobUNWKTent719zHss5fovE1w7xc57ifeWTdyTw4vCgfX6BT1iyO8GlvY63qRM4dCI3q0k3ngj157doEU1lZNO...</msg>
<status status="PASS" endtime="20181025 18:06:12.881" starttime="20181025 18:06:12.880"></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="20181025 18:06:12.881" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABb0gYUWxC2eK1DyN1An3dcZsmzWaGEFcgJb4dQgfe2Go9Vd1u-aVgICuf6I4QdPYKBSs8zVj7ha0pL6pwrNpPMQbpeobUNWKTent719zHss5fovE1w7xc57ifeWTdyTw4vCgfX6BT1iyO8GlvY63qRM4dCI3q0k3ngj157doEU1lZNO...</msg>
<status status="PASS" endtime="20181025 18:06:12.881" starttime="20181025 18:06:12.881"></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="20181025 18:06:12.882" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABb0gYUWxC2eK1DyN1An3dcZsmzWaGEFcgJb4dQgfe2Go9Vd1u-aVgICuf6I4QdPYKBSs8zVj7ha0pL6pwrNpPMQbpeobUNWKTent719zHss5fovE1w7xc57ifeWTdyTw4vCgfX6BT1iyO8GlvY63qRM4dCI3q0k3ngj157doEU1lZNO...</msg>
<status status="PASS" endtime="20181025 18:06:12.882" starttime="20181025 18:06:12.881"></status>
</kw>
<status status="PASS" endtime="20181025 18:06:12.882" starttime="20181025 18:06:12.376"></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="20181025 18:06:12.898" 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 0x7f987e9f0610&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181025 18:06:12.899" starttime="20181025 18:06:12.897"></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="20181025 18:06:12.919" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181025 18:06:12.919" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:12.919" starttime="20181025 18:06:12.900"></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="20181025 18:06:12.920" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:12.920" starttime="20181025 18:06:12.919"></status>
</kw>
<doc>Get the complete list of networks</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181025 18:06:12.920" critical="yes" starttime="20181025 18:06:12.899"></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="20181025 18:06:12.946" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181025 18:06:12.946" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:12.946" starttime="20181025 18:06:12.921"></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="20181025 18:06:12.947" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:12.947" starttime="20181025 18:06:12.946"></status>
</kw>
<doc>Get the complete list of subnets</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181025 18:06:12.947" critical="yes" starttime="20181025 18:06:12.921"></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="20181025 18:06:12.961" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181025 18:06:12.961" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:12.961" starttime="20181025 18:06:12.948"></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="20181025 18:06:12.961" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:12.962" starttime="20181025 18:06:12.961"></status>
</kw>
<doc>Get the complete list of ports</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181025 18:06:12.962" critical="yes" starttime="20181025 18:06:12.947"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181025 18:06:12.963" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181025 18:06:12.963" starttime="20181025 18:06:12.962"></status>
</kw>
<status status="PASS" endtime="20181025 18:06:12.963" starttime="20181025 18:06:12.882"></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="20181025 18:06:12.982" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABb0gYUWxC2eK1DyN1An3dcZsmzWaGEFcgJb4dQgfe2Go9Vd1u-aVgICuf6I4QdPYKBSs8zVj7ha0pL6pwrNpPMQbpeobUNWKTent719zHss5fovE1w7xc57ifeWTdyTw4vCgfX6BT1iyO8GlvY63qRM4dCI3q0k3ngj157doEU1lZNOio', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181025 18:06:12.982" starttime="20181025 18:06:12.981"></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="20181025 18:06:12.984" level="INFO">{u'X-Auth-Token': 'gAAAAABb0gYUWxC2eK1DyN1An3dcZsmzWaGEFcgJb4dQgfe2Go9Vd1u-aVgICuf6I4QdPYKBSs8zVj7ha0pL6pwrNpPMQbpeobUNWKTent719zHss5fovE1w7xc57ifeWTdyTw4vCgfX6BT1iyO8GlvY63qRM4dCI3q0k3ngj157doEU1lZNOio', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181025 18:06:12.984" starttime="20181025 18:06:12.983"></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="20181025 18:06:12.989" 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="20181025 18:06:13.225" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/networks, headers=None json=None</msg>
<msg timestamp="20181025 18:06:13.225" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:13.225" starttime="20181025 18:06:12.984"></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="20181025 18:06:13.226" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:13.226" starttime="20181025 18:06:13.226"></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="20181025 18:06:13.227" 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":"60cc56f6-29f3-4f46-a307-a469354cb928","router:external":true,"availability_zone_hints":[],"availability_zones":["nova"],"ipv4_address_scope":null,"shared":false,"project_id":"4ed4441bba4f419f83ae52a22779d428","status":"ACTIVE","subnets":["e5084a26-be93-4db5-ad1a-eb8f21b42ee2"],"description":"","tags":[],"updated_at":"2018-10-25T17:44:20Z","is_default":false,"provider:segmentation_id":null,"name":"ext-net","admin_state_up":true,"tenant_id":"4ed4441bba4f419f83ae52a22779d428","created_at":"2018-10-25T17:44:14Z","provider:network_type":"flat"}]} </msg>
<msg timestamp="20181025 18:06:13.227" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181025 18:06:13.227" 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'60cc56f6-29f3-...</msg>
<status status="PASS" endtime="20181025 18:06:13.227" starttime="20181025 18:06:13.227"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181025 18:06:13.228" 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'60cc56f6-29f3-4f46-a307-a469354cb928', 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'4ed4441bba4f419f83ae52a22779d428', u'status': u'ACTIVE', u'subnets': [u'e5084a26-be93-4db5-ad1a-eb8f21b42ee2'], u'description': u'', u'tags': [], u'updated_at': u'2018-10-25T17:44:20Z', u'is_default': False, u'provider:segmentation_id': None, u'name': u'ext-net', u'admin_state_up': True, u'tenant_id': u'4ed4441bba4f419f83ae52a22779d428', u'created_at': u'2018-10-25T17:44:14Z', u'mtu': 1500}]}</msg>
<status status="PASS" endtime="20181025 18:06:13.228" starttime="20181025 18:06:13.228"></status>
</kw>
<doc>Checking OpenStack Neutron for known networks</doc>
<tags>
<tag>Network Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181025 18:06:13.228" critical="yes" starttime="20181025 18:06:12.982"></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="20181025 18:06:13.230" 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 0x7f987db4d350&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181025 18:06:13.230" starttime="20181025 18:06:13.229"></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="20181025 18:06:13.249" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181025 18:06:13.249" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:13.249" starttime="20181025 18:06:13.230"></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="20181025 18:06:13.249" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:13.250" starttime="20181025 18:06:13.249"></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="20181025 18:06:13.250" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
      "tenant_id" : "bd8db3a82b304083a8b3b3fd46401142",
      "project_id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
      "name" : "Sync Canary Network",
      "admin_state_up" : false,
      "status" : "ACTIVE",
      "shared" : false,
      "router:external" : false,
      "provider:network_type" : "flat",
      "segments" : [ ]
   }, {
      "id" : "60cc56f6-29f3-4f46-a307-a469354cb928",
      "tenant_id" : "4ed4441bba4f419f83ae52a22779d428",
      "project_id" : "4ed4441bba4f419f83ae52a22779d428",
      "revision_number" : 1,
      "name" : "ext-net",
      "admin_state_up" : true,
      "status" : "ACTIVE",
      "shared" : false,
      "router:external" : true,
      "provider:network_type" : "flat",
      "provider:physical_network" : "physnet",
      "segments" : [ ]
   } ]
} </msg>
<msg timestamp="20181025 18:06:13.250" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181025 18:06:13.250" level="INFO">${ODLResult} = {u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'name': u'Sync Canary Network', u'admin_state_up': False, u'tenant_id': u'bd8db3a82b304083a8b3b3fd46401142', u'segments': [], u'provid...</msg>
<status status="PASS" endtime="20181025 18:06:13.251" starttime="20181025 18:06:13.250"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181025 18:06:13.251" level="INFO">{u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'name': u'Sync Canary Network', u'admin_state_up': False, u'tenant_id': u'bd8db3a82b304083a8b3b3fd46401142', u'segments': [], u'provider:network_type': u'flat', u'shared': False, u'project_id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142', u'id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142'}, {u'status': u'ACTIVE', u'router:external': True, u'name': u'ext-net', u'provider:physical_network': u'physnet', u'admin_state_up': True, u'tenant_id': u'4ed4441bba4f419f83ae52a22779d428', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'4ed4441bba4f419f83ae52a22779d428', u'id': u'60cc56f6-29f3-4f46-a307-a469354cb928'}]}</msg>
<status status="PASS" endtime="20181025 18:06:13.251" starttime="20181025 18:06:13.251"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known networks</doc>
<tags>
<tag>Network Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181025 18:06:13.251" critical="yes" starttime="20181025 18:06:13.229"></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="20181025 18:06:13.253" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20181025 18:06:13.253" starttime="20181025 18:06:13.253"></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="20181025 18:06:13.255" 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="20181025 18:06:13.538" 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="20181025 18:06:13.540" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:13.540" starttime="20181025 18:06:13.253"></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="20181025 18:06:13.541" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:13.541" starttime="20181025 18:06:13.540"></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="20181025 18:06:13.542" 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":"d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b","router:external":false,"availability_zone_hints":[],"availability_zones":[],"ipv4_address_scope":null,"shared":false,"project_id":"4ed4441bba4f419f83ae52a22779d428","status":"ACTIVE","subnets":[],"description":"","tags":[],"updated_at":"2018-10-25T18:06:13Z","is_default":false,"provider:segmentation_id":17,"name":"odl_network","admin_state_up":true,"tenant_id":"4ed4441bba4f419f83ae52a22779d428","created_at":"2018-10-25T18:06:13Z","mtu":1450}} </msg>
<msg timestamp="20181025 18:06:13.542" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181025 18:06:13.542" 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'd1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b', u'ro...</msg>
<status status="PASS" endtime="20181025 18:06:13.542" starttime="20181025 18:06:13.541"></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="20181025 18:06:13.543" 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'd1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b', u'router:external...</msg>
<status status="PASS" endtime="20181025 18:06:13.543" starttime="20181025 18:06:13.542"></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="20181025 18:06:13.543" level="INFO">${NETID} = d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b</msg>
<status status="PASS" endtime="20181025 18:06:13.543" starttime="20181025 18:06:13.543"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181025 18:06:13.544" 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'd1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'4ed4441bba4f419f83ae52a22779d428', u'status': u'ACTIVE', u'subnets': [], u'description': u'', u'tags': [], u'updated_at': u'2018-10-25T18:06:13Z', u'is_default': False, u'provider:segmentation_id': 17, u'name': u'odl_network', u'admin_state_up': True, u'tenant_id': u'4ed4441bba4f419f83ae52a22779d428', u'created_at': u'2018-10-25T18:06:13Z', u'provider:network_type': u'vxlan'}</msg>
<status status="PASS" endtime="20181025 18:06:13.544" starttime="20181025 18:06:13.544"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${NETID}</arg>
</arguments>
<msg timestamp="20181025 18:06:13.544" level="INFO">d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b</msg>
<status status="PASS" endtime="20181025 18:06:13.545" starttime="20181025 18:06:13.544"></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="20181025 18:06:13.545" level="INFO">${NETID} = d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b</msg>
<status status="PASS" endtime="20181025 18:06:13.545" starttime="20181025 18:06:13.545"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181025 18:06:15.547" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181025 18:06:15.547" starttime="20181025 18:06:13.545"></status>
</kw>
<doc>Create new network in OpenStack</doc>
<tags>
<tag>Create Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181025 18:06:15.548" critical="yes" starttime="20181025 18:06:13.252"></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="20181025 18:06:15.558" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b, headers=None json=None</msg>
<msg timestamp="20181025 18:06:15.558" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:15.558" starttime="20181025 18:06:15.549"></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="20181025 18:06:15.559" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:15.559" starttime="20181025 18:06:15.558"></status>
</kw>
<doc>Check network created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181025 18:06:15.559" critical="yes" starttime="20181025 18:06:15.548"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181025 18:06:15.560" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181025 18:06:15.560" starttime="20181025 18:06:15.560"></status>
</kw>
<doc>Checking Network created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181025 18:06:15.560" starttime="20181025 18:06:12.964"></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="20181025 18:06:15.579" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABb0gYUWxC2eK1DyN1An3dcZsmzWaGEFcgJb4dQgfe2Go9Vd1u-aVgICuf6I4QdPYKBSs8zVj7ha0pL6pwrNpPMQbpeobUNWKTent719zHss5fovE1w7xc57ifeWTdyTw4vCgfX6BT1iyO8GlvY63qRM4dCI3q0k3ngj157doEU1lZNOio', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181025 18:06:15.580" starttime="20181025 18:06:15.579"></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="20181025 18:06:15.581" level="INFO">{u'X-Auth-Token': 'gAAAAABb0gYUWxC2eK1DyN1An3dcZsmzWaGEFcgJb4dQgfe2Go9Vd1u-aVgICuf6I4QdPYKBSs8zVj7ha0pL6pwrNpPMQbpeobUNWKTent719zHss5fovE1w7xc57ifeWTdyTw4vCgfX6BT1iyO8GlvY63qRM4dCI3q0k3ngj157doEU1lZNOio', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181025 18:06:15.581" starttime="20181025 18:06:15.581"></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="20181025 18:06:15.587" 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="20181025 18:06:15.680" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/subnets, headers=None json=None</msg>
<msg timestamp="20181025 18:06:15.680" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:15.680" starttime="20181025 18:06:15.581"></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="20181025 18:06:15.681" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:15.681" starttime="20181025 18:06:15.680"></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="20181025 18:06:15.681" level="INFO">To JSON using : content={"subnets":[{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"60cc56f6-29f3-4f46-a307-a469354cb928","tenant_id":"4ed4441bba4f419f83ae52a22779d428","created_at":"2018-10-25T17:44:20Z","dns_nameservers":[],"updated_at":"2018-10-25T17:44:20Z","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":"4ed4441bba4f419f83ae52a22779d428","id":"e5084a26-be93-4db5-ad1a-eb8f21b42ee2","subnetpool_id":null,"name":"ext-subnet"}]} </msg>
<msg timestamp="20181025 18:06:15.681" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181025 18:06:15.682" level="INFO">${OSResult} = {u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'60cc56f6-29f3-4f46-a307-a469354cb928', u'tenant_id': u'4ed4441bba4f419...</msg>
<status status="PASS" endtime="20181025 18:06:15.682" starttime="20181025 18:06:15.681"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181025 18:06:15.682" level="INFO">{u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'60cc56f6-29f3-4f46-a307-a469354cb928', u'tenant_id': u'4ed4441bba4f419f83ae52a22779d428', u'created_at': u'2018-10-25T17:44:20Z', u'dns_nameservers': [], u'updated_at': u'2018-10-25T17:44:20Z', 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'4ed4441bba4f419f83ae52a22779d428', u'id': u'e5084a26-be93-4db5-ad1a-eb8f21b42ee2', u'subnetpool_id': None, u'name': u'ext-subnet'}]}</msg>
<status status="PASS" endtime="20181025 18:06:15.682" starttime="20181025 18:06:15.682"></status>
</kw>
<doc>Checking OpenStack Neutron for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181025 18:06:15.682" critical="yes" starttime="20181025 18:06:15.580"></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="20181025 18:06:15.684" 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 0x7f987d9cf250&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181025 18:06:15.685" starttime="20181025 18:06:15.683"></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="20181025 18:06:15.696" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181025 18:06:15.696" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:15.696" starttime="20181025 18:06:15.685"></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="20181025 18:06:15.697" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:15.697" starttime="20181025 18:06:15.697"></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="20181025 18:06:15.698" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "e5084a26-be93-4db5-ad1a-eb8f21b42ee2",
      "tenant_id" : "4ed4441bba4f419f83ae52a22779d428",
      "project_id" : "4ed4441bba4f419f83ae52a22779d428",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "60cc56f6-29f3-4f46-a307-a469354cb928",
      "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="20181025 18:06:15.698" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181025 18:06:15.698" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'60cc56f6-29f3-4f46-a307-a469354cb928', u'tenant_id': u'4ed4441bba4f419f83ae52a22779d428', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20181025 18:06:15.698" starttime="20181025 18:06:15.697"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181025 18:06:15.699" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'60cc56f6-29f3-4f46-a307-a469354cb928', u'tenant_id': u'4ed4441bba4f419f83ae52a22779d428', 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'4ed4441bba4f419f83ae52a22779d428', u'id': u'e5084a26-be93-4db5-ad1a-eb8f21b42ee2'}]}</msg>
<status status="PASS" endtime="20181025 18:06:15.699" starttime="20181025 18:06:15.698"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181025 18:06:15.699" critical="yes" starttime="20181025 18:06:15.683"></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="20181025 18:06:15.700" level="INFO">{"subnet":{"network_id":"d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b","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="20181025 18:06:15.700" starttime="20181025 18:06:15.700"></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="20181025 18:06:15.702" 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="20181025 18:06:16.252" 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="20181025 18:06:16.252" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:16.252" starttime="20181025 18:06:15.700"></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="20181025 18:06:16.253" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:16.253" starttime="20181025 18:06:16.253"></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="20181025 18:06:16.254" level="INFO">To JSON using : content={"subnet":{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b","tenant_id":"4ed4441bba4f419f83ae52a22779d428","created_at":"2018-10-25T18:06:15Z","dns_nameservers":[],"updated_at":"2018-10-25T18:06:15Z","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":"4ed4441bba4f419f83ae52a22779d428","id":"60b86cd3-4717-4317-9d44-a13bd0503ccc","subnetpool_id":null,"name":""}} </msg>
<msg timestamp="20181025 18:06:16.254" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181025 18:06:16.254" level="INFO">${result} = {u'subnet': {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'd1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b', u'tenant_id': u'4ed4441bba4f419f83ae52a22779d428', u'...</msg>
<status status="PASS" endtime="20181025 18:06:16.254" starttime="20181025 18:06:16.253"></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="20181025 18:06:16.255" level="INFO">${result} = {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'd1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b', u'tenant_id': u'4ed4441bba4f419f83ae52a22779d428', u'created_at':...</msg>
<status status="PASS" endtime="20181025 18:06:16.255" starttime="20181025 18:06:16.254"></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="20181025 18:06:16.255" level="INFO">${SUBNETID} = 60b86cd3-4717-4317-9d44-a13bd0503ccc</msg>
<status status="PASS" endtime="20181025 18:06:16.255" starttime="20181025 18:06:16.255"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181025 18:06:16.256" level="INFO">{u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'd1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b', u'tenant_id': u'4ed4441bba4f419f83ae52a22779d428', u'created_at': u'2018-10-25T18:06:15Z', u'dns_nameservers': [], u'updated_at': u'2018-10-25T18:06:15Z', 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'4ed4441bba4f419f83ae52a22779d428', u'id': u'60b86cd3-4717-4317-9d44-a13bd0503ccc', u'subnetpool_id': None, u'name': u''}</msg>
<status status="PASS" endtime="20181025 18:06:16.256" starttime="20181025 18:06:16.255"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${SUBNETID}</arg>
</arguments>
<msg timestamp="20181025 18:06:16.256" level="INFO">60b86cd3-4717-4317-9d44-a13bd0503ccc</msg>
<status status="PASS" endtime="20181025 18:06:16.256" starttime="20181025 18:06:16.256"></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="20181025 18:06:16.257" level="INFO">${SUBNETID} = 60b86cd3-4717-4317-9d44-a13bd0503ccc</msg>
<status status="PASS" endtime="20181025 18:06:16.257" starttime="20181025 18:06:16.257"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181025 18:06:18.258" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181025 18:06:18.258" starttime="20181025 18:06:16.257"></status>
</kw>
<doc>Create new subnet in OpenStack</doc>
<tags>
<tag>Create Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181025 18:06:18.258" critical="yes" starttime="20181025 18:06:15.699"></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="20181025 18:06:18.268" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/60b86cd3-4717-4317-9d44-a13bd0503ccc, headers=None json=None</msg>
<msg timestamp="20181025 18:06:18.268" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:18.268" starttime="20181025 18:06:18.259"></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="20181025 18:06:18.269" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:18.269" starttime="20181025 18:06:18.268"></status>
</kw>
<doc>Check new subnet created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>subnet OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181025 18:06:18.269" critical="yes" starttime="20181025 18:06:18.258"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181025 18:06:18.271" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181025 18:06:18.271" starttime="20181025 18:06:18.270"></status>
</kw>
<doc>Checking Subnets created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181025 18:06:18.271" starttime="20181025 18:06:15.562"></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="20181025 18:06:18.289" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABb0gYUWxC2eK1DyN1An3dcZsmzWaGEFcgJb4dQgfe2Go9Vd1u-aVgICuf6I4QdPYKBSs8zVj7ha0pL6pwrNpPMQbpeobUNWKTent719zHss5fovE1w7xc57ifeWTdyTw4vCgfX6BT1iyO8GlvY63qRM4dCI3q0k3ngj157doEU1lZNOio', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181025 18:06:18.290" starttime="20181025 18:06:18.289"></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="20181025 18:06:18.292" level="INFO">{u'X-Auth-Token': 'gAAAAABb0gYUWxC2eK1DyN1An3dcZsmzWaGEFcgJb4dQgfe2Go9Vd1u-aVgICuf6I4QdPYKBSs8zVj7ha0pL6pwrNpPMQbpeobUNWKTent719zHss5fovE1w7xc57ifeWTdyTw4vCgfX6BT1iyO8GlvY63qRM4dCI3q0k3ngj157doEU1lZNOio', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181025 18:06:18.292" starttime="20181025 18:06:18.291"></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="20181025 18:06:18.297" 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="20181025 18:06:18.405" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/ports, headers=None json=None</msg>
<msg timestamp="20181025 18:06:18.405" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:18.405" starttime="20181025 18:06:18.292"></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="20181025 18:06:18.406" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:18.406" starttime="20181025 18:06:18.405"></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="20181025 18:06:18.407" level="INFO">To JSON using : content={"ports":[{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-25T18:06:17Z","device_owner":"network:dhcp","revision_number":2,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"60b86cd3-4717-4317-9d44-a13bd0503ccc","ip_address":"172.16.64.20"}],"id":"2254c847-7f83-4d97-8235-72f9b0af1b94","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"bd2047ad-4de0-4c84-a880-6e87c924b57b","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:e7:c8:2f","project_id":"4ed4441bba4f419f83ae52a22779d428","status":"ACTIVE","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b","name":"","admin_state_up":true,"network_id":"d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b","tenant_id":"4ed4441bba4f419f83ae52a22779d428","created_at":"2018-10-25T18:06:16Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-25T17:44:22Z","device_owner":"network:dhcp","revision_number":2,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"e5084a26-be93-4db5-ad1a-eb8f21b42ee2","ip_address":"192.16.1.101"}],"id":"b5cdf18f-fe79-4970-92cd-fb08e9812000","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"bd2047ad-4de0-4c84-a880-6e87c924b57b","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:60:25:ce","project_id":"4ed4441bba4f419f83ae52a22779d428","status":"ACTIVE","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-60cc56f6-29f3-4f46-a307-a469354cb928","name":"","admin_state_up":true,"network_id":"60cc56f6-29f3-4f46-a307-a469354cb928","tenant_id":"4ed4441bba4f419f83ae52a22779d428","created_at":"2018-10-25T17:44:22Z","binding:vnic_type":"normal"}]} </msg>
<msg timestamp="20181025 18:06:18.407" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181025 18:06:18.407" level="INFO">${OSResult} = {u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-25T18:06:17Z', u'device_owner': u'network:dhcp', u'revision_number': 2, u'port_security_enabled': False, u'b...</msg>
<status status="PASS" endtime="20181025 18:06:18.407" starttime="20181025 18:06:18.406"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181025 18:06:18.408" level="INFO">{u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-25T18:06:17Z', 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'60b86cd3-4717-4317-9d44-a13bd0503ccc', u'ip_address': u'172.16.64.20'}], u'id': u'2254c847-7f83-4d97-8235-72f9b0af1b94', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'bd2047ad-4de0-4c84-a880-6e87c924b57b', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:e7:c8:2f', u'project_id': u'4ed4441bba4f419f83ae52a22779d428', u'status': u'ACTIVE', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b', u'name': u'', u'admin_state_up': True, u'network_id': u'd1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b', u'tenant_id': u'4ed4441bba4f419f83ae52a22779d428', u'created_at': u'2018-10-25T18:06:16Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-25T17:44:22Z', 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'e5084a26-be93-4db5-ad1a-eb8f21b42ee2', u'ip_address': u'192.16.1.101'}], u'id': u'b5cdf18f-fe79-4970-92cd-fb08e9812000', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'bd2047ad-4de0-4c84-a880-6e87c924b57b', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:60:25:ce', u'project_id': u'4ed4441bba4f419f83ae52a22779d428', u'status': u'ACTIVE', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-60cc56f6-29f3-4f46-a307-a469354cb928', u'name': u'', u'admin_state_up': True, u'network_id': u'60cc56f6-29f3-4f46-a307-a469354cb928', u'tenant_id': u'4ed4441bba4f419f83ae52a22779d428', u'created_at': u'2018-10-25T17:44:22Z', u'binding:vnic_type': u'normal'}]}</msg>
<status status="PASS" endtime="20181025 18:06:18.408" starttime="20181025 18:06:18.407"></status>
</kw>
<doc>Checking OpenStack Neutron for known ports</doc>
<tags>
<tag>Ports Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181025 18:06:18.408" critical="yes" starttime="20181025 18:06:18.290"></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="20181025 18:06:18.410" 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 0x7f987d9dcd50&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181025 18:06:18.411" starttime="20181025 18:06:18.409"></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="20181025 18:06:18.430" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181025 18:06:18.430" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:18.431" starttime="20181025 18:06:18.411"></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="20181025 18:06:18.431" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:18.431" starttime="20181025 18:06:18.431"></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="20181025 18:06:18.432" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "2254c847-7f83-4d97-8235-72f9b0af1b94",
      "tenant_id" : "4ed4441bba4f419f83ae52a22779d428",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b",
      "mac_address" : "fa:16:3e:e7:c8:2f",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "60b86cd3-4717-4317-9d44-a13bd0503ccc"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "bd2047ad-4de0-4c84-a880-6e87c924b57b",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "b5cdf18f-fe79-4970-92cd-fb08e9812000",
      "tenant_id" : "4ed4441bba4f419f83ae52a22779d428",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "60cc56f6-29f3-4f46-a307-a469354cb928",
      "mac_address" : "fa:16:3e:60:25:ce",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "e5084a26-be93-4db5-ad1a-eb8f21b42ee2"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-60cc56f6-29f3-4f46-a307-a469354cb928",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "bd2047ad-4de0-4c84-a880-6e87c924b57b",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20181025 18:06:18.432" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181025 18:06:18.432" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'bd2047ad-4de0-4c84-a880-6e87c924b57b'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20181025 18:06:18.432" starttime="20181025 18:06:18.431"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181025 18:06:18.433" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'bd2047ad-4de0-4c84-a880-6e87c924b57b'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'd1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b', u'tenant_id': u'4ed4441bba4f419f83ae52a22779d428', 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:e7:c8:2f', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'60b86cd3-4717-4317-9d44-a13bd0503ccc', u'ip_address': u'172.16.64.20'}], u'id': u'2254c847-7f83-4d97-8235-72f9b0af1b94', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'bd2047ad-4de0-4c84-a880-6e87c924b57b'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'60cc56f6-29f3-4f46-a307-a469354cb928', u'tenant_id': u'4ed4441bba4f419f83ae52a22779d428', 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:60:25:ce', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'e5084a26-be93-4db5-ad1a-eb8f21b42ee2', u'ip_address': u'192.16.1.101'}], u'id': u'b5cdf18f-fe79-4970-92cd-fb08e9812000', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-60cc56f6-29f3-4f46-a307-a469354cb928'}]}</msg>
<status status="PASS" endtime="20181025 18:06:18.433" starttime="20181025 18:06:18.432"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known ports</doc>
<tags>
<tag>Ports Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181025 18:06:18.433" critical="yes" starttime="20181025 18:06:18.408"></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="20181025 18:06:18.435" level="INFO">{"port":{"network_id":"d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b","admin_state_up": true}}</msg>
<status status="PASS" endtime="20181025 18:06:18.435" starttime="20181025 18:06:18.434"></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="20181025 18:06:18.437" 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="20181025 18:06:19.752" 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="20181025 18:06:19.753" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:19.753" starttime="20181025 18:06:18.435"></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="20181025 18:06:19.754" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:19.754" starttime="20181025 18:06:19.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>${result}</var>
</assign>
<msg timestamp="20181025 18:06:19.756" level="INFO">To JSON using : content={"port":{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-25T18:06:19Z","device_owner":"","revision_number":1,"binding:profile":{},"port_security_enabled":true,"fixed_ips":[{"subnet_id":"60b86cd3-4717-4317-9d44-a13bd0503ccc","ip_address":"172.16.64.21"}],"id":"4d393b94-5f3c-4b66-9d89-10a9d129cdbd","security_groups":["9719d304-7bd8-4921-8562-3cc5580c60cc"],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:5c:95:1d","project_id":"4ed4441bba4f419f83ae52a22779d428","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"","name":"","admin_state_up":true,"network_id":"d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b","tenant_id":"4ed4441bba4f419f83ae52a22779d428","created_at":"2018-10-25T18:06:19Z","binding:vnic_type":"normal"}} </msg>
<msg timestamp="20181025 18:06:19.756" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181025 18:06:19.756" level="INFO">${result} = {u'port': {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-25T18:06:19Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': ...</msg>
<status status="PASS" endtime="20181025 18:06:19.756" starttime="20181025 18:06:19.755"></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="20181025 18:06:19.757" level="INFO">${result} = {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-25T18:06:19Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fi...</msg>
<status status="PASS" endtime="20181025 18:06:19.757" starttime="20181025 18:06:19.757"></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="20181025 18:06:19.758" level="INFO">${PORTID} = 4d393b94-5f3c-4b66-9d89-10a9d129cdbd</msg>
<status status="PASS" endtime="20181025 18:06:19.758" starttime="20181025 18:06:19.757"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181025 18:06:19.758" level="INFO">{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-25T18:06:19Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fixed_ips': [{u'subnet_id': u'60b86cd3-4717-4317-9d44-a13bd0503ccc', u'ip_address': u'172.16.64.21'}], u'id': u'4d393b94-5f3c-4b66-9d89-10a9d129cdbd', u'security_groups': [u'9719d304-7bd8-4921-8562-3cc5580c60cc'], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:5c:95:1d', u'project_id': u'4ed4441bba4f419f83ae52a22779d428', 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'd1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b', u'tenant_id': u'4ed4441bba4f419f83ae52a22779d428', u'created_at': u'2018-10-25T18:06:19Z', u'binding:vnic_type': u'normal'}</msg>
<status status="PASS" endtime="20181025 18:06:19.758" starttime="20181025 18:06:19.758"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${PORTID}</arg>
</arguments>
<msg timestamp="20181025 18:06:19.759" level="INFO">4d393b94-5f3c-4b66-9d89-10a9d129cdbd</msg>
<status status="PASS" endtime="20181025 18:06:19.759" starttime="20181025 18:06:19.758"></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="20181025 18:06:19.760" level="INFO">${PORTID} = 4d393b94-5f3c-4b66-9d89-10a9d129cdbd</msg>
<status status="PASS" endtime="20181025 18:06:19.760" starttime="20181025 18:06:19.759"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181025 18:06:21.760" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181025 18:06:21.761" starttime="20181025 18:06:19.760"></status>
</kw>
<doc>Create new port in OpenStack</doc>
<tags>
<tag>Create port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181025 18:06:21.761" critical="yes" starttime="20181025 18:06:18.434"></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="20181025 18:06:21.774" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/4d393b94-5f3c-4b66-9d89-10a9d129cdbd, headers=None json=None</msg>
<msg timestamp="20181025 18:06:21.774" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:21.774" starttime="20181025 18:06:21.762"></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="20181025 18:06:21.775" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:21.775" starttime="20181025 18:06:21.775"></status>
</kw>
<doc>Check new port created in OpenDaylight</doc>
<tags>
<tag>Check port OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181025 18:06:21.775" critical="yes" starttime="20181025 18:06:21.761"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181025 18:06:21.776" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181025 18:06:21.776" starttime="20181025 18:06:21.776"></status>
</kw>
<doc>Checking Port created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181025 18:06:21.777" starttime="20181025 18:06:18.272"></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="20181025 18:06:21.796" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABb0gYUWxC2eK1DyN1An3dcZsmzWaGEFcgJb4dQgfe2Go9Vd1u-aVgICuf6I4QdPYKBSs8zVj7ha0pL6pwrNpPMQbpeobUNWKTent719zHss5fovE1w7xc57ifeWTdyTw4vCgfX6BT1iyO8GlvY63qRM4dCI3q0k3ngj157doEU1lZNOio'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181025 18:06:21.796" starttime="20181025 18:06:21.795"></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="20181025 18:06:21.797" 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 0x7f987d86e650&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181025 18:06:21.798" starttime="20181025 18:06:21.796"></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="20181025 18:06:21.814" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/4d393b94-5f3c-4b66-9d89-10a9d129cdbd, headers=None json=None</msg>
<msg timestamp="20181025 18:06:21.814" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:21.814" starttime="20181025 18:06:21.798"></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="20181025 18:06:21.815" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:21.815" starttime="20181025 18:06:21.814"></status>
</kw>
<status status="PASS" endtime="20181025 18:06:21.815" starttime="20181025 18:06:21.798"></status>
</kw>
<status status="PASS" endtime="20181025 18:06:21.815" starttime="20181025 18:06:21.795"></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="20181025 18:06:21.816" level="INFO">{"port":{"network_id":"d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b","admin_state_up": true}}</msg>
<status status="PASS" endtime="20181025 18:06:21.816" starttime="20181025 18:06:21.816"></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="20181025 18:06:21.822" 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="20181025 18:06:22.876" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/ports/4d393b94-5f3c-4b66-9d89-10a9d129cdbd, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181025 18:06:22.877" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:22.877" starttime="20181025 18:06:21.816"></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="20181025 18:06:22.878" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:22.878" starttime="20181025 18:06:22.877"></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="20181025 18:06:22.878" level="INFO"></msg>
<status status="PASS" endtime="20181025 18:06:22.878" starttime="20181025 18:06:22.878"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181025 18:06:24.879" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181025 18:06:24.879" starttime="20181025 18:06:22.878"></status>
</kw>
<doc>Delete previously created port in OpenStack</doc>
<tags>
<tag>Delete port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181025 18:06:24.879" critical="yes" starttime="20181025 18:06:21.815"></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="20181025 18:06:24.897" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181025 18:06:24.897" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:24.897" starttime="20181025 18:06:24.881"></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="20181025 18:06:24.898" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:24.898" starttime="20181025 18:06:24.897"></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="20181025 18:06:24.899" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "2254c847-7f83-4d97-8235-72f9b0af1b94",
      "tenant_id" : "4ed4441bba4f419f83ae52a22779d428",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b",
      "mac_address" : "fa:16:3e:e7:c8:2f",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "60b86cd3-4717-4317-9d44-a13bd0503ccc"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "bd2047ad-4de0-4c84-a880-6e87c924b57b",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "b5cdf18f-fe79-4970-92cd-fb08e9812000",
      "tenant_id" : "4ed4441bba4f419f83ae52a22779d428",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "60cc56f6-29f3-4f46-a307-a469354cb928",
      "mac_address" : "fa:16:3e:60:25:ce",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "e5084a26-be93-4db5-ad1a-eb8f21b42ee2"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-60cc56f6-29f3-4f46-a307-a469354cb928",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "bd2047ad-4de0-4c84-a880-6e87c924b57b",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20181025 18:06:24.899" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181025 18:06:24.899" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'bd2047ad-4de0-4c84-a880-6e87c924b57b'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20181025 18:06:24.899" starttime="20181025 18:06:24.898"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181025 18:06:24.900" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'bd2047ad-4de0-4c84-a880-6e87c924b57b'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'd1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b', u'tenant_id': u'4ed4441bba4f419f83ae52a22779d428', 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:e7:c8:2f', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'60b86cd3-4717-4317-9d44-a13bd0503ccc', u'ip_address': u'172.16.64.20'}], u'id': u'2254c847-7f83-4d97-8235-72f9b0af1b94', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'bd2047ad-4de0-4c84-a880-6e87c924b57b'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'60cc56f6-29f3-4f46-a307-a469354cb928', u'tenant_id': u'4ed4441bba4f419f83ae52a22779d428', 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:60:25:ce', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'e5084a26-be93-4db5-ad1a-eb8f21b42ee2', u'ip_address': u'192.16.1.101'}], u'id': u'b5cdf18f-fe79-4970-92cd-fb08e9812000', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-60cc56f6-29f3-4f46-a307-a469354cb928'}]}</msg>
<status status="PASS" endtime="20181025 18:06:24.900" starttime="20181025 18:06:24.899"></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="20181025 18:06:24.910" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/4d393b94-5f3c-4b66-9d89-10a9d129cdbd, headers=None json=None</msg>
<msg timestamp="20181025 18:06:24.910" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:24.911" starttime="20181025 18:06:24.900"></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="20181025 18:06:24.911" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:24.911" starttime="20181025 18:06:24.911"></status>
</kw>
<doc>Check port deleted in OpenDaylight</doc>
<tags>
<tag>Check port deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181025 18:06:24.911" critical="yes" starttime="20181025 18:06:24.880"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181025 18:06:24.912" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181025 18:06:24.912" starttime="20181025 18:06:24.912"></status>
</kw>
<doc>Checking Port deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181025 18:06:24.913" starttime="20181025 18:06:21.778"></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="20181025 18:06:24.932" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABb0gYUWxC2eK1DyN1An3dcZsmzWaGEFcgJb4dQgfe2Go9Vd1u-aVgICuf6I4QdPYKBSs8zVj7ha0pL6pwrNpPMQbpeobUNWKTent719zHss5fovE1w7xc57ifeWTdyTw4vCgfX6BT1iyO8GlvY63qRM4dCI3q0k3ngj157doEU1lZNOio'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181025 18:06:24.933" starttime="20181025 18:06:24.932"></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="20181025 18:06:24.934" 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 0x7f987d835650&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181025 18:06:24.934" starttime="20181025 18:06:24.933"></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="20181025 18:06:24.952" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/60b86cd3-4717-4317-9d44-a13bd0503ccc, headers=None json=None</msg>
<msg timestamp="20181025 18:06:24.952" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:24.952" starttime="20181025 18:06:24.935"></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="20181025 18:06:24.953" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:24.953" starttime="20181025 18:06:24.953"></status>
</kw>
<status status="PASS" endtime="20181025 18:06:24.953" starttime="20181025 18:06:24.935"></status>
</kw>
<status status="PASS" endtime="20181025 18:06:24.953" starttime="20181025 18:06:24.932"></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="20181025 18:06:24.954" level="INFO">{"subnet":{"network_id":"d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b","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="20181025 18:06:24.955" starttime="20181025 18:06:24.954"></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="20181025 18:06:24.959" 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="20181025 18:06:26.227" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/subnets/60b86cd3-4717-4317-9d44-a13bd0503ccc, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181025 18:06:26.227" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:26.227" starttime="20181025 18:06:24.955"></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="20181025 18:06:26.228" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:26.228" starttime="20181025 18:06:26.228"></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="20181025 18:06:26.229" level="INFO"></msg>
<status status="PASS" endtime="20181025 18:06:26.229" starttime="20181025 18:06:26.228"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181025 18:06:28.230" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181025 18:06:28.232" starttime="20181025 18:06:26.229"></status>
</kw>
<doc>Delete previously created subnet in OpenStack</doc>
<tags>
<tag>Delete Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181025 18:06:28.233" critical="yes" starttime="20181025 18:06:24.953"></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="20181025 18:06:28.249" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181025 18:06:28.250" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:28.250" starttime="20181025 18:06:28.235"></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="20181025 18:06:28.251" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:28.251" starttime="20181025 18:06:28.250"></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="20181025 18:06:28.251" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "e5084a26-be93-4db5-ad1a-eb8f21b42ee2",
      "tenant_id" : "4ed4441bba4f419f83ae52a22779d428",
      "project_id" : "4ed4441bba4f419f83ae52a22779d428",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "60cc56f6-29f3-4f46-a307-a469354cb928",
      "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="20181025 18:06:28.251" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181025 18:06:28.252" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'60cc56f6-29f3-4f46-a307-a469354cb928', u'tenant_id': u'4ed4441bba4f419f83ae52a22779d428', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20181025 18:06:28.252" starttime="20181025 18:06:28.251"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181025 18:06:28.253" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'60cc56f6-29f3-4f46-a307-a469354cb928', u'tenant_id': u'4ed4441bba4f419f83ae52a22779d428', 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'4ed4441bba4f419f83ae52a22779d428', u'id': u'e5084a26-be93-4db5-ad1a-eb8f21b42ee2'}]}</msg>
<status status="PASS" endtime="20181025 18:06:28.253" starttime="20181025 18:06:28.252"></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="20181025 18:06:28.261" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/60b86cd3-4717-4317-9d44-a13bd0503ccc, headers=None json=None</msg>
<msg timestamp="20181025 18:06:28.261" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:28.261" starttime="20181025 18:06:28.253"></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="20181025 18:06:28.262" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:28.262" starttime="20181025 18:06:28.262"></status>
</kw>
<doc>Check subnet deleted in OpenDaylight</doc>
<tags>
<tag>Check subnet deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181025 18:06:28.263" critical="yes" starttime="20181025 18:06:28.233"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181025 18:06:28.264" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181025 18:06:28.264" starttime="20181025 18:06:28.264"></status>
</kw>
<doc>Checking Subnets deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181025 18:06:28.264" starttime="20181025 18:06:24.914"></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="20181025 18:06:28.284" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABb0gYUWxC2eK1DyN1An3dcZsmzWaGEFcgJb4dQgfe2Go9Vd1u-aVgICuf6I4QdPYKBSs8zVj7ha0pL6pwrNpPMQbpeobUNWKTent719zHss5fovE1w7xc57ifeWTdyTw4vCgfX6BT1iyO8GlvY63qRM4dCI3q0k3ngj157doEU1lZNOio'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181025 18:06:28.284" starttime="20181025 18:06:28.283"></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="20181025 18:06:28.285" 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 0x7f987d83dfd0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181025 18:06:28.285" starttime="20181025 18:06:28.284"></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="20181025 18:06:28.295" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b, headers=None json=None</msg>
<msg timestamp="20181025 18:06:28.296" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:28.296" starttime="20181025 18:06:28.286"></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="20181025 18:06:28.296" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:28.296" starttime="20181025 18:06:28.296"></status>
</kw>
<status status="PASS" endtime="20181025 18:06:28.297" starttime="20181025 18:06:28.285"></status>
</kw>
<status status="PASS" endtime="20181025 18:06:28.297" starttime="20181025 18:06:28.283"></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="20181025 18:06:28.298" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20181025 18:06:28.298" starttime="20181025 18:06:28.297"></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="20181025 18:06:28.303" 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="20181025 18:06:29.521" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/networks/d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181025 18:06:29.522" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:29.522" starttime="20181025 18:06:28.298"></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="20181025 18:06:29.523" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:29.523" starttime="20181025 18:06:29.522"></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="20181025 18:06:29.523" level="INFO"></msg>
<status status="PASS" endtime="20181025 18:06:29.523" starttime="20181025 18:06:29.523"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181025 18:06:31.524" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181025 18:06:31.524" starttime="20181025 18:06:29.523"></status>
</kw>
<doc>Delete network in OpenStack</doc>
<tags>
<tag>Delete Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181025 18:06:31.524" critical="yes" starttime="20181025 18:06:28.297"></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="20181025 18:06:31.543" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181025 18:06:31.543" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:31.543" starttime="20181025 18:06:31.526"></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="20181025 18:06:31.544" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:31.544" starttime="20181025 18:06:31.543"></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="20181025 18:06:31.545" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
      "tenant_id" : "bd8db3a82b304083a8b3b3fd46401142",
      "project_id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
      "name" : "Sync Canary Network",
      "admin_state_up" : false,
      "status" : "ACTIVE",
      "shared" : false,
      "router:external" : false,
      "provider:network_type" : "flat",
      "segments" : [ ]
   }, {
      "id" : "60cc56f6-29f3-4f46-a307-a469354cb928",
      "tenant_id" : "4ed4441bba4f419f83ae52a22779d428",
      "project_id" : "4ed4441bba4f419f83ae52a22779d428",
      "revision_number" : 1,
      "name" : "ext-net",
      "admin_state_up" : true,
      "status" : "ACTIVE",
      "shared" : false,
      "router:external" : true,
      "provider:network_type" : "flat",
      "provider:physical_network" : "physnet",
      "segments" : [ ]
   } ]
} </msg>
<msg timestamp="20181025 18:06:31.545" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181025 18:06:31.545" level="INFO">${ODLResult} = {u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'name': u'Sync Canary Network', u'admin_state_up': False, u'tenant_id': u'bd8db3a82b304083a8b3b3fd46401142', u'segments': [], u'provid...</msg>
<status status="PASS" endtime="20181025 18:06:31.545" starttime="20181025 18:06:31.544"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181025 18:06:31.545" level="INFO">{u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'name': u'Sync Canary Network', u'admin_state_up': False, u'tenant_id': u'bd8db3a82b304083a8b3b3fd46401142', u'segments': [], u'provider:network_type': u'flat', u'shared': False, u'project_id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142', u'id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142'}, {u'status': u'ACTIVE', u'router:external': True, u'name': u'ext-net', u'provider:physical_network': u'physnet', u'admin_state_up': True, u'tenant_id': u'4ed4441bba4f419f83ae52a22779d428', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'4ed4441bba4f419f83ae52a22779d428', u'id': u'60cc56f6-29f3-4f46-a307-a469354cb928'}]}</msg>
<status status="PASS" endtime="20181025 18:06:31.546" starttime="20181025 18:06:31.545"></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="20181025 18:06:31.553" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/d1be20a6-a9c8-400d-95fb-ab4b0ba1ab5b, headers=None json=None</msg>
<msg timestamp="20181025 18:06:31.553" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181025 18:06:31.553" starttime="20181025 18:06:31.546"></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="20181025 18:06:31.554" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181025 18:06:31.554" starttime="20181025 18:06:31.553"></status>
</kw>
<doc>Check network deleted in OpenDaylight</doc>
<tags>
<tag>Check Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181025 18:06:31.554" critical="yes" starttime="20181025 18:06:31.525"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181025 18:06:31.555" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181025 18:06:31.556" starttime="20181025 18:06:31.555"></status>
</kw>
<doc>Checking Network deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181025 18:06:31.556" starttime="20181025 18:06:28.266"></status>
</suite>
<kw type="teardown" name="Stop Suite">
<kw name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181025 18:06:31.560" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181025 18:06:31.560" starttime="20181025 18:06:31.559"></status>
</kw>
<status status="PASS" endtime="20181025 18:06:31.560" starttime="20181025 18:06:31.559"></status>
</kw>
<doc>Test suite for Neutron Plugin</doc>
<status status="PASS" endtime="20181025 18:06:31.560" starttime="20181025 18:06:12.335"></status>
</suite>
<status status="FAIL" endtime="20181025 18:06:31.567" starttime="20181025 18:06:11.659"></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="20181025 18:06:12.378" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20181025 18:06:12.384" 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="20181025 18:06:12.989" 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="20181025 18:06:13.255" 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="20181025 18:06:15.587" 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="20181025 18:06:15.702" 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="20181025 18:06:18.297" 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="20181025 18:06:18.437" 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="20181025 18:06:21.822" 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="20181025 18:06:24.959" 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="20181025 18:06:28.303" 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>
