<?xml version="1.0" encoding="UTF-8"?>
<robot generated="20180828 23:30:53.711" 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="20180828 23:30:53.768" 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 0x7f394bf81210&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180828 23:30:53.768" starttime="20180828 23:30:53.767"></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="20180828 23:30:54.377" 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 0x7f394bf814d0&gt;: Failed to establish a new connection: [Errno 111] Connection refused',))</msg>
<status status="FAIL" endtime="20180828 23:30:54.377" starttime="20180828 23:30:53.769"></status>
</kw>
<doc>Get the restconf modules, check 200 status and ietf-restconf presence.</doc>
<status status="FAIL" endtime="20180828 23:30:54.377" critical="yes" starttime="20180828 23:30:53.769">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 0x7f394bf814d0&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="20180828 23:30:54.379" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180828 23:30:54.379" starttime="20180828 23:30:54.378"></status>
</kw>
<doc>Test suite to verify Restconf is OK.</doc>
<status status="FAIL" endtime="20180828 23:30:54.379" starttime="20180828 23:30:53.737"></status>
</suite>
<status status="FAIL" endtime="20180828 23:30:54.380" starttime="20180828 23:30:53.735"></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="20180828 23:30:54.419" 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="20180828 23:30:54.420" starttime="20180828 23:30:54.419"></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="20180828 23:30:54.420" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20180828 23:30:54.425" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180828 23:30:54.852" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20180828 23:30:54.852" starttime="20180828 23:30:54.420"></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="20180828 23:30:54.853" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:30:54.853" starttime="20180828 23:30:54.852"></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="20180828 23:30:54.854" level="INFO">${TOKEN} = gAAAAABbhdsuUo9XkFxo2Kc0gDaCTj4zGpDyoI6lvg-ftqx8B7y9A8PiTlyv7unltf9rGnz6KgJJFah_k_s9rlRaJun-f8Ao5zRr6UR_mAmJal8CBxtgTKQhuylquM_Z1neo9xeG9ng2g8Xvhu8B1FO0JvLAEofj6ZwRkzGQy3kxaakcFIW7YNI</msg>
<status status="PASS" endtime="20180828 23:30:54.854" starttime="20180828 23:30:54.853"></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="20180828 23:30:54.854" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABbhdsuUo9XkFxo2Kc0gDaCTj4zGpDyoI6lvg-ftqx8B7y9A8PiTlyv7unltf9rGnz6KgJJFah_k_s9rlRaJun-f8Ao5zRr6UR_mAmJal8CBxtgTKQhuylquM_Z1neo9xeG9ng2g8Xvhu8B1FO0JvLAEofj6ZwRkzGQy3kxaakcFIW7Y...</msg>
<status status="PASS" endtime="20180828 23:30:54.854" starttime="20180828 23:30:54.854"></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="20180828 23:30:54.855" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABbhdsuUo9XkFxo2Kc0gDaCTj4zGpDyoI6lvg-ftqx8B7y9A8PiTlyv7unltf9rGnz6KgJJFah_k_s9rlRaJun-f8Ao5zRr6UR_mAmJal8CBxtgTKQhuylquM_Z1neo9xeG9ng2g8Xvhu8B1FO0JvLAEofj6ZwRkzGQy3kxaakcFIW7Y...</msg>
<status status="PASS" endtime="20180828 23:30:54.855" starttime="20180828 23:30:54.855"></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="20180828 23:30:54.856" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABbhdsuUo9XkFxo2Kc0gDaCTj4zGpDyoI6lvg-ftqx8B7y9A8PiTlyv7unltf9rGnz6KgJJFah_k_s9rlRaJun-f8Ao5zRr6UR_mAmJal8CBxtgTKQhuylquM_Z1neo9xeG9ng2g8Xvhu8B1FO0JvLAEofj6ZwRkzGQy3kxaakcFIW7Y...</msg>
<status status="PASS" endtime="20180828 23:30:54.856" starttime="20180828 23:30:54.855"></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="20180828 23:30:54.857" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABbhdsuUo9XkFxo2Kc0gDaCTj4zGpDyoI6lvg-ftqx8B7y9A8PiTlyv7unltf9rGnz6KgJJFah_k_s9rlRaJun-f8Ao5zRr6UR_mAmJal8CBxtgTKQhuylquM_Z1neo9xeG9ng2g8Xvhu8B1FO0JvLAEofj6ZwRkzGQy3kxaakcFIW7Y...</msg>
<status status="PASS" endtime="20180828 23:30:54.857" starttime="20180828 23:30:54.856"></status>
</kw>
<status status="PASS" endtime="20180828 23:30:54.857" starttime="20180828 23:30:54.418"></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="20180828 23:30:54.872" 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 0x7f394be68b10&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180828 23:30:54.873" starttime="20180828 23:30:54.872"></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="20180828 23:30:54.886" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20180828 23:30:54.886" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180828 23:30:54.886" starttime="20180828 23:30:54.874"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20180828 23:30:54.887" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:30:54.887" starttime="20180828 23:30:54.886"></status>
</kw>
<doc>Get the complete list of networks</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20180828 23:30:54.887" critical="yes" starttime="20180828 23:30:54.873"></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="20180828 23:30:54.909" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20180828 23:30:54.909" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180828 23:30:54.909" starttime="20180828 23:30:54.888"></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="20180828 23:30:54.910" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:30:54.910" starttime="20180828 23:30:54.909"></status>
</kw>
<doc>Get the complete list of subnets</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20180828 23:30:54.910" critical="yes" starttime="20180828 23:30:54.887"></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="20180828 23:30:54.925" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20180828 23:30:54.925" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180828 23:30:54.925" starttime="20180828 23:30:54.911"></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="20180828 23:30:54.926" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:30:54.926" starttime="20180828 23:30:54.926"></status>
</kw>
<doc>Get the complete list of ports</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20180828 23:30:54.926" critical="yes" starttime="20180828 23:30:54.910"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180828 23:30:54.927" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180828 23:30:54.927" starttime="20180828 23:30:54.927"></status>
</kw>
<status status="PASS" endtime="20180828 23:30:54.928" starttime="20180828 23:30:54.857"></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="20180828 23:30:54.946" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbhdsuUo9XkFxo2Kc0gDaCTj4zGpDyoI6lvg-ftqx8B7y9A8PiTlyv7unltf9rGnz6KgJJFah_k_s9rlRaJun-f8Ao5zRr6UR_mAmJal8CBxtgTKQhuylquM_Z1neo9xeG9ng2g8Xvhu8B1FO0JvLAEofj6ZwRkzGQy3kxaakcFIW7YNI', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180828 23:30:54.946" starttime="20180828 23:30:54.945"></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="20180828 23:30:54.947" level="INFO">{u'X-Auth-Token': 'gAAAAABbhdsuUo9XkFxo2Kc0gDaCTj4zGpDyoI6lvg-ftqx8B7y9A8PiTlyv7unltf9rGnz6KgJJFah_k_s9rlRaJun-f8Ao5zRr6UR_mAmJal8CBxtgTKQhuylquM_Z1neo9xeG9ng2g8Xvhu8B1FO0JvLAEofj6ZwRkzGQy3kxaakcFIW7YNI', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20180828 23:30:54.947" starttime="20180828 23:30:54.947"></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="20180828 23:30:54.952" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180828 23:30:55.151" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/networks, headers=None json=None</msg>
<msg timestamp="20180828 23:30:55.151" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180828 23:30:55.151" starttime="20180828 23:30:54.948"></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="20180828 23:30:55.152" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:30:55.152" starttime="20180828 23:30:55.151"></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="20180828 23:30:55.152" 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":"1906b4b0-da66-48ea-a105-02a50361480d","router:external":true,"availability_zone_hints":[],"availability_zones":["nova"],"ipv4_address_scope":null,"shared":false,"project_id":"96c6c4554e244d70b7f8b7d1a9e9d56c","status":"ACTIVE","subnets":["0e7fad6f-990b-4fba-af2a-5661a641aa43"],"description":"","tags":[],"updated_at":"2018-08-28T23:17:47Z","is_default":false,"provider:segmentation_id":null,"name":"ext-net","admin_state_up":true,"tenant_id":"96c6c4554e244d70b7f8b7d1a9e9d56c","created_at":"2018-08-28T23:17:40Z","provider:network_type":"flat"}]} </msg>
<msg timestamp="20180828 23:30:55.153" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180828 23:30:55.153" 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'1906b4b0-da66-...</msg>
<status status="PASS" endtime="20180828 23:30:55.153" starttime="20180828 23:30:55.152"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20180828 23:30:55.153" 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'1906b4b0-da66-48ea-a105-02a50361480d', 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'96c6c4554e244d70b7f8b7d1a9e9d56c', u'status': u'ACTIVE', u'subnets': [u'0e7fad6f-990b-4fba-af2a-5661a641aa43'], u'description': u'', u'tags': [], u'updated_at': u'2018-08-28T23:17:47Z', u'is_default': False, u'provider:segmentation_id': None, u'name': u'ext-net', u'admin_state_up': True, u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'created_at': u'2018-08-28T23:17:40Z', u'mtu': 1500}]}</msg>
<status status="PASS" endtime="20180828 23:30:55.153" starttime="20180828 23:30:55.153"></status>
</kw>
<doc>Checking OpenStack Neutron for known networks</doc>
<tags>
<tag>Network Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20180828 23:30:55.154" critical="yes" starttime="20180828 23:30:54.946"></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="20180828 23:30:55.155" 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 0x7f394be1cbd0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180828 23:30:55.156" starttime="20180828 23:30:55.155"></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="20180828 23:30:55.163" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20180828 23:30:55.164" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180828 23:30:55.164" starttime="20180828 23:30:55.156"></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="20180828 23:30:55.164" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:30:55.164" starttime="20180828 23:30:55.164"></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="20180828 23:30:55.165" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "1906b4b0-da66-48ea-a105-02a50361480d",
      "tenant_id" : "96c6c4554e244d70b7f8b7d1a9e9d56c",
      "project_id" : "96c6c4554e244d70b7f8b7d1a9e9d56c",
      "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="20180828 23:30:55.165" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180828 23:30:55.166" 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'96c6c4554e244d70b7f8b7d1a9e9d56c...</msg>
<status status="PASS" endtime="20180828 23:30:55.166" starttime="20180828 23:30:55.165"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180828 23:30:55.166" 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'96c6c4554e244d70b7f8b7d1a9e9d56c', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'id': u'1906b4b0-da66-48ea-a105-02a50361480d'}, {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="20180828 23:30:55.166" starttime="20180828 23:30:55.166"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known networks</doc>
<tags>
<tag>Network Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180828 23:30:55.166" critical="yes" starttime="20180828 23:30:55.154"></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="20180828 23:30:55.168" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20180828 23:30:55.168" starttime="20180828 23:30:55.167"></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="20180828 23:30:55.169" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180828 23:30:55.463" 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="20180828 23:30:55.463" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20180828 23:30:55.463" starttime="20180828 23:30:55.168"></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="20180828 23:30:55.464" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:30:55.464" starttime="20180828 23:30:55.463"></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="20180828 23:30:55.465" 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":"192df45c-9cdf-4162-a160-37ef4cd09b9c","router:external":false,"availability_zone_hints":[],"availability_zones":[],"ipv4_address_scope":null,"shared":false,"project_id":"96c6c4554e244d70b7f8b7d1a9e9d56c","status":"ACTIVE","subnets":[],"description":"","tags":[],"updated_at":"2018-08-28T23:30:55Z","is_default":false,"provider:segmentation_id":29,"name":"odl_network","admin_state_up":true,"tenant_id":"96c6c4554e244d70b7f8b7d1a9e9d56c","created_at":"2018-08-28T23:30:55Z","mtu":1450}} </msg>
<msg timestamp="20180828 23:30:55.465" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180828 23:30:55.465" 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'192df45c-9cdf-4162-a160-37ef4cd09b9c', u'ro...</msg>
<status status="PASS" endtime="20180828 23:30:55.465" starttime="20180828 23:30:55.464"></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="20180828 23:30:55.465" 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'192df45c-9cdf-4162-a160-37ef4cd09b9c', u'router:external...</msg>
<status status="PASS" endtime="20180828 23:30:55.465" starttime="20180828 23:30:55.465"></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="20180828 23:30:55.466" level="INFO">${NETID} = 192df45c-9cdf-4162-a160-37ef4cd09b9c</msg>
<status status="PASS" endtime="20180828 23:30:55.466" starttime="20180828 23:30:55.466"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20180828 23:30:55.466" 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'192df45c-9cdf-4162-a160-37ef4cd09b9c', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'status': u'ACTIVE', u'subnets': [], u'description': u'', u'tags': [], u'updated_at': u'2018-08-28T23:30:55Z', u'is_default': False, u'provider:segmentation_id': 29, u'name': u'odl_network', u'admin_state_up': True, u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'created_at': u'2018-08-28T23:30:55Z', u'provider:network_type': u'vxlan'}</msg>
<status status="PASS" endtime="20180828 23:30:55.467" starttime="20180828 23:30:55.466"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${NETID}</arg>
</arguments>
<msg timestamp="20180828 23:30:55.467" level="INFO">192df45c-9cdf-4162-a160-37ef4cd09b9c</msg>
<status status="PASS" endtime="20180828 23:30:55.467" starttime="20180828 23:30:55.467"></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="20180828 23:30:55.468" level="INFO">${NETID} = 192df45c-9cdf-4162-a160-37ef4cd09b9c</msg>
<status status="PASS" endtime="20180828 23:30:55.468" starttime="20180828 23:30:55.467"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180828 23:30:57.468" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180828 23:30:57.469" starttime="20180828 23:30:55.468"></status>
</kw>
<doc>Create new network in OpenStack</doc>
<tags>
<tag>Create Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180828 23:30:57.469" critical="yes" starttime="20180828 23:30:55.167"></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="20180828 23:30:57.477" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/192df45c-9cdf-4162-a160-37ef4cd09b9c, headers=None json=None</msg>
<msg timestamp="20180828 23:30:57.477" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180828 23:30:57.478" starttime="20180828 23:30:57.471"></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="20180828 23:30:57.478" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:30:57.478" starttime="20180828 23:30:57.478"></status>
</kw>
<doc>Check network created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180828 23:30:57.478" critical="yes" starttime="20180828 23:30:57.470"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180828 23:30:57.479" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180828 23:30:57.480" starttime="20180828 23:30:57.479"></status>
</kw>
<doc>Checking Network created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20180828 23:30:57.480" starttime="20180828 23:30:54.928"></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="20180828 23:30:57.498" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbhdsuUo9XkFxo2Kc0gDaCTj4zGpDyoI6lvg-ftqx8B7y9A8PiTlyv7unltf9rGnz6KgJJFah_k_s9rlRaJun-f8Ao5zRr6UR_mAmJal8CBxtgTKQhuylquM_Z1neo9xeG9ng2g8Xvhu8B1FO0JvLAEofj6ZwRkzGQy3kxaakcFIW7YNI', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180828 23:30:57.498" starttime="20180828 23:30:57.497"></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="20180828 23:30:57.499" level="INFO">{u'X-Auth-Token': 'gAAAAABbhdsuUo9XkFxo2Kc0gDaCTj4zGpDyoI6lvg-ftqx8B7y9A8PiTlyv7unltf9rGnz6KgJJFah_k_s9rlRaJun-f8Ao5zRr6UR_mAmJal8CBxtgTKQhuylquM_Z1neo9xeG9ng2g8Xvhu8B1FO0JvLAEofj6ZwRkzGQy3kxaakcFIW7YNI', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20180828 23:30:57.500" starttime="20180828 23:30:57.499"></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="20180828 23:30:57.504" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180828 23:30:57.574" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/subnets, headers=None json=None</msg>
<msg timestamp="20180828 23:30:57.574" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180828 23:30:57.574" starttime="20180828 23:30:57.500"></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="20180828 23:30:57.575" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:30:57.575" starttime="20180828 23:30:57.574"></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="20180828 23:30:57.576" level="INFO">To JSON using : content={"subnets":[{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"1906b4b0-da66-48ea-a105-02a50361480d","tenant_id":"96c6c4554e244d70b7f8b7d1a9e9d56c","created_at":"2018-08-28T23:17:47Z","dns_nameservers":[],"updated_at":"2018-08-28T23:17:47Z","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":"96c6c4554e244d70b7f8b7d1a9e9d56c","id":"0e7fad6f-990b-4fba-af2a-5661a641aa43","subnetpool_id":null,"name":"ext-subnet"}]} </msg>
<msg timestamp="20180828 23:30:57.576" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180828 23:30:57.576" level="INFO">${OSResult} = {u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'1906b4b0-da66-48ea-a105-02a50361480d', u'tenant_id': u'96c6c4554e244d7...</msg>
<status status="PASS" endtime="20180828 23:30:57.576" starttime="20180828 23:30:57.575"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20180828 23:30:57.576" level="INFO">{u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'1906b4b0-da66-48ea-a105-02a50361480d', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'created_at': u'2018-08-28T23:17:47Z', u'dns_nameservers': [], u'updated_at': u'2018-08-28T23:17:47Z', 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'96c6c4554e244d70b7f8b7d1a9e9d56c', u'id': u'0e7fad6f-990b-4fba-af2a-5661a641aa43', u'subnetpool_id': None, u'name': u'ext-subnet'}]}</msg>
<status status="PASS" endtime="20180828 23:30:57.577" starttime="20180828 23:30:57.576"></status>
</kw>
<doc>Checking OpenStack Neutron for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20180828 23:30:57.577" critical="yes" starttime="20180828 23:30:57.498"></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="20180828 23:30:57.578" 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 0x7f394be74110&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180828 23:30:57.579" starttime="20180828 23:30:57.578"></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="20180828 23:30:57.601" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20180828 23:30:57.601" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180828 23:30:57.601" starttime="20180828 23:30:57.579"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20180828 23:30:57.602" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:30:57.602" starttime="20180828 23:30:57.602"></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="20180828 23:30:57.603" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "0e7fad6f-990b-4fba-af2a-5661a641aa43",
      "tenant_id" : "96c6c4554e244d70b7f8b7d1a9e9d56c",
      "project_id" : "96c6c4554e244d70b7f8b7d1a9e9d56c",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "1906b4b0-da66-48ea-a105-02a50361480d",
      "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="20180828 23:30:57.603" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180828 23:30:57.603" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'1906b4b0-da66-48ea-a105-02a50361480d', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20180828 23:30:57.603" starttime="20180828 23:30:57.602"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180828 23:30:57.604" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'1906b4b0-da66-48ea-a105-02a50361480d', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', 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'96c6c4554e244d70b7f8b7d1a9e9d56c', u'id': u'0e7fad6f-990b-4fba-af2a-5661a641aa43'}]}</msg>
<status status="PASS" endtime="20180828 23:30:57.604" starttime="20180828 23:30:57.603"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180828 23:30:57.604" critical="yes" starttime="20180828 23:30:57.577"></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="20180828 23:30:57.605" level="INFO">{"subnet":{"network_id":"192df45c-9cdf-4162-a160-37ef4cd09b9c","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="20180828 23:30:57.605" starttime="20180828 23:30:57.605"></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="20180828 23:30:57.607" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180828 23:30:58.476" 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="20180828 23:30:58.476" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20180828 23:30:58.476" starttime="20180828 23:30:57.605"></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="20180828 23:30:58.477" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:30:58.477" starttime="20180828 23:30:58.477"></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="20180828 23:30:58.478" level="INFO">To JSON using : content={"subnet":{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"192df45c-9cdf-4162-a160-37ef4cd09b9c","tenant_id":"96c6c4554e244d70b7f8b7d1a9e9d56c","created_at":"2018-08-28T23:30:57Z","dns_nameservers":[],"updated_at":"2018-08-28T23:30:57Z","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":"96c6c4554e244d70b7f8b7d1a9e9d56c","id":"9de5157a-10f8-48e1-a27f-ce734b1feb07","subnetpool_id":null,"name":""}} </msg>
<msg timestamp="20180828 23:30:58.478" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180828 23:30:58.478" level="INFO">${result} = {u'subnet': {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'192df45c-9cdf-4162-a160-37ef4cd09b9c', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'...</msg>
<status status="PASS" endtime="20180828 23:30:58.478" starttime="20180828 23:30:58.477"></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="20180828 23:30:58.479" level="INFO">${result} = {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'192df45c-9cdf-4162-a160-37ef4cd09b9c', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'created_at':...</msg>
<status status="PASS" endtime="20180828 23:30:58.479" starttime="20180828 23:30:58.478"></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="20180828 23:30:58.479" level="INFO">${SUBNETID} = 9de5157a-10f8-48e1-a27f-ce734b1feb07</msg>
<status status="PASS" endtime="20180828 23:30:58.479" starttime="20180828 23:30:58.479"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20180828 23:30:58.480" level="INFO">{u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'192df45c-9cdf-4162-a160-37ef4cd09b9c', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'created_at': u'2018-08-28T23:30:57Z', u'dns_nameservers': [], u'updated_at': u'2018-08-28T23:30:57Z', 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'96c6c4554e244d70b7f8b7d1a9e9d56c', u'id': u'9de5157a-10f8-48e1-a27f-ce734b1feb07', u'subnetpool_id': None, u'name': u''}</msg>
<status status="PASS" endtime="20180828 23:30:58.480" starttime="20180828 23:30:58.480"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${SUBNETID}</arg>
</arguments>
<msg timestamp="20180828 23:30:58.480" level="INFO">9de5157a-10f8-48e1-a27f-ce734b1feb07</msg>
<status status="PASS" endtime="20180828 23:30:58.480" starttime="20180828 23:30:58.480"></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="20180828 23:30:58.481" level="INFO">${SUBNETID} = 9de5157a-10f8-48e1-a27f-ce734b1feb07</msg>
<status status="PASS" endtime="20180828 23:30:58.481" starttime="20180828 23:30:58.481"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180828 23:31:00.482" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180828 23:31:00.482" starttime="20180828 23:30:58.481"></status>
</kw>
<doc>Create new subnet in OpenStack</doc>
<tags>
<tag>Create Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180828 23:31:00.483" critical="yes" starttime="20180828 23:30:57.604"></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="20180828 23:31:00.499" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/9de5157a-10f8-48e1-a27f-ce734b1feb07, headers=None json=None</msg>
<msg timestamp="20180828 23:31:00.500" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180828 23:31:00.500" starttime="20180828 23:31:00.485"></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="20180828 23:31:00.501" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:31:00.501" starttime="20180828 23:31:00.500"></status>
</kw>
<doc>Check new subnet created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>subnet OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180828 23:31:00.501" critical="yes" starttime="20180828 23:31:00.483"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180828 23:31:00.503" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180828 23:31:00.503" starttime="20180828 23:31:00.503"></status>
</kw>
<doc>Checking Subnets created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20180828 23:31:00.503" starttime="20180828 23:30:57.481"></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="20180828 23:31:00.537" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbhdsuUo9XkFxo2Kc0gDaCTj4zGpDyoI6lvg-ftqx8B7y9A8PiTlyv7unltf9rGnz6KgJJFah_k_s9rlRaJun-f8Ao5zRr6UR_mAmJal8CBxtgTKQhuylquM_Z1neo9xeG9ng2g8Xvhu8B1FO0JvLAEofj6ZwRkzGQy3kxaakcFIW7YNI', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180828 23:31:00.538" starttime="20180828 23:31:00.536"></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="20180828 23:31:00.540" level="INFO">{u'X-Auth-Token': 'gAAAAABbhdsuUo9XkFxo2Kc0gDaCTj4zGpDyoI6lvg-ftqx8B7y9A8PiTlyv7unltf9rGnz6KgJJFah_k_s9rlRaJun-f8Ao5zRr6UR_mAmJal8CBxtgTKQhuylquM_Z1neo9xeG9ng2g8Xvhu8B1FO0JvLAEofj6ZwRkzGQy3kxaakcFIW7YNI', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20180828 23:31:00.540" starttime="20180828 23:31:00.539"></status>
</kw>
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>OSSession</arg>
<arg>${OSREST}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20180828 23:31:00.547" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180828 23:31:00.644" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/ports, headers=None json=None</msg>
<msg timestamp="20180828 23:31:00.645" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180828 23:31:00.645" starttime="20180828 23:31:00.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="20180828 23:31:00.647" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:31:00.647" starttime="20180828 23:31:00.646"></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="20180828 23:31:00.648" level="INFO">To JSON using : content={"ports":[{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-08-28T23:17:56Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"0e7fad6f-990b-4fba-af2a-5661a641aa43","ip_address":"192.16.1.102"}],"id":"00fec6bf-0eca-4f7c-a26d-2b696ac05728","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"1daf6e24-0fc0-4f90-a3e1-8b89e96d8cba","host_addresses":["host3"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:40:ad:ae","project_id":"96c6c4554e244d70b7f8b7d1a9e9d56c","status":"ACTIVE","binding:host_id":"host3","description":"","tags":[],"device_id":"dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-1906b4b0-da66-48ea-a105-02a50361480d","name":"","admin_state_up":true,"network_id":"1906b4b0-da66-48ea-a105-02a50361480d","tenant_id":"96c6c4554e244d70b7f8b7d1a9e9d56c","created_at":"2018-08-28T23:17:49Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-08-28T23:30:59Z","device_owner":"network:dhcp","revision_number":2,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"9de5157a-10f8-48e1-a27f-ce734b1feb07","ip_address":"172.16.64.20"}],"id":"575677e3-843e-425b-baf1-a4cda714bc75","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"9e959b08-dc62-4efb-ad51-0078d5413000","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:3f:7b:b0","project_id":"96c6c4554e244d70b7f8b7d1a9e9d56c","status":"DOWN","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-192df45c-9cdf-4162-a160-37ef4cd09b9c","name":"","admin_state_up":true,"network_id":"192df45c-9cdf-4162-a160-37ef4cd09b9c","tenant_id":"96c6c4554e244d70b7f8b7d1a9e9d56c","created_at":"2018-08-28T23:30:58Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-08-28T23:17:55Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"0e7fad6f-990b-4fba-af2a-5661a641aa43","ip_address":"192.16.1.101"}],"id":"5abde9ff-7aef-4fe5-a1d1-368ad7db03b6","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"84c859c5-7982-422a-bad9-09c71cce272b","host_addresses":["host2"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:5e:11:a6","project_id":"96c6c4554e244d70b7f8b7d1a9e9d56c","status":"ACTIVE","binding:host_id":"host2","description":"","tags":[],"device_id":"dhcp6e683b9c-430b-509e-9237-cf130714d68f-1906b4b0-da66-48ea-a105-02a50361480d","name":"","admin_state_up":true,"network_id":"1906b4b0-da66-48ea-a105-02a50361480d","tenant_id":"96c6c4554e244d70b7f8b7d1a9e9d56c","created_at":"2018-08-28T23:17:48Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-08-28T23:30:59Z","device_owner":"network:dhcp","revision_number":2,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"9de5157a-10f8-48e1-a27f-ce734b1feb07","ip_address":"172.16.64.21"}],"id":"b40fe3aa-73ac-46d8-ada3-b6aa3d4767e1","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"84c859c5-7982-422a-bad9-09c71cce272b","host_addresses":["host2"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:18:20:a6","project_id":"96c6c4554e244d70b7f8b7d1a9e9d56c","status":"DOWN","binding:host_id":"host2","description":"","tags":[],"device_id":"dhcp6e683b9c-430b-509e-9237-cf130714d68f-192df45c-9cdf-4162-a160-37ef4cd09b9c","name":"","admin_state_up":true,"network_id":"192df45c-9cdf-4162-a160-37ef4cd09b9c","tenant_id":"96c6c4554e244d70b7f8b7d1a9e9d56c","created_at":"2018-08-28T23:30:59Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-08-28T23:31:00Z","device_owner":"network:dhcp","revision_number":1,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"9de5157a-10f8-48e1-a27f-ce734b1feb07","ip_address":"172.16.64.22"}],"id":"c53c8feb-1e57-4541-bacd-daeea8411f13","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:33:3c:08","project_id":"96c6c4554e244d70b7f8b7d1a9e9d56c","status":"DOWN","binding:host_id":"host3","description":"","tags":[],"device_id":"dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-192df45c-9cdf-4162-a160-37ef4cd09b9c","name":"","admin_state_up":true,"network_id":"192df45c-9cdf-4162-a160-37ef4cd09b9c","tenant_id":"96c6c4554e244d70b7f8b7d1a9e9d56c","created_at":"2018-08-28T23:30:59Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-08-28T23:17:56Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"0e7fad6f-990b-4fba-af2a-5661a641aa43","ip_address":"192.16.1.103"}],"id":"f34a8fa4-39d7-499a-bce9-4a9ee90d8879","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"9e959b08-dc62-4efb-ad51-0078d5413000","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:63:df:67","project_id":"96c6c4554e244d70b7f8b7d1a9e9d56c","status":"ACTIVE","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-1906b4b0-da66-48ea-a105-02a50361480d","name":"","admin_state_up":true,"network_id":"1906b4b0-da66-48ea-a105-02a50361480d","tenant_id":"96c6c4554e244d70b7f8b7d1a9e9d56c","created_at":"2018-08-28T23:17:50Z","binding:vnic_type":"normal"}]} </msg>
<msg timestamp="20180828 23:31:00.648" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180828 23:31:00.649" level="INFO">${OSResult} = {u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-08-28T23:17:56Z', u'device_owner': u'network:dhcp', u'revision_number': 3, u'port_security_enabled': False, u'b...</msg>
<status status="PASS" endtime="20180828 23:31:00.649" starttime="20180828 23:31:00.647"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20180828 23:31:00.650" level="INFO">{u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-08-28T23:17:56Z', 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'0e7fad6f-990b-4fba-af2a-5661a641aa43', u'ip_address': u'192.16.1.102'}], u'id': u'00fec6bf-0eca-4f7c-a26d-2b696ac05728', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'1daf6e24-0fc0-4f90-a3e1-8b89e96d8cba', u'host_addresses': [u'host3']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:40:ad:ae', u'project_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'status': u'ACTIVE', u'binding:host_id': u'host3', u'description': u'', u'tags': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-1906b4b0-da66-48ea-a105-02a50361480d', u'name': u'', u'admin_state_up': True, u'network_id': u'1906b4b0-da66-48ea-a105-02a50361480d', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'created_at': u'2018-08-28T23:17:49Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-08-28T23:30:59Z', 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'9de5157a-10f8-48e1-a27f-ce734b1feb07', u'ip_address': u'172.16.64.20'}], u'id': u'575677e3-843e-425b-baf1-a4cda714bc75', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'9e959b08-dc62-4efb-ad51-0078d5413000', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:3f:7b:b0', u'project_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'status': u'DOWN', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-192df45c-9cdf-4162-a160-37ef4cd09b9c', u'name': u'', u'admin_state_up': True, u'network_id': u'192df45c-9cdf-4162-a160-37ef4cd09b9c', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'created_at': u'2018-08-28T23:30:58Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-08-28T23:17:55Z', 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'0e7fad6f-990b-4fba-af2a-5661a641aa43', u'ip_address': u'192.16.1.101'}], u'id': u'5abde9ff-7aef-4fe5-a1d1-368ad7db03b6', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'84c859c5-7982-422a-bad9-09c71cce272b', u'host_addresses': [u'host2']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:5e:11:a6', u'project_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'status': u'ACTIVE', u'binding:host_id': u'host2', u'description': u'', u'tags': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-1906b4b0-da66-48ea-a105-02a50361480d', u'name': u'', u'admin_state_up': True, u'network_id': u'1906b4b0-da66-48ea-a105-02a50361480d', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'created_at': u'2018-08-28T23:17:48Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-08-28T23:30:59Z', 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'9de5157a-10f8-48e1-a27f-ce734b1feb07', u'ip_address': u'172.16.64.21'}], u'id': u'b40fe3aa-73ac-46d8-ada3-b6aa3d4767e1', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'84c859c5-7982-422a-bad9-09c71cce272b', u'host_addresses': [u'host2']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:18:20:a6', u'project_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'status': u'DOWN', u'binding:host_id': u'host2', u'description': u'', u'tags': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-192df45c-9cdf-4162-a160-37ef4cd09b9c', u'name': u'', u'admin_state_up': True, u'network_id': u'192df45c-9cdf-4162-a160-37ef4cd09b9c', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'created_at': u'2018-08-28T23:30:59Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-08-28T23:31:00Z', 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'9de5157a-10f8-48e1-a27f-ce734b1feb07', u'ip_address': u'172.16.64.22'}], u'id': u'c53c8feb-1e57-4541-bacd-daeea8411f13', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:33:3c:08', u'project_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'status': u'DOWN', u'binding:host_id': u'host3', u'description': u'', u'tags': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-192df45c-9cdf-4162-a160-37ef4cd09b9c', u'name': u'', u'admin_state_up': True, u'network_id': u'192df45c-9cdf-4162-a160-37ef4cd09b9c', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'created_at': u'2018-08-28T23:30:59Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-08-28T23:17:56Z', 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'0e7fad6f-990b-4fba-af2a-5661a641aa43', u'ip_address': u'192.16.1.103'}], u'id': u'f34a8fa4-39d7-499a-bce9-4a9ee90d8879', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'9e959b08-dc62-4efb-ad51-0078d5413000', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:63:df:67', u'project_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'status': u'ACTIVE', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-1906b4b0-da66-48ea-a105-02a50361480d', u'name': u'', u'admin_state_up': True, u'network_id': u'1906b4b0-da66-48ea-a105-02a50361480d', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'created_at': u'2018-08-28T23:17:50Z', u'binding:vnic_type': u'normal'}]}</msg>
<status status="PASS" endtime="20180828 23:31:00.650" starttime="20180828 23:31:00.649"></status>
</kw>
<doc>Checking OpenStack Neutron for known ports</doc>
<tags>
<tag>Ports Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20180828 23:31:00.651" critical="yes" starttime="20180828 23:31:00.538"></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="20180828 23:31:00.654" 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 0x7f394bdd4290&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180828 23:31:00.656" starttime="20180828 23:31:00.653"></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="20180828 23:31:00.713" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20180828 23:31:00.714" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180828 23:31:00.714" starttime="20180828 23:31:00.656"></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="20180828 23:31:00.715" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:31:00.715" starttime="20180828 23:31:00.714"></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="20180828 23:31:00.716" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "00fec6bf-0eca-4f7c-a26d-2b696ac05728",
      "tenant_id" : "96c6c4554e244d70b7f8b7d1a9e9d56c",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "1906b4b0-da66-48ea-a105-02a50361480d",
      "mac_address" : "fa:16:3e:40:ad:ae",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.102",
         "subnet_id" : "0e7fad6f-990b-4fba-af2a-5661a641aa43"
      } ],
      "device_id" : "dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-1906b4b0-da66-48ea-a105-02a50361480d",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host3",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "1daf6e24-0fc0-4f90-a3e1-8b89e96d8cba",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "5abde9ff-7aef-4fe5-a1d1-368ad7db03b6",
      "tenant_id" : "96c6c4554e244d70b7f8b7d1a9e9d56c",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "1906b4b0-da66-48ea-a105-02a50361480d",
      "mac_address" : "fa:16:3e:5e:11:a6",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "0e7fad6f-990b-4fba-af2a-5661a641aa43"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-1906b4b0-da66-48ea-a105-02a50361480d",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host2",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "84c859c5-7982-422a-bad9-09c71cce272b",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "b40fe3aa-73ac-46d8-ada3-b6aa3d4767e1",
      "tenant_id" : "96c6c4554e244d70b7f8b7d1a9e9d56c",
      "project_id" : "96c6c4554e244d70b7f8b7d1a9e9d56c",
      "name" : "",
      "admin_state_up" : true,
      "status" : "ACTIVE",
      "network_id" : "192df45c-9cdf-4162-a160-37ef4cd09b9c",
      "mac_address" : "fa:16:3e:18:20:a6",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.21",
         "subnet_id" : "9de5157a-10f8-48e1-a27f-ce734b1feb07"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-192df45c-9cdf-4162-a160-37ef4cd09b9c",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host2",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "unbound",
      "Map" : {
      },
      "port_security_enabled" : false
   }, {
      "id" : "575677e3-843e-425b-baf1-a4cda714bc75",
      "tenant_id" : "96c6c4554e244d70b7f8b7d1a9e9d56c",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "192df45c-9cdf-4162-a160-37ef4cd09b9c",
      "mac_address" : "fa:16:3e:3f:7b:b0",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "9de5157a-10f8-48e1-a27f-ce734b1feb07"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-192df45c-9cdf-4162-a160-37ef4cd09b9c",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "9e959b08-dc62-4efb-ad51-0078d5413000",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "f34a8fa4-39d7-499a-bce9-4a9ee90d8879",
      "tenant_id" : "96c6c4554e244d70b7f8b7d1a9e9d56c",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "1906b4b0-da66-48ea-a105-02a50361480d",
      "mac_address" : "fa:16:3e:63:df:67",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.103",
         "subnet_id" : "0e7fad6f-990b-4fba-af2a-5661a641aa43"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-1906b4b0-da66-48ea-a105-02a50361480d",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "9e959b08-dc62-4efb-ad51-0078d5413000",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20180828 23:31:00.716" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180828 23:31:00.716" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'1daf6e24-0fc0-4f90-a3e1-8b89e96d8cba'}, u'binding:host_id': u'host3', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20180828 23:31:00.716" starttime="20180828 23:31:00.715"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180828 23:31:00.717" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'1daf6e24-0fc0-4f90-a3e1-8b89e96d8cba'}, u'binding:host_id': u'host3', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'1906b4b0-da66-48ea-a105-02a50361480d', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', 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:40:ad:ae', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'0e7fad6f-990b-4fba-af2a-5661a641aa43', u'ip_address': u'192.16.1.102'}], u'id': u'00fec6bf-0eca-4f7c-a26d-2b696ac05728', u'security_groups': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-1906b4b0-da66-48ea-a105-02a50361480d'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'84c859c5-7982-422a-bad9-09c71cce272b'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'1906b4b0-da66-48ea-a105-02a50361480d', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', 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:5e:11:a6', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'0e7fad6f-990b-4fba-af2a-5661a641aa43', u'ip_address': u'192.16.1.101'}], u'id': u'5abde9ff-7aef-4fe5-a1d1-368ad7db03b6', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-1906b4b0-da66-48ea-a105-02a50361480d'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host2', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'192df45c-9cdf-4162-a160-37ef4cd09b9c', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', 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:18:20:a6', u'port_security_enabled': False, u'project_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'fixed_ips': [{u'subnet_id': u'9de5157a-10f8-48e1-a27f-ce734b1feb07', u'ip_address': u'172.16.64.21'}], u'id': u'b40fe3aa-73ac-46d8-ada3-b6aa3d4767e1', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-192df45c-9cdf-4162-a160-37ef4cd09b9c'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'9e959b08-dc62-4efb-ad51-0078d5413000'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'192df45c-9cdf-4162-a160-37ef4cd09b9c', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', 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:3f:7b:b0', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'9de5157a-10f8-48e1-a27f-ce734b1feb07', u'ip_address': u'172.16.64.20'}], u'id': u'575677e3-843e-425b-baf1-a4cda714bc75', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-192df45c-9cdf-4162-a160-37ef4cd09b9c'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'9e959b08-dc62-4efb-ad51-0078d5413000'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'1906b4b0-da66-48ea-a105-02a50361480d', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', 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:63:df:67', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'0e7fad6f-990b-4fba-af2a-5661a641aa43', u'ip_address': u'192.16.1.103'}], u'id': u'f34a8fa4-39d7-499a-bce9-4a9ee90d8879', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-1906b4b0-da66-48ea-a105-02a50361480d'}]}</msg>
<status status="PASS" endtime="20180828 23:31:00.717" starttime="20180828 23:31:00.717"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known ports</doc>
<tags>
<tag>Ports Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180828 23:31:00.717" critical="yes" starttime="20180828 23:31:00.652"></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="20180828 23:31:00.719" level="INFO">{"port":{"network_id":"192df45c-9cdf-4162-a160-37ef4cd09b9c","admin_state_up": true}}</msg>
<status status="PASS" endtime="20180828 23:31:00.719" starttime="20180828 23:31:00.718"></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="20180828 23:31:00.721" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180828 23:31:01.707" 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="20180828 23:31:01.707" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20180828 23:31:01.707" starttime="20180828 23:31:00.719"></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="20180828 23:31:01.708" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:31:01.708" starttime="20180828 23:31:01.708"></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="20180828 23:31:01.709" level="INFO">To JSON using : content={"port":{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-08-28T23:31:01Z","device_owner":"","revision_number":1,"binding:profile":{},"port_security_enabled":true,"fixed_ips":[{"subnet_id":"9de5157a-10f8-48e1-a27f-ce734b1feb07","ip_address":"172.16.64.39"}],"id":"b3c0cfb9-22a5-49b6-9a64-5543b3a4b844","security_groups":["46485dd5-5acd-45bd-b5a6-d5cad33cfa22"],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:5c:64:51","project_id":"96c6c4554e244d70b7f8b7d1a9e9d56c","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"","name":"","admin_state_up":true,"network_id":"192df45c-9cdf-4162-a160-37ef4cd09b9c","tenant_id":"96c6c4554e244d70b7f8b7d1a9e9d56c","created_at":"2018-08-28T23:31:01Z","binding:vnic_type":"normal"}} </msg>
<msg timestamp="20180828 23:31:01.709" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180828 23:31:01.709" level="INFO">${result} = {u'port': {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-08-28T23:31:01Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': ...</msg>
<status status="PASS" endtime="20180828 23:31:01.709" starttime="20180828 23:31:01.709"></status>
</kw>
<kw name="Get From Dictionary" library="Collections">
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<arguments>
<arg>${result}</arg>
<arg>port</arg>
</arguments>
<assign>
<var>${result}</var>
</assign>
<msg timestamp="20180828 23:31:01.710" level="INFO">${result} = {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-08-28T23:31:01Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fi...</msg>
<status status="PASS" endtime="20180828 23:31:01.710" starttime="20180828 23:31:01.710"></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="20180828 23:31:01.711" level="INFO">${PORTID} = b3c0cfb9-22a5-49b6-9a64-5543b3a4b844</msg>
<status status="PASS" endtime="20180828 23:31:01.711" starttime="20180828 23:31:01.710"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20180828 23:31:01.711" level="INFO">{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-08-28T23:31:01Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fixed_ips': [{u'subnet_id': u'9de5157a-10f8-48e1-a27f-ce734b1feb07', u'ip_address': u'172.16.64.39'}], u'id': u'b3c0cfb9-22a5-49b6-9a64-5543b3a4b844', u'security_groups': [u'46485dd5-5acd-45bd-b5a6-d5cad33cfa22'], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:5c:64:51', u'project_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', 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'192df45c-9cdf-4162-a160-37ef4cd09b9c', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'created_at': u'2018-08-28T23:31:01Z', u'binding:vnic_type': u'normal'}</msg>
<status status="PASS" endtime="20180828 23:31:01.711" starttime="20180828 23:31:01.711"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${PORTID}</arg>
</arguments>
<msg timestamp="20180828 23:31:01.712" level="INFO">b3c0cfb9-22a5-49b6-9a64-5543b3a4b844</msg>
<status status="PASS" endtime="20180828 23:31:01.712" starttime="20180828 23:31:01.711"></status>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<doc>Makes a variable available globally in all tests and suites.</doc>
<arguments>
<arg>${PORTID}</arg>
</arguments>
<msg timestamp="20180828 23:31:01.712" level="INFO">${PORTID} = b3c0cfb9-22a5-49b6-9a64-5543b3a4b844</msg>
<status status="PASS" endtime="20180828 23:31:01.712" starttime="20180828 23:31:01.712"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180828 23:31:03.713" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180828 23:31:03.713" starttime="20180828 23:31:01.713"></status>
</kw>
<doc>Create new port in OpenStack</doc>
<tags>
<tag>Create port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180828 23:31:03.714" critical="yes" starttime="20180828 23:31:00.718"></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="20180828 23:31:03.739" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/b3c0cfb9-22a5-49b6-9a64-5543b3a4b844, headers=None json=None</msg>
<msg timestamp="20180828 23:31:03.739" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180828 23:31:03.739" starttime="20180828 23:31:03.716"></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="20180828 23:31:03.740" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:31:03.740" starttime="20180828 23:31:03.739"></status>
</kw>
<doc>Check new port created in OpenDaylight</doc>
<tags>
<tag>Check port OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180828 23:31:03.740" critical="yes" starttime="20180828 23:31:03.715"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180828 23:31:03.741" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180828 23:31:03.741" starttime="20180828 23:31:03.741"></status>
</kw>
<doc>Checking Port created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20180828 23:31:03.741" starttime="20180828 23:31:00.506"></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="20180828 23:31:03.762" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbhdsuUo9XkFxo2Kc0gDaCTj4zGpDyoI6lvg-ftqx8B7y9A8PiTlyv7unltf9rGnz6KgJJFah_k_s9rlRaJun-f8Ao5zRr6UR_mAmJal8CBxtgTKQhuylquM_Z1neo9xeG9ng2g8Xvhu8B1FO0JvLAEofj6ZwRkzGQy3kxaakcFIW7YNI'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180828 23:31:03.762" starttime="20180828 23:31:03.761"></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="20180828 23:31:03.763" 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 0x7f394bd88310&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180828 23:31:03.764" starttime="20180828 23:31:03.762"></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="20180828 23:31:03.776" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/b3c0cfb9-22a5-49b6-9a64-5543b3a4b844, headers=None json=None</msg>
<msg timestamp="20180828 23:31:03.776" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180828 23:31:03.776" starttime="20180828 23:31:03.764"></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="20180828 23:31:03.777" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:31:03.777" starttime="20180828 23:31:03.776"></status>
</kw>
<status status="PASS" endtime="20180828 23:31:03.778" starttime="20180828 23:31:03.764"></status>
</kw>
<status status="PASS" endtime="20180828 23:31:03.778" starttime="20180828 23:31:03.761"></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="20180828 23:31:03.779" level="INFO">{"port":{"network_id":"192df45c-9cdf-4162-a160-37ef4cd09b9c","admin_state_up": true}}</msg>
<status status="PASS" endtime="20180828 23:31:03.779" starttime="20180828 23:31:03.779"></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="20180828 23:31:03.786" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180828 23:31:04.663" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/ports/b3c0cfb9-22a5-49b6-9a64-5543b3a4b844, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20180828 23:31:04.663" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20180828 23:31:04.663" starttime="20180828 23:31:03.780"></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="20180828 23:31:04.664" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:31:04.664" starttime="20180828 23:31:04.664"></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="20180828 23:31:04.665" level="INFO"></msg>
<status status="PASS" endtime="20180828 23:31:04.665" starttime="20180828 23:31:04.664"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180828 23:31:06.665" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180828 23:31:06.666" starttime="20180828 23:31:04.665"></status>
</kw>
<doc>Delete previously created port in OpenStack</doc>
<tags>
<tag>Delete port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180828 23:31:06.667" critical="yes" starttime="20180828 23:31:03.778"></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="20180828 23:31:06.688" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20180828 23:31:06.688" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180828 23:31:06.689" starttime="20180828 23:31:06.669"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20180828 23:31:06.689" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:31:06.689" starttime="20180828 23:31:06.689"></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="20180828 23:31:06.690" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "b40fe3aa-73ac-46d8-ada3-b6aa3d4767e1",
      "tenant_id" : "96c6c4554e244d70b7f8b7d1a9e9d56c",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "192df45c-9cdf-4162-a160-37ef4cd09b9c",
      "mac_address" : "fa:16:3e:18:20:a6",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.21",
         "subnet_id" : "9de5157a-10f8-48e1-a27f-ce734b1feb07"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-192df45c-9cdf-4162-a160-37ef4cd09b9c",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host2",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "84c859c5-7982-422a-bad9-09c71cce272b",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "00fec6bf-0eca-4f7c-a26d-2b696ac05728",
      "tenant_id" : "96c6c4554e244d70b7f8b7d1a9e9d56c",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "1906b4b0-da66-48ea-a105-02a50361480d",
      "mac_address" : "fa:16:3e:40:ad:ae",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.102",
         "subnet_id" : "0e7fad6f-990b-4fba-af2a-5661a641aa43"
      } ],
      "device_id" : "dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-1906b4b0-da66-48ea-a105-02a50361480d",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host3",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "1daf6e24-0fc0-4f90-a3e1-8b89e96d8cba",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "f34a8fa4-39d7-499a-bce9-4a9ee90d8879",
      "tenant_id" : "96c6c4554e244d70b7f8b7d1a9e9d56c",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "1906b4b0-da66-48ea-a105-02a50361480d",
      "mac_address" : "fa:16:3e:63:df:67",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.103",
         "subnet_id" : "0e7fad6f-990b-4fba-af2a-5661a641aa43"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-1906b4b0-da66-48ea-a105-02a50361480d",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "9e959b08-dc62-4efb-ad51-0078d5413000",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "c53c8feb-1e57-4541-bacd-daeea8411f13",
      "tenant_id" : "96c6c4554e244d70b7f8b7d1a9e9d56c",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "192df45c-9cdf-4162-a160-37ef4cd09b9c",
      "mac_address" : "fa:16:3e:33:3c:08",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.22",
         "subnet_id" : "9de5157a-10f8-48e1-a27f-ce734b1feb07"
      } ],
      "device_id" : "dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-192df45c-9cdf-4162-a160-37ef4cd09b9c",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host3",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "1daf6e24-0fc0-4f90-a3e1-8b89e96d8cba",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "575677e3-843e-425b-baf1-a4cda714bc75",
      "tenant_id" : "96c6c4554e244d70b7f8b7d1a9e9d56c",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "192df45c-9cdf-4162-a160-37ef4cd09b9c",
      "mac_address" : "fa:16:3e:3f:7b:b0",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "9de5157a-10f8-48e1-a27f-ce734b1feb07"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-192df45c-9cdf-4162-a160-37ef4cd09b9c",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "9e959b08-dc62-4efb-ad51-0078d5413000",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "5abde9ff-7aef-4fe5-a1d1-368ad7db03b6",
      "tenant_id" : "96c6c4554e244d70b7f8b7d1a9e9d56c",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "1906b4b0-da66-48ea-a105-02a50361480d",
      "mac_address" : "fa:16:3e:5e:11:a6",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "0e7fad6f-990b-4fba-af2a-5661a641aa43"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-1906b4b0-da66-48ea-a105-02a50361480d",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host2",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "84c859c5-7982-422a-bad9-09c71cce272b",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20180828 23:31:06.691" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180828 23:31:06.691" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'84c859c5-7982-422a-bad9-09c71cce272b'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20180828 23:31:06.691" starttime="20180828 23:31:06.690"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180828 23:31:06.692" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'84c859c5-7982-422a-bad9-09c71cce272b'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'192df45c-9cdf-4162-a160-37ef4cd09b9c', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', 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:18:20:a6', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'9de5157a-10f8-48e1-a27f-ce734b1feb07', u'ip_address': u'172.16.64.21'}], u'id': u'b40fe3aa-73ac-46d8-ada3-b6aa3d4767e1', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-192df45c-9cdf-4162-a160-37ef4cd09b9c'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'1daf6e24-0fc0-4f90-a3e1-8b89e96d8cba'}, u'binding:host_id': u'host3', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'1906b4b0-da66-48ea-a105-02a50361480d', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', 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:40:ad:ae', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'0e7fad6f-990b-4fba-af2a-5661a641aa43', u'ip_address': u'192.16.1.102'}], u'id': u'00fec6bf-0eca-4f7c-a26d-2b696ac05728', u'security_groups': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-1906b4b0-da66-48ea-a105-02a50361480d'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'9e959b08-dc62-4efb-ad51-0078d5413000'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'1906b4b0-da66-48ea-a105-02a50361480d', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', 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:63:df:67', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'0e7fad6f-990b-4fba-af2a-5661a641aa43', u'ip_address': u'192.16.1.103'}], u'id': u'f34a8fa4-39d7-499a-bce9-4a9ee90d8879', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-1906b4b0-da66-48ea-a105-02a50361480d'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'1daf6e24-0fc0-4f90-a3e1-8b89e96d8cba'}, u'binding:host_id': u'host3', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'192df45c-9cdf-4162-a160-37ef4cd09b9c', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', 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:33:3c:08', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'9de5157a-10f8-48e1-a27f-ce734b1feb07', u'ip_address': u'172.16.64.22'}], u'id': u'c53c8feb-1e57-4541-bacd-daeea8411f13', u'security_groups': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-192df45c-9cdf-4162-a160-37ef4cd09b9c'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'9e959b08-dc62-4efb-ad51-0078d5413000'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'192df45c-9cdf-4162-a160-37ef4cd09b9c', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', 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:3f:7b:b0', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'9de5157a-10f8-48e1-a27f-ce734b1feb07', u'ip_address': u'172.16.64.20'}], u'id': u'575677e3-843e-425b-baf1-a4cda714bc75', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-192df45c-9cdf-4162-a160-37ef4cd09b9c'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'84c859c5-7982-422a-bad9-09c71cce272b'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'1906b4b0-da66-48ea-a105-02a50361480d', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', 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:5e:11:a6', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'0e7fad6f-990b-4fba-af2a-5661a641aa43', u'ip_address': u'192.16.1.101'}], u'id': u'5abde9ff-7aef-4fe5-a1d1-368ad7db03b6', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-1906b4b0-da66-48ea-a105-02a50361480d'}]}</msg>
<status status="PASS" endtime="20180828 23:31:06.692" starttime="20180828 23:31:06.691"></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="20180828 23:31:06.698" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/b3c0cfb9-22a5-49b6-9a64-5543b3a4b844, headers=None json=None</msg>
<msg timestamp="20180828 23:31:06.698" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20180828 23:31:06.698" starttime="20180828 23:31:06.692"></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="20180828 23:31:06.699" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:31:06.699" starttime="20180828 23:31:06.699"></status>
</kw>
<doc>Check port deleted in OpenDaylight</doc>
<tags>
<tag>Check port deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180828 23:31:06.699" critical="yes" starttime="20180828 23:31:06.668"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180828 23:31:06.700" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180828 23:31:06.701" starttime="20180828 23:31:06.700"></status>
</kw>
<doc>Checking Port deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20180828 23:31:06.701" starttime="20180828 23:31:03.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="20180828 23:31:06.719" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbhdsuUo9XkFxo2Kc0gDaCTj4zGpDyoI6lvg-ftqx8B7y9A8PiTlyv7unltf9rGnz6KgJJFah_k_s9rlRaJun-f8Ao5zRr6UR_mAmJal8CBxtgTKQhuylquM_Z1neo9xeG9ng2g8Xvhu8B1FO0JvLAEofj6ZwRkzGQy3kxaakcFIW7YNI'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180828 23:31:06.719" starttime="20180828 23:31:06.718"></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="20180828 23:31:06.720" 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 0x7f394be210d0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180828 23:31:06.720" starttime="20180828 23:31:06.720"></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="20180828 23:31:06.730" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/9de5157a-10f8-48e1-a27f-ce734b1feb07, headers=None json=None</msg>
<msg timestamp="20180828 23:31:06.730" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180828 23:31:06.731" starttime="20180828 23:31:06.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>200</arg>
</arguments>
<msg timestamp="20180828 23:31:06.731" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:31:06.731" starttime="20180828 23:31:06.731"></status>
</kw>
<status status="PASS" endtime="20180828 23:31:06.731" starttime="20180828 23:31:06.721"></status>
</kw>
<status status="PASS" endtime="20180828 23:31:06.732" starttime="20180828 23:31:06.718"></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="20180828 23:31:06.733" level="INFO">{"subnet":{"network_id":"192df45c-9cdf-4162-a160-37ef4cd09b9c","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="20180828 23:31:06.733" starttime="20180828 23:31:06.732"></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="20180828 23:31:06.738" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180828 23:31:09.929" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/subnets/9de5157a-10f8-48e1-a27f-ce734b1feb07, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20180828 23:31:09.929" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20180828 23:31:09.929" starttime="20180828 23:31:06.733"></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="20180828 23:31:09.930" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:31:09.930" starttime="20180828 23:31:09.929"></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="20180828 23:31:09.932" level="INFO"></msg>
<status status="PASS" endtime="20180828 23:31:09.932" starttime="20180828 23:31:09.931"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180828 23:31:11.933" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180828 23:31:11.934" starttime="20180828 23:31:09.932"></status>
</kw>
<doc>Delete previously created subnet in OpenStack</doc>
<tags>
<tag>Delete Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180828 23:31:11.934" critical="yes" starttime="20180828 23:31:06.732"></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="20180828 23:31:11.948" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20180828 23:31:11.948" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180828 23:31:11.948" starttime="20180828 23:31:11.936"></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="20180828 23:31:11.949" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:31:11.949" starttime="20180828 23:31:11.948"></status>
</kw>
<kw name="To Json" library="RequestsLibrary">
<doc>Convert a string to a JSON object</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<assign>
<var>${ODLResult}</var>
</assign>
<msg timestamp="20180828 23:31:11.950" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "0e7fad6f-990b-4fba-af2a-5661a641aa43",
      "tenant_id" : "96c6c4554e244d70b7f8b7d1a9e9d56c",
      "project_id" : "96c6c4554e244d70b7f8b7d1a9e9d56c",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "1906b4b0-da66-48ea-a105-02a50361480d",
      "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="20180828 23:31:11.950" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180828 23:31:11.950" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'1906b4b0-da66-48ea-a105-02a50361480d', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20180828 23:31:11.950" starttime="20180828 23:31:11.949"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180828 23:31:11.950" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'1906b4b0-da66-48ea-a105-02a50361480d', u'tenant_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', 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'96c6c4554e244d70b7f8b7d1a9e9d56c', u'id': u'0e7fad6f-990b-4fba-af2a-5661a641aa43'}]}</msg>
<status status="PASS" endtime="20180828 23:31:11.951" starttime="20180828 23:31:11.950"></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="20180828 23:31:11.955" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/9de5157a-10f8-48e1-a27f-ce734b1feb07, headers=None json=None</msg>
<msg timestamp="20180828 23:31:11.955" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20180828 23:31:11.955" starttime="20180828 23:31:11.951"></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="20180828 23:31:11.956" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:31:11.956" starttime="20180828 23:31:11.956"></status>
</kw>
<doc>Check subnet deleted in OpenDaylight</doc>
<tags>
<tag>Check subnet deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180828 23:31:11.956" critical="yes" starttime="20180828 23:31:11.935"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180828 23:31:11.957" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180828 23:31:11.957" starttime="20180828 23:31:11.957"></status>
</kw>
<doc>Checking Subnets deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20180828 23:31:11.958" starttime="20180828 23:31:06.702"></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="20180828 23:31:11.976" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbhdsuUo9XkFxo2Kc0gDaCTj4zGpDyoI6lvg-ftqx8B7y9A8PiTlyv7unltf9rGnz6KgJJFah_k_s9rlRaJun-f8Ao5zRr6UR_mAmJal8CBxtgTKQhuylquM_Z1neo9xeG9ng2g8Xvhu8B1FO0JvLAEofj6ZwRkzGQy3kxaakcFIW7YNI'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180828 23:31:11.976" starttime="20180828 23:31:11.975"></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="20180828 23:31:11.977" 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 0x7f394bdd4690&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180828 23:31:11.977" starttime="20180828 23:31:11.976"></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="20180828 23:31:11.985" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/192df45c-9cdf-4162-a160-37ef4cd09b9c, headers=None json=None</msg>
<msg timestamp="20180828 23:31:11.985" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180828 23:31:11.986" starttime="20180828 23:31:11.978"></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="20180828 23:31:11.986" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:31:11.986" starttime="20180828 23:31:11.986"></status>
</kw>
<status status="PASS" endtime="20180828 23:31:11.986" starttime="20180828 23:31:11.977"></status>
</kw>
<status status="PASS" endtime="20180828 23:31:11.987" starttime="20180828 23:31:11.975"></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="20180828 23:31:11.988" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20180828 23:31:11.988" starttime="20180828 23:31:11.987"></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="20180828 23:31:11.992" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180828 23:31:14.185" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/networks/192df45c-9cdf-4162-a160-37ef4cd09b9c, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20180828 23:31:14.185" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20180828 23:31:14.185" starttime="20180828 23:31:11.988"></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="20180828 23:31:14.186" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:31:14.187" starttime="20180828 23:31:14.185"></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="20180828 23:31:14.188" level="INFO"></msg>
<status status="PASS" endtime="20180828 23:31:14.188" starttime="20180828 23:31:14.188"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180828 23:31:16.189" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180828 23:31:16.189" starttime="20180828 23:31:14.189"></status>
</kw>
<doc>Delete network in OpenStack</doc>
<tags>
<tag>Delete Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180828 23:31:16.190" critical="yes" starttime="20180828 23:31:11.987"></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="20180828 23:31:16.201" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20180828 23:31:16.201" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180828 23:31:16.201" starttime="20180828 23:31:16.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="20180828 23:31:16.202" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:31:16.202" starttime="20180828 23:31:16.201"></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="20180828 23:31:16.203" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "1906b4b0-da66-48ea-a105-02a50361480d",
      "tenant_id" : "96c6c4554e244d70b7f8b7d1a9e9d56c",
      "project_id" : "96c6c4554e244d70b7f8b7d1a9e9d56c",
      "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="20180828 23:31:16.203" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180828 23:31:16.203" 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'96c6c4554e244d70b7f8b7d1a9e9d56c...</msg>
<status status="PASS" endtime="20180828 23:31:16.203" starttime="20180828 23:31:16.202"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180828 23:31:16.203" 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'96c6c4554e244d70b7f8b7d1a9e9d56c', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'96c6c4554e244d70b7f8b7d1a9e9d56c', u'id': u'1906b4b0-da66-48ea-a105-02a50361480d'}, {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="20180828 23:31:16.204" starttime="20180828 23:31:16.203"></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="20180828 23:31:16.207" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/192df45c-9cdf-4162-a160-37ef4cd09b9c, headers=None json=None</msg>
<msg timestamp="20180828 23:31:16.207" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20180828 23:31:16.207" starttime="20180828 23:31:16.204"></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="20180828 23:31:16.208" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180828 23:31:16.208" starttime="20180828 23:31:16.207"></status>
</kw>
<doc>Check network deleted in OpenDaylight</doc>
<tags>
<tag>Check Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180828 23:31:16.208" critical="yes" starttime="20180828 23:31:16.191"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180828 23:31:16.209" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180828 23:31:16.209" starttime="20180828 23:31:16.209"></status>
</kw>
<doc>Checking Network deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20180828 23:31:16.209" starttime="20180828 23:31:11.959"></status>
</suite>
<kw type="teardown" name="Stop Suite">
<kw name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180828 23:31:16.213" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180828 23:31:16.213" starttime="20180828 23:31:16.213"></status>
</kw>
<status status="PASS" endtime="20180828 23:31:16.213" starttime="20180828 23:31:16.212"></status>
</kw>
<doc>Test suite for Neutron Plugin</doc>
<status status="PASS" endtime="20180828 23:31:16.213" starttime="20180828 23:30:54.381"></status>
</suite>
<status status="FAIL" endtime="20180828 23:31:16.219" starttime="20180828 23:30:53.711"></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="20180828 23:30:54.420" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20180828 23:30:54.425" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180828 23:30:54.952" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180828 23:30:55.169" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180828 23:30:57.504" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180828 23:30:57.607" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180828 23:31:00.547" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180828 23:31:00.721" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180828 23:31:03.786" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180828 23:31:06.738" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180828 23:31:11.992" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
</errors>
</robot>
