<?xml version="1.0" encoding="UTF-8"?>
<robot generated="20180827 17:40:50.612" 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="20180827 17:40:50.675" 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 0x7fcdc10a6250&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180827 17:40:50.675" starttime="20180827 17:40:50.674"></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="20180827 17:40:51.283" 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 0x7fcdc10a6510&gt;: Failed to establish a new connection: [Errno 111] Connection refused',))</msg>
<status status="FAIL" endtime="20180827 17:40:51.284" starttime="20180827 17:40:50.677"></status>
</kw>
<doc>Get the restconf modules, check 200 status and ietf-restconf presence.</doc>
<status status="FAIL" endtime="20180827 17:40:51.284" critical="yes" starttime="20180827 17:40:50.676">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 0x7fcdc10a6510&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="20180827 17:40:51.285" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180827 17:40:51.285" starttime="20180827 17:40:51.285"></status>
</kw>
<doc>Test suite to verify Restconf is OK.</doc>
<status status="FAIL" endtime="20180827 17:40:51.285" starttime="20180827 17:40:50.642"></status>
</suite>
<status status="FAIL" endtime="20180827 17:40:51.287" starttime="20180827 17:40:50.640"></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="20180827 17:40:51.329" 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="20180827 17:40:51.330" starttime="20180827 17:40:51.329"></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="20180827 17:40:51.330" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20180827 17:40:51.336" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: 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="20180827 17:40:51.778" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20180827 17:40:51.779" starttime="20180827 17:40:51.330"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>201</arg>
</arguments>
<msg timestamp="20180827 17:40:51.780" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:40:51.780" starttime="20180827 17:40:51.779"></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="20180827 17:40:51.780" level="INFO">${TOKEN} = gAAAAABbhDej0nuYy7LTC34WU8w7UIJ2vHnirNJjXAJKuQeCrj4zFofM-sS47e8jyfOmEeaWqhQJQfIoJE6T5rEu9_xU622tMk8Isbzxj_REU195YZeLmg8BURY4cPLq5Z6t7S-e6ZGWM5Fwg7lAtVyVDjHo-rZjpfofROEVYXtcn7nqA5K2K0o</msg>
<status status="PASS" endtime="20180827 17:40:51.780" starttime="20180827 17:40:51.780"></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="20180827 17:40:51.781" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABbhDej0nuYy7LTC34WU8w7UIJ2vHnirNJjXAJKuQeCrj4zFofM-sS47e8jyfOmEeaWqhQJQfIoJE6T5rEu9_xU622tMk8Isbzxj_REU195YZeLmg8BURY4cPLq5Z6t7S-e6ZGWM5Fwg7lAtVyVDjHo-rZjpfofROEVYXtcn7nqA5K2K...</msg>
<status status="PASS" endtime="20180827 17:40:51.781" starttime="20180827 17:40:51.781"></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="20180827 17:40:51.782" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABbhDej0nuYy7LTC34WU8w7UIJ2vHnirNJjXAJKuQeCrj4zFofM-sS47e8jyfOmEeaWqhQJQfIoJE6T5rEu9_xU622tMk8Isbzxj_REU195YZeLmg8BURY4cPLq5Z6t7S-e6ZGWM5Fwg7lAtVyVDjHo-rZjpfofROEVYXtcn7nqA5K2K...</msg>
<status status="PASS" endtime="20180827 17:40:51.782" starttime="20180827 17:40:51.781"></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="20180827 17:40:51.783" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABbhDej0nuYy7LTC34WU8w7UIJ2vHnirNJjXAJKuQeCrj4zFofM-sS47e8jyfOmEeaWqhQJQfIoJE6T5rEu9_xU622tMk8Isbzxj_REU195YZeLmg8BURY4cPLq5Z6t7S-e6ZGWM5Fwg7lAtVyVDjHo-rZjpfofROEVYXtcn7nqA5K2K...</msg>
<status status="PASS" endtime="20180827 17:40:51.783" starttime="20180827 17:40:51.782"></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="20180827 17:40:51.783" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABbhDej0nuYy7LTC34WU8w7UIJ2vHnirNJjXAJKuQeCrj4zFofM-sS47e8jyfOmEeaWqhQJQfIoJE6T5rEu9_xU622tMk8Isbzxj_REU195YZeLmg8BURY4cPLq5Z6t7S-e6ZGWM5Fwg7lAtVyVDjHo-rZjpfofROEVYXtcn7nqA5K2K...</msg>
<status status="PASS" endtime="20180827 17:40:51.783" starttime="20180827 17:40:51.783"></status>
</kw>
<status status="PASS" endtime="20180827 17:40:51.784" starttime="20180827 17:40:51.328"></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="20180827 17:40:51.803" 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 0x7fcdc1127a50&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180827 17:40:51.804" starttime="20180827 17:40:51.803"></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="20180827 17:40:51.847" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20180827 17:40:51.847" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180827 17:40:51.847" starttime="20180827 17:40:51.805"></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="20180827 17:40:51.848" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:40:51.848" starttime="20180827 17:40:51.847"></status>
</kw>
<doc>Get the complete list of networks</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20180827 17:40:51.848" critical="yes" starttime="20180827 17:40:51.804"></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="20180827 17:40:51.871" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20180827 17:40:51.872" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180827 17:40:51.872" starttime="20180827 17:40:51.849"></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="20180827 17:40:51.872" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:40:51.872" starttime="20180827 17:40:51.872"></status>
</kw>
<doc>Get the complete list of subnets</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20180827 17:40:51.873" critical="yes" starttime="20180827 17:40:51.848"></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="20180827 17:40:51.887" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20180827 17:40:51.887" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180827 17:40:51.887" starttime="20180827 17:40:51.874"></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="20180827 17:40:51.888" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:40:51.888" starttime="20180827 17:40:51.887"></status>
</kw>
<doc>Get the complete list of ports</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20180827 17:40:51.888" critical="yes" starttime="20180827 17:40:51.873"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180827 17:40:51.889" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180827 17:40:51.889" starttime="20180827 17:40:51.888"></status>
</kw>
<status status="PASS" endtime="20180827 17:40:51.889" starttime="20180827 17:40:51.784"></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="20180827 17:40:51.908" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbhDej0nuYy7LTC34WU8w7UIJ2vHnirNJjXAJKuQeCrj4zFofM-sS47e8jyfOmEeaWqhQJQfIoJE6T5rEu9_xU622tMk8Isbzxj_REU195YZeLmg8BURY4cPLq5Z6t7S-e6ZGWM5Fwg7lAtVyVDjHo-rZjpfofROEVYXtcn7nqA5K2K0o', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180827 17:40:51.908" starttime="20180827 17:40:51.908"></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="20180827 17:40:51.910" level="INFO">{u'X-Auth-Token': 'gAAAAABbhDej0nuYy7LTC34WU8w7UIJ2vHnirNJjXAJKuQeCrj4zFofM-sS47e8jyfOmEeaWqhQJQfIoJE6T5rEu9_xU622tMk8Isbzxj_REU195YZeLmg8BURY4cPLq5Z6t7S-e6ZGWM5Fwg7lAtVyVDjHo-rZjpfofROEVYXtcn7nqA5K2K0o', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20180827 17:40:51.910" starttime="20180827 17:40:51.909"></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="20180827 17:40:51.915" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: 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="20180827 17:40:52.118" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/networks, headers=None json=None</msg>
<msg timestamp="20180827 17:40:52.119" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180827 17:40:52.119" starttime="20180827 17:40:51.910"></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="20180827 17:40:52.120" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:40:52.120" starttime="20180827 17:40:52.119"></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="20180827 17:40:52.120" 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":"46f1eba4-8ec2-4ec0-ada3-ae60c96980d1","router:external":true,"availability_zone_hints":[],"availability_zones":["nova"],"ipv4_address_scope":null,"shared":false,"project_id":"a45ec8de63d94127ba78cf8546678d2a","status":"ACTIVE","subnets":["466557cf-e295-4c40-9760-6908a711eaac"],"description":"","tags":[],"updated_at":"2018-08-27T17:25:07Z","is_default":false,"provider:segmentation_id":null,"name":"ext-net","admin_state_up":true,"tenant_id":"a45ec8de63d94127ba78cf8546678d2a","created_at":"2018-08-27T17:25:01Z","provider:network_type":"flat"}]} </msg>
<msg timestamp="20180827 17:40:52.121" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180827 17:40:52.121" 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'46f1eba4-8ec2-...</msg>
<status status="PASS" endtime="20180827 17:40:52.121" starttime="20180827 17:40:52.120"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20180827 17:40:52.121" 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'46f1eba4-8ec2-4ec0-ada3-ae60c96980d1', 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'a45ec8de63d94127ba78cf8546678d2a', u'status': u'ACTIVE', u'subnets': [u'466557cf-e295-4c40-9760-6908a711eaac'], u'description': u'', u'tags': [], u'updated_at': u'2018-08-27T17:25:07Z', u'is_default': False, u'provider:segmentation_id': None, u'name': u'ext-net', u'admin_state_up': True, u'tenant_id': u'a45ec8de63d94127ba78cf8546678d2a', u'created_at': u'2018-08-27T17:25:01Z', u'mtu': 1500}]}</msg>
<status status="PASS" endtime="20180827 17:40:52.121" starttime="20180827 17:40:52.121"></status>
</kw>
<doc>Checking OpenStack Neutron for known networks</doc>
<tags>
<tag>Network Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20180827 17:40:52.122" critical="yes" starttime="20180827 17:40:51.909"></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="20180827 17:40:52.123" 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 0x7fcdc1087690&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180827 17:40:52.124" starttime="20180827 17:40:52.123"></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="20180827 17:40:52.134" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20180827 17:40:52.134" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180827 17:40:52.135" starttime="20180827 17:40:52.124"></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="20180827 17:40:52.135" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:40:52.135" starttime="20180827 17:40:52.135"></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="20180827 17:40:52.136" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "46f1eba4-8ec2-4ec0-ada3-ae60c96980d1",
      "tenant_id" : "a45ec8de63d94127ba78cf8546678d2a",
      "project_id" : "a45ec8de63d94127ba78cf8546678d2a",
      "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="20180827 17:40:52.136" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180827 17:40:52.137" 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'a45ec8de63d94127ba78cf8546678d2a...</msg>
<status status="PASS" endtime="20180827 17:40:52.137" starttime="20180827 17:40:52.135"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180827 17:40:52.137" 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'a45ec8de63d94127ba78cf8546678d2a', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'a45ec8de63d94127ba78cf8546678d2a', u'id': u'46f1eba4-8ec2-4ec0-ada3-ae60c96980d1'}, {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="20180827 17:40:52.137" starttime="20180827 17:40:52.137"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known networks</doc>
<tags>
<tag>Network Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180827 17:40:52.137" critical="yes" starttime="20180827 17:40:52.122"></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="20180827 17:40:52.139" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20180827 17:40:52.139" starttime="20180827 17:40:52.138"></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="20180827 17:40:52.141" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: 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="20180827 17:40:52.487" 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="20180827 17:40:52.488" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20180827 17:40:52.488" starttime="20180827 17:40:52.139"></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="20180827 17:40:52.489" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:40:52.489" starttime="20180827 17:40:52.488"></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="20180827 17:40:52.490" 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":"97444c00-2ac2-47ca-ae36-c8df5d1b5ee4","router:external":false,"availability_zone_hints":[],"availability_zones":[],"ipv4_address_scope":null,"shared":false,"project_id":"a45ec8de63d94127ba78cf8546678d2a","status":"ACTIVE","subnets":[],"description":"","tags":[],"updated_at":"2018-08-27T17:40:52Z","is_default":false,"provider:segmentation_id":47,"name":"odl_network","admin_state_up":true,"tenant_id":"a45ec8de63d94127ba78cf8546678d2a","created_at":"2018-08-27T17:40:52Z","mtu":1450}} </msg>
<msg timestamp="20180827 17:40:52.490" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180827 17:40:52.490" 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'97444c00-2ac2-47ca-ae36-c8df5d1b5ee4', u'ro...</msg>
<status status="PASS" endtime="20180827 17:40:52.490" starttime="20180827 17:40:52.489"></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="20180827 17:40:52.490" 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'97444c00-2ac2-47ca-ae36-c8df5d1b5ee4', u'router:external...</msg>
<status status="PASS" endtime="20180827 17:40:52.490" starttime="20180827 17:40:52.490"></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="20180827 17:40:52.491" level="INFO">${NETID} = 97444c00-2ac2-47ca-ae36-c8df5d1b5ee4</msg>
<status status="PASS" endtime="20180827 17:40:52.491" starttime="20180827 17:40:52.491"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20180827 17:40:52.492" 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'97444c00-2ac2-47ca-ae36-c8df5d1b5ee4', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'a45ec8de63d94127ba78cf8546678d2a', u'status': u'ACTIVE', u'subnets': [], u'description': u'', u'tags': [], u'updated_at': u'2018-08-27T17:40:52Z', u'is_default': False, u'provider:segmentation_id': 47, u'name': u'odl_network', u'admin_state_up': True, u'tenant_id': u'a45ec8de63d94127ba78cf8546678d2a', u'created_at': u'2018-08-27T17:40:52Z', u'provider:network_type': u'vxlan'}</msg>
<status status="PASS" endtime="20180827 17:40:52.492" starttime="20180827 17:40:52.491"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${NETID}</arg>
</arguments>
<msg timestamp="20180827 17:40:52.492" level="INFO">97444c00-2ac2-47ca-ae36-c8df5d1b5ee4</msg>
<status status="PASS" endtime="20180827 17:40:52.492" starttime="20180827 17:40:52.492"></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="20180827 17:40:52.493" level="INFO">${NETID} = 97444c00-2ac2-47ca-ae36-c8df5d1b5ee4</msg>
<status status="PASS" endtime="20180827 17:40:52.493" starttime="20180827 17:40:52.492"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180827 17:40:54.494" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180827 17:40:54.494" starttime="20180827 17:40:52.493"></status>
</kw>
<doc>Create new network in OpenStack</doc>
<tags>
<tag>Create Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180827 17:40:54.494" critical="yes" starttime="20180827 17:40:52.138"></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="20180827 17:40:54.516" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/97444c00-2ac2-47ca-ae36-c8df5d1b5ee4, headers=None json=None</msg>
<msg timestamp="20180827 17:40:54.517" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180827 17:40:54.517" starttime="20180827 17:40:54.496"></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="20180827 17:40:54.517" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:40:54.518" starttime="20180827 17:40:54.517"></status>
</kw>
<doc>Check network created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180827 17:40:54.518" critical="yes" starttime="20180827 17:40:54.495"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180827 17:40:54.519" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180827 17:40:54.519" starttime="20180827 17:40:54.519"></status>
</kw>
<doc>Checking Network created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20180827 17:40:54.519" starttime="20180827 17:40:51.890"></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="20180827 17:40:54.538" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbhDej0nuYy7LTC34WU8w7UIJ2vHnirNJjXAJKuQeCrj4zFofM-sS47e8jyfOmEeaWqhQJQfIoJE6T5rEu9_xU622tMk8Isbzxj_REU195YZeLmg8BURY4cPLq5Z6t7S-e6ZGWM5Fwg7lAtVyVDjHo-rZjpfofROEVYXtcn7nqA5K2K0o', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180827 17:40:54.539" starttime="20180827 17:40:54.538"></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="20180827 17:40:54.540" level="INFO">{u'X-Auth-Token': 'gAAAAABbhDej0nuYy7LTC34WU8w7UIJ2vHnirNJjXAJKuQeCrj4zFofM-sS47e8jyfOmEeaWqhQJQfIoJE6T5rEu9_xU622tMk8Isbzxj_REU195YZeLmg8BURY4cPLq5Z6t7S-e6ZGWM5Fwg7lAtVyVDjHo-rZjpfofROEVYXtcn7nqA5K2K0o', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20180827 17:40:54.540" starttime="20180827 17:40:54.539"></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="20180827 17:40:54.545" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: 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="20180827 17:40:54.625" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/subnets, headers=None json=None</msg>
<msg timestamp="20180827 17:40:54.625" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180827 17:40:54.626" starttime="20180827 17:40:54.540"></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="20180827 17:40:54.626" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:40:54.627" starttime="20180827 17:40:54.626"></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="20180827 17:40:54.627" level="INFO">To JSON using : content={"subnets":[{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"46f1eba4-8ec2-4ec0-ada3-ae60c96980d1","tenant_id":"a45ec8de63d94127ba78cf8546678d2a","created_at":"2018-08-27T17:25:07Z","dns_nameservers":[],"updated_at":"2018-08-27T17:25:07Z","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":"a45ec8de63d94127ba78cf8546678d2a","id":"466557cf-e295-4c40-9760-6908a711eaac","subnetpool_id":null,"name":"ext-subnet"}]} </msg>
<msg timestamp="20180827 17:40:54.627" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180827 17:40:54.628" level="INFO">${OSResult} = {u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'46f1eba4-8ec2-4ec0-ada3-ae60c96980d1', u'tenant_id': u'a45ec8de63d9412...</msg>
<status status="PASS" endtime="20180827 17:40:54.628" starttime="20180827 17:40:54.627"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20180827 17:40:54.628" level="INFO">{u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'46f1eba4-8ec2-4ec0-ada3-ae60c96980d1', u'tenant_id': u'a45ec8de63d94127ba78cf8546678d2a', u'created_at': u'2018-08-27T17:25:07Z', u'dns_nameservers': [], u'updated_at': u'2018-08-27T17:25:07Z', 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'a45ec8de63d94127ba78cf8546678d2a', u'id': u'466557cf-e295-4c40-9760-6908a711eaac', u'subnetpool_id': None, u'name': u'ext-subnet'}]}</msg>
<status status="PASS" endtime="20180827 17:40:54.628" starttime="20180827 17:40:54.628"></status>
</kw>
<doc>Checking OpenStack Neutron for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20180827 17:40:54.628" critical="yes" starttime="20180827 17:40:54.539"></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="20180827 17:40:54.630" 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 0x7fcdc120ba90&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180827 17:40:54.631" starttime="20180827 17:40:54.630"></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="20180827 17:40:54.664" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20180827 17:40:54.664" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180827 17:40:54.664" starttime="20180827 17:40:54.632"></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="20180827 17:40:54.665" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:40:54.665" starttime="20180827 17:40:54.664"></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="20180827 17:40:54.666" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "466557cf-e295-4c40-9760-6908a711eaac",
      "tenant_id" : "a45ec8de63d94127ba78cf8546678d2a",
      "project_id" : "a45ec8de63d94127ba78cf8546678d2a",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "46f1eba4-8ec2-4ec0-ada3-ae60c96980d1",
      "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="20180827 17:40:54.666" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180827 17:40:54.666" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'46f1eba4-8ec2-4ec0-ada3-ae60c96980d1', u'tenant_id': u'a45ec8de63d94127ba78cf8546678d2a', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20180827 17:40:54.666" starttime="20180827 17:40:54.665"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180827 17:40:54.666" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'46f1eba4-8ec2-4ec0-ada3-ae60c96980d1', u'tenant_id': u'a45ec8de63d94127ba78cf8546678d2a', 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'a45ec8de63d94127ba78cf8546678d2a', u'id': u'466557cf-e295-4c40-9760-6908a711eaac'}]}</msg>
<status status="PASS" endtime="20180827 17:40:54.667" starttime="20180827 17:40:54.666"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180827 17:40:54.667" critical="yes" starttime="20180827 17:40:54.629"></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="20180827 17:40:54.668" level="INFO">{"subnet":{"network_id":"97444c00-2ac2-47ca-ae36-c8df5d1b5ee4","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="20180827 17:40:54.668" starttime="20180827 17:40:54.668"></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="20180827 17:40:54.671" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: 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="20180827 17:40:55.190" 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="20180827 17:40:55.190" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20180827 17:40:55.190" starttime="20180827 17:40:54.669"></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="20180827 17:40:55.191" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:40:55.192" starttime="20180827 17:40:55.191"></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="20180827 17:40:55.192" level="INFO">To JSON using : content={"subnet":{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"97444c00-2ac2-47ca-ae36-c8df5d1b5ee4","tenant_id":"a45ec8de63d94127ba78cf8546678d2a","created_at":"2018-08-27T17:40:54Z","dns_nameservers":[],"updated_at":"2018-08-27T17:40:54Z","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":"a45ec8de63d94127ba78cf8546678d2a","id":"c3629911-1e10-4848-b5e1-ea7c6286c12b","subnetpool_id":null,"name":""}} </msg>
<msg timestamp="20180827 17:40:55.192" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180827 17:40:55.193" level="INFO">${result} = {u'subnet': {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'97444c00-2ac2-47ca-ae36-c8df5d1b5ee4', u'tenant_id': u'a45ec8de63d94127ba78cf8546678d2a', u'...</msg>
<status status="PASS" endtime="20180827 17:40:55.193" starttime="20180827 17:40:55.192"></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="20180827 17:40:55.193" level="INFO">${result} = {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'97444c00-2ac2-47ca-ae36-c8df5d1b5ee4', u'tenant_id': u'a45ec8de63d94127ba78cf8546678d2a', u'created_at':...</msg>
<status status="PASS" endtime="20180827 17:40:55.193" starttime="20180827 17:40:55.193"></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="20180827 17:40:55.194" level="INFO">${SUBNETID} = c3629911-1e10-4848-b5e1-ea7c6286c12b</msg>
<status status="PASS" endtime="20180827 17:40:55.194" starttime="20180827 17:40:55.194"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20180827 17:40:55.195" level="INFO">{u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'97444c00-2ac2-47ca-ae36-c8df5d1b5ee4', u'tenant_id': u'a45ec8de63d94127ba78cf8546678d2a', u'created_at': u'2018-08-27T17:40:54Z', u'dns_nameservers': [], u'updated_at': u'2018-08-27T17:40:54Z', 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'a45ec8de63d94127ba78cf8546678d2a', u'id': u'c3629911-1e10-4848-b5e1-ea7c6286c12b', u'subnetpool_id': None, u'name': u''}</msg>
<status status="PASS" endtime="20180827 17:40:55.195" starttime="20180827 17:40:55.194"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${SUBNETID}</arg>
</arguments>
<msg timestamp="20180827 17:40:55.195" level="INFO">c3629911-1e10-4848-b5e1-ea7c6286c12b</msg>
<status status="PASS" endtime="20180827 17:40:55.195" starttime="20180827 17:40:55.195"></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="20180827 17:40:55.196" level="INFO">${SUBNETID} = c3629911-1e10-4848-b5e1-ea7c6286c12b</msg>
<status status="PASS" endtime="20180827 17:40:55.196" starttime="20180827 17:40:55.196"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180827 17:40:57.197" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180827 17:40:57.197" starttime="20180827 17:40:55.196"></status>
</kw>
<doc>Create new subnet in OpenStack</doc>
<tags>
<tag>Create Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180827 17:40:57.198" critical="yes" starttime="20180827 17:40:54.667"></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="20180827 17:40:57.213" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/c3629911-1e10-4848-b5e1-ea7c6286c12b, headers=None json=None</msg>
<msg timestamp="20180827 17:40:57.213" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180827 17:40:57.213" starttime="20180827 17:40:57.199"></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="20180827 17:40:57.214" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:40:57.214" starttime="20180827 17:40:57.214"></status>
</kw>
<doc>Check new subnet created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>subnet OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180827 17:40:57.215" critical="yes" starttime="20180827 17:40:57.198"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180827 17:40:57.216" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180827 17:40:57.216" starttime="20180827 17:40:57.216"></status>
</kw>
<doc>Checking Subnets created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20180827 17:40:57.216" starttime="20180827 17:40:54.521"></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="20180827 17:40:57.236" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbhDej0nuYy7LTC34WU8w7UIJ2vHnirNJjXAJKuQeCrj4zFofM-sS47e8jyfOmEeaWqhQJQfIoJE6T5rEu9_xU622tMk8Isbzxj_REU195YZeLmg8BURY4cPLq5Z6t7S-e6ZGWM5Fwg7lAtVyVDjHo-rZjpfofROEVYXtcn7nqA5K2K0o', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180827 17:40:57.237" starttime="20180827 17:40:57.236"></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="20180827 17:40:57.238" level="INFO">{u'X-Auth-Token': 'gAAAAABbhDej0nuYy7LTC34WU8w7UIJ2vHnirNJjXAJKuQeCrj4zFofM-sS47e8jyfOmEeaWqhQJQfIoJE6T5rEu9_xU622tMk8Isbzxj_REU195YZeLmg8BURY4cPLq5Z6t7S-e6ZGWM5Fwg7lAtVyVDjHo-rZjpfofROEVYXtcn7nqA5K2K0o', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20180827 17:40:57.238" starttime="20180827 17:40:57.238"></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="20180827 17:40:57.243" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: 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="20180827 17:40:57.365" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/ports, headers=None json=None</msg>
<msg timestamp="20180827 17:40:57.365" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180827 17:40:57.365" starttime="20180827 17:40:57.238"></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="20180827 17:40:57.366" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:40:57.367" starttime="20180827 17:40:57.366"></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="20180827 17:40:57.367" level="INFO">To JSON using : content={"ports":[{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-08-27T17:25:09Z","device_owner":"network:dhcp","revision_number":2,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"466557cf-e295-4c40-9760-6908a711eaac","ip_address":"192.16.1.101"}],"id":"5c94c64b-8f91-4ca1-9d47-f74cdce00e7e","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"0c82e670-356b-4422-aef1-77999eeeb5e3","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:a9:b4:01","project_id":"a45ec8de63d94127ba78cf8546678d2a","status":"ACTIVE","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-46f1eba4-8ec2-4ec0-ada3-ae60c96980d1","name":"","admin_state_up":true,"network_id":"46f1eba4-8ec2-4ec0-ada3-ae60c96980d1","tenant_id":"a45ec8de63d94127ba78cf8546678d2a","created_at":"2018-08-27T17:25:08Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-08-27T17:40:56Z","device_owner":"network:dhcp","revision_number":2,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"c3629911-1e10-4848-b5e1-ea7c6286c12b","ip_address":"172.16.64.20"}],"id":"8b13f879-5fca-4159-a6d2-2d698656ac73","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"0c82e670-356b-4422-aef1-77999eeeb5e3","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:84:8e:0c","project_id":"a45ec8de63d94127ba78cf8546678d2a","status":"ACTIVE","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-97444c00-2ac2-47ca-ae36-c8df5d1b5ee4","name":"","admin_state_up":true,"network_id":"97444c00-2ac2-47ca-ae36-c8df5d1b5ee4","tenant_id":"a45ec8de63d94127ba78cf8546678d2a","created_at":"2018-08-27T17:40:55Z","binding:vnic_type":"normal"}]} </msg>
<msg timestamp="20180827 17:40:57.367" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180827 17:40:57.368" level="INFO">${OSResult} = {u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-08-27T17:25:09Z', u'device_owner': u'network:dhcp', u'revision_number': 2, u'port_security_enabled': False, u'b...</msg>
<status status="PASS" endtime="20180827 17:40:57.368" starttime="20180827 17:40:57.367"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20180827 17:40:57.368" level="INFO">{u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-08-27T17:25:09Z', u'device_owner': u'network:dhcp', u'revision_number': 2, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'466557cf-e295-4c40-9760-6908a711eaac', u'ip_address': u'192.16.1.101'}], u'id': u'5c94c64b-8f91-4ca1-9d47-f74cdce00e7e', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'0c82e670-356b-4422-aef1-77999eeeb5e3', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:a9:b4:01', u'project_id': u'a45ec8de63d94127ba78cf8546678d2a', u'status': u'ACTIVE', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-46f1eba4-8ec2-4ec0-ada3-ae60c96980d1', u'name': u'', u'admin_state_up': True, u'network_id': u'46f1eba4-8ec2-4ec0-ada3-ae60c96980d1', u'tenant_id': u'a45ec8de63d94127ba78cf8546678d2a', u'created_at': u'2018-08-27T17:25:08Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-08-27T17:40:56Z', 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'c3629911-1e10-4848-b5e1-ea7c6286c12b', u'ip_address': u'172.16.64.20'}], u'id': u'8b13f879-5fca-4159-a6d2-2d698656ac73', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'0c82e670-356b-4422-aef1-77999eeeb5e3', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:84:8e:0c', u'project_id': u'a45ec8de63d94127ba78cf8546678d2a', u'status': u'ACTIVE', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-97444c00-2ac2-47ca-ae36-c8df5d1b5ee4', u'name': u'', u'admin_state_up': True, u'network_id': u'97444c00-2ac2-47ca-ae36-c8df5d1b5ee4', u'tenant_id': u'a45ec8de63d94127ba78cf8546678d2a', u'created_at': u'2018-08-27T17:40:55Z', u'binding:vnic_type': u'normal'}]}</msg>
<status status="PASS" endtime="20180827 17:40:57.368" starttime="20180827 17:40:57.368"></status>
</kw>
<doc>Checking OpenStack Neutron for known ports</doc>
<tags>
<tag>Ports Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20180827 17:40:57.369" critical="yes" starttime="20180827 17:40:57.237"></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="20180827 17:40:57.370" 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 0x7fcdc0f039d0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180827 17:40:57.371" starttime="20180827 17:40:57.370"></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="20180827 17:40:57.387" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20180827 17:40:57.387" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180827 17:40:57.387" starttime="20180827 17:40:57.371"></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="20180827 17:40:57.388" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:40:57.388" starttime="20180827 17:40:57.387"></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="20180827 17:40:57.389" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "5c94c64b-8f91-4ca1-9d47-f74cdce00e7e",
      "tenant_id" : "a45ec8de63d94127ba78cf8546678d2a",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "46f1eba4-8ec2-4ec0-ada3-ae60c96980d1",
      "mac_address" : "fa:16:3e:a9:b4:01",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "466557cf-e295-4c40-9760-6908a711eaac"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-46f1eba4-8ec2-4ec0-ada3-ae60c96980d1",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "0c82e670-356b-4422-aef1-77999eeeb5e3",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "8b13f879-5fca-4159-a6d2-2d698656ac73",
      "tenant_id" : "a45ec8de63d94127ba78cf8546678d2a",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "97444c00-2ac2-47ca-ae36-c8df5d1b5ee4",
      "mac_address" : "fa:16:3e:84:8e:0c",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "c3629911-1e10-4848-b5e1-ea7c6286c12b"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-97444c00-2ac2-47ca-ae36-c8df5d1b5ee4",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "0c82e670-356b-4422-aef1-77999eeeb5e3",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20180827 17:40:57.389" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180827 17:40:57.389" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'0c82e670-356b-4422-aef1-77999eeeb5e3'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20180827 17:40:57.389" starttime="20180827 17:40:57.388"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180827 17:40:57.390" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'0c82e670-356b-4422-aef1-77999eeeb5e3'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'46f1eba4-8ec2-4ec0-ada3-ae60c96980d1', u'tenant_id': u'a45ec8de63d94127ba78cf8546678d2a', 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:a9:b4:01', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'466557cf-e295-4c40-9760-6908a711eaac', u'ip_address': u'192.16.1.101'}], u'id': u'5c94c64b-8f91-4ca1-9d47-f74cdce00e7e', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-46f1eba4-8ec2-4ec0-ada3-ae60c96980d1'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'0c82e670-356b-4422-aef1-77999eeeb5e3'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'97444c00-2ac2-47ca-ae36-c8df5d1b5ee4', u'tenant_id': u'a45ec8de63d94127ba78cf8546678d2a', 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:84:8e:0c', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'c3629911-1e10-4848-b5e1-ea7c6286c12b', u'ip_address': u'172.16.64.20'}], u'id': u'8b13f879-5fca-4159-a6d2-2d698656ac73', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-97444c00-2ac2-47ca-ae36-c8df5d1b5ee4'}]}</msg>
<status status="PASS" endtime="20180827 17:40:57.390" starttime="20180827 17:40:57.389"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known ports</doc>
<tags>
<tag>Ports Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180827 17:40:57.390" critical="yes" starttime="20180827 17:40:57.369"></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="20180827 17:40:57.392" level="INFO">{"port":{"network_id":"97444c00-2ac2-47ca-ae36-c8df5d1b5ee4","admin_state_up": true}}</msg>
<status status="PASS" endtime="20180827 17:40:57.392" starttime="20180827 17:40:57.391"></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="20180827 17:40:57.394" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: 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="20180827 17:40:58.706" 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="20180827 17:40:58.706" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20180827 17:40:58.707" starttime="20180827 17:40:57.392"></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="20180827 17:40:58.708" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:40:58.708" starttime="20180827 17:40:58.707"></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="20180827 17:40:58.708" level="INFO">To JSON using : content={"port":{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-08-27T17:40:58Z","device_owner":"","revision_number":1,"binding:profile":{},"port_security_enabled":true,"fixed_ips":[{"subnet_id":"c3629911-1e10-4848-b5e1-ea7c6286c12b","ip_address":"172.16.64.23"}],"id":"7fea5dce-28f8-4db8-80ad-2d21a806c44f","security_groups":["60d069ee-5e85-4b54-a1cb-d2c12d70ee7a"],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:1c:b4:41","project_id":"a45ec8de63d94127ba78cf8546678d2a","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"","name":"","admin_state_up":true,"network_id":"97444c00-2ac2-47ca-ae36-c8df5d1b5ee4","tenant_id":"a45ec8de63d94127ba78cf8546678d2a","created_at":"2018-08-27T17:40:57Z","binding:vnic_type":"normal"}} </msg>
<msg timestamp="20180827 17:40:58.708" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180827 17:40:58.709" level="INFO">${result} = {u'port': {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-08-27T17:40:58Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': ...</msg>
<status status="PASS" endtime="20180827 17:40:58.709" starttime="20180827 17:40:58.708"></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="20180827 17:40:58.709" level="INFO">${result} = {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-08-27T17:40:58Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fi...</msg>
<status status="PASS" endtime="20180827 17:40:58.709" starttime="20180827 17:40:58.709"></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="20180827 17:40:58.710" level="INFO">${PORTID} = 7fea5dce-28f8-4db8-80ad-2d21a806c44f</msg>
<status status="PASS" endtime="20180827 17:40:58.710" starttime="20180827 17:40:58.710"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20180827 17:40:58.710" level="INFO">{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-08-27T17:40:58Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fixed_ips': [{u'subnet_id': u'c3629911-1e10-4848-b5e1-ea7c6286c12b', u'ip_address': u'172.16.64.23'}], u'id': u'7fea5dce-28f8-4db8-80ad-2d21a806c44f', u'security_groups': [u'60d069ee-5e85-4b54-a1cb-d2c12d70ee7a'], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:1c:b4:41', u'project_id': u'a45ec8de63d94127ba78cf8546678d2a', 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'97444c00-2ac2-47ca-ae36-c8df5d1b5ee4', u'tenant_id': u'a45ec8de63d94127ba78cf8546678d2a', u'created_at': u'2018-08-27T17:40:57Z', u'binding:vnic_type': u'normal'}</msg>
<status status="PASS" endtime="20180827 17:40:58.711" starttime="20180827 17:40:58.710"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${PORTID}</arg>
</arguments>
<msg timestamp="20180827 17:40:58.711" level="INFO">7fea5dce-28f8-4db8-80ad-2d21a806c44f</msg>
<status status="PASS" endtime="20180827 17:40:58.711" starttime="20180827 17:40:58.711"></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="20180827 17:40:58.712" level="INFO">${PORTID} = 7fea5dce-28f8-4db8-80ad-2d21a806c44f</msg>
<status status="PASS" endtime="20180827 17:40:58.712" starttime="20180827 17:40:58.711"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180827 17:41:00.712" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180827 17:41:00.713" starttime="20180827 17:40:58.712"></status>
</kw>
<doc>Create new port in OpenStack</doc>
<tags>
<tag>Create port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180827 17:41:00.713" critical="yes" starttime="20180827 17:40:57.390"></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="20180827 17:41:00.757" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/7fea5dce-28f8-4db8-80ad-2d21a806c44f, headers=None json=None</msg>
<msg timestamp="20180827 17:41:00.757" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180827 17:41:00.757" starttime="20180827 17:41:00.714"></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="20180827 17:41:00.758" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:41:00.758" starttime="20180827 17:41:00.758"></status>
</kw>
<doc>Check new port created in OpenDaylight</doc>
<tags>
<tag>Check port OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180827 17:41:00.759" critical="yes" starttime="20180827 17:41:00.713"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180827 17:41:00.760" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180827 17:41:00.760" starttime="20180827 17:41:00.759"></status>
</kw>
<doc>Checking Port created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20180827 17:41:00.760" starttime="20180827 17:40:57.218"></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="20180827 17:41:00.779" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbhDej0nuYy7LTC34WU8w7UIJ2vHnirNJjXAJKuQeCrj4zFofM-sS47e8jyfOmEeaWqhQJQfIoJE6T5rEu9_xU622tMk8Isbzxj_REU195YZeLmg8BURY4cPLq5Z6t7S-e6ZGWM5Fwg7lAtVyVDjHo-rZjpfofROEVYXtcn7nqA5K2K0o'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180827 17:41:00.779" starttime="20180827 17:41:00.778"></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="20180827 17:41:00.780" 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 0x7fcdc0ef8a50&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180827 17:41:00.780" starttime="20180827 17:41:00.779"></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="20180827 17:41:00.798" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/7fea5dce-28f8-4db8-80ad-2d21a806c44f, headers=None json=None</msg>
<msg timestamp="20180827 17:41:00.799" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180827 17:41:00.799" starttime="20180827 17:41:00.781"></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="20180827 17:41:00.800" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:41:00.800" starttime="20180827 17:41:00.799"></status>
</kw>
<status status="PASS" endtime="20180827 17:41:00.800" starttime="20180827 17:41:00.781"></status>
</kw>
<status status="PASS" endtime="20180827 17:41:00.800" starttime="20180827 17:41:00.778"></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="20180827 17:41:00.802" level="INFO">{"port":{"network_id":"97444c00-2ac2-47ca-ae36-c8df5d1b5ee4","admin_state_up": true}}</msg>
<status status="PASS" endtime="20180827 17:41:00.802" starttime="20180827 17:41:00.802"></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="20180827 17:41:00.808" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: 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="20180827 17:41:01.629" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/ports/7fea5dce-28f8-4db8-80ad-2d21a806c44f, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20180827 17:41:01.629" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20180827 17:41:01.629" starttime="20180827 17:41:00.802"></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="20180827 17:41:01.630" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:41:01.630" starttime="20180827 17:41:01.629"></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="20180827 17:41:01.631" level="INFO"></msg>
<status status="PASS" endtime="20180827 17:41:01.631" starttime="20180827 17:41:01.630"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180827 17:41:03.631" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180827 17:41:03.632" starttime="20180827 17:41:01.631"></status>
</kw>
<doc>Delete previously created port in OpenStack</doc>
<tags>
<tag>Delete port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180827 17:41:03.632" critical="yes" starttime="20180827 17:41:00.801"></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="20180827 17:41:03.653" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20180827 17:41:03.654" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180827 17:41:03.654" starttime="20180827 17:41:03.633"></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="20180827 17:41:03.655" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:41:03.655" starttime="20180827 17:41:03.654"></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="20180827 17:41:03.655" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "8b13f879-5fca-4159-a6d2-2d698656ac73",
      "tenant_id" : "a45ec8de63d94127ba78cf8546678d2a",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "97444c00-2ac2-47ca-ae36-c8df5d1b5ee4",
      "mac_address" : "fa:16:3e:84:8e:0c",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "c3629911-1e10-4848-b5e1-ea7c6286c12b"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-97444c00-2ac2-47ca-ae36-c8df5d1b5ee4",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "0c82e670-356b-4422-aef1-77999eeeb5e3",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "5c94c64b-8f91-4ca1-9d47-f74cdce00e7e",
      "tenant_id" : "a45ec8de63d94127ba78cf8546678d2a",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "46f1eba4-8ec2-4ec0-ada3-ae60c96980d1",
      "mac_address" : "fa:16:3e:a9:b4:01",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "466557cf-e295-4c40-9760-6908a711eaac"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-46f1eba4-8ec2-4ec0-ada3-ae60c96980d1",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "0c82e670-356b-4422-aef1-77999eeeb5e3",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20180827 17:41:03.656" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180827 17:41:03.656" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'0c82e670-356b-4422-aef1-77999eeeb5e3'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20180827 17:41:03.656" starttime="20180827 17:41:03.655"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180827 17:41:03.657" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'0c82e670-356b-4422-aef1-77999eeeb5e3'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'97444c00-2ac2-47ca-ae36-c8df5d1b5ee4', u'tenant_id': u'a45ec8de63d94127ba78cf8546678d2a', 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:84:8e:0c', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'c3629911-1e10-4848-b5e1-ea7c6286c12b', u'ip_address': u'172.16.64.20'}], u'id': u'8b13f879-5fca-4159-a6d2-2d698656ac73', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-97444c00-2ac2-47ca-ae36-c8df5d1b5ee4'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'0c82e670-356b-4422-aef1-77999eeeb5e3'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'46f1eba4-8ec2-4ec0-ada3-ae60c96980d1', u'tenant_id': u'a45ec8de63d94127ba78cf8546678d2a', 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:a9:b4:01', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'466557cf-e295-4c40-9760-6908a711eaac', u'ip_address': u'192.16.1.101'}], u'id': u'5c94c64b-8f91-4ca1-9d47-f74cdce00e7e', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-46f1eba4-8ec2-4ec0-ada3-ae60c96980d1'}]}</msg>
<status status="PASS" endtime="20180827 17:41:03.657" starttime="20180827 17:41:03.656"></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="20180827 17:41:03.664" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/7fea5dce-28f8-4db8-80ad-2d21a806c44f, headers=None json=None</msg>
<msg timestamp="20180827 17:41:03.664" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20180827 17:41:03.664" starttime="20180827 17:41:03.657"></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="20180827 17:41:03.665" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:41:03.665" starttime="20180827 17:41:03.664"></status>
</kw>
<doc>Check port deleted in OpenDaylight</doc>
<tags>
<tag>Check port deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180827 17:41:03.665" critical="yes" starttime="20180827 17:41:03.633"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180827 17:41:03.666" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180827 17:41:03.666" starttime="20180827 17:41:03.666"></status>
</kw>
<doc>Checking Port deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20180827 17:41:03.666" starttime="20180827 17:41:00.761"></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="20180827 17:41:03.687" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbhDej0nuYy7LTC34WU8w7UIJ2vHnirNJjXAJKuQeCrj4zFofM-sS47e8jyfOmEeaWqhQJQfIoJE6T5rEu9_xU622tMk8Isbzxj_REU195YZeLmg8BURY4cPLq5Z6t7S-e6ZGWM5Fwg7lAtVyVDjHo-rZjpfofROEVYXtcn7nqA5K2K0o'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180827 17:41:03.688" starttime="20180827 17:41:03.687"></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="20180827 17:41:03.688" 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 0x7fcdc0ec4410&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180827 17:41:03.689" starttime="20180827 17:41:03.688"></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="20180827 17:41:03.699" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/c3629911-1e10-4848-b5e1-ea7c6286c12b, headers=None json=None</msg>
<msg timestamp="20180827 17:41:03.699" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180827 17:41:03.700" starttime="20180827 17:41:03.690"></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="20180827 17:41:03.700" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:41:03.700" starttime="20180827 17:41:03.700"></status>
</kw>
<status status="PASS" endtime="20180827 17:41:03.700" starttime="20180827 17:41:03.689"></status>
</kw>
<status status="PASS" endtime="20180827 17:41:03.701" starttime="20180827 17:41:03.686"></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="20180827 17:41:03.702" level="INFO">{"subnet":{"network_id":"97444c00-2ac2-47ca-ae36-c8df5d1b5ee4","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="20180827 17:41:03.702" starttime="20180827 17:41:03.701"></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="20180827 17:41:03.711" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: 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="20180827 17:41:05.417" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/subnets/c3629911-1e10-4848-b5e1-ea7c6286c12b, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20180827 17:41:05.418" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20180827 17:41:05.418" starttime="20180827 17:41:03.702"></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="20180827 17:41:05.419" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:41:05.419" starttime="20180827 17:41:05.418"></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="20180827 17:41:05.419" level="INFO"></msg>
<status status="PASS" endtime="20180827 17:41:05.420" starttime="20180827 17:41:05.419"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180827 17:41:07.420" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180827 17:41:07.420" starttime="20180827 17:41:05.420"></status>
</kw>
<doc>Delete previously created subnet in OpenStack</doc>
<tags>
<tag>Delete Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180827 17:41:07.421" critical="yes" starttime="20180827 17:41:03.701"></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="20180827 17:41:07.430" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20180827 17:41:07.430" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180827 17:41:07.430" starttime="20180827 17:41:07.422"></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="20180827 17:41:07.431" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:41:07.431" starttime="20180827 17:41:07.431"></status>
</kw>
<kw name="To Json" library="RequestsLibrary">
<doc>Convert a string to a JSON object</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<assign>
<var>${ODLResult}</var>
</assign>
<msg timestamp="20180827 17:41:07.432" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "466557cf-e295-4c40-9760-6908a711eaac",
      "tenant_id" : "a45ec8de63d94127ba78cf8546678d2a",
      "project_id" : "a45ec8de63d94127ba78cf8546678d2a",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "46f1eba4-8ec2-4ec0-ada3-ae60c96980d1",
      "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="20180827 17:41:07.432" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180827 17:41:07.432" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'46f1eba4-8ec2-4ec0-ada3-ae60c96980d1', u'tenant_id': u'a45ec8de63d94127ba78cf8546678d2a', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20180827 17:41:07.432" starttime="20180827 17:41:07.431"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180827 17:41:07.433" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'46f1eba4-8ec2-4ec0-ada3-ae60c96980d1', u'tenant_id': u'a45ec8de63d94127ba78cf8546678d2a', 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'a45ec8de63d94127ba78cf8546678d2a', u'id': u'466557cf-e295-4c40-9760-6908a711eaac'}]}</msg>
<status status="PASS" endtime="20180827 17:41:07.433" starttime="20180827 17:41:07.432"></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="20180827 17:41:07.439" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/c3629911-1e10-4848-b5e1-ea7c6286c12b, headers=None json=None</msg>
<msg timestamp="20180827 17:41:07.439" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20180827 17:41:07.439" starttime="20180827 17:41:07.433"></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="20180827 17:41:07.440" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:41:07.440" starttime="20180827 17:41:07.439"></status>
</kw>
<doc>Check subnet deleted in OpenDaylight</doc>
<tags>
<tag>Check subnet deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180827 17:41:07.440" critical="yes" starttime="20180827 17:41:07.421"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180827 17:41:07.441" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180827 17:41:07.441" starttime="20180827 17:41:07.441"></status>
</kw>
<doc>Checking Subnets deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20180827 17:41:07.442" starttime="20180827 17:41:03.668"></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="20180827 17:41:07.460" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbhDej0nuYy7LTC34WU8w7UIJ2vHnirNJjXAJKuQeCrj4zFofM-sS47e8jyfOmEeaWqhQJQfIoJE6T5rEu9_xU622tMk8Isbzxj_REU195YZeLmg8BURY4cPLq5Z6t7S-e6ZGWM5Fwg7lAtVyVDjHo-rZjpfofROEVYXtcn7nqA5K2K0o'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180827 17:41:07.460" starttime="20180827 17:41:07.459"></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="20180827 17:41:07.461" 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 0x7fcdc0eb09d0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180827 17:41:07.461" starttime="20180827 17:41:07.460"></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="20180827 17:41:07.470" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/97444c00-2ac2-47ca-ae36-c8df5d1b5ee4, headers=None json=None</msg>
<msg timestamp="20180827 17:41:07.470" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180827 17:41:07.470" starttime="20180827 17:41:07.462"></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="20180827 17:41:07.471" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:41:07.471" starttime="20180827 17:41:07.470"></status>
</kw>
<status status="PASS" endtime="20180827 17:41:07.471" starttime="20180827 17:41:07.461"></status>
</kw>
<status status="PASS" endtime="20180827 17:41:07.471" starttime="20180827 17:41:07.459"></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="20180827 17:41:07.473" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20180827 17:41:07.473" starttime="20180827 17:41:07.472"></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="20180827 17:41:07.478" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: 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="20180827 17:41:08.322" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/networks/97444c00-2ac2-47ca-ae36-c8df5d1b5ee4, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20180827 17:41:08.322" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20180827 17:41:08.322" starttime="20180827 17:41:07.473"></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="20180827 17:41:08.323" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:41:08.323" starttime="20180827 17:41:08.323"></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="20180827 17:41:08.324" level="INFO"></msg>
<status status="PASS" endtime="20180827 17:41:08.324" starttime="20180827 17:41:08.324"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180827 17:41:10.325" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180827 17:41:10.325" starttime="20180827 17:41:08.324"></status>
</kw>
<doc>Delete network in OpenStack</doc>
<tags>
<tag>Delete Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180827 17:41:10.325" critical="yes" starttime="20180827 17:41:07.471"></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="20180827 17:41:10.337" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20180827 17:41:10.337" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180827 17:41:10.338" starttime="20180827 17:41:10.327"></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="20180827 17:41:10.338" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:41:10.339" starttime="20180827 17:41:10.338"></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="20180827 17:41:10.339" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "46f1eba4-8ec2-4ec0-ada3-ae60c96980d1",
      "tenant_id" : "a45ec8de63d94127ba78cf8546678d2a",
      "project_id" : "a45ec8de63d94127ba78cf8546678d2a",
      "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="20180827 17:41:10.339" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180827 17:41:10.340" 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'a45ec8de63d94127ba78cf8546678d2a...</msg>
<status status="PASS" endtime="20180827 17:41:10.340" starttime="20180827 17:41:10.339"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180827 17:41:10.340" 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'a45ec8de63d94127ba78cf8546678d2a', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'a45ec8de63d94127ba78cf8546678d2a', u'id': u'46f1eba4-8ec2-4ec0-ada3-ae60c96980d1'}, {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="20180827 17:41:10.341" starttime="20180827 17:41:10.340"></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="20180827 17:41:10.348" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/97444c00-2ac2-47ca-ae36-c8df5d1b5ee4, headers=None json=None</msg>
<msg timestamp="20180827 17:41:10.348" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20180827 17:41:10.348" starttime="20180827 17:41:10.341"></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="20180827 17:41:10.349" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180827 17:41:10.349" starttime="20180827 17:41:10.348"></status>
</kw>
<doc>Check network deleted in OpenDaylight</doc>
<tags>
<tag>Check Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180827 17:41:10.349" critical="yes" starttime="20180827 17:41:10.326"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180827 17:41:10.350" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180827 17:41:10.351" starttime="20180827 17:41:10.350"></status>
</kw>
<doc>Checking Network deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20180827 17:41:10.351" starttime="20180827 17:41:07.443"></status>
</suite>
<kw type="teardown" name="Stop Suite">
<kw name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180827 17:41:10.354" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180827 17:41:10.354" starttime="20180827 17:41:10.354"></status>
</kw>
<status status="PASS" endtime="20180827 17:41:10.355" starttime="20180827 17:41:10.354"></status>
</kw>
<doc>Test suite for Neutron Plugin</doc>
<status status="PASS" endtime="20180827 17:41:10.355" starttime="20180827 17:40:51.288"></status>
</suite>
<status status="FAIL" endtime="20180827 17:41:10.360" starttime="20180827 17:40:50.613"></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="20180827 17:40:51.330" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20180827 17:40:51.336" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: 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="20180827 17:40:51.915" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: 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="20180827 17:40:52.141" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: 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="20180827 17:40:54.545" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: 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="20180827 17:40:54.671" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: 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="20180827 17:40:57.243" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: 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="20180827 17:40:57.394" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: 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="20180827 17:41:00.808" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: 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="20180827 17:41:03.711" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: 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="20180827 17:41:07.478" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: 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>
