<?xml version="1.0" encoding="UTF-8"?>
<robot generated="20181006 21:59:36.035" 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="20181006 21:59:36.137" 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 0x7fa964b64350&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181006 21:59:36.138" starttime="20181006 21:59:36.137"></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="20181006 21:59:36.746" 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 0x7fa964b64450&gt;: Failed to establish a new connection: [Errno 111] Connection refused',))</msg>
<status status="FAIL" endtime="20181006 21:59:36.747" starttime="20181006 21:59:36.139"></status>
</kw>
<doc>Get the restconf modules, check 200 status and ietf-restconf presence.</doc>
<status status="FAIL" endtime="20181006 21:59:36.747" critical="yes" starttime="20181006 21:59:36.138">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 0x7fa964b64450&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="20181006 21:59:36.748" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181006 21:59:36.748" starttime="20181006 21:59:36.748"></status>
</kw>
<doc>Test suite to verify Restconf is OK.</doc>
<status status="FAIL" endtime="20181006 21:59:36.748" starttime="20181006 21:59:36.064"></status>
</suite>
<status status="FAIL" endtime="20181006 21:59:36.749" starttime="20181006 21:59:36.062"></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="20181006 21:59:36.791" 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="20181006 21:59:36.792" starttime="20181006 21:59:36.791"></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="20181006 21:59:36.792" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20181006 21:59:36.798" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181006 21:59:37.294" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:37.294" starttime="20181006 21:59:36.792"></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="20181006 21:59:37.295" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:37.295" starttime="20181006 21:59:37.294"></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="20181006 21:59:37.296" level="INFO">${TOKEN} = gAAAAABbuTBJf394LmoPr0w_EhScw4I5YaMZfkist7Y8J87goXLB6RVRayq8qy9LdbdZ0uYmDsNvjBF1y_ae9NBVVfI-RHW8NixuBbgYbjilMPFE34v7zWXgGCe00tZPI8DF5RyBkF866FHh44K3So9ZZu2Puz0lzOJ1UFnXedRSA0ohSIdSaMA</msg>
<status status="PASS" endtime="20181006 21:59:37.296" starttime="20181006 21:59:37.295"></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="20181006 21:59:37.297" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABbuTBJf394LmoPr0w_EhScw4I5YaMZfkist7Y8J87goXLB6RVRayq8qy9LdbdZ0uYmDsNvjBF1y_ae9NBVVfI-RHW8NixuBbgYbjilMPFE34v7zWXgGCe00tZPI8DF5RyBkF866FHh44K3So9ZZu2Puz0lzOJ1UFnXedRSA0ohSIdSa...</msg>
<status status="PASS" endtime="20181006 21:59:37.297" starttime="20181006 21:59:37.296"></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="20181006 21:59:37.297" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABbuTBJf394LmoPr0w_EhScw4I5YaMZfkist7Y8J87goXLB6RVRayq8qy9LdbdZ0uYmDsNvjBF1y_ae9NBVVfI-RHW8NixuBbgYbjilMPFE34v7zWXgGCe00tZPI8DF5RyBkF866FHh44K3So9ZZu2Puz0lzOJ1UFnXedRSA0ohSIdSa...</msg>
<status status="PASS" endtime="20181006 21:59:37.297" starttime="20181006 21:59:37.297"></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="20181006 21:59:37.298" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABbuTBJf394LmoPr0w_EhScw4I5YaMZfkist7Y8J87goXLB6RVRayq8qy9LdbdZ0uYmDsNvjBF1y_ae9NBVVfI-RHW8NixuBbgYbjilMPFE34v7zWXgGCe00tZPI8DF5RyBkF866FHh44K3So9ZZu2Puz0lzOJ1UFnXedRSA0ohSIdSa...</msg>
<status status="PASS" endtime="20181006 21:59:37.298" starttime="20181006 21:59:37.297"></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="20181006 21:59:37.299" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABbuTBJf394LmoPr0w_EhScw4I5YaMZfkist7Y8J87goXLB6RVRayq8qy9LdbdZ0uYmDsNvjBF1y_ae9NBVVfI-RHW8NixuBbgYbjilMPFE34v7zWXgGCe00tZPI8DF5RyBkF866FHh44K3So9ZZu2Puz0lzOJ1UFnXedRSA0ohSIdSa...</msg>
<status status="PASS" endtime="20181006 21:59:37.299" starttime="20181006 21:59:37.298"></status>
</kw>
<status status="PASS" endtime="20181006 21:59:37.299" starttime="20181006 21:59:36.791"></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="20181006 21:59:37.316" 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 0x7fa964a9e950&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181006 21:59:37.316" starttime="20181006 21:59:37.315"></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="20181006 21:59:37.331" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181006 21:59:37.332" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:37.332" starttime="20181006 21:59:37.317"></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="20181006 21:59:37.333" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:37.333" starttime="20181006 21:59:37.332"></status>
</kw>
<doc>Get the complete list of networks</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181006 21:59:37.333" critical="yes" starttime="20181006 21:59:37.316"></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="20181006 21:59:37.354" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181006 21:59:37.355" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:37.355" starttime="20181006 21:59:37.334"></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="20181006 21:59:37.355" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:37.356" starttime="20181006 21:59:37.355"></status>
</kw>
<doc>Get the complete list of subnets</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181006 21:59:37.356" critical="yes" starttime="20181006 21:59:37.334"></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="20181006 21:59:37.368" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181006 21:59:37.368" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:37.368" starttime="20181006 21:59:37.357"></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="20181006 21:59:37.369" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:37.369" starttime="20181006 21:59:37.368"></status>
</kw>
<doc>Get the complete list of ports</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181006 21:59:37.369" critical="yes" starttime="20181006 21:59:37.356"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181006 21:59:37.370" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181006 21:59:37.370" starttime="20181006 21:59:37.369"></status>
</kw>
<status status="PASS" endtime="20181006 21:59:37.370" starttime="20181006 21:59:37.299"></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="20181006 21:59:37.389" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbuTBJf394LmoPr0w_EhScw4I5YaMZfkist7Y8J87goXLB6RVRayq8qy9LdbdZ0uYmDsNvjBF1y_ae9NBVVfI-RHW8NixuBbgYbjilMPFE34v7zWXgGCe00tZPI8DF5RyBkF866FHh44K3So9ZZu2Puz0lzOJ1UFnXedRSA0ohSIdSaMA', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181006 21:59:37.389" starttime="20181006 21:59:37.388"></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="20181006 21:59:37.390" level="INFO">{u'X-Auth-Token': 'gAAAAABbuTBJf394LmoPr0w_EhScw4I5YaMZfkist7Y8J87goXLB6RVRayq8qy9LdbdZ0uYmDsNvjBF1y_ae9NBVVfI-RHW8NixuBbgYbjilMPFE34v7zWXgGCe00tZPI8DF5RyBkF866FHh44K3So9ZZu2Puz0lzOJ1UFnXedRSA0ohSIdSaMA', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181006 21:59:37.390" starttime="20181006 21:59:37.390"></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="20181006 21:59:37.396" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181006 21:59:37.571" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/networks, headers=None json=None</msg>
<msg timestamp="20181006 21:59:37.571" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:37.571" starttime="20181006 21:59:37.391"></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="20181006 21:59:37.572" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:37.572" starttime="20181006 21:59:37.572"></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="20181006 21:59:37.573" 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":"34344569-ffc2-442e-8fe5-ef156edce76b","router:external":true,"availability_zone_hints":[],"availability_zones":["nova"],"ipv4_address_scope":null,"shared":false,"project_id":"36d3fad54085496f831bb1f1cc0f1983","status":"ACTIVE","subnets":["7c09876e-6b77-4f8f-941f-e00841489662"],"description":"","tags":[],"updated_at":"2018-10-06T21:47:30Z","is_default":false,"provider:segmentation_id":null,"name":"ext-net","admin_state_up":true,"tenant_id":"36d3fad54085496f831bb1f1cc0f1983","created_at":"2018-10-06T21:47:23Z","provider:network_type":"flat"}]} </msg>
<msg timestamp="20181006 21:59:37.573" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181006 21:59:37.574" 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'34344569-ffc2-...</msg>
<status status="PASS" endtime="20181006 21:59:37.574" starttime="20181006 21:59:37.573"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181006 21:59:37.574" 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'34344569-ffc2-442e-8fe5-ef156edce76b', 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'36d3fad54085496f831bb1f1cc0f1983', u'status': u'ACTIVE', u'subnets': [u'7c09876e-6b77-4f8f-941f-e00841489662'], u'description': u'', u'tags': [], u'updated_at': u'2018-10-06T21:47:30Z', u'is_default': False, u'provider:segmentation_id': None, u'name': u'ext-net', u'admin_state_up': True, u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'created_at': u'2018-10-06T21:47:23Z', u'mtu': 1500}]}</msg>
<status status="PASS" endtime="20181006 21:59:37.574" starttime="20181006 21:59:37.574"></status>
</kw>
<doc>Checking OpenStack Neutron for known networks</doc>
<tags>
<tag>Network Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181006 21:59:37.574" critical="yes" starttime="20181006 21:59:37.389"></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="20181006 21:59:37.577" 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 0x7fa964a3ff50&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181006 21:59:37.577" starttime="20181006 21:59:37.576"></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="20181006 21:59:37.589" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181006 21:59:37.589" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:37.589" starttime="20181006 21:59:37.577"></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="20181006 21:59:37.590" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:37.590" starttime="20181006 21:59:37.590"></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="20181006 21:59:37.591" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "34344569-ffc2-442e-8fe5-ef156edce76b",
      "tenant_id" : "36d3fad54085496f831bb1f1cc0f1983",
      "project_id" : "36d3fad54085496f831bb1f1cc0f1983",
      "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="20181006 21:59:37.591" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181006 21:59:37.591" 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'36d3fad54085496f831bb1f1cc0f1983...</msg>
<status status="PASS" endtime="20181006 21:59:37.591" starttime="20181006 21:59:37.591"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181006 21:59:37.592" 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'36d3fad54085496f831bb1f1cc0f1983', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'36d3fad54085496f831bb1f1cc0f1983', u'id': u'34344569-ffc2-442e-8fe5-ef156edce76b'}, {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="20181006 21:59:37.592" starttime="20181006 21:59:37.592"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known networks</doc>
<tags>
<tag>Network Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181006 21:59:37.592" critical="yes" starttime="20181006 21:59:37.575"></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="20181006 21:59:37.594" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20181006 21:59:37.594" starttime="20181006 21:59:37.594"></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="20181006 21:59:37.596" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181006 21:59:37.904" 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="20181006 21:59:37.904" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:37.904" starttime="20181006 21:59:37.594"></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="20181006 21:59:37.905" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:37.905" starttime="20181006 21:59:37.905"></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="20181006 21:59:37.906" 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":"3329222a-029e-4927-9af3-58ab4b499e7e","router:external":false,"availability_zone_hints":[],"availability_zones":[],"ipv4_address_scope":null,"shared":false,"project_id":"36d3fad54085496f831bb1f1cc0f1983","status":"ACTIVE","subnets":[],"description":"","tags":[],"updated_at":"2018-10-06T21:59:37Z","is_default":false,"provider:segmentation_id":33,"name":"odl_network","admin_state_up":true,"tenant_id":"36d3fad54085496f831bb1f1cc0f1983","created_at":"2018-10-06T21:59:37Z","mtu":1450}} </msg>
<msg timestamp="20181006 21:59:37.906" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181006 21:59:37.906" 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'3329222a-029e-4927-9af3-58ab4b499e7e', u'ro...</msg>
<status status="PASS" endtime="20181006 21:59:37.906" starttime="20181006 21:59:37.906"></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="20181006 21:59:37.907" 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'3329222a-029e-4927-9af3-58ab4b499e7e', u'router:external...</msg>
<status status="PASS" endtime="20181006 21:59:37.907" starttime="20181006 21:59:37.907"></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="20181006 21:59:37.908" level="INFO">${NETID} = 3329222a-029e-4927-9af3-58ab4b499e7e</msg>
<status status="PASS" endtime="20181006 21:59:37.908" starttime="20181006 21:59:37.907"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181006 21:59:37.908" 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'3329222a-029e-4927-9af3-58ab4b499e7e', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'36d3fad54085496f831bb1f1cc0f1983', u'status': u'ACTIVE', u'subnets': [], u'description': u'', u'tags': [], u'updated_at': u'2018-10-06T21:59:37Z', u'is_default': False, u'provider:segmentation_id': 33, u'name': u'odl_network', u'admin_state_up': True, u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'created_at': u'2018-10-06T21:59:37Z', u'provider:network_type': u'vxlan'}</msg>
<status status="PASS" endtime="20181006 21:59:37.908" starttime="20181006 21:59:37.908"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${NETID}</arg>
</arguments>
<msg timestamp="20181006 21:59:37.909" level="INFO">3329222a-029e-4927-9af3-58ab4b499e7e</msg>
<status status="PASS" endtime="20181006 21:59:37.909" starttime="20181006 21:59:37.908"></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="20181006 21:59:37.909" level="INFO">${NETID} = 3329222a-029e-4927-9af3-58ab4b499e7e</msg>
<status status="PASS" endtime="20181006 21:59:37.909" starttime="20181006 21:59:37.909"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181006 21:59:39.910" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181006 21:59:39.911" starttime="20181006 21:59:37.910"></status>
</kw>
<doc>Create new network in OpenStack</doc>
<tags>
<tag>Create Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181006 21:59:39.911" critical="yes" starttime="20181006 21:59:37.593"></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="20181006 21:59:39.920" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/3329222a-029e-4927-9af3-58ab4b499e7e, headers=None json=None</msg>
<msg timestamp="20181006 21:59:39.920" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:39.920" starttime="20181006 21:59:39.912"></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="20181006 21:59:39.921" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:39.921" starttime="20181006 21:59:39.920"></status>
</kw>
<doc>Check network created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181006 21:59:39.921" critical="yes" starttime="20181006 21:59:39.911"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181006 21:59:39.923" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181006 21:59:39.923" starttime="20181006 21:59:39.922"></status>
</kw>
<doc>Checking Network created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181006 21:59:39.923" starttime="20181006 21:59:37.371"></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="20181006 21:59:39.942" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbuTBJf394LmoPr0w_EhScw4I5YaMZfkist7Y8J87goXLB6RVRayq8qy9LdbdZ0uYmDsNvjBF1y_ae9NBVVfI-RHW8NixuBbgYbjilMPFE34v7zWXgGCe00tZPI8DF5RyBkF866FHh44K3So9ZZu2Puz0lzOJ1UFnXedRSA0ohSIdSaMA', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181006 21:59:39.943" starttime="20181006 21:59:39.942"></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="20181006 21:59:39.944" level="INFO">{u'X-Auth-Token': 'gAAAAABbuTBJf394LmoPr0w_EhScw4I5YaMZfkist7Y8J87goXLB6RVRayq8qy9LdbdZ0uYmDsNvjBF1y_ae9NBVVfI-RHW8NixuBbgYbjilMPFE34v7zWXgGCe00tZPI8DF5RyBkF866FHh44K3So9ZZu2Puz0lzOJ1UFnXedRSA0ohSIdSaMA', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181006 21:59:39.944" starttime="20181006 21:59:39.944"></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="20181006 21:59:39.950" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181006 21:59:40.017" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/subnets, headers=None json=None</msg>
<msg timestamp="20181006 21:59:40.017" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:40.017" starttime="20181006 21:59:39.944"></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="20181006 21:59:40.018" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:40.018" starttime="20181006 21:59:40.018"></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="20181006 21:59:40.019" level="INFO">To JSON using : content={"subnets":[{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"34344569-ffc2-442e-8fe5-ef156edce76b","tenant_id":"36d3fad54085496f831bb1f1cc0f1983","created_at":"2018-10-06T21:47:30Z","dns_nameservers":[],"updated_at":"2018-10-06T21:47:30Z","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":"36d3fad54085496f831bb1f1cc0f1983","id":"7c09876e-6b77-4f8f-941f-e00841489662","subnetpool_id":null,"name":"ext-subnet"}]} </msg>
<msg timestamp="20181006 21:59:40.019" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181006 21:59:40.019" level="INFO">${OSResult} = {u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'34344569-ffc2-442e-8fe5-ef156edce76b', u'tenant_id': u'36d3fad54085496...</msg>
<status status="PASS" endtime="20181006 21:59:40.019" starttime="20181006 21:59:40.019"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181006 21:59:40.020" level="INFO">{u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'34344569-ffc2-442e-8fe5-ef156edce76b', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'created_at': u'2018-10-06T21:47:30Z', u'dns_nameservers': [], u'updated_at': u'2018-10-06T21:47:30Z', 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'36d3fad54085496f831bb1f1cc0f1983', u'id': u'7c09876e-6b77-4f8f-941f-e00841489662', u'subnetpool_id': None, u'name': u'ext-subnet'}]}</msg>
<status status="PASS" endtime="20181006 21:59:40.020" starttime="20181006 21:59:40.020"></status>
</kw>
<doc>Checking OpenStack Neutron for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181006 21:59:40.020" critical="yes" starttime="20181006 21:59:39.943"></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="20181006 21:59:40.022" 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 0x7fa964a03d10&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181006 21:59:40.022" starttime="20181006 21:59:40.021"></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="20181006 21:59:40.030" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181006 21:59:40.030" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:40.030" starttime="20181006 21:59:40.023"></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="20181006 21:59:40.031" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:40.031" starttime="20181006 21:59:40.031"></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="20181006 21:59:40.032" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "7c09876e-6b77-4f8f-941f-e00841489662",
      "tenant_id" : "36d3fad54085496f831bb1f1cc0f1983",
      "project_id" : "36d3fad54085496f831bb1f1cc0f1983",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "34344569-ffc2-442e-8fe5-ef156edce76b",
      "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="20181006 21:59:40.032" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181006 21:59:40.032" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'34344569-ffc2-442e-8fe5-ef156edce76b', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20181006 21:59:40.032" starttime="20181006 21:59:40.031"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181006 21:59:40.033" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'34344569-ffc2-442e-8fe5-ef156edce76b', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', 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'36d3fad54085496f831bb1f1cc0f1983', u'id': u'7c09876e-6b77-4f8f-941f-e00841489662'}]}</msg>
<status status="PASS" endtime="20181006 21:59:40.033" starttime="20181006 21:59:40.032"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181006 21:59:40.033" critical="yes" starttime="20181006 21:59:40.021"></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="20181006 21:59:40.036" level="INFO">{"subnet":{"network_id":"3329222a-029e-4927-9af3-58ab4b499e7e","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="20181006 21:59:40.036" starttime="20181006 21:59:40.036"></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="20181006 21:59:40.038" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181006 21:59:40.569" 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="20181006 21:59:40.569" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:40.569" starttime="20181006 21:59:40.036"></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="20181006 21:59:40.570" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:40.571" starttime="20181006 21:59:40.570"></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="20181006 21:59:40.571" level="INFO">To JSON using : content={"subnet":{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"3329222a-029e-4927-9af3-58ab4b499e7e","tenant_id":"36d3fad54085496f831bb1f1cc0f1983","created_at":"2018-10-06T21:59:40Z","dns_nameservers":[],"updated_at":"2018-10-06T21:59:40Z","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":"36d3fad54085496f831bb1f1cc0f1983","id":"57195661-6f89-4632-9771-a6ea36df822c","subnetpool_id":null,"name":""}} </msg>
<msg timestamp="20181006 21:59:40.571" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181006 21:59:40.571" level="INFO">${result} = {u'subnet': {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'3329222a-029e-4927-9af3-58ab4b499e7e', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'...</msg>
<status status="PASS" endtime="20181006 21:59:40.571" starttime="20181006 21:59:40.571"></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="20181006 21:59:40.572" level="INFO">${result} = {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'3329222a-029e-4927-9af3-58ab4b499e7e', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'created_at':...</msg>
<status status="PASS" endtime="20181006 21:59:40.573" starttime="20181006 21:59:40.572"></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="20181006 21:59:40.574" level="INFO">${SUBNETID} = 57195661-6f89-4632-9771-a6ea36df822c</msg>
<status status="PASS" endtime="20181006 21:59:40.574" starttime="20181006 21:59:40.573"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181006 21:59:40.574" level="INFO">{u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'3329222a-029e-4927-9af3-58ab4b499e7e', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'created_at': u'2018-10-06T21:59:40Z', u'dns_nameservers': [], u'updated_at': u'2018-10-06T21:59:40Z', 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'36d3fad54085496f831bb1f1cc0f1983', u'id': u'57195661-6f89-4632-9771-a6ea36df822c', u'subnetpool_id': None, u'name': u''}</msg>
<status status="PASS" endtime="20181006 21:59:40.574" starttime="20181006 21:59:40.574"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${SUBNETID}</arg>
</arguments>
<msg timestamp="20181006 21:59:40.575" level="INFO">57195661-6f89-4632-9771-a6ea36df822c</msg>
<status status="PASS" endtime="20181006 21:59:40.575" starttime="20181006 21:59:40.574"></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="20181006 21:59:40.575" level="INFO">${SUBNETID} = 57195661-6f89-4632-9771-a6ea36df822c</msg>
<status status="PASS" endtime="20181006 21:59:40.576" starttime="20181006 21:59:40.575"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181006 21:59:42.576" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181006 21:59:42.577" starttime="20181006 21:59:40.576"></status>
</kw>
<doc>Create new subnet in OpenStack</doc>
<tags>
<tag>Create Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181006 21:59:42.577" critical="yes" starttime="20181006 21:59:40.033"></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="20181006 21:59:42.586" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/57195661-6f89-4632-9771-a6ea36df822c, headers=None json=None</msg>
<msg timestamp="20181006 21:59:42.586" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:42.586" starttime="20181006 21:59:42.578"></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="20181006 21:59:42.587" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:42.587" starttime="20181006 21:59:42.586"></status>
</kw>
<doc>Check new subnet created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>subnet OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181006 21:59:42.587" critical="yes" starttime="20181006 21:59:42.577"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181006 21:59:42.588" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181006 21:59:42.589" starttime="20181006 21:59:42.588"></status>
</kw>
<doc>Checking Subnets created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181006 21:59:42.589" starttime="20181006 21:59:39.924"></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="20181006 21:59:42.607" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbuTBJf394LmoPr0w_EhScw4I5YaMZfkist7Y8J87goXLB6RVRayq8qy9LdbdZ0uYmDsNvjBF1y_ae9NBVVfI-RHW8NixuBbgYbjilMPFE34v7zWXgGCe00tZPI8DF5RyBkF866FHh44K3So9ZZu2Puz0lzOJ1UFnXedRSA0ohSIdSaMA', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181006 21:59:42.608" starttime="20181006 21:59:42.607"></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="20181006 21:59:42.609" level="INFO">{u'X-Auth-Token': 'gAAAAABbuTBJf394LmoPr0w_EhScw4I5YaMZfkist7Y8J87goXLB6RVRayq8qy9LdbdZ0uYmDsNvjBF1y_ae9NBVVfI-RHW8NixuBbgYbjilMPFE34v7zWXgGCe00tZPI8DF5RyBkF866FHh44K3So9ZZu2Puz0lzOJ1UFnXedRSA0ohSIdSaMA', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181006 21:59:42.609" starttime="20181006 21:59:42.609"></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="20181006 21:59:42.614" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181006 21:59:42.739" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/ports, headers=None json=None</msg>
<msg timestamp="20181006 21:59:42.740" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:42.740" starttime="20181006 21:59:42.609"></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="20181006 21:59:42.740" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:42.740" starttime="20181006 21:59:42.740"></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="20181006 21:59:42.741" level="INFO">To JSON using : content={"ports":[{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-06T21:47:38Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"7c09876e-6b77-4f8f-941f-e00841489662","ip_address":"192.16.1.102"}],"id":"671e78b0-90e7-4d28-9a21-5414b5c01292","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"36828e07-068f-4e35-82a1-c7c08670b37a","host_addresses":["host3"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:75:a6:40","project_id":"36d3fad54085496f831bb1f1cc0f1983","status":"ACTIVE","binding:host_id":"host3","description":"","tags":[],"device_id":"dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-34344569-ffc2-442e-8fe5-ef156edce76b","name":"","admin_state_up":true,"network_id":"34344569-ffc2-442e-8fe5-ef156edce76b","tenant_id":"36d3fad54085496f831bb1f1cc0f1983","created_at":"2018-10-06T21:47:32Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-06T21:47:38Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"7c09876e-6b77-4f8f-941f-e00841489662","ip_address":"192.16.1.103"}],"id":"6b6459b3-afeb-4edc-88d1-991e59c523b3","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"c5052faf-35b3-4918-bf99-9989ea6e0fbf","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:61:70:66","project_id":"36d3fad54085496f831bb1f1cc0f1983","status":"ACTIVE","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-34344569-ffc2-442e-8fe5-ef156edce76b","name":"","admin_state_up":true,"network_id":"34344569-ffc2-442e-8fe5-ef156edce76b","tenant_id":"36d3fad54085496f831bb1f1cc0f1983","created_at":"2018-10-06T21:47:33Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-06T21:47:37Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"7c09876e-6b77-4f8f-941f-e00841489662","ip_address":"192.16.1.101"}],"id":"be8b6905-f6ad-448e-9c09-914f40eff76d","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"f7537372-06fb-41bf-add2-45c9b81af76a","host_addresses":["host2"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:a7:21:11","project_id":"36d3fad54085496f831bb1f1cc0f1983","status":"ACTIVE","binding:host_id":"host2","description":"","tags":[],"device_id":"dhcp6e683b9c-430b-509e-9237-cf130714d68f-34344569-ffc2-442e-8fe5-ef156edce76b","name":"","admin_state_up":true,"network_id":"34344569-ffc2-442e-8fe5-ef156edce76b","tenant_id":"36d3fad54085496f831bb1f1cc0f1983","created_at":"2018-10-06T21:47:31Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-06T21:59:41Z","device_owner":"network:dhcp","revision_number":2,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"57195661-6f89-4632-9771-a6ea36df822c","ip_address":"172.16.64.20"}],"id":"ce347493-8e96-4bac-8dc3-7bebb2b47387","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"f7537372-06fb-41bf-add2-45c9b81af76a","host_addresses":["host2"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:4b:69:2e","project_id":"36d3fad54085496f831bb1f1cc0f1983","status":"DOWN","binding:host_id":"host2","description":"","tags":[],"device_id":"dhcp6e683b9c-430b-509e-9237-cf130714d68f-3329222a-029e-4927-9af3-58ab4b499e7e","name":"","admin_state_up":true,"network_id":"3329222a-029e-4927-9af3-58ab4b499e7e","tenant_id":"36d3fad54085496f831bb1f1cc0f1983","created_at":"2018-10-06T21:59:40Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-06T21:59:42Z","device_owner":"network:dhcp","revision_number":1,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"57195661-6f89-4632-9771-a6ea36df822c","ip_address":"172.16.64.21"}],"id":"f4b80ede-589a-422b-93ec-72e1de777678","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:20:e6:dd","project_id":"36d3fad54085496f831bb1f1cc0f1983","status":"DOWN","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-3329222a-029e-4927-9af3-58ab4b499e7e","name":"","admin_state_up":true,"network_id":"3329222a-029e-4927-9af3-58ab4b499e7e","tenant_id":"36d3fad54085496f831bb1f1cc0f1983","created_at":"2018-10-06T21:59:41Z","binding:vnic_type":"normal"}]} </msg>
<msg timestamp="20181006 21:59:42.741" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181006 21:59:42.742" level="INFO">${OSResult} = {u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-06T21:47:38Z', u'device_owner': u'network:dhcp', u'revision_number': 3, u'port_security_enabled': False, u'b...</msg>
<status status="PASS" endtime="20181006 21:59:42.742" starttime="20181006 21:59:42.741"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181006 21:59:42.743" level="INFO">{u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-06T21:47:38Z', u'device_owner': u'network:dhcp', u'revision_number': 3, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'7c09876e-6b77-4f8f-941f-e00841489662', u'ip_address': u'192.16.1.102'}], u'id': u'671e78b0-90e7-4d28-9a21-5414b5c01292', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'36828e07-068f-4e35-82a1-c7c08670b37a', u'host_addresses': [u'host3']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:75:a6:40', u'project_id': u'36d3fad54085496f831bb1f1cc0f1983', u'status': u'ACTIVE', u'binding:host_id': u'host3', u'description': u'', u'tags': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-34344569-ffc2-442e-8fe5-ef156edce76b', u'name': u'', u'admin_state_up': True, u'network_id': u'34344569-ffc2-442e-8fe5-ef156edce76b', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'created_at': u'2018-10-06T21:47:32Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-06T21:47:38Z', u'device_owner': u'network:dhcp', u'revision_number': 3, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'7c09876e-6b77-4f8f-941f-e00841489662', u'ip_address': u'192.16.1.103'}], u'id': u'6b6459b3-afeb-4edc-88d1-991e59c523b3', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'c5052faf-35b3-4918-bf99-9989ea6e0fbf', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:61:70:66', u'project_id': u'36d3fad54085496f831bb1f1cc0f1983', u'status': u'ACTIVE', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-34344569-ffc2-442e-8fe5-ef156edce76b', u'name': u'', u'admin_state_up': True, u'network_id': u'34344569-ffc2-442e-8fe5-ef156edce76b', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'created_at': u'2018-10-06T21:47:33Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-06T21:47:37Z', u'device_owner': u'network:dhcp', u'revision_number': 3, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'7c09876e-6b77-4f8f-941f-e00841489662', u'ip_address': u'192.16.1.101'}], u'id': u'be8b6905-f6ad-448e-9c09-914f40eff76d', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'f7537372-06fb-41bf-add2-45c9b81af76a', u'host_addresses': [u'host2']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:a7:21:11', u'project_id': u'36d3fad54085496f831bb1f1cc0f1983', u'status': u'ACTIVE', u'binding:host_id': u'host2', u'description': u'', u'tags': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-34344569-ffc2-442e-8fe5-ef156edce76b', u'name': u'', u'admin_state_up': True, u'network_id': u'34344569-ffc2-442e-8fe5-ef156edce76b', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'created_at': u'2018-10-06T21:47:31Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-06T21:59:41Z', 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'57195661-6f89-4632-9771-a6ea36df822c', u'ip_address': u'172.16.64.20'}], u'id': u'ce347493-8e96-4bac-8dc3-7bebb2b47387', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'f7537372-06fb-41bf-add2-45c9b81af76a', u'host_addresses': [u'host2']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:4b:69:2e', u'project_id': u'36d3fad54085496f831bb1f1cc0f1983', u'status': u'DOWN', u'binding:host_id': u'host2', u'description': u'', u'tags': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-3329222a-029e-4927-9af3-58ab4b499e7e', u'name': u'', u'admin_state_up': True, u'network_id': u'3329222a-029e-4927-9af3-58ab4b499e7e', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'created_at': u'2018-10-06T21:59:40Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-06T21:59:42Z', u'device_owner': u'network:dhcp', u'revision_number': 1, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'57195661-6f89-4632-9771-a6ea36df822c', u'ip_address': u'172.16.64.21'}], u'id': u'f4b80ede-589a-422b-93ec-72e1de777678', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:20:e6:dd', u'project_id': u'36d3fad54085496f831bb1f1cc0f1983', u'status': u'DOWN', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-3329222a-029e-4927-9af3-58ab4b499e7e', u'name': u'', u'admin_state_up': True, u'network_id': u'3329222a-029e-4927-9af3-58ab4b499e7e', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'created_at': u'2018-10-06T21:59:41Z', u'binding:vnic_type': u'normal'}]}</msg>
<status status="PASS" endtime="20181006 21:59:42.743" starttime="20181006 21:59:42.742"></status>
</kw>
<doc>Checking OpenStack Neutron for known ports</doc>
<tags>
<tag>Ports Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181006 21:59:42.743" critical="yes" starttime="20181006 21:59:42.608"></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="20181006 21:59:42.745" 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 0x7fa964a52c50&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181006 21:59:42.745" starttime="20181006 21:59:42.744"></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="20181006 21:59:42.767" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181006 21:59:42.767" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:42.767" starttime="20181006 21:59:42.745"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181006 21:59:42.768" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:42.768" starttime="20181006 21:59:42.768"></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="20181006 21:59:42.769" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "f4b80ede-589a-422b-93ec-72e1de777678",
      "tenant_id" : "36d3fad54085496f831bb1f1cc0f1983",
      "project_id" : "36d3fad54085496f831bb1f1cc0f1983",
      "name" : "",
      "admin_state_up" : true,
      "status" : "ACTIVE",
      "network_id" : "3329222a-029e-4927-9af3-58ab4b499e7e",
      "mac_address" : "fa:16:3e:20:e6:dd",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.21",
         "subnet_id" : "57195661-6f89-4632-9771-a6ea36df822c"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-3329222a-029e-4927-9af3-58ab4b499e7e",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "unbound",
      "Map" : {
      },
      "port_security_enabled" : false
   }, {
      "id" : "ce347493-8e96-4bac-8dc3-7bebb2b47387",
      "tenant_id" : "36d3fad54085496f831bb1f1cc0f1983",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "3329222a-029e-4927-9af3-58ab4b499e7e",
      "mac_address" : "fa:16:3e:4b:69:2e",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "57195661-6f89-4632-9771-a6ea36df822c"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-3329222a-029e-4927-9af3-58ab4b499e7e",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host2",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "f7537372-06fb-41bf-add2-45c9b81af76a",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "671e78b0-90e7-4d28-9a21-5414b5c01292",
      "tenant_id" : "36d3fad54085496f831bb1f1cc0f1983",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "34344569-ffc2-442e-8fe5-ef156edce76b",
      "mac_address" : "fa:16:3e:75:a6:40",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.102",
         "subnet_id" : "7c09876e-6b77-4f8f-941f-e00841489662"
      } ],
      "device_id" : "dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-34344569-ffc2-442e-8fe5-ef156edce76b",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host3",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "36828e07-068f-4e35-82a1-c7c08670b37a",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "be8b6905-f6ad-448e-9c09-914f40eff76d",
      "tenant_id" : "36d3fad54085496f831bb1f1cc0f1983",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "34344569-ffc2-442e-8fe5-ef156edce76b",
      "mac_address" : "fa:16:3e:a7:21:11",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "7c09876e-6b77-4f8f-941f-e00841489662"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-34344569-ffc2-442e-8fe5-ef156edce76b",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host2",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "f7537372-06fb-41bf-add2-45c9b81af76a",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "6b6459b3-afeb-4edc-88d1-991e59c523b3",
      "tenant_id" : "36d3fad54085496f831bb1f1cc0f1983",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "34344569-ffc2-442e-8fe5-ef156edce76b",
      "mac_address" : "fa:16:3e:61:70:66",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.103",
         "subnet_id" : "7c09876e-6b77-4f8f-941f-e00841489662"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-34344569-ffc2-442e-8fe5-ef156edce76b",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "c5052faf-35b3-4918-bf99-9989ea6e0fbf",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20181006 21:59:42.770" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181006 21:59:42.770" level="INFO">${ODLResult} = {u'ports': [{u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'3329222a-029e-4927-9af3-58ab4b499e7e'...</msg>
<status status="PASS" endtime="20181006 21:59:42.770" starttime="20181006 21:59:42.768"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181006 21:59:42.771" level="INFO">{u'ports': [{u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'3329222a-029e-4927-9af3-58ab4b499e7e', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:dhcp', u'mac_address': u'fa:16:3e:20:e6:dd', u'port_security_enabled': False, u'project_id': u'36d3fad54085496f831bb1f1cc0f1983', u'fixed_ips': [{u'subnet_id': u'57195661-6f89-4632-9771-a6ea36df822c', u'ip_address': u'172.16.64.21'}], u'id': u'f4b80ede-589a-422b-93ec-72e1de777678', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-3329222a-029e-4927-9af3-58ab4b499e7e'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'f7537372-06fb-41bf-add2-45c9b81af76a'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'3329222a-029e-4927-9af3-58ab4b499e7e', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', 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:4b:69:2e', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'57195661-6f89-4632-9771-a6ea36df822c', u'ip_address': u'172.16.64.20'}], u'id': u'ce347493-8e96-4bac-8dc3-7bebb2b47387', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-3329222a-029e-4927-9af3-58ab4b499e7e'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'36828e07-068f-4e35-82a1-c7c08670b37a'}, u'binding:host_id': u'host3', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'34344569-ffc2-442e-8fe5-ef156edce76b', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'revision_number': 3, u'mac_address': u'fa:16:3e:75:a6:40', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'7c09876e-6b77-4f8f-941f-e00841489662', u'ip_address': u'192.16.1.102'}], u'id': u'671e78b0-90e7-4d28-9a21-5414b5c01292', u'security_groups': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-34344569-ffc2-442e-8fe5-ef156edce76b'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'f7537372-06fb-41bf-add2-45c9b81af76a'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'34344569-ffc2-442e-8fe5-ef156edce76b', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'revision_number': 3, u'mac_address': u'fa:16:3e:a7:21:11', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'7c09876e-6b77-4f8f-941f-e00841489662', u'ip_address': u'192.16.1.101'}], u'id': u'be8b6905-f6ad-448e-9c09-914f40eff76d', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-34344569-ffc2-442e-8fe5-ef156edce76b'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'c5052faf-35b3-4918-bf99-9989ea6e0fbf'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'34344569-ffc2-442e-8fe5-ef156edce76b', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'revision_number': 3, u'mac_address': u'fa:16:3e:61:70:66', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'7c09876e-6b77-4f8f-941f-e00841489662', u'ip_address': u'192.16.1.103'}], u'id': u'6b6459b3-afeb-4edc-88d1-991e59c523b3', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-34344569-ffc2-442e-8fe5-ef156edce76b'}]}</msg>
<status status="PASS" endtime="20181006 21:59:42.771" starttime="20181006 21:59:42.770"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known ports</doc>
<tags>
<tag>Ports Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181006 21:59:42.771" critical="yes" starttime="20181006 21:59:42.743"></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="20181006 21:59:42.773" level="INFO">{"port":{"network_id":"3329222a-029e-4927-9af3-58ab4b499e7e","admin_state_up": true}}</msg>
<status status="PASS" endtime="20181006 21:59:42.773" starttime="20181006 21:59:42.772"></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="20181006 21:59:42.775" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181006 21:59:43.911" 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="20181006 21:59:43.912" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:43.912" starttime="20181006 21:59:42.773"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>201</arg>
</arguments>
<msg timestamp="20181006 21:59:43.913" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:43.913" starttime="20181006 21:59:43.912"></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="20181006 21:59:43.913" level="INFO">To JSON using : content={"port":{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-06T21:59:43Z","device_owner":"","revision_number":1,"binding:profile":{},"port_security_enabled":true,"fixed_ips":[{"subnet_id":"57195661-6f89-4632-9771-a6ea36df822c","ip_address":"172.16.64.24"}],"id":"377c445c-233e-427a-bca4-e5ed0b507e2e","security_groups":["2d684c4e-2f32-47eb-bc23-991b5bfcc8e0"],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:47:3b:b7","project_id":"36d3fad54085496f831bb1f1cc0f1983","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"","name":"","admin_state_up":true,"network_id":"3329222a-029e-4927-9af3-58ab4b499e7e","tenant_id":"36d3fad54085496f831bb1f1cc0f1983","created_at":"2018-10-06T21:59:42Z","binding:vnic_type":"normal"}} </msg>
<msg timestamp="20181006 21:59:43.913" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181006 21:59:43.914" level="INFO">${result} = {u'port': {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-06T21:59:43Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': ...</msg>
<status status="PASS" endtime="20181006 21:59:43.914" starttime="20181006 21:59:43.913"></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="20181006 21:59:43.914" level="INFO">${result} = {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-06T21:59:43Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fi...</msg>
<status status="PASS" endtime="20181006 21:59:43.914" starttime="20181006 21:59:43.914"></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="20181006 21:59:43.915" level="INFO">${PORTID} = 377c445c-233e-427a-bca4-e5ed0b507e2e</msg>
<status status="PASS" endtime="20181006 21:59:43.915" starttime="20181006 21:59:43.915"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181006 21:59:43.916" level="INFO">{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-06T21:59:43Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fixed_ips': [{u'subnet_id': u'57195661-6f89-4632-9771-a6ea36df822c', u'ip_address': u'172.16.64.24'}], u'id': u'377c445c-233e-427a-bca4-e5ed0b507e2e', u'security_groups': [u'2d684c4e-2f32-47eb-bc23-991b5bfcc8e0'], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:47:3b:b7', u'project_id': u'36d3fad54085496f831bb1f1cc0f1983', 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'3329222a-029e-4927-9af3-58ab4b499e7e', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'created_at': u'2018-10-06T21:59:42Z', u'binding:vnic_type': u'normal'}</msg>
<status status="PASS" endtime="20181006 21:59:43.916" starttime="20181006 21:59:43.915"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${PORTID}</arg>
</arguments>
<msg timestamp="20181006 21:59:43.916" level="INFO">377c445c-233e-427a-bca4-e5ed0b507e2e</msg>
<status status="PASS" endtime="20181006 21:59:43.916" starttime="20181006 21:59:43.916"></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="20181006 21:59:43.917" level="INFO">${PORTID} = 377c445c-233e-427a-bca4-e5ed0b507e2e</msg>
<status status="PASS" endtime="20181006 21:59:43.917" starttime="20181006 21:59:43.916"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181006 21:59:45.918" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181006 21:59:45.918" starttime="20181006 21:59:43.917"></status>
</kw>
<doc>Create new port in OpenStack</doc>
<tags>
<tag>Create port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181006 21:59:45.918" critical="yes" starttime="20181006 21:59:42.772"></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="20181006 21:59:45.929" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/377c445c-233e-427a-bca4-e5ed0b507e2e, headers=None json=None</msg>
<msg timestamp="20181006 21:59:45.929" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:45.929" starttime="20181006 21:59:45.920"></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="20181006 21:59:45.930" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:45.930" starttime="20181006 21:59:45.929"></status>
</kw>
<doc>Check new port created in OpenDaylight</doc>
<tags>
<tag>Check port OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181006 21:59:45.930" critical="yes" starttime="20181006 21:59:45.919"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181006 21:59:45.931" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181006 21:59:45.931" starttime="20181006 21:59:45.931"></status>
</kw>
<doc>Checking Port created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181006 21:59:45.931" starttime="20181006 21:59:42.591"></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="20181006 21:59:45.950" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbuTBJf394LmoPr0w_EhScw4I5YaMZfkist7Y8J87goXLB6RVRayq8qy9LdbdZ0uYmDsNvjBF1y_ae9NBVVfI-RHW8NixuBbgYbjilMPFE34v7zWXgGCe00tZPI8DF5RyBkF866FHh44K3So9ZZu2Puz0lzOJ1UFnXedRSA0ohSIdSaMA'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181006 21:59:45.950" starttime="20181006 21:59:45.949"></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="20181006 21:59:45.951" level="INFO">Creating Session using : alias=ODLSession, url=http://192.16.1.222:8080, headers={u'Content-Type': u'application/json'},                     cookies=None, auth=&lt;requests.auth.HTTPBasicAuth object at 0x7fa964a115d0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181006 21:59:45.951" starttime="20181006 21:59:45.950"></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="20181006 21:59:45.961" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/377c445c-233e-427a-bca4-e5ed0b507e2e, headers=None json=None</msg>
<msg timestamp="20181006 21:59:45.961" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:45.961" starttime="20181006 21:59:45.952"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181006 21:59:45.962" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:45.962" starttime="20181006 21:59:45.962"></status>
</kw>
<status status="PASS" endtime="20181006 21:59:45.962" starttime="20181006 21:59:45.952"></status>
</kw>
<status status="PASS" endtime="20181006 21:59:45.963" starttime="20181006 21:59:45.949"></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="20181006 21:59:45.964" level="INFO">{"port":{"network_id":"3329222a-029e-4927-9af3-58ab4b499e7e","admin_state_up": true}}</msg>
<status status="PASS" endtime="20181006 21:59:45.964" starttime="20181006 21:59:45.963"></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="20181006 21:59:45.968" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181006 21:59:46.834" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/ports/377c445c-233e-427a-bca4-e5ed0b507e2e, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181006 21:59:46.835" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:46.835" starttime="20181006 21:59:45.964"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>204</arg>
</arguments>
<msg timestamp="20181006 21:59:46.836" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:46.836" starttime="20181006 21:59:46.835"></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="20181006 21:59:46.836" level="INFO"></msg>
<status status="PASS" endtime="20181006 21:59:46.836" starttime="20181006 21:59:46.836"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181006 21:59:48.837" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181006 21:59:48.837" starttime="20181006 21:59:46.837"></status>
</kw>
<doc>Delete previously created port in OpenStack</doc>
<tags>
<tag>Delete port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181006 21:59:48.838" critical="yes" starttime="20181006 21:59:45.963"></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="20181006 21:59:48.853" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181006 21:59:48.853" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:48.854" starttime="20181006 21:59:48.839"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181006 21:59:48.854" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:48.854" starttime="20181006 21:59:48.854"></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="20181006 21:59:48.855" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "6b6459b3-afeb-4edc-88d1-991e59c523b3",
      "tenant_id" : "36d3fad54085496f831bb1f1cc0f1983",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "34344569-ffc2-442e-8fe5-ef156edce76b",
      "mac_address" : "fa:16:3e:61:70:66",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.103",
         "subnet_id" : "7c09876e-6b77-4f8f-941f-e00841489662"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-34344569-ffc2-442e-8fe5-ef156edce76b",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "c5052faf-35b3-4918-bf99-9989ea6e0fbf",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "8aae94bc-11f3-4005-a82a-fe079b08c67f",
      "tenant_id" : "36d3fad54085496f831bb1f1cc0f1983",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "3329222a-029e-4927-9af3-58ab4b499e7e",
      "mac_address" : "fa:16:3e:1f:8d:02",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.22",
         "subnet_id" : "57195661-6f89-4632-9771-a6ea36df822c"
      } ],
      "device_id" : "dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-3329222a-029e-4927-9af3-58ab4b499e7e",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host3",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "36828e07-068f-4e35-82a1-c7c08670b37a",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "ce347493-8e96-4bac-8dc3-7bebb2b47387",
      "tenant_id" : "36d3fad54085496f831bb1f1cc0f1983",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "3329222a-029e-4927-9af3-58ab4b499e7e",
      "mac_address" : "fa:16:3e:4b:69:2e",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "57195661-6f89-4632-9771-a6ea36df822c"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-3329222a-029e-4927-9af3-58ab4b499e7e",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host2",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "f7537372-06fb-41bf-add2-45c9b81af76a",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "671e78b0-90e7-4d28-9a21-5414b5c01292",
      "tenant_id" : "36d3fad54085496f831bb1f1cc0f1983",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "34344569-ffc2-442e-8fe5-ef156edce76b",
      "mac_address" : "fa:16:3e:75:a6:40",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.102",
         "subnet_id" : "7c09876e-6b77-4f8f-941f-e00841489662"
      } ],
      "device_id" : "dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-34344569-ffc2-442e-8fe5-ef156edce76b",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host3",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "36828e07-068f-4e35-82a1-c7c08670b37a",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "f4b80ede-589a-422b-93ec-72e1de777678",
      "tenant_id" : "36d3fad54085496f831bb1f1cc0f1983",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "3329222a-029e-4927-9af3-58ab4b499e7e",
      "mac_address" : "fa:16:3e:20:e6:dd",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.21",
         "subnet_id" : "57195661-6f89-4632-9771-a6ea36df822c"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-3329222a-029e-4927-9af3-58ab4b499e7e",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "c5052faf-35b3-4918-bf99-9989ea6e0fbf",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "be8b6905-f6ad-448e-9c09-914f40eff76d",
      "tenant_id" : "36d3fad54085496f831bb1f1cc0f1983",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "34344569-ffc2-442e-8fe5-ef156edce76b",
      "mac_address" : "fa:16:3e:a7:21:11",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "7c09876e-6b77-4f8f-941f-e00841489662"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-34344569-ffc2-442e-8fe5-ef156edce76b",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host2",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "f7537372-06fb-41bf-add2-45c9b81af76a",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20181006 21:59:48.855" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181006 21:59:48.856" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'c5052faf-35b3-4918-bf99-9989ea6e0fbf'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20181006 21:59:48.856" starttime="20181006 21:59:48.855"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181006 21:59:48.856" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'c5052faf-35b3-4918-bf99-9989ea6e0fbf'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'34344569-ffc2-442e-8fe5-ef156edce76b', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'revision_number': 3, u'mac_address': u'fa:16:3e:61:70:66', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'7c09876e-6b77-4f8f-941f-e00841489662', u'ip_address': u'192.16.1.103'}], u'id': u'6b6459b3-afeb-4edc-88d1-991e59c523b3', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-34344569-ffc2-442e-8fe5-ef156edce76b'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'36828e07-068f-4e35-82a1-c7c08670b37a'}, u'binding:host_id': u'host3', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'3329222a-029e-4927-9af3-58ab4b499e7e', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'revision_number': 3, u'mac_address': u'fa:16:3e:1f:8d:02', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'57195661-6f89-4632-9771-a6ea36df822c', u'ip_address': u'172.16.64.22'}], u'id': u'8aae94bc-11f3-4005-a82a-fe079b08c67f', u'security_groups': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-3329222a-029e-4927-9af3-58ab4b499e7e'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'f7537372-06fb-41bf-add2-45c9b81af76a'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'3329222a-029e-4927-9af3-58ab4b499e7e', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'revision_number': 3, u'mac_address': u'fa:16:3e:4b:69:2e', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'57195661-6f89-4632-9771-a6ea36df822c', u'ip_address': u'172.16.64.20'}], u'id': u'ce347493-8e96-4bac-8dc3-7bebb2b47387', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-3329222a-029e-4927-9af3-58ab4b499e7e'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'36828e07-068f-4e35-82a1-c7c08670b37a'}, u'binding:host_id': u'host3', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'34344569-ffc2-442e-8fe5-ef156edce76b', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'revision_number': 3, u'mac_address': u'fa:16:3e:75:a6:40', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'7c09876e-6b77-4f8f-941f-e00841489662', u'ip_address': u'192.16.1.102'}], u'id': u'671e78b0-90e7-4d28-9a21-5414b5c01292', u'security_groups': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-34344569-ffc2-442e-8fe5-ef156edce76b'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'c5052faf-35b3-4918-bf99-9989ea6e0fbf'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'3329222a-029e-4927-9af3-58ab4b499e7e', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'revision_number': 3, u'mac_address': u'fa:16:3e:20:e6:dd', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'57195661-6f89-4632-9771-a6ea36df822c', u'ip_address': u'172.16.64.21'}], u'id': u'f4b80ede-589a-422b-93ec-72e1de777678', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-3329222a-029e-4927-9af3-58ab4b499e7e'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'f7537372-06fb-41bf-add2-45c9b81af76a'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'34344569-ffc2-442e-8fe5-ef156edce76b', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'revision_number': 3, u'mac_address': u'fa:16:3e:a7:21:11', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'7c09876e-6b77-4f8f-941f-e00841489662', u'ip_address': u'192.16.1.101'}], u'id': u'be8b6905-f6ad-448e-9c09-914f40eff76d', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-34344569-ffc2-442e-8fe5-ef156edce76b'}]}</msg>
<status status="PASS" endtime="20181006 21:59:48.857" starttime="20181006 21:59:48.856"></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="20181006 21:59:48.862" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/377c445c-233e-427a-bca4-e5ed0b507e2e, headers=None json=None</msg>
<msg timestamp="20181006 21:59:48.862" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:48.862" starttime="20181006 21:59:48.857"></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="20181006 21:59:48.863" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:48.863" starttime="20181006 21:59:48.862"></status>
</kw>
<doc>Check port deleted in OpenDaylight</doc>
<tags>
<tag>Check port deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181006 21:59:48.863" critical="yes" starttime="20181006 21:59:48.838"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181006 21:59:48.864" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181006 21:59:48.864" starttime="20181006 21:59:48.864"></status>
</kw>
<doc>Checking Port deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181006 21:59:48.864" starttime="20181006 21:59:45.932"></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="20181006 21:59:48.883" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbuTBJf394LmoPr0w_EhScw4I5YaMZfkist7Y8J87goXLB6RVRayq8qy9LdbdZ0uYmDsNvjBF1y_ae9NBVVfI-RHW8NixuBbgYbjilMPFE34v7zWXgGCe00tZPI8DF5RyBkF866FHh44K3So9ZZu2Puz0lzOJ1UFnXedRSA0ohSIdSaMA'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181006 21:59:48.884" starttime="20181006 21:59:48.883"></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="20181006 21:59:48.885" 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 0x7fa964a9e0d0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181006 21:59:48.885" starttime="20181006 21:59:48.884"></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="20181006 21:59:48.893" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/57195661-6f89-4632-9771-a6ea36df822c, headers=None json=None</msg>
<msg timestamp="20181006 21:59:48.893" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:48.893" starttime="20181006 21:59:48.886"></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="20181006 21:59:48.894" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:48.894" starttime="20181006 21:59:48.893"></status>
</kw>
<status status="PASS" endtime="20181006 21:59:48.894" starttime="20181006 21:59:48.885"></status>
</kw>
<status status="PASS" endtime="20181006 21:59:48.894" starttime="20181006 21:59:48.882"></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="20181006 21:59:48.895" level="INFO">{"subnet":{"network_id":"3329222a-029e-4927-9af3-58ab4b499e7e","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="20181006 21:59:48.895" starttime="20181006 21:59:48.895"></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="20181006 21:59:48.901" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181006 21:59:52.358" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/subnets/57195661-6f89-4632-9771-a6ea36df822c, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181006 21:59:52.358" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:52.359" starttime="20181006 21:59:48.896"></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="20181006 21:59:52.359" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:52.360" starttime="20181006 21:59:52.359"></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="20181006 21:59:52.360" level="INFO"></msg>
<status status="PASS" endtime="20181006 21:59:52.360" starttime="20181006 21:59:52.360"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181006 21:59:54.361" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181006 21:59:54.361" starttime="20181006 21:59:52.360"></status>
</kw>
<doc>Delete previously created subnet in OpenStack</doc>
<tags>
<tag>Delete Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181006 21:59:54.361" critical="yes" starttime="20181006 21:59:48.894"></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="20181006 21:59:54.370" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181006 21:59:54.370" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:54.370" starttime="20181006 21:59:54.363"></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="20181006 21:59:54.371" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:54.371" starttime="20181006 21:59:54.370"></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="20181006 21:59:54.372" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "7c09876e-6b77-4f8f-941f-e00841489662",
      "tenant_id" : "36d3fad54085496f831bb1f1cc0f1983",
      "project_id" : "36d3fad54085496f831bb1f1cc0f1983",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "34344569-ffc2-442e-8fe5-ef156edce76b",
      "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="20181006 21:59:54.372" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181006 21:59:54.372" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'34344569-ffc2-442e-8fe5-ef156edce76b', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20181006 21:59:54.372" starttime="20181006 21:59:54.371"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181006 21:59:54.373" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'34344569-ffc2-442e-8fe5-ef156edce76b', u'tenant_id': u'36d3fad54085496f831bb1f1cc0f1983', 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'36d3fad54085496f831bb1f1cc0f1983', u'id': u'7c09876e-6b77-4f8f-941f-e00841489662'}]}</msg>
<status status="PASS" endtime="20181006 21:59:54.373" starttime="20181006 21:59:54.372"></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="20181006 21:59:54.378" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/57195661-6f89-4632-9771-a6ea36df822c, headers=None json=None</msg>
<msg timestamp="20181006 21:59:54.379" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:54.379" starttime="20181006 21:59:54.373"></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="20181006 21:59:54.379" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:54.379" starttime="20181006 21:59:54.379"></status>
</kw>
<doc>Check subnet deleted in OpenDaylight</doc>
<tags>
<tag>Check subnet deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181006 21:59:54.380" critical="yes" starttime="20181006 21:59:54.362"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181006 21:59:54.380" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181006 21:59:54.381" starttime="20181006 21:59:54.380"></status>
</kw>
<doc>Checking Subnets deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181006 21:59:54.381" starttime="20181006 21:59:48.865"></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="20181006 21:59:54.401" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbuTBJf394LmoPr0w_EhScw4I5YaMZfkist7Y8J87goXLB6RVRayq8qy9LdbdZ0uYmDsNvjBF1y_ae9NBVVfI-RHW8NixuBbgYbjilMPFE34v7zWXgGCe00tZPI8DF5RyBkF866FHh44K3So9ZZu2Puz0lzOJ1UFnXedRSA0ohSIdSaMA'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181006 21:59:54.401" starttime="20181006 21:59:54.400"></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="20181006 21:59:54.402" 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 0x7fa9649cbf90&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181006 21:59:54.403" starttime="20181006 21:59:54.401"></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="20181006 21:59:54.409" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/3329222a-029e-4927-9af3-58ab4b499e7e, headers=None json=None</msg>
<msg timestamp="20181006 21:59:54.410" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:54.410" starttime="20181006 21:59:54.403"></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="20181006 21:59:54.411" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:54.411" starttime="20181006 21:59:54.410"></status>
</kw>
<status status="PASS" endtime="20181006 21:59:54.411" starttime="20181006 21:59:54.403"></status>
</kw>
<status status="PASS" endtime="20181006 21:59:54.411" starttime="20181006 21:59:54.399"></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="20181006 21:59:54.413" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20181006 21:59:54.413" starttime="20181006 21:59:54.412"></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="20181006 21:59:54.418" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181006 21:59:57.236" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/networks/3329222a-029e-4927-9af3-58ab4b499e7e, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181006 21:59:57.237" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:57.237" starttime="20181006 21:59:54.413"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>204</arg>
</arguments>
<msg timestamp="20181006 21:59:57.238" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:57.238" starttime="20181006 21:59:57.237"></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="20181006 21:59:57.238" level="INFO"></msg>
<status status="PASS" endtime="20181006 21:59:57.238" starttime="20181006 21:59:57.238"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181006 21:59:59.239" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181006 21:59:59.239" starttime="20181006 21:59:57.239"></status>
</kw>
<doc>Delete network in OpenStack</doc>
<tags>
<tag>Delete Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181006 21:59:59.240" critical="yes" starttime="20181006 21:59:54.412"></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="20181006 21:59:59.253" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181006 21:59:59.253" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:59.253" starttime="20181006 21:59:59.241"></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="20181006 21:59:59.255" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:59.255" starttime="20181006 21:59:59.254"></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="20181006 21:59:59.256" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "34344569-ffc2-442e-8fe5-ef156edce76b",
      "tenant_id" : "36d3fad54085496f831bb1f1cc0f1983",
      "project_id" : "36d3fad54085496f831bb1f1cc0f1983",
      "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="20181006 21:59:59.256" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181006 21:59:59.256" 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'36d3fad54085496f831bb1f1cc0f1983...</msg>
<status status="PASS" endtime="20181006 21:59:59.256" starttime="20181006 21:59:59.255"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181006 21:59:59.257" 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'36d3fad54085496f831bb1f1cc0f1983', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'36d3fad54085496f831bb1f1cc0f1983', u'id': u'34344569-ffc2-442e-8fe5-ef156edce76b'}, {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="20181006 21:59:59.257" starttime="20181006 21:59:59.256"></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="20181006 21:59:59.261" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/3329222a-029e-4927-9af3-58ab4b499e7e, headers=None json=None</msg>
<msg timestamp="20181006 21:59:59.262" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181006 21:59:59.262" starttime="20181006 21:59:59.257"></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="20181006 21:59:59.262" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181006 21:59:59.262" starttime="20181006 21:59:59.262"></status>
</kw>
<doc>Check network deleted in OpenDaylight</doc>
<tags>
<tag>Check Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181006 21:59:59.263" critical="yes" starttime="20181006 21:59:59.240"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181006 21:59:59.264" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181006 21:59:59.264" starttime="20181006 21:59:59.263"></status>
</kw>
<doc>Checking Network deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181006 21:59:59.264" starttime="20181006 21:59:54.382"></status>
</suite>
<kw type="teardown" name="Stop Suite">
<kw name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181006 21:59:59.268" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181006 21:59:59.268" starttime="20181006 21:59:59.267"></status>
</kw>
<status status="PASS" endtime="20181006 21:59:59.268" starttime="20181006 21:59:59.267"></status>
</kw>
<doc>Test suite for Neutron Plugin</doc>
<status status="PASS" endtime="20181006 21:59:59.268" starttime="20181006 21:59:36.750"></status>
</suite>
<status status="FAIL" endtime="20181006 21:59:59.273" starttime="20181006 21:59:36.035"></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="20181006 21:59:36.792" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20181006 21:59:36.798" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181006 21:59:37.396" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181006 21:59:37.596" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181006 21:59:39.950" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181006 21:59:40.038" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181006 21:59:42.614" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181006 21:59:42.775" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181006 21:59:45.968" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181006 21:59:48.901" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181006 21:59:54.418" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
</errors>
</robot>
