<?xml version="1.0" encoding="UTF-8"?>
<robot generated="20181022 22:22:19.477" 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="20181022 22:22:19.543" 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 0x7f39e373da10&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181022 22:22:19.543" starttime="20181022 22:22:19.542"></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="20181022 22:22:20.151" 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 0x7f39e374f6d0&gt;: Failed to establish a new connection: [Errno 111] Connection refused',))</msg>
<status status="FAIL" endtime="20181022 22:22:20.152" starttime="20181022 22:22:19.544"></status>
</kw>
<doc>Get the restconf modules, check 200 status and ietf-restconf presence.</doc>
<status status="FAIL" endtime="20181022 22:22:20.152" critical="yes" starttime="20181022 22:22:19.543">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 0x7f39e374f6d0&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="20181022 22:22:20.153" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181022 22:22:20.153" starttime="20181022 22:22:20.153"></status>
</kw>
<doc>Test suite to verify Restconf is OK.</doc>
<status status="FAIL" endtime="20181022 22:22:20.153" starttime="20181022 22:22:19.509"></status>
</suite>
<status status="FAIL" endtime="20181022 22:22:20.155" starttime="20181022 22:22:19.506"></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="20181022 22:22:20.199" 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="20181022 22:22:20.200" starttime="20181022 22:22:20.199"></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="20181022 22:22:20.200" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20181022 22:22:20.206" 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="20181022 22:22:20.711" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:20.711" starttime="20181022 22:22:20.200"></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="20181022 22:22:20.712" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:20.712" starttime="20181022 22:22:20.711"></status>
</kw>
<kw name="Get From Dictionary" library="Collections">
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<arguments>
<arg>${resp.headers}</arg>
<arg>X-Subject-Token</arg>
</arguments>
<assign>
<var>${TOKEN}</var>
</assign>
<msg timestamp="20181022 22:22:20.712" level="INFO">${TOKEN} = gAAAAABbzk2cuVckHSk8x0Km3V1Bac3QsoEURcMTh8lheehpzNrs_LF197kRCC2U-z1RvYAuZRjv6AQpOM0RcMb3r6YZ77lKNY0y2fyPz_zAeU4jWNigH9tXXXx8u3yH-brb8hgu84a9_8CAQsN5MfvJAmQL6BSAK0tEPL2jEt2Yl48LI9EI1aE</msg>
<status status="PASS" endtime="20181022 22:22:20.713" starttime="20181022 22:22:20.712"></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="20181022 22:22:20.713" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABbzk2cuVckHSk8x0Km3V1Bac3QsoEURcMTh8lheehpzNrs_LF197kRCC2U-z1RvYAuZRjv6AQpOM0RcMb3r6YZ77lKNY0y2fyPz_zAeU4jWNigH9tXXXx8u3yH-brb8hgu84a9_8CAQsN5MfvJAmQL6BSAK0tEPL2jEt2Yl48LI9EI1...</msg>
<status status="PASS" endtime="20181022 22:22:20.713" starttime="20181022 22:22:20.713"></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="20181022 22:22:20.714" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABbzk2cuVckHSk8x0Km3V1Bac3QsoEURcMTh8lheehpzNrs_LF197kRCC2U-z1RvYAuZRjv6AQpOM0RcMb3r6YZ77lKNY0y2fyPz_zAeU4jWNigH9tXXXx8u3yH-brb8hgu84a9_8CAQsN5MfvJAmQL6BSAK0tEPL2jEt2Yl48LI9EI1...</msg>
<status status="PASS" endtime="20181022 22:22:20.714" starttime="20181022 22:22:20.714"></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="20181022 22:22:20.715" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABbzk2cuVckHSk8x0Km3V1Bac3QsoEURcMTh8lheehpzNrs_LF197kRCC2U-z1RvYAuZRjv6AQpOM0RcMb3r6YZ77lKNY0y2fyPz_zAeU4jWNigH9tXXXx8u3yH-brb8hgu84a9_8CAQsN5MfvJAmQL6BSAK0tEPL2jEt2Yl48LI9EI1...</msg>
<status status="PASS" endtime="20181022 22:22:20.715" starttime="20181022 22:22:20.714"></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="20181022 22:22:20.715" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABbzk2cuVckHSk8x0Km3V1Bac3QsoEURcMTh8lheehpzNrs_LF197kRCC2U-z1RvYAuZRjv6AQpOM0RcMb3r6YZ77lKNY0y2fyPz_zAeU4jWNigH9tXXXx8u3yH-brb8hgu84a9_8CAQsN5MfvJAmQL6BSAK0tEPL2jEt2Yl48LI9EI1...</msg>
<status status="PASS" endtime="20181022 22:22:20.715" starttime="20181022 22:22:20.715"></status>
</kw>
<status status="PASS" endtime="20181022 22:22:20.716" starttime="20181022 22:22:20.198"></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="20181022 22:22:20.779" 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 0x7f39e38c1b90&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181022 22:22:20.780" starttime="20181022 22:22:20.778"></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="20181022 22:22:20.798" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181022 22:22:20.798" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:20.799" starttime="20181022 22:22:20.781"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181022 22:22:20.799" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:20.800" starttime="20181022 22:22:20.799"></status>
</kw>
<doc>Get the complete list of networks</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181022 22:22:20.800" critical="yes" starttime="20181022 22:22:20.780"></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="20181022 22:22:20.820" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181022 22:22:20.820" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:20.820" starttime="20181022 22:22:20.801"></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="20181022 22:22:20.821" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:20.821" starttime="20181022 22:22:20.820"></status>
</kw>
<doc>Get the complete list of subnets</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181022 22:22:20.821" critical="yes" starttime="20181022 22:22:20.800"></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="20181022 22:22:20.833" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181022 22:22:20.833" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:20.833" starttime="20181022 22:22:20.822"></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="20181022 22:22:20.834" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:20.834" starttime="20181022 22:22:20.833"></status>
</kw>
<doc>Get the complete list of ports</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181022 22:22:20.834" critical="yes" starttime="20181022 22:22:20.822"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181022 22:22:20.835" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181022 22:22:20.835" starttime="20181022 22:22:20.834"></status>
</kw>
<status status="PASS" endtime="20181022 22:22:20.835" starttime="20181022 22:22:20.716"></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="20181022 22:22:20.852" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbzk2cuVckHSk8x0Km3V1Bac3QsoEURcMTh8lheehpzNrs_LF197kRCC2U-z1RvYAuZRjv6AQpOM0RcMb3r6YZ77lKNY0y2fyPz_zAeU4jWNigH9tXXXx8u3yH-brb8hgu84a9_8CAQsN5MfvJAmQL6BSAK0tEPL2jEt2Yl48LI9EI1aE', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181022 22:22:20.853" starttime="20181022 22:22:20.852"></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="20181022 22:22:20.854" level="INFO">{u'X-Auth-Token': 'gAAAAABbzk2cuVckHSk8x0Km3V1Bac3QsoEURcMTh8lheehpzNrs_LF197kRCC2U-z1RvYAuZRjv6AQpOM0RcMb3r6YZ77lKNY0y2fyPz_zAeU4jWNigH9tXXXx8u3yH-brb8hgu84a9_8CAQsN5MfvJAmQL6BSAK0tEPL2jEt2Yl48LI9EI1aE', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181022 22:22:20.854" starttime="20181022 22:22:20.854"></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="20181022 22:22:20.859" 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="20181022 22:22:21.044" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/networks, headers=None json=None</msg>
<msg timestamp="20181022 22:22:21.044" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:21.044" starttime="20181022 22:22:20.854"></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="20181022 22:22:21.045" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:21.045" starttime="20181022 22:22:21.045"></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="20181022 22:22:21.046" 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":"13c02e0a-9657-40d3-9cc0-6f110f83f904","router:external":true,"availability_zone_hints":[],"availability_zones":["nova"],"ipv4_address_scope":null,"shared":false,"project_id":"7642b3a92d1a4003bea5ad4e21bb4a30","status":"ACTIVE","subnets":["200b0e99-1954-4419-a4f2-e552f66cfdaf"],"description":"","tags":[],"updated_at":"2018-10-22T22:09:38Z","is_default":false,"provider:segmentation_id":null,"name":"ext-net","admin_state_up":true,"tenant_id":"7642b3a92d1a4003bea5ad4e21bb4a30","created_at":"2018-10-22T22:09:30Z","provider:network_type":"flat"}]} </msg>
<msg timestamp="20181022 22:22:21.046" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181022 22:22:21.047" 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'13c02e0a-9657-...</msg>
<status status="PASS" endtime="20181022 22:22:21.047" starttime="20181022 22:22:21.046"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181022 22:22:21.047" 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'13c02e0a-9657-40d3-9cc0-6f110f83f904', 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'7642b3a92d1a4003bea5ad4e21bb4a30', u'status': u'ACTIVE', u'subnets': [u'200b0e99-1954-4419-a4f2-e552f66cfdaf'], u'description': u'', u'tags': [], u'updated_at': u'2018-10-22T22:09:38Z', u'is_default': False, u'provider:segmentation_id': None, u'name': u'ext-net', u'admin_state_up': True, u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'created_at': u'2018-10-22T22:09:30Z', u'mtu': 1500}]}</msg>
<status status="PASS" endtime="20181022 22:22:21.047" starttime="20181022 22:22:21.047"></status>
</kw>
<doc>Checking OpenStack Neutron for known networks</doc>
<tags>
<tag>Network Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181022 22:22:21.047" critical="yes" starttime="20181022 22:22:20.853"></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="20181022 22:22:21.049" 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 0x7f39e37a4ed0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181022 22:22:21.050" starttime="20181022 22:22:21.049"></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="20181022 22:22:21.061" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181022 22:22:21.061" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:21.061" starttime="20181022 22:22:21.050"></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="20181022 22:22:21.062" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:21.062" starttime="20181022 22:22:21.062"></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="20181022 22:22:21.063" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "13c02e0a-9657-40d3-9cc0-6f110f83f904",
      "tenant_id" : "7642b3a92d1a4003bea5ad4e21bb4a30",
      "project_id" : "7642b3a92d1a4003bea5ad4e21bb4a30",
      "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="20181022 22:22:21.063" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181022 22:22:21.064" 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'7642b3a92d1a4003bea5ad4e21bb4a30...</msg>
<status status="PASS" endtime="20181022 22:22:21.064" starttime="20181022 22:22:21.062"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181022 22:22:21.064" 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'7642b3a92d1a4003bea5ad4e21bb4a30', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'id': u'13c02e0a-9657-40d3-9cc0-6f110f83f904'}, {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="20181022 22:22:21.064" starttime="20181022 22:22:21.064"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known networks</doc>
<tags>
<tag>Network Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181022 22:22:21.064" critical="yes" starttime="20181022 22:22:21.048"></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="20181022 22:22:21.066" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20181022 22:22:21.066" starttime="20181022 22:22:21.065"></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="20181022 22:22:21.068" 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="20181022 22:22:21.404" 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="20181022 22:22:21.405" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:21.405" starttime="20181022 22:22:21.066"></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="20181022 22:22:21.406" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:21.406" starttime="20181022 22:22:21.405"></status>
</kw>
<kw name="To Json" library="RequestsLibrary">
<doc>Convert a string to a JSON object</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<assign>
<var>${result}</var>
</assign>
<msg timestamp="20181022 22:22:21.407" 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":"dcf613e0-b829-4be6-86c7-5047336c12ee","router:external":false,"availability_zone_hints":[],"availability_zones":[],"ipv4_address_scope":null,"shared":false,"project_id":"7642b3a92d1a4003bea5ad4e21bb4a30","status":"ACTIVE","subnets":[],"description":"","tags":[],"updated_at":"2018-10-22T22:22:21Z","is_default":false,"provider:segmentation_id":91,"name":"odl_network","admin_state_up":true,"tenant_id":"7642b3a92d1a4003bea5ad4e21bb4a30","created_at":"2018-10-22T22:22:21Z","mtu":1450}} </msg>
<msg timestamp="20181022 22:22:21.407" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181022 22:22:21.407" 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'dcf613e0-b829-4be6-86c7-5047336c12ee', u'ro...</msg>
<status status="PASS" endtime="20181022 22:22:21.407" starttime="20181022 22:22:21.406"></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="20181022 22:22:21.408" 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'dcf613e0-b829-4be6-86c7-5047336c12ee', u'router:external...</msg>
<status status="PASS" endtime="20181022 22:22:21.408" starttime="20181022 22:22:21.407"></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="20181022 22:22:21.408" level="INFO">${NETID} = dcf613e0-b829-4be6-86c7-5047336c12ee</msg>
<status status="PASS" endtime="20181022 22:22:21.408" starttime="20181022 22:22:21.408"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181022 22:22:21.409" 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'dcf613e0-b829-4be6-86c7-5047336c12ee', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'status': u'ACTIVE', u'subnets': [], u'description': u'', u'tags': [], u'updated_at': u'2018-10-22T22:22:21Z', u'is_default': False, u'provider:segmentation_id': 91, u'name': u'odl_network', u'admin_state_up': True, u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'created_at': u'2018-10-22T22:22:21Z', u'provider:network_type': u'vxlan'}</msg>
<status status="PASS" endtime="20181022 22:22:21.409" starttime="20181022 22:22:21.408"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${NETID}</arg>
</arguments>
<msg timestamp="20181022 22:22:21.409" level="INFO">dcf613e0-b829-4be6-86c7-5047336c12ee</msg>
<status status="PASS" endtime="20181022 22:22:21.409" starttime="20181022 22:22:21.409"></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="20181022 22:22:21.410" level="INFO">${NETID} = dcf613e0-b829-4be6-86c7-5047336c12ee</msg>
<status status="PASS" endtime="20181022 22:22:21.410" starttime="20181022 22:22:21.410"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181022 22:22:23.411" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181022 22:22:23.411" starttime="20181022 22:22:21.410"></status>
</kw>
<doc>Create new network in OpenStack</doc>
<tags>
<tag>Create Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181022 22:22:23.411" critical="yes" starttime="20181022 22:22:21.065"></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="20181022 22:22:23.420" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/dcf613e0-b829-4be6-86c7-5047336c12ee, headers=None json=None</msg>
<msg timestamp="20181022 22:22:23.421" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:23.421" starttime="20181022 22:22:23.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>200</arg>
</arguments>
<msg timestamp="20181022 22:22:23.422" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:23.422" starttime="20181022 22:22:23.421"></status>
</kw>
<doc>Check network created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181022 22:22:23.422" critical="yes" starttime="20181022 22:22:23.412"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181022 22:22:23.424" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181022 22:22:23.424" starttime="20181022 22:22:23.423"></status>
</kw>
<doc>Checking Network created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181022 22:22:23.424" starttime="20181022 22:22:20.836"></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="20181022 22:22:23.443" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbzk2cuVckHSk8x0Km3V1Bac3QsoEURcMTh8lheehpzNrs_LF197kRCC2U-z1RvYAuZRjv6AQpOM0RcMb3r6YZ77lKNY0y2fyPz_zAeU4jWNigH9tXXXx8u3yH-brb8hgu84a9_8CAQsN5MfvJAmQL6BSAK0tEPL2jEt2Yl48LI9EI1aE', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181022 22:22:23.444" starttime="20181022 22:22:23.443"></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="20181022 22:22:23.445" level="INFO">{u'X-Auth-Token': 'gAAAAABbzk2cuVckHSk8x0Km3V1Bac3QsoEURcMTh8lheehpzNrs_LF197kRCC2U-z1RvYAuZRjv6AQpOM0RcMb3r6YZ77lKNY0y2fyPz_zAeU4jWNigH9tXXXx8u3yH-brb8hgu84a9_8CAQsN5MfvJAmQL6BSAK0tEPL2jEt2Yl48LI9EI1aE', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181022 22:22:23.445" starttime="20181022 22:22:23.445"></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="20181022 22:22:23.451" 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="20181022 22:22:23.533" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/subnets, headers=None json=None</msg>
<msg timestamp="20181022 22:22:23.534" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:23.534" starttime="20181022 22:22:23.445"></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="20181022 22:22:23.535" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:23.535" starttime="20181022 22:22:23.534"></status>
</kw>
<kw name="To Json" library="RequestsLibrary">
<doc>Convert a string to a JSON object</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<assign>
<var>${OSResult}</var>
</assign>
<msg timestamp="20181022 22:22:23.536" level="INFO">To JSON using : content={"subnets":[{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"13c02e0a-9657-40d3-9cc0-6f110f83f904","tenant_id":"7642b3a92d1a4003bea5ad4e21bb4a30","created_at":"2018-10-22T22:09:38Z","dns_nameservers":[],"updated_at":"2018-10-22T22:09:38Z","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":"7642b3a92d1a4003bea5ad4e21bb4a30","id":"200b0e99-1954-4419-a4f2-e552f66cfdaf","subnetpool_id":null,"name":"ext-subnet"}]} </msg>
<msg timestamp="20181022 22:22:23.536" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181022 22:22:23.536" level="INFO">${OSResult} = {u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'13c02e0a-9657-40d3-9cc0-6f110f83f904', u'tenant_id': u'7642b3a92d1a400...</msg>
<status status="PASS" endtime="20181022 22:22:23.536" starttime="20181022 22:22:23.535"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181022 22:22:23.536" level="INFO">{u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'13c02e0a-9657-40d3-9cc0-6f110f83f904', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'created_at': u'2018-10-22T22:09:38Z', u'dns_nameservers': [], u'updated_at': u'2018-10-22T22:09:38Z', 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'7642b3a92d1a4003bea5ad4e21bb4a30', u'id': u'200b0e99-1954-4419-a4f2-e552f66cfdaf', u'subnetpool_id': None, u'name': u'ext-subnet'}]}</msg>
<status status="PASS" endtime="20181022 22:22:23.536" starttime="20181022 22:22:23.536"></status>
</kw>
<doc>Checking OpenStack Neutron for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181022 22:22:23.537" critical="yes" starttime="20181022 22:22:23.444"></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="20181022 22:22:23.539" 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 0x7f39e36a6550&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181022 22:22:23.540" starttime="20181022 22:22:23.538"></status>
</kw>
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>ODLSession</arg>
<arg>${NEUTRON_SUBNETS_API}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181022 22:22:23.548" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181022 22:22:23.548" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:23.548" starttime="20181022 22:22:23.540"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181022 22:22:23.549" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:23.549" starttime="20181022 22:22:23.548"></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="20181022 22:22:23.550" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "200b0e99-1954-4419-a4f2-e552f66cfdaf",
      "tenant_id" : "7642b3a92d1a4003bea5ad4e21bb4a30",
      "project_id" : "7642b3a92d1a4003bea5ad4e21bb4a30",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "13c02e0a-9657-40d3-9cc0-6f110f83f904",
      "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="20181022 22:22:23.550" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181022 22:22:23.550" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'13c02e0a-9657-40d3-9cc0-6f110f83f904', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20181022 22:22:23.550" starttime="20181022 22:22:23.549"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181022 22:22:23.550" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'13c02e0a-9657-40d3-9cc0-6f110f83f904', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', 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'7642b3a92d1a4003bea5ad4e21bb4a30', u'id': u'200b0e99-1954-4419-a4f2-e552f66cfdaf'}]}</msg>
<status status="PASS" endtime="20181022 22:22:23.550" starttime="20181022 22:22:23.550"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181022 22:22:23.551" critical="yes" starttime="20181022 22:22:23.537"></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="20181022 22:22:23.552" level="INFO">{"subnet":{"network_id":"dcf613e0-b829-4be6-86c7-5047336c12ee","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="20181022 22:22:23.552" starttime="20181022 22:22:23.551"></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="20181022 22:22:23.554" 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="20181022 22:22:24.612" 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="20181022 22:22:24.612" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:24.612" starttime="20181022 22:22:23.552"></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="20181022 22:22:24.613" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:24.613" starttime="20181022 22:22:24.613"></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="20181022 22:22:24.614" level="INFO">To JSON using : content={"subnet":{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"dcf613e0-b829-4be6-86c7-5047336c12ee","tenant_id":"7642b3a92d1a4003bea5ad4e21bb4a30","created_at":"2018-10-22T22:22:24Z","dns_nameservers":[],"updated_at":"2018-10-22T22:22:24Z","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":"7642b3a92d1a4003bea5ad4e21bb4a30","id":"b0cc4975-56f3-4147-a56a-66e586fa8634","subnetpool_id":null,"name":""}} </msg>
<msg timestamp="20181022 22:22:24.614" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181022 22:22:24.614" level="INFO">${result} = {u'subnet': {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'dcf613e0-b829-4be6-86c7-5047336c12ee', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'...</msg>
<status status="PASS" endtime="20181022 22:22:24.615" starttime="20181022 22:22:24.614"></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="20181022 22:22:24.615" level="INFO">${result} = {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'dcf613e0-b829-4be6-86c7-5047336c12ee', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'created_at':...</msg>
<status status="PASS" endtime="20181022 22:22:24.615" starttime="20181022 22:22:24.615"></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="20181022 22:22:24.616" level="INFO">${SUBNETID} = b0cc4975-56f3-4147-a56a-66e586fa8634</msg>
<status status="PASS" endtime="20181022 22:22:24.616" starttime="20181022 22:22:24.616"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181022 22:22:24.617" level="INFO">{u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'dcf613e0-b829-4be6-86c7-5047336c12ee', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'created_at': u'2018-10-22T22:22:24Z', u'dns_nameservers': [], u'updated_at': u'2018-10-22T22:22:24Z', 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'7642b3a92d1a4003bea5ad4e21bb4a30', u'id': u'b0cc4975-56f3-4147-a56a-66e586fa8634', u'subnetpool_id': None, u'name': u''}</msg>
<status status="PASS" endtime="20181022 22:22:24.617" starttime="20181022 22:22:24.616"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${SUBNETID}</arg>
</arguments>
<msg timestamp="20181022 22:22:24.617" level="INFO">b0cc4975-56f3-4147-a56a-66e586fa8634</msg>
<status status="PASS" endtime="20181022 22:22:24.617" starttime="20181022 22:22:24.617"></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="20181022 22:22:24.618" level="INFO">${SUBNETID} = b0cc4975-56f3-4147-a56a-66e586fa8634</msg>
<status status="PASS" endtime="20181022 22:22:24.618" starttime="20181022 22:22:24.618"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181022 22:22:26.619" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181022 22:22:26.619" starttime="20181022 22:22:24.618"></status>
</kw>
<doc>Create new subnet in OpenStack</doc>
<tags>
<tag>Create Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181022 22:22:26.620" critical="yes" starttime="20181022 22:22:23.551"></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="20181022 22:22:26.629" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/b0cc4975-56f3-4147-a56a-66e586fa8634, headers=None json=None</msg>
<msg timestamp="20181022 22:22:26.629" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:26.629" starttime="20181022 22:22:26.621"></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="20181022 22:22:26.629" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:26.630" starttime="20181022 22:22:26.629"></status>
</kw>
<doc>Check new subnet created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>subnet OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181022 22:22:26.630" critical="yes" starttime="20181022 22:22:26.620"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181022 22:22:26.631" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181022 22:22:26.631" starttime="20181022 22:22:26.631"></status>
</kw>
<doc>Checking Subnets created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181022 22:22:26.631" starttime="20181022 22:22:23.426"></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="20181022 22:22:26.650" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbzk2cuVckHSk8x0Km3V1Bac3QsoEURcMTh8lheehpzNrs_LF197kRCC2U-z1RvYAuZRjv6AQpOM0RcMb3r6YZ77lKNY0y2fyPz_zAeU4jWNigH9tXXXx8u3yH-brb8hgu84a9_8CAQsN5MfvJAmQL6BSAK0tEPL2jEt2Yl48LI9EI1aE', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181022 22:22:26.650" starttime="20181022 22:22:26.649"></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="20181022 22:22:26.651" level="INFO">{u'X-Auth-Token': 'gAAAAABbzk2cuVckHSk8x0Km3V1Bac3QsoEURcMTh8lheehpzNrs_LF197kRCC2U-z1RvYAuZRjv6AQpOM0RcMb3r6YZ77lKNY0y2fyPz_zAeU4jWNigH9tXXXx8u3yH-brb8hgu84a9_8CAQsN5MfvJAmQL6BSAK0tEPL2jEt2Yl48LI9EI1aE', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181022 22:22:26.651" starttime="20181022 22:22:26.651"></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="20181022 22:22:26.656" 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="20181022 22:22:26.746" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/ports, headers=None json=None</msg>
<msg timestamp="20181022 22:22:26.746" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:26.746" starttime="20181022 22:22:26.651"></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="20181022 22:22:26.747" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:26.747" starttime="20181022 22:22:26.747"></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="20181022 22:22:26.748" level="INFO">To JSON using : content={"ports":[{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-22T22:22:25Z","device_owner":"network:dhcp","revision_number":2,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"b0cc4975-56f3-4147-a56a-66e586fa8634","ip_address":"172.16.64.20"}],"id":"4ad55a26-dbfe-4d8f-a050-580ae6d9c102","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"a3951e41-3771-4e18-b042-9ca08f594244","host_addresses":["host2"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:5f:29:e7","project_id":"7642b3a92d1a4003bea5ad4e21bb4a30","status":"DOWN","binding:host_id":"host2","description":"","tags":[],"device_id":"dhcp6e683b9c-430b-509e-9237-cf130714d68f-dcf613e0-b829-4be6-86c7-5047336c12ee","name":"","admin_state_up":true,"network_id":"dcf613e0-b829-4be6-86c7-5047336c12ee","tenant_id":"7642b3a92d1a4003bea5ad4e21bb4a30","created_at":"2018-10-22T22:22:24Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-22T22:22:26Z","device_owner":"network:dhcp","revision_number":2,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"b0cc4975-56f3-4147-a56a-66e586fa8634","ip_address":"172.16.64.21"}],"id":"53870206-ff04-435b-b1e0-904ced659e7a","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"ef4c9333-b403-4d32-9bb2-efc203663495","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:0d:f1:09","project_id":"7642b3a92d1a4003bea5ad4e21bb4a30","status":"DOWN","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-dcf613e0-b829-4be6-86c7-5047336c12ee","name":"","admin_state_up":true,"network_id":"dcf613e0-b829-4be6-86c7-5047336c12ee","tenant_id":"7642b3a92d1a4003bea5ad4e21bb4a30","created_at":"2018-10-22T22:22:25Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-22T22:22:26Z","device_owner":"network:dhcp","revision_number":1,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"b0cc4975-56f3-4147-a56a-66e586fa8634","ip_address":"172.16.64.22"}],"id":"5664c560-014f-468a-a6ac-83a1b78fe3df","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:b3:8a:36","project_id":"7642b3a92d1a4003bea5ad4e21bb4a30","status":"DOWN","binding:host_id":"host3","description":"","tags":[],"device_id":"dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-dcf613e0-b829-4be6-86c7-5047336c12ee","name":"","admin_state_up":true,"network_id":"dcf613e0-b829-4be6-86c7-5047336c12ee","tenant_id":"7642b3a92d1a4003bea5ad4e21bb4a30","created_at":"2018-10-22T22:22:26Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-22T22:09:46Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"200b0e99-1954-4419-a4f2-e552f66cfdaf","ip_address":"192.16.1.101"}],"id":"83d2e58a-f175-4f44-a268-57325d1d4ec4","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"5614da3c-a81c-4672-80d8-c64a6317ecc2","host_addresses":["host3"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:59:9a:9c","project_id":"7642b3a92d1a4003bea5ad4e21bb4a30","status":"ACTIVE","binding:host_id":"host3","description":"","tags":[],"device_id":"dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-13c02e0a-9657-40d3-9cc0-6f110f83f904","name":"","admin_state_up":true,"network_id":"13c02e0a-9657-40d3-9cc0-6f110f83f904","tenant_id":"7642b3a92d1a4003bea5ad4e21bb4a30","created_at":"2018-10-22T22:09:39Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-22T22:09:47Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"200b0e99-1954-4419-a4f2-e552f66cfdaf","ip_address":"192.16.1.102"}],"id":"c00119a1-b651-43ef-8638-634b0cad1ef8","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"a3951e41-3771-4e18-b042-9ca08f594244","host_addresses":["host2"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:24:85:2d","project_id":"7642b3a92d1a4003bea5ad4e21bb4a30","status":"ACTIVE","binding:host_id":"host2","description":"","tags":[],"device_id":"dhcp6e683b9c-430b-509e-9237-cf130714d68f-13c02e0a-9657-40d3-9cc0-6f110f83f904","name":"","admin_state_up":true,"network_id":"13c02e0a-9657-40d3-9cc0-6f110f83f904","tenant_id":"7642b3a92d1a4003bea5ad4e21bb4a30","created_at":"2018-10-22T22:09:40Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-22T22:09:47Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"200b0e99-1954-4419-a4f2-e552f66cfdaf","ip_address":"192.16.1.103"}],"id":"df291d91-de14-4f4d-bdee-b27b9d7a50a1","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"ef4c9333-b403-4d32-9bb2-efc203663495","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:eb:de:f7","project_id":"7642b3a92d1a4003bea5ad4e21bb4a30","status":"ACTIVE","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-13c02e0a-9657-40d3-9cc0-6f110f83f904","name":"","admin_state_up":true,"network_id":"13c02e0a-9657-40d3-9cc0-6f110f83f904","tenant_id":"7642b3a92d1a4003bea5ad4e21bb4a30","created_at":"2018-10-22T22:09:42Z","binding:vnic_type":"normal"}]} </msg>
<msg timestamp="20181022 22:22:26.748" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181022 22:22:26.749" level="INFO">${OSResult} = {u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-22T22:22:25Z', u'device_owner': u'network:dhcp', u'revision_number': 2, u'port_security_enabled': False, u'b...</msg>
<status status="PASS" endtime="20181022 22:22:26.749" starttime="20181022 22:22:26.747"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181022 22:22:26.749" level="INFO">{u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-22T22:22:25Z', 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'b0cc4975-56f3-4147-a56a-66e586fa8634', u'ip_address': u'172.16.64.20'}], u'id': u'4ad55a26-dbfe-4d8f-a050-580ae6d9c102', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'a3951e41-3771-4e18-b042-9ca08f594244', u'host_addresses': [u'host2']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:5f:29:e7', u'project_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'status': u'DOWN', u'binding:host_id': u'host2', u'description': u'', u'tags': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-dcf613e0-b829-4be6-86c7-5047336c12ee', u'name': u'', u'admin_state_up': True, u'network_id': u'dcf613e0-b829-4be6-86c7-5047336c12ee', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'created_at': u'2018-10-22T22:22:24Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-22T22:22:26Z', 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'b0cc4975-56f3-4147-a56a-66e586fa8634', u'ip_address': u'172.16.64.21'}], u'id': u'53870206-ff04-435b-b1e0-904ced659e7a', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'ef4c9333-b403-4d32-9bb2-efc203663495', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:0d:f1:09', u'project_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'status': u'DOWN', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-dcf613e0-b829-4be6-86c7-5047336c12ee', u'name': u'', u'admin_state_up': True, u'network_id': u'dcf613e0-b829-4be6-86c7-5047336c12ee', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'created_at': u'2018-10-22T22:22:25Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-22T22:22:26Z', 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'b0cc4975-56f3-4147-a56a-66e586fa8634', u'ip_address': u'172.16.64.22'}], u'id': u'5664c560-014f-468a-a6ac-83a1b78fe3df', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:b3:8a:36', u'project_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'status': u'DOWN', u'binding:host_id': u'host3', u'description': u'', u'tags': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-dcf613e0-b829-4be6-86c7-5047336c12ee', u'name': u'', u'admin_state_up': True, u'network_id': u'dcf613e0-b829-4be6-86c7-5047336c12ee', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'created_at': u'2018-10-22T22:22:26Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-22T22:09:46Z', 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'200b0e99-1954-4419-a4f2-e552f66cfdaf', u'ip_address': u'192.16.1.101'}], u'id': u'83d2e58a-f175-4f44-a268-57325d1d4ec4', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'5614da3c-a81c-4672-80d8-c64a6317ecc2', u'host_addresses': [u'host3']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:59:9a:9c', u'project_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'status': u'ACTIVE', u'binding:host_id': u'host3', u'description': u'', u'tags': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-13c02e0a-9657-40d3-9cc0-6f110f83f904', u'name': u'', u'admin_state_up': True, u'network_id': u'13c02e0a-9657-40d3-9cc0-6f110f83f904', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'created_at': u'2018-10-22T22:09:39Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-22T22:09:47Z', 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'200b0e99-1954-4419-a4f2-e552f66cfdaf', u'ip_address': u'192.16.1.102'}], u'id': u'c00119a1-b651-43ef-8638-634b0cad1ef8', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'a3951e41-3771-4e18-b042-9ca08f594244', u'host_addresses': [u'host2']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:24:85:2d', u'project_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'status': u'ACTIVE', u'binding:host_id': u'host2', u'description': u'', u'tags': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-13c02e0a-9657-40d3-9cc0-6f110f83f904', u'name': u'', u'admin_state_up': True, u'network_id': u'13c02e0a-9657-40d3-9cc0-6f110f83f904', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'created_at': u'2018-10-22T22:09:40Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-22T22:09:47Z', 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'200b0e99-1954-4419-a4f2-e552f66cfdaf', u'ip_address': u'192.16.1.103'}], u'id': u'df291d91-de14-4f4d-bdee-b27b9d7a50a1', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'ef4c9333-b403-4d32-9bb2-efc203663495', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:eb:de:f7', u'project_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'status': u'ACTIVE', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-13c02e0a-9657-40d3-9cc0-6f110f83f904', u'name': u'', u'admin_state_up': True, u'network_id': u'13c02e0a-9657-40d3-9cc0-6f110f83f904', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'created_at': u'2018-10-22T22:09:42Z', u'binding:vnic_type': u'normal'}]}</msg>
<status status="PASS" endtime="20181022 22:22:26.750" starttime="20181022 22:22:26.749"></status>
</kw>
<doc>Checking OpenStack Neutron for known ports</doc>
<tags>
<tag>Ports Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181022 22:22:26.750" critical="yes" starttime="20181022 22:22:26.650"></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="20181022 22:22:26.751" 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 0x7f39e360d410&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181022 22:22:26.752" starttime="20181022 22:22:26.751"></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="20181022 22:22:26.784" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181022 22:22:26.784" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:26.784" starttime="20181022 22:22:26.752"></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="20181022 22:22:26.785" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:26.785" starttime="20181022 22:22:26.784"></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="20181022 22:22:26.786" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "4ad55a26-dbfe-4d8f-a050-580ae6d9c102",
      "tenant_id" : "7642b3a92d1a4003bea5ad4e21bb4a30",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "dcf613e0-b829-4be6-86c7-5047336c12ee",
      "mac_address" : "fa:16:3e:5f:29:e7",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "b0cc4975-56f3-4147-a56a-66e586fa8634"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-dcf613e0-b829-4be6-86c7-5047336c12ee",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host2",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "a3951e41-3771-4e18-b042-9ca08f594244",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "5664c560-014f-468a-a6ac-83a1b78fe3df",
      "tenant_id" : "7642b3a92d1a4003bea5ad4e21bb4a30",
      "project_id" : "7642b3a92d1a4003bea5ad4e21bb4a30",
      "name" : "",
      "admin_state_up" : true,
      "status" : "ACTIVE",
      "network_id" : "dcf613e0-b829-4be6-86c7-5047336c12ee",
      "mac_address" : "fa:16:3e:b3:8a:36",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.22",
         "subnet_id" : "b0cc4975-56f3-4147-a56a-66e586fa8634"
      } ],
      "device_id" : "dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-dcf613e0-b829-4be6-86c7-5047336c12ee",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host3",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "unbound",
      "Map" : {
      },
      "port_security_enabled" : false
   }, {
      "id" : "df291d91-de14-4f4d-bdee-b27b9d7a50a1",
      "tenant_id" : "7642b3a92d1a4003bea5ad4e21bb4a30",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "13c02e0a-9657-40d3-9cc0-6f110f83f904",
      "mac_address" : "fa:16:3e:eb:de:f7",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.103",
         "subnet_id" : "200b0e99-1954-4419-a4f2-e552f66cfdaf"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-13c02e0a-9657-40d3-9cc0-6f110f83f904",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "ef4c9333-b403-4d32-9bb2-efc203663495",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "53870206-ff04-435b-b1e0-904ced659e7a",
      "tenant_id" : "7642b3a92d1a4003bea5ad4e21bb4a30",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "dcf613e0-b829-4be6-86c7-5047336c12ee",
      "mac_address" : "fa:16:3e:0d:f1:09",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.21",
         "subnet_id" : "b0cc4975-56f3-4147-a56a-66e586fa8634"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-dcf613e0-b829-4be6-86c7-5047336c12ee",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "ef4c9333-b403-4d32-9bb2-efc203663495",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "c00119a1-b651-43ef-8638-634b0cad1ef8",
      "tenant_id" : "7642b3a92d1a4003bea5ad4e21bb4a30",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "13c02e0a-9657-40d3-9cc0-6f110f83f904",
      "mac_address" : "fa:16:3e:24:85:2d",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.102",
         "subnet_id" : "200b0e99-1954-4419-a4f2-e552f66cfdaf"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-13c02e0a-9657-40d3-9cc0-6f110f83f904",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host2",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "a3951e41-3771-4e18-b042-9ca08f594244",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "83d2e58a-f175-4f44-a268-57325d1d4ec4",
      "tenant_id" : "7642b3a92d1a4003bea5ad4e21bb4a30",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "13c02e0a-9657-40d3-9cc0-6f110f83f904",
      "mac_address" : "fa:16:3e:59:9a:9c",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "200b0e99-1954-4419-a4f2-e552f66cfdaf"
      } ],
      "device_id" : "dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-13c02e0a-9657-40d3-9cc0-6f110f83f904",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host3",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "5614da3c-a81c-4672-80d8-c64a6317ecc2",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20181022 22:22:26.786" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181022 22:22:26.786" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'a3951e41-3771-4e18-b042-9ca08f594244'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20181022 22:22:26.786" starttime="20181022 22:22:26.785"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181022 22:22:26.787" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'a3951e41-3771-4e18-b042-9ca08f594244'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'dcf613e0-b829-4be6-86c7-5047336c12ee', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', 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:5f:29:e7', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'b0cc4975-56f3-4147-a56a-66e586fa8634', u'ip_address': u'172.16.64.20'}], u'id': u'4ad55a26-dbfe-4d8f-a050-580ae6d9c102', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-dcf613e0-b829-4be6-86c7-5047336c12ee'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host3', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'dcf613e0-b829-4be6-86c7-5047336c12ee', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', 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:b3:8a:36', u'port_security_enabled': False, u'project_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'fixed_ips': [{u'subnet_id': u'b0cc4975-56f3-4147-a56a-66e586fa8634', u'ip_address': u'172.16.64.22'}], u'id': u'5664c560-014f-468a-a6ac-83a1b78fe3df', u'security_groups': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-dcf613e0-b829-4be6-86c7-5047336c12ee'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'ef4c9333-b403-4d32-9bb2-efc203663495'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'13c02e0a-9657-40d3-9cc0-6f110f83f904', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', 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:eb:de:f7', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'200b0e99-1954-4419-a4f2-e552f66cfdaf', u'ip_address': u'192.16.1.103'}], u'id': u'df291d91-de14-4f4d-bdee-b27b9d7a50a1', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-13c02e0a-9657-40d3-9cc0-6f110f83f904'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'ef4c9333-b403-4d32-9bb2-efc203663495'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'dcf613e0-b829-4be6-86c7-5047336c12ee', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', 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:0d:f1:09', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'b0cc4975-56f3-4147-a56a-66e586fa8634', u'ip_address': u'172.16.64.21'}], u'id': u'53870206-ff04-435b-b1e0-904ced659e7a', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-dcf613e0-b829-4be6-86c7-5047336c12ee'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'a3951e41-3771-4e18-b042-9ca08f594244'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'13c02e0a-9657-40d3-9cc0-6f110f83f904', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', 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:24:85:2d', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'200b0e99-1954-4419-a4f2-e552f66cfdaf', u'ip_address': u'192.16.1.102'}], u'id': u'c00119a1-b651-43ef-8638-634b0cad1ef8', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-13c02e0a-9657-40d3-9cc0-6f110f83f904'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'5614da3c-a81c-4672-80d8-c64a6317ecc2'}, u'binding:host_id': u'host3', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'13c02e0a-9657-40d3-9cc0-6f110f83f904', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', 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:59:9a:9c', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'200b0e99-1954-4419-a4f2-e552f66cfdaf', u'ip_address': u'192.16.1.101'}], u'id': u'83d2e58a-f175-4f44-a268-57325d1d4ec4', u'security_groups': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-13c02e0a-9657-40d3-9cc0-6f110f83f904'}]}</msg>
<status status="PASS" endtime="20181022 22:22:26.787" starttime="20181022 22:22:26.786"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known ports</doc>
<tags>
<tag>Ports Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181022 22:22:26.787" critical="yes" starttime="20181022 22:22:26.750"></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="20181022 22:22:26.788" level="INFO">{"port":{"network_id":"dcf613e0-b829-4be6-86c7-5047336c12ee","admin_state_up": true}}</msg>
<status status="PASS" endtime="20181022 22:22:26.789" starttime="20181022 22:22:26.788"></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="20181022 22:22:26.790" 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="20181022 22:22:27.703" 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="20181022 22:22:27.704" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:27.704" starttime="20181022 22:22:26.789"></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="20181022 22:22:27.705" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:27.705" starttime="20181022 22:22:27.704"></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="20181022 22:22:27.706" level="INFO">To JSON using : content={"port":{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-22T22:22:27Z","device_owner":"","revision_number":1,"binding:profile":{},"port_security_enabled":true,"fixed_ips":[{"subnet_id":"b0cc4975-56f3-4147-a56a-66e586fa8634","ip_address":"172.16.64.26"}],"id":"96e6b27a-9bed-4028-b92b-7f3ceaac0c6f","security_groups":["28d44067-34f9-49b5-99cf-51896e556723"],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:e9:c9:70","project_id":"7642b3a92d1a4003bea5ad4e21bb4a30","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"","name":"","admin_state_up":true,"network_id":"dcf613e0-b829-4be6-86c7-5047336c12ee","tenant_id":"7642b3a92d1a4003bea5ad4e21bb4a30","created_at":"2018-10-22T22:22:27Z","binding:vnic_type":"normal"}} </msg>
<msg timestamp="20181022 22:22:27.706" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181022 22:22:27.706" level="INFO">${result} = {u'port': {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-22T22:22:27Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': ...</msg>
<status status="PASS" endtime="20181022 22:22:27.706" starttime="20181022 22:22:27.705"></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="20181022 22:22:27.707" level="INFO">${result} = {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-22T22:22:27Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fi...</msg>
<status status="PASS" endtime="20181022 22:22:27.707" starttime="20181022 22:22:27.706"></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="20181022 22:22:27.707" level="INFO">${PORTID} = 96e6b27a-9bed-4028-b92b-7f3ceaac0c6f</msg>
<status status="PASS" endtime="20181022 22:22:27.707" starttime="20181022 22:22:27.707"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181022 22:22:27.708" level="INFO">{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-22T22:22:27Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fixed_ips': [{u'subnet_id': u'b0cc4975-56f3-4147-a56a-66e586fa8634', u'ip_address': u'172.16.64.26'}], u'id': u'96e6b27a-9bed-4028-b92b-7f3ceaac0c6f', u'security_groups': [u'28d44067-34f9-49b5-99cf-51896e556723'], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:e9:c9:70', u'project_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', 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'dcf613e0-b829-4be6-86c7-5047336c12ee', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'created_at': u'2018-10-22T22:22:27Z', u'binding:vnic_type': u'normal'}</msg>
<status status="PASS" endtime="20181022 22:22:27.708" starttime="20181022 22:22:27.707"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${PORTID}</arg>
</arguments>
<msg timestamp="20181022 22:22:27.708" level="INFO">96e6b27a-9bed-4028-b92b-7f3ceaac0c6f</msg>
<status status="PASS" endtime="20181022 22:22:27.709" starttime="20181022 22:22:27.708"></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="20181022 22:22:27.709" level="INFO">${PORTID} = 96e6b27a-9bed-4028-b92b-7f3ceaac0c6f</msg>
<status status="PASS" endtime="20181022 22:22:27.709" starttime="20181022 22:22:27.709"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181022 22:22:29.710" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181022 22:22:29.710" starttime="20181022 22:22:27.710"></status>
</kw>
<doc>Create new port in OpenStack</doc>
<tags>
<tag>Create port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181022 22:22:29.711" critical="yes" starttime="20181022 22:22:26.788"></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="20181022 22:22:29.739" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/96e6b27a-9bed-4028-b92b-7f3ceaac0c6f, headers=None json=None</msg>
<msg timestamp="20181022 22:22:29.739" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:29.739" starttime="20181022 22:22:29.712"></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="20181022 22:22:29.740" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:29.740" starttime="20181022 22:22:29.740"></status>
</kw>
<doc>Check new port created in OpenDaylight</doc>
<tags>
<tag>Check port OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181022 22:22:29.741" critical="yes" starttime="20181022 22:22:29.711"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181022 22:22:29.742" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181022 22:22:29.742" starttime="20181022 22:22:29.742"></status>
</kw>
<doc>Checking Port created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181022 22:22:29.742" starttime="20181022 22:22:26.633"></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="20181022 22:22:29.760" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbzk2cuVckHSk8x0Km3V1Bac3QsoEURcMTh8lheehpzNrs_LF197kRCC2U-z1RvYAuZRjv6AQpOM0RcMb3r6YZ77lKNY0y2fyPz_zAeU4jWNigH9tXXXx8u3yH-brb8hgu84a9_8CAQsN5MfvJAmQL6BSAK0tEPL2jEt2Yl48LI9EI1aE'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181022 22:22:29.761" starttime="20181022 22:22:29.760"></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="20181022 22:22:29.762" 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 0x7f39e35bfb90&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181022 22:22:29.762" starttime="20181022 22:22:29.761"></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="20181022 22:22:29.774" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/96e6b27a-9bed-4028-b92b-7f3ceaac0c6f, headers=None json=None</msg>
<msg timestamp="20181022 22:22:29.774" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:29.774" starttime="20181022 22:22:29.763"></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="20181022 22:22:29.775" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:29.775" starttime="20181022 22:22:29.774"></status>
</kw>
<status status="PASS" endtime="20181022 22:22:29.775" starttime="20181022 22:22:29.762"></status>
</kw>
<status status="PASS" endtime="20181022 22:22:29.775" starttime="20181022 22:22:29.760"></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="20181022 22:22:29.776" level="INFO">{"port":{"network_id":"dcf613e0-b829-4be6-86c7-5047336c12ee","admin_state_up": true}}</msg>
<status status="PASS" endtime="20181022 22:22:29.776" starttime="20181022 22:22:29.776"></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="20181022 22:22:29.782" 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="20181022 22:22:30.642" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/ports/96e6b27a-9bed-4028-b92b-7f3ceaac0c6f, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181022 22:22:30.643" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:30.643" starttime="20181022 22:22:29.777"></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="20181022 22:22:30.644" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:30.644" starttime="20181022 22:22:30.643"></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="20181022 22:22:30.644" level="INFO"></msg>
<status status="PASS" endtime="20181022 22:22:30.645" starttime="20181022 22:22:30.644"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181022 22:22:32.645" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181022 22:22:32.646" starttime="20181022 22:22:30.645"></status>
</kw>
<doc>Delete previously created port in OpenStack</doc>
<tags>
<tag>Delete port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181022 22:22:32.646" critical="yes" starttime="20181022 22:22:29.775"></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="20181022 22:22:32.670" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181022 22:22:32.671" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:32.671" starttime="20181022 22:22:32.647"></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="20181022 22:22:32.672" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:32.672" starttime="20181022 22:22:32.671"></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="20181022 22:22:32.673" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "df291d91-de14-4f4d-bdee-b27b9d7a50a1",
      "tenant_id" : "7642b3a92d1a4003bea5ad4e21bb4a30",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "13c02e0a-9657-40d3-9cc0-6f110f83f904",
      "mac_address" : "fa:16:3e:eb:de:f7",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.103",
         "subnet_id" : "200b0e99-1954-4419-a4f2-e552f66cfdaf"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-13c02e0a-9657-40d3-9cc0-6f110f83f904",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "ef4c9333-b403-4d32-9bb2-efc203663495",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "53870206-ff04-435b-b1e0-904ced659e7a",
      "tenant_id" : "7642b3a92d1a4003bea5ad4e21bb4a30",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "dcf613e0-b829-4be6-86c7-5047336c12ee",
      "mac_address" : "fa:16:3e:0d:f1:09",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.21",
         "subnet_id" : "b0cc4975-56f3-4147-a56a-66e586fa8634"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-dcf613e0-b829-4be6-86c7-5047336c12ee",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "ef4c9333-b403-4d32-9bb2-efc203663495",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "4ad55a26-dbfe-4d8f-a050-580ae6d9c102",
      "tenant_id" : "7642b3a92d1a4003bea5ad4e21bb4a30",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "dcf613e0-b829-4be6-86c7-5047336c12ee",
      "mac_address" : "fa:16:3e:5f:29:e7",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "b0cc4975-56f3-4147-a56a-66e586fa8634"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-dcf613e0-b829-4be6-86c7-5047336c12ee",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host2",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "a3951e41-3771-4e18-b042-9ca08f594244",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "83d2e58a-f175-4f44-a268-57325d1d4ec4",
      "tenant_id" : "7642b3a92d1a4003bea5ad4e21bb4a30",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "13c02e0a-9657-40d3-9cc0-6f110f83f904",
      "mac_address" : "fa:16:3e:59:9a:9c",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "200b0e99-1954-4419-a4f2-e552f66cfdaf"
      } ],
      "device_id" : "dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-13c02e0a-9657-40d3-9cc0-6f110f83f904",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host3",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "5614da3c-a81c-4672-80d8-c64a6317ecc2",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "c00119a1-b651-43ef-8638-634b0cad1ef8",
      "tenant_id" : "7642b3a92d1a4003bea5ad4e21bb4a30",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "13c02e0a-9657-40d3-9cc0-6f110f83f904",
      "mac_address" : "fa:16:3e:24:85:2d",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.102",
         "subnet_id" : "200b0e99-1954-4419-a4f2-e552f66cfdaf"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-13c02e0a-9657-40d3-9cc0-6f110f83f904",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host2",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "a3951e41-3771-4e18-b042-9ca08f594244",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "5664c560-014f-468a-a6ac-83a1b78fe3df",
      "tenant_id" : "7642b3a92d1a4003bea5ad4e21bb4a30",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "dcf613e0-b829-4be6-86c7-5047336c12ee",
      "mac_address" : "fa:16:3e:b3:8a:36",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.22",
         "subnet_id" : "b0cc4975-56f3-4147-a56a-66e586fa8634"
      } ],
      "device_id" : "dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-dcf613e0-b829-4be6-86c7-5047336c12ee",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host3",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "5614da3c-a81c-4672-80d8-c64a6317ecc2",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20181022 22:22:32.673" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181022 22:22:32.673" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'ef4c9333-b403-4d32-9bb2-efc203663495'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20181022 22:22:32.674" starttime="20181022 22:22:32.672"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181022 22:22:32.674" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'ef4c9333-b403-4d32-9bb2-efc203663495'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'13c02e0a-9657-40d3-9cc0-6f110f83f904', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', 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:eb:de:f7', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'200b0e99-1954-4419-a4f2-e552f66cfdaf', u'ip_address': u'192.16.1.103'}], u'id': u'df291d91-de14-4f4d-bdee-b27b9d7a50a1', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-13c02e0a-9657-40d3-9cc0-6f110f83f904'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'ef4c9333-b403-4d32-9bb2-efc203663495'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'dcf613e0-b829-4be6-86c7-5047336c12ee', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', 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:0d:f1:09', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'b0cc4975-56f3-4147-a56a-66e586fa8634', u'ip_address': u'172.16.64.21'}], u'id': u'53870206-ff04-435b-b1e0-904ced659e7a', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-dcf613e0-b829-4be6-86c7-5047336c12ee'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'a3951e41-3771-4e18-b042-9ca08f594244'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'dcf613e0-b829-4be6-86c7-5047336c12ee', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', 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:5f:29:e7', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'b0cc4975-56f3-4147-a56a-66e586fa8634', u'ip_address': u'172.16.64.20'}], u'id': u'4ad55a26-dbfe-4d8f-a050-580ae6d9c102', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-dcf613e0-b829-4be6-86c7-5047336c12ee'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'5614da3c-a81c-4672-80d8-c64a6317ecc2'}, u'binding:host_id': u'host3', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'13c02e0a-9657-40d3-9cc0-6f110f83f904', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', 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:59:9a:9c', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'200b0e99-1954-4419-a4f2-e552f66cfdaf', u'ip_address': u'192.16.1.101'}], u'id': u'83d2e58a-f175-4f44-a268-57325d1d4ec4', u'security_groups': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-13c02e0a-9657-40d3-9cc0-6f110f83f904'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'a3951e41-3771-4e18-b042-9ca08f594244'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'13c02e0a-9657-40d3-9cc0-6f110f83f904', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', 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:24:85:2d', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'200b0e99-1954-4419-a4f2-e552f66cfdaf', u'ip_address': u'192.16.1.102'}], u'id': u'c00119a1-b651-43ef-8638-634b0cad1ef8', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-13c02e0a-9657-40d3-9cc0-6f110f83f904'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'5614da3c-a81c-4672-80d8-c64a6317ecc2'}, u'binding:host_id': u'host3', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'dcf613e0-b829-4be6-86c7-5047336c12ee', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', 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:b3:8a:36', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'b0cc4975-56f3-4147-a56a-66e586fa8634', u'ip_address': u'172.16.64.22'}], u'id': u'5664c560-014f-468a-a6ac-83a1b78fe3df', u'security_groups': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-dcf613e0-b829-4be6-86c7-5047336c12ee'}]}</msg>
<status status="PASS" endtime="20181022 22:22:32.674" starttime="20181022 22:22:32.674"></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="20181022 22:22:32.684" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/96e6b27a-9bed-4028-b92b-7f3ceaac0c6f, headers=None json=None</msg>
<msg timestamp="20181022 22:22:32.684" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:32.684" starttime="20181022 22:22:32.675"></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="20181022 22:22:32.684" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:32.685" starttime="20181022 22:22:32.684"></status>
</kw>
<doc>Check port deleted in OpenDaylight</doc>
<tags>
<tag>Check port deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181022 22:22:32.685" critical="yes" starttime="20181022 22:22:32.646"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181022 22:22:32.686" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181022 22:22:32.686" starttime="20181022 22:22:32.686"></status>
</kw>
<doc>Checking Port deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181022 22:22:32.686" starttime="20181022 22:22:29.743"></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="20181022 22:22:32.708" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbzk2cuVckHSk8x0Km3V1Bac3QsoEURcMTh8lheehpzNrs_LF197kRCC2U-z1RvYAuZRjv6AQpOM0RcMb3r6YZ77lKNY0y2fyPz_zAeU4jWNigH9tXXXx8u3yH-brb8hgu84a9_8CAQsN5MfvJAmQL6BSAK0tEPL2jEt2Yl48LI9EI1aE'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181022 22:22:32.708" starttime="20181022 22:22:32.707"></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="20181022 22:22:32.709" 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 0x7f39e35cb910&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181022 22:22:32.709" starttime="20181022 22:22:32.708"></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="20181022 22:22:32.718" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/b0cc4975-56f3-4147-a56a-66e586fa8634, headers=None json=None</msg>
<msg timestamp="20181022 22:22:32.718" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:32.718" starttime="20181022 22:22:32.710"></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="20181022 22:22:32.719" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:32.719" starttime="20181022 22:22:32.718"></status>
</kw>
<status status="PASS" endtime="20181022 22:22:32.719" starttime="20181022 22:22:32.709"></status>
</kw>
<status status="PASS" endtime="20181022 22:22:32.719" starttime="20181022 22:22:32.707"></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="20181022 22:22:32.721" level="INFO">{"subnet":{"network_id":"dcf613e0-b829-4be6-86c7-5047336c12ee","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="20181022 22:22:32.721" starttime="20181022 22:22:32.721"></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="20181022 22:22:32.728" 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="20181022 22:22:36.188" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/subnets/b0cc4975-56f3-4147-a56a-66e586fa8634, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181022 22:22:36.188" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:36.188" starttime="20181022 22:22:32.721"></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="20181022 22:22:36.189" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:36.189" starttime="20181022 22:22:36.188"></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="20181022 22:22:36.189" level="INFO"></msg>
<status status="PASS" endtime="20181022 22:22:36.190" starttime="20181022 22:22:36.189"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181022 22:22:38.190" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181022 22:22:38.191" starttime="20181022 22:22:36.190"></status>
</kw>
<doc>Delete previously created subnet in OpenStack</doc>
<tags>
<tag>Delete Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181022 22:22:38.191" critical="yes" starttime="20181022 22:22:32.720"></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="20181022 22:22:38.198" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181022 22:22:38.198" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:38.198" starttime="20181022 22:22:38.192"></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="20181022 22:22:38.199" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:38.199" starttime="20181022 22:22:38.198"></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="20181022 22:22:38.200" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "200b0e99-1954-4419-a4f2-e552f66cfdaf",
      "tenant_id" : "7642b3a92d1a4003bea5ad4e21bb4a30",
      "project_id" : "7642b3a92d1a4003bea5ad4e21bb4a30",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "13c02e0a-9657-40d3-9cc0-6f110f83f904",
      "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="20181022 22:22:38.200" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181022 22:22:38.200" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'13c02e0a-9657-40d3-9cc0-6f110f83f904', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20181022 22:22:38.200" starttime="20181022 22:22:38.199"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181022 22:22:38.200" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'13c02e0a-9657-40d3-9cc0-6f110f83f904', u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', 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'7642b3a92d1a4003bea5ad4e21bb4a30', u'id': u'200b0e99-1954-4419-a4f2-e552f66cfdaf'}]}</msg>
<status status="PASS" endtime="20181022 22:22:38.200" starttime="20181022 22:22:38.200"></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="20181022 22:22:38.206" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/b0cc4975-56f3-4147-a56a-66e586fa8634, headers=None json=None</msg>
<msg timestamp="20181022 22:22:38.207" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:38.207" starttime="20181022 22:22:38.201"></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="20181022 22:22:38.207" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:38.207" starttime="20181022 22:22:38.207"></status>
</kw>
<doc>Check subnet deleted in OpenDaylight</doc>
<tags>
<tag>Check subnet deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181022 22:22:38.208" critical="yes" starttime="20181022 22:22:38.191"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181022 22:22:38.208" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181022 22:22:38.209" starttime="20181022 22:22:38.208"></status>
</kw>
<doc>Checking Subnets deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181022 22:22:38.209" starttime="20181022 22:22:32.688"></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="20181022 22:22:38.226" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbzk2cuVckHSk8x0Km3V1Bac3QsoEURcMTh8lheehpzNrs_LF197kRCC2U-z1RvYAuZRjv6AQpOM0RcMb3r6YZ77lKNY0y2fyPz_zAeU4jWNigH9tXXXx8u3yH-brb8hgu84a9_8CAQsN5MfvJAmQL6BSAK0tEPL2jEt2Yl48LI9EI1aE'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181022 22:22:38.227" starttime="20181022 22:22:38.226"></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="20181022 22:22:38.228" 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 0x7f39e361b310&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181022 22:22:38.228" starttime="20181022 22:22:38.227"></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="20181022 22:22:38.236" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/dcf613e0-b829-4be6-86c7-5047336c12ee, headers=None json=None</msg>
<msg timestamp="20181022 22:22:38.236" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:38.236" starttime="20181022 22:22:38.229"></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="20181022 22:22:38.237" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:38.237" starttime="20181022 22:22:38.236"></status>
</kw>
<status status="PASS" endtime="20181022 22:22:38.237" starttime="20181022 22:22:38.228"></status>
</kw>
<status status="PASS" endtime="20181022 22:22:38.237" starttime="20181022 22:22:38.226"></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="20181022 22:22:38.239" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20181022 22:22:38.239" starttime="20181022 22:22:38.238"></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="20181022 22:22:38.244" 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="20181022 22:22:41.734" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/networks/dcf613e0-b829-4be6-86c7-5047336c12ee, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181022 22:22:41.735" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:41.735" starttime="20181022 22:22:38.239"></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="20181022 22:22:41.736" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:41.736" starttime="20181022 22:22:41.735"></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="20181022 22:22:41.736" level="INFO"></msg>
<status status="PASS" endtime="20181022 22:22:41.737" starttime="20181022 22:22:41.736"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181022 22:22:43.737" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181022 22:22:43.738" starttime="20181022 22:22:41.737"></status>
</kw>
<doc>Delete network in OpenStack</doc>
<tags>
<tag>Delete Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181022 22:22:43.738" critical="yes" starttime="20181022 22:22:38.238"></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="20181022 22:22:43.752" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181022 22:22:43.752" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:43.752" starttime="20181022 22:22:43.739"></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="20181022 22:22:43.753" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:43.754" starttime="20181022 22:22:43.753"></status>
</kw>
<kw name="To Json" library="RequestsLibrary">
<doc>Convert a string to a JSON object</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<assign>
<var>${ODLResult}</var>
</assign>
<msg timestamp="20181022 22:22:43.754" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
      "tenant_id" : "bd8db3a82b304083a8b3b3fd46401142",
      "project_id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
      "name" : "Sync Canary Network",
      "admin_state_up" : false,
      "status" : "ACTIVE",
      "shared" : false,
      "router:external" : false,
      "provider:network_type" : "flat",
      "segments" : [ ]
   }, {
      "id" : "13c02e0a-9657-40d3-9cc0-6f110f83f904",
      "tenant_id" : "7642b3a92d1a4003bea5ad4e21bb4a30",
      "project_id" : "7642b3a92d1a4003bea5ad4e21bb4a30",
      "revision_number" : 1,
      "name" : "ext-net",
      "admin_state_up" : true,
      "status" : "ACTIVE",
      "shared" : false,
      "router:external" : true,
      "provider:network_type" : "flat",
      "provider:physical_network" : "physnet",
      "segments" : [ ]
   } ]
} </msg>
<msg timestamp="20181022 22:22:43.754" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181022 22:22:43.754" level="INFO">${ODLResult} = {u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'name': u'Sync Canary Network', u'admin_state_up': False, u'tenant_id': u'bd8db3a82b304083a8b3b3fd46401142', u'segments': [], u'provid...</msg>
<status status="PASS" endtime="20181022 22:22:43.755" starttime="20181022 22:22:43.754"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181022 22:22:43.755" level="INFO">{u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'name': u'Sync Canary Network', u'admin_state_up': False, u'tenant_id': u'bd8db3a82b304083a8b3b3fd46401142', u'segments': [], u'provider:network_type': u'flat', u'shared': False, u'project_id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142', u'id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142'}, {u'status': u'ACTIVE', u'router:external': True, u'name': u'ext-net', u'provider:physical_network': u'physnet', u'admin_state_up': True, u'tenant_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'7642b3a92d1a4003bea5ad4e21bb4a30', u'id': u'13c02e0a-9657-40d3-9cc0-6f110f83f904'}]}</msg>
<status status="PASS" endtime="20181022 22:22:43.755" starttime="20181022 22:22:43.755"></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="20181022 22:22:43.760" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/dcf613e0-b829-4be6-86c7-5047336c12ee, headers=None json=None</msg>
<msg timestamp="20181022 22:22:43.760" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181022 22:22:43.760" starttime="20181022 22:22:43.755"></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="20181022 22:22:43.761" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181022 22:22:43.761" starttime="20181022 22:22:43.760"></status>
</kw>
<doc>Check network deleted in OpenDaylight</doc>
<tags>
<tag>Check Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181022 22:22:43.761" critical="yes" starttime="20181022 22:22:43.738"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181022 22:22:43.762" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181022 22:22:43.763" starttime="20181022 22:22:43.762"></status>
</kw>
<doc>Checking Network deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181022 22:22:43.763" starttime="20181022 22:22:38.210"></status>
</suite>
<kw type="teardown" name="Stop Suite">
<kw name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181022 22:22:43.766" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181022 22:22:43.766" starttime="20181022 22:22:43.766"></status>
</kw>
<status status="PASS" endtime="20181022 22:22:43.766" starttime="20181022 22:22:43.765"></status>
</kw>
<doc>Test suite for Neutron Plugin</doc>
<status status="PASS" endtime="20181022 22:22:43.766" starttime="20181022 22:22:20.156"></status>
</suite>
<status status="FAIL" endtime="20181022 22:22:43.772" starttime="20181022 22:22:19.478"></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="20181022 22:22:20.200" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20181022 22:22:20.206" 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="20181022 22:22:20.859" 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="20181022 22:22:21.068" 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="20181022 22:22:23.451" 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="20181022 22:22:23.554" 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="20181022 22:22:26.656" 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="20181022 22:22:26.790" 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="20181022 22:22:29.782" 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="20181022 22:22:32.728" 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="20181022 22:22:38.244" 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>
