<?xml version="1.0" encoding="UTF-8"?>
<robot generated="20180921 17:43:04.490" 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="20180921 17:43:04.577" 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 0x7f136a9ac550&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180921 17:43:04.578" starttime="20180921 17:43:04.577"></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="20180921 17:43:05.199" 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 0x7f136a9e2310&gt;: Failed to establish a new connection: [Errno 111] Connection refused',))</msg>
<status status="FAIL" endtime="20180921 17:43:05.199" starttime="20180921 17:43:04.579"></status>
</kw>
<doc>Get the restconf modules, check 200 status and ietf-restconf presence.</doc>
<status status="FAIL" endtime="20180921 17:43:05.199" critical="yes" starttime="20180921 17:43:04.578">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 0x7f136a9e2310&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="20180921 17:43:05.200" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180921 17:43:05.201" starttime="20180921 17:43:05.200"></status>
</kw>
<doc>Test suite to verify Restconf is OK.</doc>
<status status="FAIL" endtime="20180921 17:43:05.201" starttime="20180921 17:43:04.529"></status>
</suite>
<status status="FAIL" endtime="20180921 17:43:05.202" starttime="20180921 17:43:04.527"></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="20180921 17:43:05.309" 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="20180921 17:43:05.310" starttime="20180921 17:43:05.309"></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="20180921 17:43:05.310" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20180921 17:43:05.315" 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="20180921 17:43:05.716" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:05.716" starttime="20180921 17:43:05.310"></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="20180921 17:43:05.717" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:05.717" starttime="20180921 17:43:05.717"></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="20180921 17:43:05.718" level="INFO">${TOKEN} = gAAAAABbpS2pPo8OFCB5LlkReuZlBjjdzeRWvpYhwIX4hg8jAEE53PP0q2gRq_U1ET3K0p0QkWPxgSX-x17D-nbWbeFmEx8knLVNwCYbLR9TeF06TG-jST1zSFI_pNmUCbZvgXjrbu0BjJemv5o4BO9P3iT-HFqXUjJARq_3HlwNh4I_yhZacqg</msg>
<status status="PASS" endtime="20180921 17:43:05.718" starttime="20180921 17:43:05.717"></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="20180921 17:43:05.719" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABbpS2pPo8OFCB5LlkReuZlBjjdzeRWvpYhwIX4hg8jAEE53PP0q2gRq_U1ET3K0p0QkWPxgSX-x17D-nbWbeFmEx8knLVNwCYbLR9TeF06TG-jST1zSFI_pNmUCbZvgXjrbu0BjJemv5o4BO9P3iT-HFqXUjJARq_3HlwNh4I_yhZac...</msg>
<status status="PASS" endtime="20180921 17:43:05.719" starttime="20180921 17:43:05.718"></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="20180921 17:43:05.719" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABbpS2pPo8OFCB5LlkReuZlBjjdzeRWvpYhwIX4hg8jAEE53PP0q2gRq_U1ET3K0p0QkWPxgSX-x17D-nbWbeFmEx8knLVNwCYbLR9TeF06TG-jST1zSFI_pNmUCbZvgXjrbu0BjJemv5o4BO9P3iT-HFqXUjJARq_3HlwNh4I_yhZac...</msg>
<status status="PASS" endtime="20180921 17:43:05.719" starttime="20180921 17:43:05.719"></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="20180921 17:43:05.720" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABbpS2pPo8OFCB5LlkReuZlBjjdzeRWvpYhwIX4hg8jAEE53PP0q2gRq_U1ET3K0p0QkWPxgSX-x17D-nbWbeFmEx8knLVNwCYbLR9TeF06TG-jST1zSFI_pNmUCbZvgXjrbu0BjJemv5o4BO9P3iT-HFqXUjJARq_3HlwNh4I_yhZac...</msg>
<status status="PASS" endtime="20180921 17:43:05.720" starttime="20180921 17:43:05.720"></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="20180921 17:43:05.721" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABbpS2pPo8OFCB5LlkReuZlBjjdzeRWvpYhwIX4hg8jAEE53PP0q2gRq_U1ET3K0p0QkWPxgSX-x17D-nbWbeFmEx8knLVNwCYbLR9TeF06TG-jST1zSFI_pNmUCbZvgXjrbu0BjJemv5o4BO9P3iT-HFqXUjJARq_3HlwNh4I_yhZac...</msg>
<status status="PASS" endtime="20180921 17:43:05.721" starttime="20180921 17:43:05.720"></status>
</kw>
<status status="PASS" endtime="20180921 17:43:05.721" starttime="20180921 17:43:05.309"></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="20180921 17:43:05.737" 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 0x7f136ab5cd50&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180921 17:43:05.737" starttime="20180921 17:43:05.736"></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="20180921 17:43:05.747" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20180921 17:43:05.748" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:05.748" starttime="20180921 17:43:05.738"></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="20180921 17:43:05.749" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:05.749" starttime="20180921 17:43:05.748"></status>
</kw>
<doc>Get the complete list of networks</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20180921 17:43:05.749" critical="yes" starttime="20180921 17:43:05.738"></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="20180921 17:43:05.763" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20180921 17:43:05.764" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:05.764" starttime="20180921 17:43:05.750"></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="20180921 17:43:05.764" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:05.764" starttime="20180921 17:43:05.764"></status>
</kw>
<doc>Get the complete list of subnets</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20180921 17:43:05.764" critical="yes" starttime="20180921 17:43:05.749"></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="20180921 17:43:05.775" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20180921 17:43:05.775" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:05.775" starttime="20180921 17:43:05.765"></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="20180921 17:43:05.776" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:05.776" starttime="20180921 17:43:05.776"></status>
</kw>
<doc>Get the complete list of ports</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20180921 17:43:05.776" critical="yes" starttime="20180921 17:43:05.765"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180921 17:43:05.777" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180921 17:43:05.778" starttime="20180921 17:43:05.777"></status>
</kw>
<status status="PASS" endtime="20180921 17:43:05.778" starttime="20180921 17:43:05.721"></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="20180921 17:43:05.794" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbpS2pPo8OFCB5LlkReuZlBjjdzeRWvpYhwIX4hg8jAEE53PP0q2gRq_U1ET3K0p0QkWPxgSX-x17D-nbWbeFmEx8knLVNwCYbLR9TeF06TG-jST1zSFI_pNmUCbZvgXjrbu0BjJemv5o4BO9P3iT-HFqXUjJARq_3HlwNh4I_yhZacqg', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180921 17:43:05.795" starttime="20180921 17:43:05.794"></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="20180921 17:43:05.796" level="INFO">{u'X-Auth-Token': 'gAAAAABbpS2pPo8OFCB5LlkReuZlBjjdzeRWvpYhwIX4hg8jAEE53PP0q2gRq_U1ET3K0p0QkWPxgSX-x17D-nbWbeFmEx8knLVNwCYbLR9TeF06TG-jST1zSFI_pNmUCbZvgXjrbu0BjJemv5o4BO9P3iT-HFqXUjJARq_3HlwNh4I_yhZacqg', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20180921 17:43:05.796" starttime="20180921 17:43:05.795"></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="20180921 17:43:05.800" 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="20180921 17:43:05.947" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/networks, headers=None json=None</msg>
<msg timestamp="20180921 17:43:05.947" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:05.947" starttime="20180921 17:43:05.796"></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="20180921 17:43:05.948" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:05.948" starttime="20180921 17:43:05.948"></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="20180921 17:43:05.949" 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":"3f07dc24-521a-439c-b4ac-ac0f12910504","router:external":true,"availability_zone_hints":[],"availability_zones":["nova"],"ipv4_address_scope":null,"shared":false,"project_id":"e1876fa176a34f56897da514d0da4c09","status":"ACTIVE","subnets":["411722d2-3e01-4eef-a568-88038736b37a"],"description":"","tags":[],"updated_at":"2018-09-21T17:33:41Z","is_default":false,"provider:segmentation_id":null,"name":"ext-net","admin_state_up":true,"tenant_id":"e1876fa176a34f56897da514d0da4c09","created_at":"2018-09-21T17:33:36Z","provider:network_type":"flat"}]} </msg>
<msg timestamp="20180921 17:43:05.949" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180921 17:43:05.949" 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'3f07dc24-521a-...</msg>
<status status="PASS" endtime="20180921 17:43:05.949" starttime="20180921 17:43:05.948"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20180921 17:43:05.950" 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'3f07dc24-521a-439c-b4ac-ac0f12910504', 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'e1876fa176a34f56897da514d0da4c09', u'status': u'ACTIVE', u'subnets': [u'411722d2-3e01-4eef-a568-88038736b37a'], u'description': u'', u'tags': [], u'updated_at': u'2018-09-21T17:33:41Z', u'is_default': False, u'provider:segmentation_id': None, u'name': u'ext-net', u'admin_state_up': True, u'tenant_id': u'e1876fa176a34f56897da514d0da4c09', u'created_at': u'2018-09-21T17:33:36Z', u'mtu': 1500}]}</msg>
<status status="PASS" endtime="20180921 17:43:05.950" starttime="20180921 17:43:05.949"></status>
</kw>
<doc>Checking OpenStack Neutron for known networks</doc>
<tags>
<tag>Network Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20180921 17:43:05.950" critical="yes" starttime="20180921 17:43:05.795"></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="20180921 17:43:05.951" 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 0x7f136abe9890&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180921 17:43:05.952" starttime="20180921 17:43:05.951"></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="20180921 17:43:05.960" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20180921 17:43:05.960" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:05.960" starttime="20180921 17:43:05.952"></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="20180921 17:43:05.961" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:05.961" starttime="20180921 17:43:05.960"></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="20180921 17:43:05.962" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "3f07dc24-521a-439c-b4ac-ac0f12910504",
      "tenant_id" : "e1876fa176a34f56897da514d0da4c09",
      "project_id" : "e1876fa176a34f56897da514d0da4c09",
      "revision_number" : 1,
      "name" : "ext-net",
      "admin_state_up" : true,
      "status" : "ACTIVE",
      "shared" : false,
      "router:external" : true,
      "provider:network_type" : "flat",
      "provider:physical_network" : "physnet",
      "segments" : [ ]
   }, {
      "id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
      "tenant_id" : "bd8db3a82b304083a8b3b3fd46401142",
      "project_id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
      "name" : "Sync Canary Network",
      "admin_state_up" : false,
      "status" : "ACTIVE",
      "shared" : false,
      "router:external" : false,
      "provider:network_type" : "flat",
      "segments" : [ ]
   } ]
} </msg>
<msg timestamp="20180921 17:43:05.962" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180921 17:43:05.962" level="INFO">${ODLResult} = {u'networks': [{u'status': u'ACTIVE', u'router:external': True, u'name': u'ext-net', u'provider:physical_network': u'physnet', u'admin_state_up': True, u'tenant_id': u'e1876fa176a34f56897da514d0da4c09...</msg>
<status status="PASS" endtime="20180921 17:43:05.962" starttime="20180921 17:43:05.961"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180921 17:43:05.962" level="INFO">{u'networks': [{u'status': u'ACTIVE', u'router:external': True, u'name': u'ext-net', u'provider:physical_network': u'physnet', u'admin_state_up': True, u'tenant_id': u'e1876fa176a34f56897da514d0da4c09', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'e1876fa176a34f56897da514d0da4c09', u'id': u'3f07dc24-521a-439c-b4ac-ac0f12910504'}, {u'status': u'ACTIVE', u'router:external': False, u'name': u'Sync Canary Network', u'admin_state_up': False, u'tenant_id': u'bd8db3a82b304083a8b3b3fd46401142', u'segments': [], u'provider:network_type': u'flat', u'shared': False, u'project_id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142', u'id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142'}]}</msg>
<status status="PASS" endtime="20180921 17:43:05.963" starttime="20180921 17:43:05.962"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known networks</doc>
<tags>
<tag>Network Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180921 17:43:05.963" critical="yes" starttime="20180921 17:43:05.950"></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="20180921 17:43:05.964" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20180921 17:43:05.964" starttime="20180921 17:43:05.964"></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="20180921 17:43:05.965" 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="20180921 17:43:06.211" 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="20180921 17:43:06.212" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:06.212" starttime="20180921 17:43:05.964"></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="20180921 17:43:06.212" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:06.212" starttime="20180921 17:43:06.212"></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="20180921 17:43:06.213" 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":"c33156c8-993a-4c51-89ca-371d897963e8","router:external":false,"availability_zone_hints":[],"availability_zones":[],"ipv4_address_scope":null,"shared":false,"project_id":"e1876fa176a34f56897da514d0da4c09","status":"ACTIVE","subnets":[],"description":"","tags":[],"updated_at":"2018-09-21T17:43:06Z","is_default":false,"provider:segmentation_id":95,"name":"odl_network","admin_state_up":true,"tenant_id":"e1876fa176a34f56897da514d0da4c09","created_at":"2018-09-21T17:43:06Z","mtu":1450}} </msg>
<msg timestamp="20180921 17:43:06.213" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180921 17:43:06.213" 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'c33156c8-993a-4c51-89ca-371d897963e8', u'ro...</msg>
<status status="PASS" endtime="20180921 17:43:06.213" starttime="20180921 17:43:06.213"></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="20180921 17:43:06.214" 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'c33156c8-993a-4c51-89ca-371d897963e8', u'router:external...</msg>
<status status="PASS" endtime="20180921 17:43:06.214" starttime="20180921 17:43:06.214"></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="20180921 17:43:06.215" level="INFO">${NETID} = c33156c8-993a-4c51-89ca-371d897963e8</msg>
<status status="PASS" endtime="20180921 17:43:06.215" starttime="20180921 17:43:06.214"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20180921 17:43:06.215" 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'c33156c8-993a-4c51-89ca-371d897963e8', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'e1876fa176a34f56897da514d0da4c09', u'status': u'ACTIVE', u'subnets': [], u'description': u'', u'tags': [], u'updated_at': u'2018-09-21T17:43:06Z', u'is_default': False, u'provider:segmentation_id': 95, u'name': u'odl_network', u'admin_state_up': True, u'tenant_id': u'e1876fa176a34f56897da514d0da4c09', u'created_at': u'2018-09-21T17:43:06Z', u'provider:network_type': u'vxlan'}</msg>
<status status="PASS" endtime="20180921 17:43:06.215" starttime="20180921 17:43:06.215"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${NETID}</arg>
</arguments>
<msg timestamp="20180921 17:43:06.216" level="INFO">c33156c8-993a-4c51-89ca-371d897963e8</msg>
<status status="PASS" endtime="20180921 17:43:06.216" starttime="20180921 17:43:06.215"></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="20180921 17:43:06.216" level="INFO">${NETID} = c33156c8-993a-4c51-89ca-371d897963e8</msg>
<status status="PASS" endtime="20180921 17:43:06.216" starttime="20180921 17:43:06.216"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180921 17:43:08.217" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180921 17:43:08.217" starttime="20180921 17:43:06.216"></status>
</kw>
<doc>Create new network in OpenStack</doc>
<tags>
<tag>Create Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180921 17:43:08.218" critical="yes" starttime="20180921 17:43:05.963"></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="20180921 17:43:08.231" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/c33156c8-993a-4c51-89ca-371d897963e8, headers=None json=None</msg>
<msg timestamp="20180921 17:43:08.231" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:08.231" starttime="20180921 17:43:08.220"></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="20180921 17:43:08.232" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:08.232" starttime="20180921 17:43:08.231"></status>
</kw>
<doc>Check network created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180921 17:43:08.233" critical="yes" starttime="20180921 17:43:08.219"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180921 17:43:08.234" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180921 17:43:08.234" starttime="20180921 17:43:08.233"></status>
</kw>
<doc>Checking Network created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20180921 17:43:08.234" starttime="20180921 17:43:05.779"></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="20180921 17:43:08.253" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbpS2pPo8OFCB5LlkReuZlBjjdzeRWvpYhwIX4hg8jAEE53PP0q2gRq_U1ET3K0p0QkWPxgSX-x17D-nbWbeFmEx8knLVNwCYbLR9TeF06TG-jST1zSFI_pNmUCbZvgXjrbu0BjJemv5o4BO9P3iT-HFqXUjJARq_3HlwNh4I_yhZacqg', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180921 17:43:08.253" starttime="20180921 17:43:08.252"></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="20180921 17:43:08.254" level="INFO">{u'X-Auth-Token': 'gAAAAABbpS2pPo8OFCB5LlkReuZlBjjdzeRWvpYhwIX4hg8jAEE53PP0q2gRq_U1ET3K0p0QkWPxgSX-x17D-nbWbeFmEx8knLVNwCYbLR9TeF06TG-jST1zSFI_pNmUCbZvgXjrbu0BjJemv5o4BO9P3iT-HFqXUjJARq_3HlwNh4I_yhZacqg', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20180921 17:43:08.255" starttime="20180921 17:43:08.254"></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="20180921 17:43:08.260" 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="20180921 17:43:08.341" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/subnets, headers=None json=None</msg>
<msg timestamp="20180921 17:43:08.341" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:08.341" starttime="20180921 17:43:08.255"></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="20180921 17:43:08.342" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:08.342" starttime="20180921 17:43:08.341"></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="20180921 17:43:08.342" level="INFO">To JSON using : content={"subnets":[{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"3f07dc24-521a-439c-b4ac-ac0f12910504","tenant_id":"e1876fa176a34f56897da514d0da4c09","created_at":"2018-09-21T17:33:41Z","dns_nameservers":[],"updated_at":"2018-09-21T17:33:41Z","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":"e1876fa176a34f56897da514d0da4c09","id":"411722d2-3e01-4eef-a568-88038736b37a","subnetpool_id":null,"name":"ext-subnet"}]} </msg>
<msg timestamp="20180921 17:43:08.343" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180921 17:43:08.343" level="INFO">${OSResult} = {u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'3f07dc24-521a-439c-b4ac-ac0f12910504', u'tenant_id': u'e1876fa176a34f5...</msg>
<status status="PASS" endtime="20180921 17:43:08.343" starttime="20180921 17:43:08.342"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20180921 17:43:08.343" level="INFO">{u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'3f07dc24-521a-439c-b4ac-ac0f12910504', u'tenant_id': u'e1876fa176a34f56897da514d0da4c09', u'created_at': u'2018-09-21T17:33:41Z', u'dns_nameservers': [], u'updated_at': u'2018-09-21T17:33:41Z', 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'e1876fa176a34f56897da514d0da4c09', u'id': u'411722d2-3e01-4eef-a568-88038736b37a', u'subnetpool_id': None, u'name': u'ext-subnet'}]}</msg>
<status status="PASS" endtime="20180921 17:43:08.343" starttime="20180921 17:43:08.343"></status>
</kw>
<doc>Checking OpenStack Neutron for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20180921 17:43:08.344" critical="yes" starttime="20180921 17:43:08.253"></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="20180921 17:43:08.345" 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 0x7f136aba78d0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180921 17:43:08.346" starttime="20180921 17:43:08.345"></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="20180921 17:43:08.354" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20180921 17:43:08.354" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:08.354" starttime="20180921 17:43:08.346"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20180921 17:43:08.354" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:08.355" starttime="20180921 17:43:08.354"></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="20180921 17:43:08.355" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "411722d2-3e01-4eef-a568-88038736b37a",
      "tenant_id" : "e1876fa176a34f56897da514d0da4c09",
      "project_id" : "e1876fa176a34f56897da514d0da4c09",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "3f07dc24-521a-439c-b4ac-ac0f12910504",
      "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="20180921 17:43:08.355" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180921 17:43:08.355" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'3f07dc24-521a-439c-b4ac-ac0f12910504', u'tenant_id': u'e1876fa176a34f56897da514d0da4c09', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20180921 17:43:08.355" starttime="20180921 17:43:08.355"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180921 17:43:08.356" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'3f07dc24-521a-439c-b4ac-ac0f12910504', u'tenant_id': u'e1876fa176a34f56897da514d0da4c09', 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'e1876fa176a34f56897da514d0da4c09', u'id': u'411722d2-3e01-4eef-a568-88038736b37a'}]}</msg>
<status status="PASS" endtime="20180921 17:43:08.356" starttime="20180921 17:43:08.356"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180921 17:43:08.356" critical="yes" starttime="20180921 17:43:08.344"></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="20180921 17:43:08.357" level="INFO">{"subnet":{"network_id":"c33156c8-993a-4c51-89ca-371d897963e8","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="20180921 17:43:08.358" starttime="20180921 17:43:08.357"></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="20180921 17:43:08.359" 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="20180921 17:43:08.808" 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="20180921 17:43:08.808" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:08.808" starttime="20180921 17:43:08.358"></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="20180921 17:43:08.809" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:08.809" starttime="20180921 17:43:08.808"></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="20180921 17:43:08.810" level="INFO">To JSON using : content={"subnet":{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"c33156c8-993a-4c51-89ca-371d897963e8","tenant_id":"e1876fa176a34f56897da514d0da4c09","created_at":"2018-09-21T17:43:08Z","dns_nameservers":[],"updated_at":"2018-09-21T17:43:08Z","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":"e1876fa176a34f56897da514d0da4c09","id":"476025a5-8025-4ccd-b209-1c15075a3bd5","subnetpool_id":null,"name":""}} </msg>
<msg timestamp="20180921 17:43:08.810" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180921 17:43:08.810" level="INFO">${result} = {u'subnet': {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'c33156c8-993a-4c51-89ca-371d897963e8', u'tenant_id': u'e1876fa176a34f56897da514d0da4c09', u'...</msg>
<status status="PASS" endtime="20180921 17:43:08.810" starttime="20180921 17:43:08.809"></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="20180921 17:43:08.810" level="INFO">${result} = {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'c33156c8-993a-4c51-89ca-371d897963e8', u'tenant_id': u'e1876fa176a34f56897da514d0da4c09', u'created_at':...</msg>
<status status="PASS" endtime="20180921 17:43:08.811" starttime="20180921 17:43:08.810"></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="20180921 17:43:08.811" level="INFO">${SUBNETID} = 476025a5-8025-4ccd-b209-1c15075a3bd5</msg>
<status status="PASS" endtime="20180921 17:43:08.811" starttime="20180921 17:43:08.811"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20180921 17:43:08.812" level="INFO">{u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'c33156c8-993a-4c51-89ca-371d897963e8', u'tenant_id': u'e1876fa176a34f56897da514d0da4c09', u'created_at': u'2018-09-21T17:43:08Z', u'dns_nameservers': [], u'updated_at': u'2018-09-21T17:43:08Z', 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'e1876fa176a34f56897da514d0da4c09', u'id': u'476025a5-8025-4ccd-b209-1c15075a3bd5', u'subnetpool_id': None, u'name': u''}</msg>
<status status="PASS" endtime="20180921 17:43:08.812" starttime="20180921 17:43:08.811"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${SUBNETID}</arg>
</arguments>
<msg timestamp="20180921 17:43:08.812" level="INFO">476025a5-8025-4ccd-b209-1c15075a3bd5</msg>
<status status="PASS" endtime="20180921 17:43:08.812" starttime="20180921 17:43:08.812"></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="20180921 17:43:08.813" level="INFO">${SUBNETID} = 476025a5-8025-4ccd-b209-1c15075a3bd5</msg>
<status status="PASS" endtime="20180921 17:43:08.813" starttime="20180921 17:43:08.812"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180921 17:43:10.813" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180921 17:43:10.815" starttime="20180921 17:43:08.813"></status>
</kw>
<doc>Create new subnet in OpenStack</doc>
<tags>
<tag>Create Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180921 17:43:10.815" critical="yes" starttime="20180921 17:43:08.356"></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="20180921 17:43:10.825" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/476025a5-8025-4ccd-b209-1c15075a3bd5, headers=None json=None</msg>
<msg timestamp="20180921 17:43:10.825" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:10.825" starttime="20180921 17:43:10.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>200</arg>
</arguments>
<msg timestamp="20180921 17:43:10.826" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:10.826" starttime="20180921 17:43:10.825"></status>
</kw>
<doc>Check new subnet created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>subnet OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180921 17:43:10.826" critical="yes" starttime="20180921 17:43:10.816"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180921 17:43:10.827" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180921 17:43:10.828" starttime="20180921 17:43:10.827"></status>
</kw>
<doc>Checking Subnets created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20180921 17:43:10.828" starttime="20180921 17:43:08.235"></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="20180921 17:43:10.848" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbpS2pPo8OFCB5LlkReuZlBjjdzeRWvpYhwIX4hg8jAEE53PP0q2gRq_U1ET3K0p0QkWPxgSX-x17D-nbWbeFmEx8knLVNwCYbLR9TeF06TG-jST1zSFI_pNmUCbZvgXjrbu0BjJemv5o4BO9P3iT-HFqXUjJARq_3HlwNh4I_yhZacqg', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180921 17:43:10.849" starttime="20180921 17:43:10.848"></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="20180921 17:43:10.850" level="INFO">{u'X-Auth-Token': 'gAAAAABbpS2pPo8OFCB5LlkReuZlBjjdzeRWvpYhwIX4hg8jAEE53PP0q2gRq_U1ET3K0p0QkWPxgSX-x17D-nbWbeFmEx8knLVNwCYbLR9TeF06TG-jST1zSFI_pNmUCbZvgXjrbu0BjJemv5o4BO9P3iT-HFqXUjJARq_3HlwNh4I_yhZacqg', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20180921 17:43:10.850" starttime="20180921 17:43:10.850"></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="20180921 17:43:10.857" 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="20180921 17:43:10.932" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/ports, headers=None json=None</msg>
<msg timestamp="20180921 17:43:10.932" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:10.932" starttime="20180921 17:43:10.850"></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="20180921 17:43:10.933" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:10.933" starttime="20180921 17:43:10.932"></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="20180921 17:43:10.933" level="INFO">To JSON using : content={"ports":[{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-09-21T17:43:09Z","device_owner":"network:dhcp","revision_number":2,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"476025a5-8025-4ccd-b209-1c15075a3bd5","ip_address":"172.16.64.20"}],"id":"53cc3d99-4a74-4f56-9911-43608bc48e18","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"5310fe1e-99e2-414b-a49d-7a199c8f2ca6","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:46:08:ec","project_id":"e1876fa176a34f56897da514d0da4c09","status":"DOWN","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-c33156c8-993a-4c51-89ca-371d897963e8","name":"","admin_state_up":true,"network_id":"c33156c8-993a-4c51-89ca-371d897963e8","tenant_id":"e1876fa176a34f56897da514d0da4c09","created_at":"2018-09-21T17:43:09Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-09-21T17:33:48Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"411722d2-3e01-4eef-a568-88038736b37a","ip_address":"192.16.1.101"}],"id":"7603dd9b-7b4d-491d-b83a-ab3b84d852f0","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"5310fe1e-99e2-414b-a49d-7a199c8f2ca6","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:0b:bc:35","project_id":"e1876fa176a34f56897da514d0da4c09","status":"ACTIVE","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-3f07dc24-521a-439c-b4ac-ac0f12910504","name":"","admin_state_up":true,"network_id":"3f07dc24-521a-439c-b4ac-ac0f12910504","tenant_id":"e1876fa176a34f56897da514d0da4c09","created_at":"2018-09-21T17:33:42Z","binding:vnic_type":"normal"}]} </msg>
<msg timestamp="20180921 17:43:10.934" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180921 17:43:10.934" level="INFO">${OSResult} = {u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-09-21T17:43:09Z', u'device_owner': u'network:dhcp', u'revision_number': 2, u'port_security_enabled': False, u'b...</msg>
<status status="PASS" endtime="20180921 17:43:10.934" starttime="20180921 17:43:10.933"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20180921 17:43:10.934" level="INFO">{u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-09-21T17:43:09Z', 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'476025a5-8025-4ccd-b209-1c15075a3bd5', u'ip_address': u'172.16.64.20'}], u'id': u'53cc3d99-4a74-4f56-9911-43608bc48e18', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'5310fe1e-99e2-414b-a49d-7a199c8f2ca6', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:46:08:ec', u'project_id': u'e1876fa176a34f56897da514d0da4c09', u'status': u'DOWN', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-c33156c8-993a-4c51-89ca-371d897963e8', u'name': u'', u'admin_state_up': True, u'network_id': u'c33156c8-993a-4c51-89ca-371d897963e8', u'tenant_id': u'e1876fa176a34f56897da514d0da4c09', u'created_at': u'2018-09-21T17:43:09Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-09-21T17:33:48Z', u'device_owner': u'network:dhcp', u'revision_number': 3, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'411722d2-3e01-4eef-a568-88038736b37a', u'ip_address': u'192.16.1.101'}], u'id': u'7603dd9b-7b4d-491d-b83a-ab3b84d852f0', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'5310fe1e-99e2-414b-a49d-7a199c8f2ca6', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:0b:bc:35', u'project_id': u'e1876fa176a34f56897da514d0da4c09', u'status': u'ACTIVE', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-3f07dc24-521a-439c-b4ac-ac0f12910504', u'name': u'', u'admin_state_up': True, u'network_id': u'3f07dc24-521a-439c-b4ac-ac0f12910504', u'tenant_id': u'e1876fa176a34f56897da514d0da4c09', u'created_at': u'2018-09-21T17:33:42Z', u'binding:vnic_type': u'normal'}]}</msg>
<status status="PASS" endtime="20180921 17:43:10.934" starttime="20180921 17:43:10.934"></status>
</kw>
<doc>Checking OpenStack Neutron for known ports</doc>
<tags>
<tag>Ports Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20180921 17:43:10.935" critical="yes" starttime="20180921 17:43:10.849"></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="20180921 17:43:10.936" 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 0x7f136a8ff7d0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180921 17:43:10.937" starttime="20180921 17:43:10.936"></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="20180921 17:43:10.954" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20180921 17:43:10.954" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:10.954" starttime="20180921 17:43:10.937"></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="20180921 17:43:10.954" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:10.955" starttime="20180921 17:43:10.954"></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="20180921 17:43:10.955" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "53cc3d99-4a74-4f56-9911-43608bc48e18",
      "tenant_id" : "e1876fa176a34f56897da514d0da4c09",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "c33156c8-993a-4c51-89ca-371d897963e8",
      "mac_address" : "fa:16:3e:46:08:ec",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "476025a5-8025-4ccd-b209-1c15075a3bd5"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-c33156c8-993a-4c51-89ca-371d897963e8",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "5310fe1e-99e2-414b-a49d-7a199c8f2ca6",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "7603dd9b-7b4d-491d-b83a-ab3b84d852f0",
      "tenant_id" : "e1876fa176a34f56897da514d0da4c09",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "3f07dc24-521a-439c-b4ac-ac0f12910504",
      "mac_address" : "fa:16:3e:0b:bc:35",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "411722d2-3e01-4eef-a568-88038736b37a"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-3f07dc24-521a-439c-b4ac-ac0f12910504",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "5310fe1e-99e2-414b-a49d-7a199c8f2ca6",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20180921 17:43:10.955" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180921 17:43:10.956" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'5310fe1e-99e2-414b-a49d-7a199c8f2ca6'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20180921 17:43:10.956" starttime="20180921 17:43:10.955"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180921 17:43:10.956" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'5310fe1e-99e2-414b-a49d-7a199c8f2ca6'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'c33156c8-993a-4c51-89ca-371d897963e8', u'tenant_id': u'e1876fa176a34f56897da514d0da4c09', 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:46:08:ec', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'476025a5-8025-4ccd-b209-1c15075a3bd5', u'ip_address': u'172.16.64.20'}], u'id': u'53cc3d99-4a74-4f56-9911-43608bc48e18', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-c33156c8-993a-4c51-89ca-371d897963e8'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'5310fe1e-99e2-414b-a49d-7a199c8f2ca6'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'3f07dc24-521a-439c-b4ac-ac0f12910504', u'tenant_id': u'e1876fa176a34f56897da514d0da4c09', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'revision_number': 3, u'mac_address': u'fa:16:3e:0b:bc:35', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'411722d2-3e01-4eef-a568-88038736b37a', u'ip_address': u'192.16.1.101'}], u'id': u'7603dd9b-7b4d-491d-b83a-ab3b84d852f0', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-3f07dc24-521a-439c-b4ac-ac0f12910504'}]}</msg>
<status status="PASS" endtime="20180921 17:43:10.956" starttime="20180921 17:43:10.956"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known ports</doc>
<tags>
<tag>Ports Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180921 17:43:10.956" critical="yes" starttime="20180921 17:43:10.935"></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="20180921 17:43:10.958" level="INFO">{"port":{"network_id":"c33156c8-993a-4c51-89ca-371d897963e8","admin_state_up": true}}</msg>
<status status="PASS" endtime="20180921 17:43:10.958" starttime="20180921 17:43:10.957"></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="20180921 17:43:10.960" 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="20180921 17:43:11.710" 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="20180921 17:43:11.710" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:11.710" starttime="20180921 17:43:10.958"></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="20180921 17:43:11.711" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:11.711" starttime="20180921 17:43:11.710"></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="20180921 17:43:11.712" level="INFO">To JSON using : content={"port":{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-09-21T17:43:11Z","device_owner":"","revision_number":1,"binding:profile":{},"port_security_enabled":true,"fixed_ips":[{"subnet_id":"476025a5-8025-4ccd-b209-1c15075a3bd5","ip_address":"172.16.64.22"}],"id":"b94cdc62-632d-4f22-87b4-bc6e1845f28d","security_groups":["7f3ed31f-758b-4e14-b4bc-187e4137de12"],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:10:27:98","project_id":"e1876fa176a34f56897da514d0da4c09","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"","name":"","admin_state_up":true,"network_id":"c33156c8-993a-4c51-89ca-371d897963e8","tenant_id":"e1876fa176a34f56897da514d0da4c09","created_at":"2018-09-21T17:43:11Z","binding:vnic_type":"normal"}} </msg>
<msg timestamp="20180921 17:43:11.712" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180921 17:43:11.712" level="INFO">${result} = {u'port': {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-09-21T17:43:11Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': ...</msg>
<status status="PASS" endtime="20180921 17:43:11.712" starttime="20180921 17:43:11.711"></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="20180921 17:43:11.713" level="INFO">${result} = {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-09-21T17:43:11Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fi...</msg>
<status status="PASS" endtime="20180921 17:43:11.713" starttime="20180921 17:43:11.712"></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="20180921 17:43:11.713" level="INFO">${PORTID} = b94cdc62-632d-4f22-87b4-bc6e1845f28d</msg>
<status status="PASS" endtime="20180921 17:43:11.713" starttime="20180921 17:43:11.713"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20180921 17:43:11.714" level="INFO">{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-09-21T17:43:11Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fixed_ips': [{u'subnet_id': u'476025a5-8025-4ccd-b209-1c15075a3bd5', u'ip_address': u'172.16.64.22'}], u'id': u'b94cdc62-632d-4f22-87b4-bc6e1845f28d', u'security_groups': [u'7f3ed31f-758b-4e14-b4bc-187e4137de12'], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:10:27:98', u'project_id': u'e1876fa176a34f56897da514d0da4c09', 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'c33156c8-993a-4c51-89ca-371d897963e8', u'tenant_id': u'e1876fa176a34f56897da514d0da4c09', u'created_at': u'2018-09-21T17:43:11Z', u'binding:vnic_type': u'normal'}</msg>
<status status="PASS" endtime="20180921 17:43:11.714" starttime="20180921 17:43:11.713"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${PORTID}</arg>
</arguments>
<msg timestamp="20180921 17:43:11.714" level="INFO">b94cdc62-632d-4f22-87b4-bc6e1845f28d</msg>
<status status="PASS" endtime="20180921 17:43:11.714" starttime="20180921 17:43:11.714"></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="20180921 17:43:11.715" level="INFO">${PORTID} = b94cdc62-632d-4f22-87b4-bc6e1845f28d</msg>
<status status="PASS" endtime="20180921 17:43:11.715" starttime="20180921 17:43:11.714"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180921 17:43:13.715" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180921 17:43:13.716" starttime="20180921 17:43:11.715"></status>
</kw>
<doc>Create new port in OpenStack</doc>
<tags>
<tag>Create port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180921 17:43:13.716" critical="yes" starttime="20180921 17:43:10.957"></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="20180921 17:43:13.738" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/b94cdc62-632d-4f22-87b4-bc6e1845f28d, headers=None json=None</msg>
<msg timestamp="20180921 17:43:13.739" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:13.739" starttime="20180921 17:43:13.717"></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="20180921 17:43:13.740" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:13.740" starttime="20180921 17:43:13.739"></status>
</kw>
<doc>Check new port created in OpenDaylight</doc>
<tags>
<tag>Check port OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180921 17:43:13.740" critical="yes" starttime="20180921 17:43:13.716"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180921 17:43:13.741" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180921 17:43:13.741" starttime="20180921 17:43:13.741"></status>
</kw>
<doc>Checking Port created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20180921 17:43:13.741" starttime="20180921 17:43:10.829"></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="20180921 17:43:13.759" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbpS2pPo8OFCB5LlkReuZlBjjdzeRWvpYhwIX4hg8jAEE53PP0q2gRq_U1ET3K0p0QkWPxgSX-x17D-nbWbeFmEx8knLVNwCYbLR9TeF06TG-jST1zSFI_pNmUCbZvgXjrbu0BjJemv5o4BO9P3iT-HFqXUjJARq_3HlwNh4I_yhZacqg'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180921 17:43:13.759" starttime="20180921 17:43:13.758"></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="20180921 17:43:13.760" 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 0x7f136ab99710&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180921 17:43:13.760" starttime="20180921 17:43:13.759"></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="20180921 17:43:13.770" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/b94cdc62-632d-4f22-87b4-bc6e1845f28d, headers=None json=None</msg>
<msg timestamp="20180921 17:43:13.771" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:13.771" starttime="20180921 17:43:13.761"></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="20180921 17:43:13.771" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:13.771" starttime="20180921 17:43:13.771"></status>
</kw>
<status status="PASS" endtime="20180921 17:43:13.771" starttime="20180921 17:43:13.761"></status>
</kw>
<status status="PASS" endtime="20180921 17:43:13.772" starttime="20180921 17:43:13.758"></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="20180921 17:43:13.773" level="INFO">{"port":{"network_id":"c33156c8-993a-4c51-89ca-371d897963e8","admin_state_up": true}}</msg>
<status status="PASS" endtime="20180921 17:43:13.773" starttime="20180921 17:43:13.772"></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="20180921 17:43:13.777" 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="20180921 17:43:14.473" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/ports/b94cdc62-632d-4f22-87b4-bc6e1845f28d, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20180921 17:43:14.473" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:14.473" starttime="20180921 17:43:13.773"></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="20180921 17:43:14.474" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:14.474" starttime="20180921 17:43:14.474"></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="20180921 17:43:14.475" level="INFO"></msg>
<status status="PASS" endtime="20180921 17:43:14.475" starttime="20180921 17:43:14.474"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180921 17:43:16.476" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180921 17:43:16.476" starttime="20180921 17:43:14.476"></status>
</kw>
<doc>Delete previously created port in OpenStack</doc>
<tags>
<tag>Delete port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180921 17:43:16.476" critical="yes" starttime="20180921 17:43:13.772"></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="20180921 17:43:16.495" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20180921 17:43:16.495" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:16.495" starttime="20180921 17:43:16.479"></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="20180921 17:43:16.496" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:16.496" starttime="20180921 17:43:16.496"></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="20180921 17:43:16.497" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "7603dd9b-7b4d-491d-b83a-ab3b84d852f0",
      "tenant_id" : "e1876fa176a34f56897da514d0da4c09",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "3f07dc24-521a-439c-b4ac-ac0f12910504",
      "mac_address" : "fa:16:3e:0b:bc:35",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "411722d2-3e01-4eef-a568-88038736b37a"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-3f07dc24-521a-439c-b4ac-ac0f12910504",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "5310fe1e-99e2-414b-a49d-7a199c8f2ca6",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "53cc3d99-4a74-4f56-9911-43608bc48e18",
      "tenant_id" : "e1876fa176a34f56897da514d0da4c09",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "c33156c8-993a-4c51-89ca-371d897963e8",
      "mac_address" : "fa:16:3e:46:08:ec",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "476025a5-8025-4ccd-b209-1c15075a3bd5"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-c33156c8-993a-4c51-89ca-371d897963e8",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "5310fe1e-99e2-414b-a49d-7a199c8f2ca6",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20180921 17:43:16.497" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180921 17:43:16.497" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'5310fe1e-99e2-414b-a49d-7a199c8f2ca6'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20180921 17:43:16.497" starttime="20180921 17:43:16.496"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180921 17:43:16.498" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'5310fe1e-99e2-414b-a49d-7a199c8f2ca6'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'3f07dc24-521a-439c-b4ac-ac0f12910504', u'tenant_id': u'e1876fa176a34f56897da514d0da4c09', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'revision_number': 3, u'mac_address': u'fa:16:3e:0b:bc:35', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'411722d2-3e01-4eef-a568-88038736b37a', u'ip_address': u'192.16.1.101'}], u'id': u'7603dd9b-7b4d-491d-b83a-ab3b84d852f0', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-3f07dc24-521a-439c-b4ac-ac0f12910504'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'5310fe1e-99e2-414b-a49d-7a199c8f2ca6'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'c33156c8-993a-4c51-89ca-371d897963e8', u'tenant_id': u'e1876fa176a34f56897da514d0da4c09', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'revision_number': 3, u'mac_address': u'fa:16:3e:46:08:ec', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'476025a5-8025-4ccd-b209-1c15075a3bd5', u'ip_address': u'172.16.64.20'}], u'id': u'53cc3d99-4a74-4f56-9911-43608bc48e18', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-c33156c8-993a-4c51-89ca-371d897963e8'}]}</msg>
<status status="PASS" endtime="20180921 17:43:16.498" starttime="20180921 17:43:16.498"></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="20180921 17:43:16.503" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/b94cdc62-632d-4f22-87b4-bc6e1845f28d, headers=None json=None</msg>
<msg timestamp="20180921 17:43:16.503" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:16.504" starttime="20180921 17:43:16.498"></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="20180921 17:43:16.504" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:16.504" starttime="20180921 17:43:16.504"></status>
</kw>
<doc>Check port deleted in OpenDaylight</doc>
<tags>
<tag>Check port deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180921 17:43:16.504" critical="yes" starttime="20180921 17:43:16.477"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180921 17:43:16.505" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180921 17:43:16.505" starttime="20180921 17:43:16.505"></status>
</kw>
<doc>Checking Port deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20180921 17:43:16.506" starttime="20180921 17:43:13.742"></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="20180921 17:43:16.523" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbpS2pPo8OFCB5LlkReuZlBjjdzeRWvpYhwIX4hg8jAEE53PP0q2gRq_U1ET3K0p0QkWPxgSX-x17D-nbWbeFmEx8knLVNwCYbLR9TeF06TG-jST1zSFI_pNmUCbZvgXjrbu0BjJemv5o4BO9P3iT-HFqXUjJARq_3HlwNh4I_yhZacqg'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180921 17:43:16.524" starttime="20180921 17:43:16.523"></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="20180921 17:43:16.524" 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 0x7f136a8ff250&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180921 17:43:16.525" starttime="20180921 17:43:16.524"></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="20180921 17:43:16.531" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/476025a5-8025-4ccd-b209-1c15075a3bd5, headers=None json=None</msg>
<msg timestamp="20180921 17:43:16.532" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:16.532" starttime="20180921 17:43:16.525"></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="20180921 17:43:16.532" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:16.532" starttime="20180921 17:43:16.532"></status>
</kw>
<status status="PASS" endtime="20180921 17:43:16.533" starttime="20180921 17:43:16.525"></status>
</kw>
<status status="PASS" endtime="20180921 17:43:16.533" starttime="20180921 17:43:16.522"></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="20180921 17:43:16.534" level="INFO">{"subnet":{"network_id":"c33156c8-993a-4c51-89ca-371d897963e8","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="20180921 17:43:16.534" starttime="20180921 17:43:16.533"></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="20180921 17:43:16.540" 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="20180921 17:43:17.820" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/subnets/476025a5-8025-4ccd-b209-1c15075a3bd5, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20180921 17:43:17.821" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:17.821" starttime="20180921 17:43:16.534"></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="20180921 17:43:17.822" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:17.823" starttime="20180921 17:43:17.821"></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="20180921 17:43:17.823" level="INFO"></msg>
<status status="PASS" endtime="20180921 17:43:17.824" starttime="20180921 17:43:17.823"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180921 17:43:19.824" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180921 17:43:19.825" starttime="20180921 17:43:17.824"></status>
</kw>
<doc>Delete previously created subnet in OpenStack</doc>
<tags>
<tag>Delete Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180921 17:43:19.825" critical="yes" starttime="20180921 17:43:16.533"></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="20180921 17:43:19.836" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20180921 17:43:19.836" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:19.836" starttime="20180921 17:43:19.828"></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="20180921 17:43:19.837" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:19.837" starttime="20180921 17:43:19.836"></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="20180921 17:43:19.838" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "411722d2-3e01-4eef-a568-88038736b37a",
      "tenant_id" : "e1876fa176a34f56897da514d0da4c09",
      "project_id" : "e1876fa176a34f56897da514d0da4c09",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "3f07dc24-521a-439c-b4ac-ac0f12910504",
      "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="20180921 17:43:19.838" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180921 17:43:19.838" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'3f07dc24-521a-439c-b4ac-ac0f12910504', u'tenant_id': u'e1876fa176a34f56897da514d0da4c09', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20180921 17:43:19.838" starttime="20180921 17:43:19.837"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180921 17:43:19.839" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'3f07dc24-521a-439c-b4ac-ac0f12910504', u'tenant_id': u'e1876fa176a34f56897da514d0da4c09', 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'e1876fa176a34f56897da514d0da4c09', u'id': u'411722d2-3e01-4eef-a568-88038736b37a'}]}</msg>
<status status="PASS" endtime="20180921 17:43:19.839" starttime="20180921 17:43:19.839"></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="20180921 17:43:19.846" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/476025a5-8025-4ccd-b209-1c15075a3bd5, headers=None json=None</msg>
<msg timestamp="20180921 17:43:19.846" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:19.846" starttime="20180921 17:43:19.839"></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="20180921 17:43:19.847" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:19.847" starttime="20180921 17:43:19.846"></status>
</kw>
<doc>Check subnet deleted in OpenDaylight</doc>
<tags>
<tag>Check subnet deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180921 17:43:19.847" critical="yes" starttime="20180921 17:43:19.826"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180921 17:43:19.848" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180921 17:43:19.849" starttime="20180921 17:43:19.848"></status>
</kw>
<doc>Checking Subnets deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20180921 17:43:19.849" starttime="20180921 17:43:16.507"></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="20180921 17:43:19.869" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbpS2pPo8OFCB5LlkReuZlBjjdzeRWvpYhwIX4hg8jAEE53PP0q2gRq_U1ET3K0p0QkWPxgSX-x17D-nbWbeFmEx8knLVNwCYbLR9TeF06TG-jST1zSFI_pNmUCbZvgXjrbu0BjJemv5o4BO9P3iT-HFqXUjJARq_3HlwNh4I_yhZacqg'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180921 17:43:19.869" starttime="20180921 17:43:19.868"></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="20180921 17:43:19.870" 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 0x7f136abe9b90&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180921 17:43:19.870" starttime="20180921 17:43:19.869"></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="20180921 17:43:19.878" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/c33156c8-993a-4c51-89ca-371d897963e8, headers=None json=None</msg>
<msg timestamp="20180921 17:43:19.878" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:19.878" starttime="20180921 17:43:19.871"></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="20180921 17:43:19.878" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:19.879" starttime="20180921 17:43:19.878"></status>
</kw>
<status status="PASS" endtime="20180921 17:43:19.879" starttime="20180921 17:43:19.871"></status>
</kw>
<status status="PASS" endtime="20180921 17:43:19.879" starttime="20180921 17:43:19.868"></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="20180921 17:43:19.880" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20180921 17:43:19.881" starttime="20180921 17:43:19.880"></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="20180921 17:43:19.886" 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="20180921 17:43:20.845" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/networks/c33156c8-993a-4c51-89ca-371d897963e8, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20180921 17:43:20.845" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:20.845" starttime="20180921 17:43:19.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>204</arg>
</arguments>
<msg timestamp="20180921 17:43:20.846" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:20.846" starttime="20180921 17:43:20.846"></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="20180921 17:43:20.847" level="INFO"></msg>
<status status="PASS" endtime="20180921 17:43:20.847" starttime="20180921 17:43:20.846"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180921 17:43:22.847" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180921 17:43:22.848" starttime="20180921 17:43:20.847"></status>
</kw>
<doc>Delete network in OpenStack</doc>
<tags>
<tag>Delete Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180921 17:43:22.848" critical="yes" starttime="20180921 17:43:19.879"></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="20180921 17:43:22.863" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20180921 17:43:22.863" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:22.863" starttime="20180921 17:43:22.851"></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="20180921 17:43:22.865" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:22.865" starttime="20180921 17:43:22.864"></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="20180921 17:43:22.866" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "3f07dc24-521a-439c-b4ac-ac0f12910504",
      "tenant_id" : "e1876fa176a34f56897da514d0da4c09",
      "project_id" : "e1876fa176a34f56897da514d0da4c09",
      "revision_number" : 1,
      "name" : "ext-net",
      "admin_state_up" : true,
      "status" : "ACTIVE",
      "shared" : false,
      "router:external" : true,
      "provider:network_type" : "flat",
      "provider:physical_network" : "physnet",
      "segments" : [ ]
   }, {
      "id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
      "tenant_id" : "bd8db3a82b304083a8b3b3fd46401142",
      "project_id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
      "name" : "Sync Canary Network",
      "admin_state_up" : false,
      "status" : "ACTIVE",
      "shared" : false,
      "router:external" : false,
      "provider:network_type" : "flat",
      "segments" : [ ]
   } ]
} </msg>
<msg timestamp="20180921 17:43:22.866" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180921 17:43:22.866" level="INFO">${ODLResult} = {u'networks': [{u'status': u'ACTIVE', u'router:external': True, u'name': u'ext-net', u'provider:physical_network': u'physnet', u'admin_state_up': True, u'tenant_id': u'e1876fa176a34f56897da514d0da4c09...</msg>
<status status="PASS" endtime="20180921 17:43:22.866" starttime="20180921 17:43:22.865"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180921 17:43:22.867" level="INFO">{u'networks': [{u'status': u'ACTIVE', u'router:external': True, u'name': u'ext-net', u'provider:physical_network': u'physnet', u'admin_state_up': True, u'tenant_id': u'e1876fa176a34f56897da514d0da4c09', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'e1876fa176a34f56897da514d0da4c09', u'id': u'3f07dc24-521a-439c-b4ac-ac0f12910504'}, {u'status': u'ACTIVE', u'router:external': False, u'name': u'Sync Canary Network', u'admin_state_up': False, u'tenant_id': u'bd8db3a82b304083a8b3b3fd46401142', u'segments': [], u'provider:network_type': u'flat', u'shared': False, u'project_id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142', u'id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142'}]}</msg>
<status status="PASS" endtime="20180921 17:43:22.867" starttime="20180921 17:43:22.866"></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="20180921 17:43:22.872" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/c33156c8-993a-4c51-89ca-371d897963e8, headers=None json=None</msg>
<msg timestamp="20180921 17:43:22.873" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20180921 17:43:22.873" starttime="20180921 17:43:22.867"></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="20180921 17:43:22.874" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180921 17:43:22.874" starttime="20180921 17:43:22.873"></status>
</kw>
<doc>Check network deleted in OpenDaylight</doc>
<tags>
<tag>Check Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180921 17:43:22.874" critical="yes" starttime="20180921 17:43:22.848"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180921 17:43:22.875" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180921 17:43:22.876" starttime="20180921 17:43:22.875"></status>
</kw>
<doc>Checking Network deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20180921 17:43:22.876" starttime="20180921 17:43:19.850"></status>
</suite>
<kw type="teardown" name="Stop Suite">
<kw name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180921 17:43:22.880" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180921 17:43:22.881" starttime="20180921 17:43:22.880"></status>
</kw>
<status status="PASS" endtime="20180921 17:43:22.881" starttime="20180921 17:43:22.880"></status>
</kw>
<doc>Test suite for Neutron Plugin</doc>
<status status="PASS" endtime="20180921 17:43:22.881" starttime="20180921 17:43:05.203"></status>
</suite>
<status status="FAIL" endtime="20180921 17:43:22.886" starttime="20180921 17:43:04.490"></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="20180921 17:43:05.310" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20180921 17:43:05.315" 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="20180921 17:43:05.800" 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="20180921 17:43:05.965" 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="20180921 17:43:08.260" 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="20180921 17:43:08.359" 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="20180921 17:43:10.857" 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="20180921 17:43:10.960" 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="20180921 17:43:13.777" 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="20180921 17:43:16.540" 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="20180921 17:43:19.886" 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>
