<?xml version="1.0" encoding="UTF-8"?>
<robot generated="20181023 17:40:47.454" 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="20181023 17:40:47.513" 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 0x7f03264339d0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181023 17:40:47.513" starttime="20181023 17:40:47.512"></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="20181023 17:40:48.121" 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 0x7f0326445690&gt;: Failed to establish a new connection: [Errno 111] Connection refused',))</msg>
<status status="FAIL" endtime="20181023 17:40:48.121" starttime="20181023 17:40:47.514"></status>
</kw>
<doc>Get the restconf modules, check 200 status and ietf-restconf presence.</doc>
<status status="FAIL" endtime="20181023 17:40:48.121" critical="yes" starttime="20181023 17:40:47.514">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 0x7f0326445690&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="20181023 17:40:48.122" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181023 17:40:48.122" starttime="20181023 17:40:48.122"></status>
</kw>
<doc>Test suite to verify Restconf is OK.</doc>
<status status="FAIL" endtime="20181023 17:40:48.122" starttime="20181023 17:40:47.482"></status>
</suite>
<status status="FAIL" endtime="20181023 17:40:48.124" starttime="20181023 17:40:47.480"></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="20181023 17:40:48.164" 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="20181023 17:40:48.164" starttime="20181023 17:40:48.163"></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="20181023 17:40:48.165" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20181023 17:40:48.170" 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="20181023 17:40:48.630" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181023 17:40:48.630" starttime="20181023 17:40:48.164"></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="20181023 17:40:48.665" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:40:48.665" starttime="20181023 17:40:48.631"></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="20181023 17:40:48.666" level="INFO">${TOKEN} = gAAAAABbz10g5hPu5SfKZWbO7AW_zEBGfWRAMGz82sD7SwQX3IQ8-1-JC4rZ9N-7txEjVMgJ0mG2snChNQ1iAXMr4QMf6tyZAcXStlcETZJi4OiEdEOuHLTL9TWm9XnEiGFqWq69OniAOBRlMXVlAiWdy_AAuHBMkVlCt_I--yTt5bOG84YNejU</msg>
<status status="PASS" endtime="20181023 17:40:48.666" starttime="20181023 17:40:48.665"></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="20181023 17:40:48.667" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABbz10g5hPu5SfKZWbO7AW_zEBGfWRAMGz82sD7SwQX3IQ8-1-JC4rZ9N-7txEjVMgJ0mG2snChNQ1iAXMr4QMf6tyZAcXStlcETZJi4OiEdEOuHLTL9TWm9XnEiGFqWq69OniAOBRlMXVlAiWdy_AAuHBMkVlCt_I--yTt5bOG84YNe...</msg>
<status status="PASS" endtime="20181023 17:40:48.667" starttime="20181023 17:40:48.666"></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="20181023 17:40:48.667" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABbz10g5hPu5SfKZWbO7AW_zEBGfWRAMGz82sD7SwQX3IQ8-1-JC4rZ9N-7txEjVMgJ0mG2snChNQ1iAXMr4QMf6tyZAcXStlcETZJi4OiEdEOuHLTL9TWm9XnEiGFqWq69OniAOBRlMXVlAiWdy_AAuHBMkVlCt_I--yTt5bOG84YNe...</msg>
<status status="PASS" endtime="20181023 17:40:48.667" starttime="20181023 17:40:48.667"></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="20181023 17:40:48.668" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABbz10g5hPu5SfKZWbO7AW_zEBGfWRAMGz82sD7SwQX3IQ8-1-JC4rZ9N-7txEjVMgJ0mG2snChNQ1iAXMr4QMf6tyZAcXStlcETZJi4OiEdEOuHLTL9TWm9XnEiGFqWq69OniAOBRlMXVlAiWdy_AAuHBMkVlCt_I--yTt5bOG84YNe...</msg>
<status status="PASS" endtime="20181023 17:40:48.668" starttime="20181023 17:40:48.668"></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="20181023 17:40:48.669" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABbz10g5hPu5SfKZWbO7AW_zEBGfWRAMGz82sD7SwQX3IQ8-1-JC4rZ9N-7txEjVMgJ0mG2snChNQ1iAXMr4QMf6tyZAcXStlcETZJi4OiEdEOuHLTL9TWm9XnEiGFqWq69OniAOBRlMXVlAiWdy_AAuHBMkVlCt_I--yTt5bOG84YNe...</msg>
<status status="PASS" endtime="20181023 17:40:48.669" starttime="20181023 17:40:48.668"></status>
</kw>
<status status="PASS" endtime="20181023 17:40:48.669" starttime="20181023 17:40:48.163"></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="20181023 17:40:48.685" 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 0x7f03274a1b50&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181023 17:40:48.686" starttime="20181023 17:40:48.685"></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="20181023 17:40:48.721" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181023 17:40:48.721" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181023 17:40:48.721" starttime="20181023 17:40:48.687"></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="20181023 17:40:48.722" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:40:48.722" starttime="20181023 17:40:48.721"></status>
</kw>
<doc>Get the complete list of networks</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181023 17:40:48.722" critical="yes" starttime="20181023 17:40:48.686"></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="20181023 17:40:48.742" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181023 17:40:48.742" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181023 17:40:48.743" starttime="20181023 17:40:48.723"></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="20181023 17:40:48.743" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:40:48.743" starttime="20181023 17:40:48.743"></status>
</kw>
<doc>Get the complete list of subnets</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181023 17:40:48.744" critical="yes" starttime="20181023 17:40:48.723"></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="20181023 17:40:48.760" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181023 17:40:48.760" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181023 17:40:48.760" starttime="20181023 17:40:48.745"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181023 17:40:48.761" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:40:48.761" starttime="20181023 17:40:48.761"></status>
</kw>
<doc>Get the complete list of ports</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181023 17:40:48.762" critical="yes" starttime="20181023 17:40:48.744"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181023 17:40:48.762" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181023 17:40:48.763" starttime="20181023 17:40:48.762"></status>
</kw>
<status status="PASS" endtime="20181023 17:40:48.763" starttime="20181023 17:40:48.669"></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="20181023 17:40:48.780" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbz10g5hPu5SfKZWbO7AW_zEBGfWRAMGz82sD7SwQX3IQ8-1-JC4rZ9N-7txEjVMgJ0mG2snChNQ1iAXMr4QMf6tyZAcXStlcETZJi4OiEdEOuHLTL9TWm9XnEiGFqWq69OniAOBRlMXVlAiWdy_AAuHBMkVlCt_I--yTt5bOG84YNejU', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181023 17:40:48.781" starttime="20181023 17:40:48.780"></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="20181023 17:40:48.782" level="INFO">{u'X-Auth-Token': 'gAAAAABbz10g5hPu5SfKZWbO7AW_zEBGfWRAMGz82sD7SwQX3IQ8-1-JC4rZ9N-7txEjVMgJ0mG2snChNQ1iAXMr4QMf6tyZAcXStlcETZJi4OiEdEOuHLTL9TWm9XnEiGFqWq69OniAOBRlMXVlAiWdy_AAuHBMkVlCt_I--yTt5bOG84YNejU', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181023 17:40:48.782" starttime="20181023 17:40:48.781"></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="20181023 17:40:48.787" 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="20181023 17:40:49.263" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/networks, headers=None json=None</msg>
<msg timestamp="20181023 17:40:49.263" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181023 17:40:49.263" starttime="20181023 17:40:48.782"></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="20181023 17:40:49.264" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:40:49.264" starttime="20181023 17:40:49.263"></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="20181023 17:40:49.265" 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":"dd9fdd01-bbe5-443e-a0b8-356c463ce8c4","router:external":true,"availability_zone_hints":[],"availability_zones":["nova"],"ipv4_address_scope":null,"shared":false,"project_id":"fead3b284ed2497e9108b89151945210","status":"ACTIVE","subnets":["683c7378-c691-4f15-93a9-b68405a6e76c"],"description":"","tags":[],"updated_at":"2018-10-23T17:13:57Z","is_default":false,"provider:segmentation_id":null,"name":"ext-net","admin_state_up":true,"tenant_id":"fead3b284ed2497e9108b89151945210","created_at":"2018-10-23T17:13:52Z","provider:network_type":"flat"}]} </msg>
<msg timestamp="20181023 17:40:49.265" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181023 17:40:49.265" 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'dd9fdd01-bbe5-...</msg>
<status status="PASS" endtime="20181023 17:40:49.265" starttime="20181023 17:40:49.264"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181023 17:40:49.266" 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'dd9fdd01-bbe5-443e-a0b8-356c463ce8c4', 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'fead3b284ed2497e9108b89151945210', u'status': u'ACTIVE', u'subnets': [u'683c7378-c691-4f15-93a9-b68405a6e76c'], u'description': u'', u'tags': [], u'updated_at': u'2018-10-23T17:13:57Z', u'is_default': False, u'provider:segmentation_id': None, u'name': u'ext-net', u'admin_state_up': True, u'tenant_id': u'fead3b284ed2497e9108b89151945210', u'created_at': u'2018-10-23T17:13:52Z', u'mtu': 1500}]}</msg>
<status status="PASS" endtime="20181023 17:40:49.266" starttime="20181023 17:40:49.265"></status>
</kw>
<doc>Checking OpenStack Neutron for known networks</doc>
<tags>
<tag>Network Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181023 17:40:49.266" critical="yes" starttime="20181023 17:40:48.781"></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="20181023 17:40:49.268" 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 0x7f0326606b90&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181023 17:40:49.268" starttime="20181023 17:40:49.267"></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="20181023 17:40:49.277" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181023 17:40:49.277" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181023 17:40:49.277" starttime="20181023 17:40:49.269"></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="20181023 17:40:49.278" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:40:49.278" starttime="20181023 17:40:49.278"></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="20181023 17:40:49.279" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "dd9fdd01-bbe5-443e-a0b8-356c463ce8c4",
      "tenant_id" : "fead3b284ed2497e9108b89151945210",
      "project_id" : "fead3b284ed2497e9108b89151945210",
      "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="20181023 17:40:49.279" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181023 17:40:49.279" 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'fead3b284ed2497e9108b89151945210...</msg>
<status status="PASS" endtime="20181023 17:40:49.279" starttime="20181023 17:40:49.278"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181023 17:40:49.280" 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'fead3b284ed2497e9108b89151945210', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'fead3b284ed2497e9108b89151945210', u'id': u'dd9fdd01-bbe5-443e-a0b8-356c463ce8c4'}, {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="20181023 17:40:49.280" starttime="20181023 17:40:49.279"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known networks</doc>
<tags>
<tag>Network Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181023 17:40:49.280" critical="yes" starttime="20181023 17:40:49.266"></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="20181023 17:40:49.282" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20181023 17:40:49.282" starttime="20181023 17:40:49.281"></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="20181023 17:40:49.284" 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="20181023 17:40:49.572" 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="20181023 17:40:49.572" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181023 17:40:49.572" starttime="20181023 17:40:49.282"></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="20181023 17:40:49.573" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:40:49.573" starttime="20181023 17:40:49.573"></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="20181023 17:40:49.574" 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":"036184a7-6d9a-40c3-b536-005caee12685","router:external":false,"availability_zone_hints":[],"availability_zones":[],"ipv4_address_scope":null,"shared":false,"project_id":"fead3b284ed2497e9108b89151945210","status":"ACTIVE","subnets":[],"description":"","tags":[],"updated_at":"2018-10-23T17:40:49Z","is_default":false,"provider:segmentation_id":43,"name":"odl_network","admin_state_up":true,"tenant_id":"fead3b284ed2497e9108b89151945210","created_at":"2018-10-23T17:40:49Z","mtu":1450}} </msg>
<msg timestamp="20181023 17:40:49.574" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181023 17:40:49.574" 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'036184a7-6d9a-40c3-b536-005caee12685', u'ro...</msg>
<status status="PASS" endtime="20181023 17:40:49.574" starttime="20181023 17:40:49.573"></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="20181023 17:40:49.575" 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'036184a7-6d9a-40c3-b536-005caee12685', u'router:external...</msg>
<status status="PASS" endtime="20181023 17:40:49.575" starttime="20181023 17:40:49.574"></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="20181023 17:40:49.575" level="INFO">${NETID} = 036184a7-6d9a-40c3-b536-005caee12685</msg>
<status status="PASS" endtime="20181023 17:40:49.575" starttime="20181023 17:40:49.575"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181023 17:40:49.576" 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'036184a7-6d9a-40c3-b536-005caee12685', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'fead3b284ed2497e9108b89151945210', u'status': u'ACTIVE', u'subnets': [], u'description': u'', u'tags': [], u'updated_at': u'2018-10-23T17:40:49Z', u'is_default': False, u'provider:segmentation_id': 43, u'name': u'odl_network', u'admin_state_up': True, u'tenant_id': u'fead3b284ed2497e9108b89151945210', u'created_at': u'2018-10-23T17:40:49Z', u'provider:network_type': u'vxlan'}</msg>
<status status="PASS" endtime="20181023 17:40:49.576" starttime="20181023 17:40:49.575"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${NETID}</arg>
</arguments>
<msg timestamp="20181023 17:40:49.576" level="INFO">036184a7-6d9a-40c3-b536-005caee12685</msg>
<status status="PASS" endtime="20181023 17:40:49.576" starttime="20181023 17:40:49.576"></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="20181023 17:40:49.577" level="INFO">${NETID} = 036184a7-6d9a-40c3-b536-005caee12685</msg>
<status status="PASS" endtime="20181023 17:40:49.577" starttime="20181023 17:40:49.577"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181023 17:40:51.578" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181023 17:40:51.578" starttime="20181023 17:40:49.577"></status>
</kw>
<doc>Create new network in OpenStack</doc>
<tags>
<tag>Create Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181023 17:40:51.578" critical="yes" starttime="20181023 17:40:49.280"></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="20181023 17:40:51.588" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/036184a7-6d9a-40c3-b536-005caee12685, headers=None json=None</msg>
<msg timestamp="20181023 17:40:51.589" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181023 17:40:51.589" starttime="20181023 17:40:51.579"></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="20181023 17:40:51.590" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:40:51.590" starttime="20181023 17:40:51.589"></status>
</kw>
<doc>Check network created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181023 17:40:51.590" critical="yes" starttime="20181023 17:40:51.579"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181023 17:40:51.591" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181023 17:40:51.591" starttime="20181023 17:40:51.591"></status>
</kw>
<doc>Checking Network created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181023 17:40:51.591" starttime="20181023 17:40:48.763"></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="20181023 17:40:51.611" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbz10g5hPu5SfKZWbO7AW_zEBGfWRAMGz82sD7SwQX3IQ8-1-JC4rZ9N-7txEjVMgJ0mG2snChNQ1iAXMr4QMf6tyZAcXStlcETZJi4OiEdEOuHLTL9TWm9XnEiGFqWq69OniAOBRlMXVlAiWdy_AAuHBMkVlCt_I--yTt5bOG84YNejU', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181023 17:40:51.611" starttime="20181023 17:40:51.610"></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="20181023 17:40:51.613" level="INFO">{u'X-Auth-Token': 'gAAAAABbz10g5hPu5SfKZWbO7AW_zEBGfWRAMGz82sD7SwQX3IQ8-1-JC4rZ9N-7txEjVMgJ0mG2snChNQ1iAXMr4QMf6tyZAcXStlcETZJi4OiEdEOuHLTL9TWm9XnEiGFqWq69OniAOBRlMXVlAiWdy_AAuHBMkVlCt_I--yTt5bOG84YNejU', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181023 17:40:51.613" starttime="20181023 17:40:51.612"></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="20181023 17:40:51.618" 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="20181023 17:40:51.770" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/subnets, headers=None json=None</msg>
<msg timestamp="20181023 17:40:51.770" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181023 17:40:51.770" starttime="20181023 17:40:51.613"></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="20181023 17:40:51.770" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:40:51.771" starttime="20181023 17:40:51.770"></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="20181023 17:40:51.771" level="INFO">To JSON using : content={"subnets":[{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"dd9fdd01-bbe5-443e-a0b8-356c463ce8c4","tenant_id":"fead3b284ed2497e9108b89151945210","created_at":"2018-10-23T17:13:57Z","dns_nameservers":[],"updated_at":"2018-10-23T17:13:57Z","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":"fead3b284ed2497e9108b89151945210","id":"683c7378-c691-4f15-93a9-b68405a6e76c","subnetpool_id":null,"name":"ext-subnet"}]} </msg>
<msg timestamp="20181023 17:40:51.771" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181023 17:40:51.771" level="INFO">${OSResult} = {u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'dd9fdd01-bbe5-443e-a0b8-356c463ce8c4', u'tenant_id': u'fead3b284ed2497...</msg>
<status status="PASS" endtime="20181023 17:40:51.772" starttime="20181023 17:40:51.771"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181023 17:40:51.772" level="INFO">{u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'dd9fdd01-bbe5-443e-a0b8-356c463ce8c4', u'tenant_id': u'fead3b284ed2497e9108b89151945210', u'created_at': u'2018-10-23T17:13:57Z', u'dns_nameservers': [], u'updated_at': u'2018-10-23T17:13:57Z', 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'fead3b284ed2497e9108b89151945210', u'id': u'683c7378-c691-4f15-93a9-b68405a6e76c', u'subnetpool_id': None, u'name': u'ext-subnet'}]}</msg>
<status status="PASS" endtime="20181023 17:40:51.772" starttime="20181023 17:40:51.772"></status>
</kw>
<doc>Checking OpenStack Neutron for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181023 17:40:51.772" critical="yes" starttime="20181023 17:40:51.611"></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="20181023 17:40:51.774" 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 0x7f0326488490&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181023 17:40:51.775" starttime="20181023 17:40:51.774"></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="20181023 17:40:51.786" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181023 17:40:51.786" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181023 17:40:51.787" starttime="20181023 17:40:51.775"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181023 17:40:51.787" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:40:51.787" starttime="20181023 17:40:51.787"></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="20181023 17:40:51.788" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "683c7378-c691-4f15-93a9-b68405a6e76c",
      "tenant_id" : "fead3b284ed2497e9108b89151945210",
      "project_id" : "fead3b284ed2497e9108b89151945210",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "dd9fdd01-bbe5-443e-a0b8-356c463ce8c4",
      "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="20181023 17:40:51.788" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181023 17:40:51.788" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'dd9fdd01-bbe5-443e-a0b8-356c463ce8c4', u'tenant_id': u'fead3b284ed2497e9108b89151945210', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20181023 17:40:51.788" starttime="20181023 17:40:51.788"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181023 17:40:51.789" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'dd9fdd01-bbe5-443e-a0b8-356c463ce8c4', u'tenant_id': u'fead3b284ed2497e9108b89151945210', 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'fead3b284ed2497e9108b89151945210', u'id': u'683c7378-c691-4f15-93a9-b68405a6e76c'}]}</msg>
<status status="PASS" endtime="20181023 17:40:51.789" starttime="20181023 17:40:51.788"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181023 17:40:51.789" critical="yes" starttime="20181023 17:40:51.773"></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="20181023 17:40:51.790" level="INFO">{"subnet":{"network_id":"036184a7-6d9a-40c3-b536-005caee12685","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="20181023 17:40:51.790" starttime="20181023 17:40:51.790"></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="20181023 17:40:51.792" 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="20181023 17:40:52.374" 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="20181023 17:40:52.374" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181023 17:40:52.375" starttime="20181023 17:40:51.791"></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="20181023 17:40:52.375" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:40:52.375" starttime="20181023 17:40:52.375"></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="20181023 17:40:52.376" level="INFO">To JSON using : content={"subnet":{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"036184a7-6d9a-40c3-b536-005caee12685","tenant_id":"fead3b284ed2497e9108b89151945210","created_at":"2018-10-23T17:40:52Z","dns_nameservers":[],"updated_at":"2018-10-23T17:40:52Z","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":"fead3b284ed2497e9108b89151945210","id":"ff93d1d1-6b3b-4a12-a8d7-cc410220c025","subnetpool_id":null,"name":""}} </msg>
<msg timestamp="20181023 17:40:52.376" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181023 17:40:52.376" level="INFO">${result} = {u'subnet': {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'036184a7-6d9a-40c3-b536-005caee12685', u'tenant_id': u'fead3b284ed2497e9108b89151945210', u'...</msg>
<status status="PASS" endtime="20181023 17:40:52.376" starttime="20181023 17:40:52.376"></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="20181023 17:40:52.377" level="INFO">${result} = {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'036184a7-6d9a-40c3-b536-005caee12685', u'tenant_id': u'fead3b284ed2497e9108b89151945210', u'created_at':...</msg>
<status status="PASS" endtime="20181023 17:40:52.377" starttime="20181023 17:40:52.377"></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="20181023 17:40:52.378" level="INFO">${SUBNETID} = ff93d1d1-6b3b-4a12-a8d7-cc410220c025</msg>
<status status="PASS" endtime="20181023 17:40:52.378" starttime="20181023 17:40:52.377"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181023 17:40:52.378" level="INFO">{u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'036184a7-6d9a-40c3-b536-005caee12685', u'tenant_id': u'fead3b284ed2497e9108b89151945210', u'created_at': u'2018-10-23T17:40:52Z', u'dns_nameservers': [], u'updated_at': u'2018-10-23T17:40:52Z', 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'fead3b284ed2497e9108b89151945210', u'id': u'ff93d1d1-6b3b-4a12-a8d7-cc410220c025', u'subnetpool_id': None, u'name': u''}</msg>
<status status="PASS" endtime="20181023 17:40:52.378" starttime="20181023 17:40:52.378"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${SUBNETID}</arg>
</arguments>
<msg timestamp="20181023 17:40:52.379" level="INFO">ff93d1d1-6b3b-4a12-a8d7-cc410220c025</msg>
<status status="PASS" endtime="20181023 17:40:52.379" starttime="20181023 17:40:52.379"></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="20181023 17:40:52.380" level="INFO">${SUBNETID} = ff93d1d1-6b3b-4a12-a8d7-cc410220c025</msg>
<status status="PASS" endtime="20181023 17:40:52.380" starttime="20181023 17:40:52.379"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181023 17:40:54.380" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181023 17:40:54.381" starttime="20181023 17:40:52.380"></status>
</kw>
<doc>Create new subnet in OpenStack</doc>
<tags>
<tag>Create Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181023 17:40:54.381" critical="yes" starttime="20181023 17:40:51.789"></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="20181023 17:40:54.390" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/ff93d1d1-6b3b-4a12-a8d7-cc410220c025, headers=None json=None</msg>
<msg timestamp="20181023 17:40:54.391" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181023 17:40:54.391" starttime="20181023 17:40:54.382"></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="20181023 17:40:54.392" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:40:54.392" starttime="20181023 17:40:54.391"></status>
</kw>
<doc>Check new subnet created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>subnet OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181023 17:40:54.392" critical="yes" starttime="20181023 17:40:54.381"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181023 17:40:54.394" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181023 17:40:54.394" starttime="20181023 17:40:54.393"></status>
</kw>
<doc>Checking Subnets created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181023 17:40:54.394" starttime="20181023 17:40:51.594"></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="20181023 17:40:54.412" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbz10g5hPu5SfKZWbO7AW_zEBGfWRAMGz82sD7SwQX3IQ8-1-JC4rZ9N-7txEjVMgJ0mG2snChNQ1iAXMr4QMf6tyZAcXStlcETZJi4OiEdEOuHLTL9TWm9XnEiGFqWq69OniAOBRlMXVlAiWdy_AAuHBMkVlCt_I--yTt5bOG84YNejU', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181023 17:40:54.413" starttime="20181023 17:40:54.412"></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="20181023 17:40:54.414" level="INFO">{u'X-Auth-Token': 'gAAAAABbz10g5hPu5SfKZWbO7AW_zEBGfWRAMGz82sD7SwQX3IQ8-1-JC4rZ9N-7txEjVMgJ0mG2snChNQ1iAXMr4QMf6tyZAcXStlcETZJi4OiEdEOuHLTL9TWm9XnEiGFqWq69OniAOBRlMXVlAiWdy_AAuHBMkVlCt_I--yTt5bOG84YNejU', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181023 17:40:54.414" starttime="20181023 17:40:54.414"></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="20181023 17:40:54.420" 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="20181023 17:40:54.534" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/ports, headers=None json=None</msg>
<msg timestamp="20181023 17:40:54.534" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181023 17:40:54.534" starttime="20181023 17:40:54.414"></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="20181023 17:40:54.535" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:40:54.535" starttime="20181023 17:40:54.534"></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="20181023 17:40:54.535" level="INFO">To JSON using : content={"ports":[{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-23T17:14:05Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"683c7378-c691-4f15-93a9-b68405a6e76c","ip_address":"192.16.1.101"}],"id":"2e7dc82a-613e-4b03-8981-7147ee3710c6","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"1c3669e9-8a47-4652-8174-0daed016bde7","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:8b:ee:75","project_id":"fead3b284ed2497e9108b89151945210","status":"ACTIVE","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-dd9fdd01-bbe5-443e-a0b8-356c463ce8c4","name":"","admin_state_up":true,"network_id":"dd9fdd01-bbe5-443e-a0b8-356c463ce8c4","tenant_id":"fead3b284ed2497e9108b89151945210","created_at":"2018-10-23T17:13:58Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-23T17:40:53Z","device_owner":"network:dhcp","revision_number":2,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"ff93d1d1-6b3b-4a12-a8d7-cc410220c025","ip_address":"172.16.64.20"}],"id":"c00e9a01-c75a-4a30-83ce-0125a50564c7","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"1c3669e9-8a47-4652-8174-0daed016bde7","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:36:05:eb","project_id":"fead3b284ed2497e9108b89151945210","status":"DOWN","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-036184a7-6d9a-40c3-b536-005caee12685","name":"","admin_state_up":true,"network_id":"036184a7-6d9a-40c3-b536-005caee12685","tenant_id":"fead3b284ed2497e9108b89151945210","created_at":"2018-10-23T17:40:52Z","binding:vnic_type":"normal"}]} </msg>
<msg timestamp="20181023 17:40:54.535" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181023 17:40:54.536" level="INFO">${OSResult} = {u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-23T17:14:05Z', u'device_owner': u'network:dhcp', u'revision_number': 3, u'port_security_enabled': False, u'b...</msg>
<status status="PASS" endtime="20181023 17:40:54.536" starttime="20181023 17:40:54.535"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181023 17:40:54.536" level="INFO">{u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-23T17:14:05Z', 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'683c7378-c691-4f15-93a9-b68405a6e76c', u'ip_address': u'192.16.1.101'}], u'id': u'2e7dc82a-613e-4b03-8981-7147ee3710c6', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'1c3669e9-8a47-4652-8174-0daed016bde7', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:8b:ee:75', u'project_id': u'fead3b284ed2497e9108b89151945210', u'status': u'ACTIVE', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-dd9fdd01-bbe5-443e-a0b8-356c463ce8c4', u'name': u'', u'admin_state_up': True, u'network_id': u'dd9fdd01-bbe5-443e-a0b8-356c463ce8c4', u'tenant_id': u'fead3b284ed2497e9108b89151945210', u'created_at': u'2018-10-23T17:13:58Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-23T17:40:53Z', 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'ff93d1d1-6b3b-4a12-a8d7-cc410220c025', u'ip_address': u'172.16.64.20'}], u'id': u'c00e9a01-c75a-4a30-83ce-0125a50564c7', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'1c3669e9-8a47-4652-8174-0daed016bde7', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:36:05:eb', u'project_id': u'fead3b284ed2497e9108b89151945210', u'status': u'DOWN', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-036184a7-6d9a-40c3-b536-005caee12685', u'name': u'', u'admin_state_up': True, u'network_id': u'036184a7-6d9a-40c3-b536-005caee12685', u'tenant_id': u'fead3b284ed2497e9108b89151945210', u'created_at': u'2018-10-23T17:40:52Z', u'binding:vnic_type': u'normal'}]}</msg>
<status status="PASS" endtime="20181023 17:40:54.536" starttime="20181023 17:40:54.536"></status>
</kw>
<doc>Checking OpenStack Neutron for known ports</doc>
<tags>
<tag>Ports Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181023 17:40:54.537" critical="yes" starttime="20181023 17:40:54.413"></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="20181023 17:40:54.538" 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 0x7f03262f98d0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181023 17:40:54.539" starttime="20181023 17:40:54.538"></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="20181023 17:40:54.557" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181023 17:40:54.557" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181023 17:40:54.557" starttime="20181023 17:40:54.539"></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="20181023 17:40:54.558" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:40:54.558" starttime="20181023 17:40:54.557"></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="20181023 17:40:54.558" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "c00e9a01-c75a-4a30-83ce-0125a50564c7",
      "tenant_id" : "fead3b284ed2497e9108b89151945210",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "036184a7-6d9a-40c3-b536-005caee12685",
      "mac_address" : "fa:16:3e:36:05:eb",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "ff93d1d1-6b3b-4a12-a8d7-cc410220c025"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-036184a7-6d9a-40c3-b536-005caee12685",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "1c3669e9-8a47-4652-8174-0daed016bde7",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "2e7dc82a-613e-4b03-8981-7147ee3710c6",
      "tenant_id" : "fead3b284ed2497e9108b89151945210",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "dd9fdd01-bbe5-443e-a0b8-356c463ce8c4",
      "mac_address" : "fa:16:3e:8b:ee:75",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "683c7378-c691-4f15-93a9-b68405a6e76c"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-dd9fdd01-bbe5-443e-a0b8-356c463ce8c4",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "1c3669e9-8a47-4652-8174-0daed016bde7",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20181023 17:40:54.559" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181023 17:40:54.559" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'1c3669e9-8a47-4652-8174-0daed016bde7'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20181023 17:40:54.559" starttime="20181023 17:40:54.558"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181023 17:40:54.559" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'1c3669e9-8a47-4652-8174-0daed016bde7'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'036184a7-6d9a-40c3-b536-005caee12685', u'tenant_id': u'fead3b284ed2497e9108b89151945210', 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:36:05:eb', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'ff93d1d1-6b3b-4a12-a8d7-cc410220c025', u'ip_address': u'172.16.64.20'}], u'id': u'c00e9a01-c75a-4a30-83ce-0125a50564c7', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-036184a7-6d9a-40c3-b536-005caee12685'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'1c3669e9-8a47-4652-8174-0daed016bde7'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'dd9fdd01-bbe5-443e-a0b8-356c463ce8c4', u'tenant_id': u'fead3b284ed2497e9108b89151945210', 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:8b:ee:75', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'683c7378-c691-4f15-93a9-b68405a6e76c', u'ip_address': u'192.16.1.101'}], u'id': u'2e7dc82a-613e-4b03-8981-7147ee3710c6', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-dd9fdd01-bbe5-443e-a0b8-356c463ce8c4'}]}</msg>
<status status="PASS" endtime="20181023 17:40:54.559" starttime="20181023 17:40:54.559"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known ports</doc>
<tags>
<tag>Ports Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181023 17:40:54.560" critical="yes" starttime="20181023 17:40:54.537"></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="20181023 17:40:54.561" level="INFO">{"port":{"network_id":"036184a7-6d9a-40c3-b536-005caee12685","admin_state_up": true}}</msg>
<status status="PASS" endtime="20181023 17:40:54.561" starttime="20181023 17:40:54.561"></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="20181023 17:40:54.563" 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="20181023 17:40:55.507" 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="20181023 17:40:55.508" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181023 17:40:55.508" starttime="20181023 17:40:54.561"></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="20181023 17:40:55.510" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:40:55.510" starttime="20181023 17:40:55.508"></status>
</kw>
<kw name="To Json" library="RequestsLibrary">
<doc>Convert a string to a JSON object</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<assign>
<var>${result}</var>
</assign>
<msg timestamp="20181023 17:40:55.511" level="INFO">To JSON using : content={"port":{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-23T17:40:54Z","device_owner":"","revision_number":1,"binding:profile":{},"port_security_enabled":true,"fixed_ips":[{"subnet_id":"ff93d1d1-6b3b-4a12-a8d7-cc410220c025","ip_address":"172.16.64.21"}],"id":"22b8f440-41d4-4ec0-a95c-481a06d990b5","security_groups":["716f91e0-8e53-4d50-ba65-638ca569efe6"],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:1b:61:d9","project_id":"fead3b284ed2497e9108b89151945210","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"","name":"","admin_state_up":true,"network_id":"036184a7-6d9a-40c3-b536-005caee12685","tenant_id":"fead3b284ed2497e9108b89151945210","created_at":"2018-10-23T17:40:54Z","binding:vnic_type":"normal"}} </msg>
<msg timestamp="20181023 17:40:55.511" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181023 17:40:55.511" level="INFO">${result} = {u'port': {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-23T17:40:54Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': ...</msg>
<status status="PASS" endtime="20181023 17:40:55.511" starttime="20181023 17:40:55.510"></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="20181023 17:40:55.512" level="INFO">${result} = {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-23T17:40:54Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fi...</msg>
<status status="PASS" endtime="20181023 17:40:55.512" starttime="20181023 17:40:55.511"></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="20181023 17:40:55.512" level="INFO">${PORTID} = 22b8f440-41d4-4ec0-a95c-481a06d990b5</msg>
<status status="PASS" endtime="20181023 17:40:55.512" starttime="20181023 17:40:55.512"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181023 17:40:55.513" level="INFO">{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-23T17:40:54Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fixed_ips': [{u'subnet_id': u'ff93d1d1-6b3b-4a12-a8d7-cc410220c025', u'ip_address': u'172.16.64.21'}], u'id': u'22b8f440-41d4-4ec0-a95c-481a06d990b5', u'security_groups': [u'716f91e0-8e53-4d50-ba65-638ca569efe6'], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:1b:61:d9', u'project_id': u'fead3b284ed2497e9108b89151945210', 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'036184a7-6d9a-40c3-b536-005caee12685', u'tenant_id': u'fead3b284ed2497e9108b89151945210', u'created_at': u'2018-10-23T17:40:54Z', u'binding:vnic_type': u'normal'}</msg>
<status status="PASS" endtime="20181023 17:40:55.513" starttime="20181023 17:40:55.512"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${PORTID}</arg>
</arguments>
<msg timestamp="20181023 17:40:55.513" level="INFO">22b8f440-41d4-4ec0-a95c-481a06d990b5</msg>
<status status="PASS" endtime="20181023 17:40:55.513" starttime="20181023 17:40:55.513"></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="20181023 17:40:55.514" level="INFO">${PORTID} = 22b8f440-41d4-4ec0-a95c-481a06d990b5</msg>
<status status="PASS" endtime="20181023 17:40:55.514" starttime="20181023 17:40:55.513"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181023 17:40:57.515" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181023 17:40:57.515" starttime="20181023 17:40:55.514"></status>
</kw>
<doc>Create new port in OpenStack</doc>
<tags>
<tag>Create port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181023 17:40:57.516" critical="yes" starttime="20181023 17:40:54.560"></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="20181023 17:40:57.538" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/22b8f440-41d4-4ec0-a95c-481a06d990b5, headers=None json=None</msg>
<msg timestamp="20181023 17:40:57.538" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181023 17:40:57.538" starttime="20181023 17:40:57.517"></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="20181023 17:40:57.539" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:40:57.539" starttime="20181023 17:40:57.539"></status>
</kw>
<doc>Check new port created in OpenDaylight</doc>
<tags>
<tag>Check port OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181023 17:40:57.539" critical="yes" starttime="20181023 17:40:57.516"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181023 17:40:57.540" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181023 17:40:57.541" starttime="20181023 17:40:57.540"></status>
</kw>
<doc>Checking Port created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181023 17:40:57.541" starttime="20181023 17:40:54.395"></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="20181023 17:40:57.560" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbz10g5hPu5SfKZWbO7AW_zEBGfWRAMGz82sD7SwQX3IQ8-1-JC4rZ9N-7txEjVMgJ0mG2snChNQ1iAXMr4QMf6tyZAcXStlcETZJi4OiEdEOuHLTL9TWm9XnEiGFqWq69OniAOBRlMXVlAiWdy_AAuHBMkVlCt_I--yTt5bOG84YNejU'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181023 17:40:57.560" starttime="20181023 17:40:57.559"></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="20181023 17:40:57.561" 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 0x7f0326310350&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181023 17:40:57.561" starttime="20181023 17:40:57.560"></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="20181023 17:40:57.580" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/22b8f440-41d4-4ec0-a95c-481a06d990b5, headers=None json=None</msg>
<msg timestamp="20181023 17:40:57.580" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181023 17:40:57.580" starttime="20181023 17:40:57.562"></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="20181023 17:40:57.581" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:40:57.581" starttime="20181023 17:40:57.580"></status>
</kw>
<status status="PASS" endtime="20181023 17:40:57.581" starttime="20181023 17:40:57.561"></status>
</kw>
<status status="PASS" endtime="20181023 17:40:57.581" starttime="20181023 17:40:57.559"></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="20181023 17:40:57.583" level="INFO">{"port":{"network_id":"036184a7-6d9a-40c3-b536-005caee12685","admin_state_up": true}}</msg>
<status status="PASS" endtime="20181023 17:40:57.583" starttime="20181023 17:40:57.582"></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="20181023 17:40:57.588" 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="20181023 17:40:58.473" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/ports/22b8f440-41d4-4ec0-a95c-481a06d990b5, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181023 17:40:58.474" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181023 17:40:58.474" starttime="20181023 17:40:57.583"></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="20181023 17:40:58.475" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:40:58.475" starttime="20181023 17:40:58.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="20181023 17:40:58.476" level="INFO"></msg>
<status status="PASS" endtime="20181023 17:40:58.476" starttime="20181023 17:40:58.475"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181023 17:41:00.476" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181023 17:41:00.477" starttime="20181023 17:40:58.476"></status>
</kw>
<doc>Delete previously created port in OpenStack</doc>
<tags>
<tag>Delete port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181023 17:41:00.477" critical="yes" starttime="20181023 17:40:57.582"></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="20181023 17:41:00.514" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181023 17:41:00.515" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181023 17:41:00.515" starttime="20181023 17:41:00.478"></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="20181023 17:41:00.516" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:41:00.516" starttime="20181023 17:41:00.515"></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="20181023 17:41:00.517" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "2e7dc82a-613e-4b03-8981-7147ee3710c6",
      "tenant_id" : "fead3b284ed2497e9108b89151945210",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "dd9fdd01-bbe5-443e-a0b8-356c463ce8c4",
      "mac_address" : "fa:16:3e:8b:ee:75",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "683c7378-c691-4f15-93a9-b68405a6e76c"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-dd9fdd01-bbe5-443e-a0b8-356c463ce8c4",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "1c3669e9-8a47-4652-8174-0daed016bde7",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "c00e9a01-c75a-4a30-83ce-0125a50564c7",
      "tenant_id" : "fead3b284ed2497e9108b89151945210",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "036184a7-6d9a-40c3-b536-005caee12685",
      "mac_address" : "fa:16:3e:36:05:eb",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "ff93d1d1-6b3b-4a12-a8d7-cc410220c025"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-036184a7-6d9a-40c3-b536-005caee12685",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "1c3669e9-8a47-4652-8174-0daed016bde7",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20181023 17:41:00.517" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181023 17:41:00.517" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'1c3669e9-8a47-4652-8174-0daed016bde7'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20181023 17:41:00.517" starttime="20181023 17:41:00.516"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181023 17:41:00.518" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'1c3669e9-8a47-4652-8174-0daed016bde7'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'dd9fdd01-bbe5-443e-a0b8-356c463ce8c4', u'tenant_id': u'fead3b284ed2497e9108b89151945210', 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:8b:ee:75', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'683c7378-c691-4f15-93a9-b68405a6e76c', u'ip_address': u'192.16.1.101'}], u'id': u'2e7dc82a-613e-4b03-8981-7147ee3710c6', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-dd9fdd01-bbe5-443e-a0b8-356c463ce8c4'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'1c3669e9-8a47-4652-8174-0daed016bde7'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'036184a7-6d9a-40c3-b536-005caee12685', u'tenant_id': u'fead3b284ed2497e9108b89151945210', 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:36:05:eb', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'ff93d1d1-6b3b-4a12-a8d7-cc410220c025', u'ip_address': u'172.16.64.20'}], u'id': u'c00e9a01-c75a-4a30-83ce-0125a50564c7', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-036184a7-6d9a-40c3-b536-005caee12685'}]}</msg>
<status status="PASS" endtime="20181023 17:41:00.518" starttime="20181023 17:41:00.517"></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="20181023 17:41:00.524" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/22b8f440-41d4-4ec0-a95c-481a06d990b5, headers=None json=None</msg>
<msg timestamp="20181023 17:41:00.525" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181023 17:41:00.525" starttime="20181023 17:41:00.518"></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="20181023 17:41:00.525" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:41:00.525" starttime="20181023 17:41:00.525"></status>
</kw>
<doc>Check port deleted in OpenDaylight</doc>
<tags>
<tag>Check port deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181023 17:41:00.526" critical="yes" starttime="20181023 17:41:00.477"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181023 17:41:00.527" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181023 17:41:00.527" starttime="20181023 17:41:00.527"></status>
</kw>
<doc>Checking Port deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181023 17:41:00.527" starttime="20181023 17:40:57.542"></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="20181023 17:41:00.546" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbz10g5hPu5SfKZWbO7AW_zEBGfWRAMGz82sD7SwQX3IQ8-1-JC4rZ9N-7txEjVMgJ0mG2snChNQ1iAXMr4QMf6tyZAcXStlcETZJi4OiEdEOuHLTL9TWm9XnEiGFqWq69OniAOBRlMXVlAiWdy_AAuHBMkVlCt_I--yTt5bOG84YNejU'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181023 17:41:00.547" starttime="20181023 17:41:00.546"></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="20181023 17:41:00.547" 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 0x7f03262f11d0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181023 17:41:00.548" starttime="20181023 17:41:00.547"></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="20181023 17:41:00.557" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/ff93d1d1-6b3b-4a12-a8d7-cc410220c025, headers=None json=None</msg>
<msg timestamp="20181023 17:41:00.557" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181023 17:41:00.558" starttime="20181023 17:41:00.548"></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="20181023 17:41:00.558" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:41:00.558" starttime="20181023 17:41:00.558"></status>
</kw>
<status status="PASS" endtime="20181023 17:41:00.559" starttime="20181023 17:41:00.548"></status>
</kw>
<status status="PASS" endtime="20181023 17:41:00.559" starttime="20181023 17:41:00.545"></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="20181023 17:41:00.560" level="INFO">{"subnet":{"network_id":"036184a7-6d9a-40c3-b536-005caee12685","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="20181023 17:41:00.560" starttime="20181023 17:41:00.560"></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="20181023 17:41:00.565" 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="20181023 17:41:02.339" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/subnets/ff93d1d1-6b3b-4a12-a8d7-cc410220c025, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181023 17:41:02.339" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181023 17:41:02.340" starttime="20181023 17:41:00.560"></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="20181023 17:41:02.341" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:41:02.341" starttime="20181023 17:41:02.340"></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="20181023 17:41:02.342" level="INFO"></msg>
<status status="PASS" endtime="20181023 17:41:02.342" starttime="20181023 17:41:02.342"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181023 17:41:04.343" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181023 17:41:04.343" starttime="20181023 17:41:02.343"></status>
</kw>
<doc>Delete previously created subnet in OpenStack</doc>
<tags>
<tag>Delete Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181023 17:41:04.344" critical="yes" starttime="20181023 17:41:00.559"></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="20181023 17:41:04.361" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181023 17:41:04.362" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181023 17:41:04.362" starttime="20181023 17:41:04.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="20181023 17:41:04.363" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:41:04.363" starttime="20181023 17:41:04.362"></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="20181023 17:41:04.363" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "683c7378-c691-4f15-93a9-b68405a6e76c",
      "tenant_id" : "fead3b284ed2497e9108b89151945210",
      "project_id" : "fead3b284ed2497e9108b89151945210",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "dd9fdd01-bbe5-443e-a0b8-356c463ce8c4",
      "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="20181023 17:41:04.363" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181023 17:41:04.364" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'dd9fdd01-bbe5-443e-a0b8-356c463ce8c4', u'tenant_id': u'fead3b284ed2497e9108b89151945210', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20181023 17:41:04.364" starttime="20181023 17:41:04.363"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181023 17:41:04.364" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'dd9fdd01-bbe5-443e-a0b8-356c463ce8c4', u'tenant_id': u'fead3b284ed2497e9108b89151945210', 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'fead3b284ed2497e9108b89151945210', u'id': u'683c7378-c691-4f15-93a9-b68405a6e76c'}]}</msg>
<status status="PASS" endtime="20181023 17:41:04.364" starttime="20181023 17:41:04.364"></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="20181023 17:41:04.369" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/ff93d1d1-6b3b-4a12-a8d7-cc410220c025, headers=None json=None</msg>
<msg timestamp="20181023 17:41:04.369" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181023 17:41:04.370" starttime="20181023 17:41:04.364"></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="20181023 17:41:04.370" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:41:04.370" starttime="20181023 17:41:04.370"></status>
</kw>
<doc>Check subnet deleted in OpenDaylight</doc>
<tags>
<tag>Check subnet deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181023 17:41:04.370" critical="yes" starttime="20181023 17:41:04.344"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181023 17:41:04.372" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181023 17:41:04.372" starttime="20181023 17:41:04.371"></status>
</kw>
<doc>Checking Subnets deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181023 17:41:04.372" starttime="20181023 17:41:00.529"></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="20181023 17:41:04.392" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbz10g5hPu5SfKZWbO7AW_zEBGfWRAMGz82sD7SwQX3IQ8-1-JC4rZ9N-7txEjVMgJ0mG2snChNQ1iAXMr4QMf6tyZAcXStlcETZJi4OiEdEOuHLTL9TWm9XnEiGFqWq69OniAOBRlMXVlAiWdy_AAuHBMkVlCt_I--yTt5bOG84YNejU'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181023 17:41:04.393" starttime="20181023 17:41:04.392"></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="20181023 17:41:04.394" 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 0x7f0326310cd0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181023 17:41:04.394" starttime="20181023 17:41:04.393"></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="20181023 17:41:04.404" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/036184a7-6d9a-40c3-b536-005caee12685, headers=None json=None</msg>
<msg timestamp="20181023 17:41:04.404" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181023 17:41:04.404" starttime="20181023 17:41:04.395"></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="20181023 17:41:04.405" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:41:04.405" starttime="20181023 17:41:04.404"></status>
</kw>
<status status="PASS" endtime="20181023 17:41:04.405" starttime="20181023 17:41:04.394"></status>
</kw>
<status status="PASS" endtime="20181023 17:41:04.405" starttime="20181023 17:41:04.392"></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="20181023 17:41:04.406" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20181023 17:41:04.407" starttime="20181023 17:41:04.406"></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="20181023 17:41:04.412" 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="20181023 17:41:05.498" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/networks/036184a7-6d9a-40c3-b536-005caee12685, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181023 17:41:05.499" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181023 17:41:05.499" starttime="20181023 17:41:04.407"></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="20181023 17:41:05.500" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:41:05.500" starttime="20181023 17:41:05.499"></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="20181023 17:41:05.501" level="INFO"></msg>
<status status="PASS" endtime="20181023 17:41:05.501" starttime="20181023 17:41:05.500"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181023 17:41:07.502" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181023 17:41:07.503" starttime="20181023 17:41:05.502"></status>
</kw>
<doc>Delete network in OpenStack</doc>
<tags>
<tag>Delete Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181023 17:41:07.503" critical="yes" starttime="20181023 17:41:04.405"></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="20181023 17:41:07.513" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181023 17:41:07.513" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181023 17:41:07.513" starttime="20181023 17:41:07.505"></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="20181023 17:41:07.514" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:41:07.514" starttime="20181023 17:41:07.513"></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="20181023 17:41:07.515" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "dd9fdd01-bbe5-443e-a0b8-356c463ce8c4",
      "tenant_id" : "fead3b284ed2497e9108b89151945210",
      "project_id" : "fead3b284ed2497e9108b89151945210",
      "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="20181023 17:41:07.515" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181023 17:41:07.515" 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'fead3b284ed2497e9108b89151945210...</msg>
<status status="PASS" endtime="20181023 17:41:07.516" starttime="20181023 17:41:07.515"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181023 17:41:07.516" 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'fead3b284ed2497e9108b89151945210', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'fead3b284ed2497e9108b89151945210', u'id': u'dd9fdd01-bbe5-443e-a0b8-356c463ce8c4'}, {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="20181023 17:41:07.516" starttime="20181023 17:41:07.516"></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="20181023 17:41:07.523" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/036184a7-6d9a-40c3-b536-005caee12685, headers=None json=None</msg>
<msg timestamp="20181023 17:41:07.523" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181023 17:41:07.523" starttime="20181023 17:41:07.516"></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="20181023 17:41:07.524" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181023 17:41:07.524" starttime="20181023 17:41:07.524"></status>
</kw>
<doc>Check network deleted in OpenDaylight</doc>
<tags>
<tag>Check Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181023 17:41:07.524" critical="yes" starttime="20181023 17:41:07.503"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181023 17:41:07.525" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181023 17:41:07.526" starttime="20181023 17:41:07.525"></status>
</kw>
<doc>Checking Network deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181023 17:41:07.526" starttime="20181023 17:41:04.374"></status>
</suite>
<kw type="teardown" name="Stop Suite">
<kw name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181023 17:41:07.529" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181023 17:41:07.529" starttime="20181023 17:41:07.529"></status>
</kw>
<status status="PASS" endtime="20181023 17:41:07.529" starttime="20181023 17:41:07.529"></status>
</kw>
<doc>Test suite for Neutron Plugin</doc>
<status status="PASS" endtime="20181023 17:41:07.529" starttime="20181023 17:40:48.125"></status>
</suite>
<status status="FAIL" endtime="20181023 17:41:07.536" starttime="20181023 17:40:47.455"></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="20181023 17:40:48.165" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20181023 17:40:48.170" 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="20181023 17:40:48.787" 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="20181023 17:40:49.284" 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="20181023 17:40:51.618" 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="20181023 17:40:51.792" 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="20181023 17:40:54.420" 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="20181023 17:40:54.563" 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="20181023 17:40:57.588" 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="20181023 17:41:00.565" 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="20181023 17:41:04.412" 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>
