<?xml version="1.0" encoding="UTF-8"?>
<robot generated="20181024 22:29:11.905" 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="20181024 22:29:11.968" 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 0x7facc33a8a10&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181024 22:29:11.969" starttime="20181024 22:29:11.968"></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="20181024 22:29:12.581" 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 0x7facc33b86d0&gt;: Failed to establish a new connection: [Errno 111] Connection refused',))</msg>
<status status="FAIL" endtime="20181024 22:29:12.581" starttime="20181024 22:29:11.970"></status>
</kw>
<doc>Get the restconf modules, check 200 status and ietf-restconf presence.</doc>
<status status="FAIL" endtime="20181024 22:29:12.582" critical="yes" starttime="20181024 22:29:11.969">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 0x7facc33b86d0&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="20181024 22:29:12.584" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181024 22:29:12.584" starttime="20181024 22:29:12.584"></status>
</kw>
<doc>Test suite to verify Restconf is OK.</doc>
<status status="FAIL" endtime="20181024 22:29:12.584" starttime="20181024 22:29:11.935"></status>
</suite>
<status status="FAIL" endtime="20181024 22:29:12.586" starttime="20181024 22:29:11.933"></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="20181024 22:29:12.631" 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="20181024 22:29:12.632" starttime="20181024 22:29:12.631"></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="20181024 22:29:12.633" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20181024 22:29:12.639" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181024 22:29:13.058" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:13.058" starttime="20181024 22:29:12.632"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>201</arg>
</arguments>
<msg timestamp="20181024 22:29:13.104" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:13.104" starttime="20181024 22:29:13.059"></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="20181024 22:29:13.105" level="INFO">${TOKEN} = gAAAAABb0PI5fTgsSXI2ppkQqCK_2cLn2aInG2lnaZi2Voqm2PyHy3WTatGr1dNOuN5ZKTEvIAItJLTPOps6iW3jPIUEFKATMEjqJP92f6cWdluE1gZNtOTHyyEu2pLh1GvZupx351EO-XOkMivg8fIVtKGOQKhGjfQl-nk6V4WsjXXgGHha0Ro</msg>
<status status="PASS" endtime="20181024 22:29:13.105" starttime="20181024 22:29:13.104"></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="20181024 22:29:13.106" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABb0PI5fTgsSXI2ppkQqCK_2cLn2aInG2lnaZi2Voqm2PyHy3WTatGr1dNOuN5ZKTEvIAItJLTPOps6iW3jPIUEFKATMEjqJP92f6cWdluE1gZNtOTHyyEu2pLh1GvZupx351EO-XOkMivg8fIVtKGOQKhGjfQl-nk6V4WsjXXgGHha0...</msg>
<status status="PASS" endtime="20181024 22:29:13.106" starttime="20181024 22:29:13.105"></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="20181024 22:29:13.107" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABb0PI5fTgsSXI2ppkQqCK_2cLn2aInG2lnaZi2Voqm2PyHy3WTatGr1dNOuN5ZKTEvIAItJLTPOps6iW3jPIUEFKATMEjqJP92f6cWdluE1gZNtOTHyyEu2pLh1GvZupx351EO-XOkMivg8fIVtKGOQKhGjfQl-nk6V4WsjXXgGHha0...</msg>
<status status="PASS" endtime="20181024 22:29:13.107" starttime="20181024 22:29:13.106"></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="20181024 22:29:13.108" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABb0PI5fTgsSXI2ppkQqCK_2cLn2aInG2lnaZi2Voqm2PyHy3WTatGr1dNOuN5ZKTEvIAItJLTPOps6iW3jPIUEFKATMEjqJP92f6cWdluE1gZNtOTHyyEu2pLh1GvZupx351EO-XOkMivg8fIVtKGOQKhGjfQl-nk6V4WsjXXgGHha0...</msg>
<status status="PASS" endtime="20181024 22:29:13.108" starttime="20181024 22:29:13.107"></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="20181024 22:29:13.108" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABb0PI5fTgsSXI2ppkQqCK_2cLn2aInG2lnaZi2Voqm2PyHy3WTatGr1dNOuN5ZKTEvIAItJLTPOps6iW3jPIUEFKATMEjqJP92f6cWdluE1gZNtOTHyyEu2pLh1GvZupx351EO-XOkMivg8fIVtKGOQKhGjfQl-nk6V4WsjXXgGHha0...</msg>
<status status="PASS" endtime="20181024 22:29:13.109" starttime="20181024 22:29:13.108"></status>
</kw>
<status status="PASS" endtime="20181024 22:29:13.109" starttime="20181024 22:29:12.630"></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="20181024 22:29:13.124" 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 0x7facc43f0750&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181024 22:29:13.125" starttime="20181024 22:29:13.124"></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="20181024 22:29:13.193" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181024 22:29:13.193" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:13.193" starttime="20181024 22:29:13.126"></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="20181024 22:29:13.194" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:13.194" starttime="20181024 22:29:13.193"></status>
</kw>
<doc>Get the complete list of networks</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181024 22:29:13.194" critical="yes" starttime="20181024 22:29:13.125"></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="20181024 22:29:13.232" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181024 22:29:13.232" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:13.232" starttime="20181024 22:29:13.195"></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="20181024 22:29:13.233" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:13.233" starttime="20181024 22:29:13.232"></status>
</kw>
<doc>Get the complete list of subnets</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181024 22:29:13.233" critical="yes" starttime="20181024 22:29:13.194"></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="20181024 22:29:13.263" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181024 22:29:13.263" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:13.263" starttime="20181024 22:29:13.235"></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="20181024 22:29:13.264" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:13.264" starttime="20181024 22:29:13.264"></status>
</kw>
<doc>Get the complete list of ports</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181024 22:29:13.264" critical="yes" starttime="20181024 22:29:13.234"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181024 22:29:13.265" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181024 22:29:13.265" starttime="20181024 22:29:13.265"></status>
</kw>
<status status="PASS" endtime="20181024 22:29:13.265" starttime="20181024 22:29:13.109"></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="20181024 22:29:13.284" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABb0PI5fTgsSXI2ppkQqCK_2cLn2aInG2lnaZi2Voqm2PyHy3WTatGr1dNOuN5ZKTEvIAItJLTPOps6iW3jPIUEFKATMEjqJP92f6cWdluE1gZNtOTHyyEu2pLh1GvZupx351EO-XOkMivg8fIVtKGOQKhGjfQl-nk6V4WsjXXgGHha0Ro', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181024 22:29:13.285" starttime="20181024 22:29:13.284"></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="20181024 22:29:13.286" level="INFO">{u'X-Auth-Token': 'gAAAAABb0PI5fTgsSXI2ppkQqCK_2cLn2aInG2lnaZi2Voqm2PyHy3WTatGr1dNOuN5ZKTEvIAItJLTPOps6iW3jPIUEFKATMEjqJP92f6cWdluE1gZNtOTHyyEu2pLh1GvZupx351EO-XOkMivg8fIVtKGOQKhGjfQl-nk6V4WsjXXgGHha0Ro', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181024 22:29:13.286" starttime="20181024 22:29:13.285"></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="20181024 22:29:13.291" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181024 22:29:13.752" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/networks, headers=None json=None</msg>
<msg timestamp="20181024 22:29:13.752" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:13.753" starttime="20181024 22:29:13.286"></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="20181024 22:29:13.753" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:13.754" starttime="20181024 22:29:13.753"></status>
</kw>
<kw name="To Json" library="RequestsLibrary">
<doc>Convert a string to a JSON object</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<assign>
<var>${OSResult}</var>
</assign>
<msg timestamp="20181024 22:29:13.754" 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":"a8a48b4c-605d-4fb5-8de3-07f1d960c316","router:external":true,"availability_zone_hints":[],"availability_zones":["nova"],"ipv4_address_scope":null,"shared":false,"project_id":"27fdc5b7e92a4051a2879e1dd182a9f5","status":"ACTIVE","subnets":["963db6b2-6c5c-4881-92eb-f48859f456a4"],"description":"","tags":[],"updated_at":"2018-10-24T22:15:47Z","is_default":false,"provider:segmentation_id":null,"name":"ext-net","admin_state_up":true,"tenant_id":"27fdc5b7e92a4051a2879e1dd182a9f5","created_at":"2018-10-24T22:15:39Z","provider:network_type":"flat"}]} </msg>
<msg timestamp="20181024 22:29:13.754" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181024 22:29:13.755" 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'a8a48b4c-605d-...</msg>
<status status="PASS" endtime="20181024 22:29:13.755" starttime="20181024 22:29:13.754"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181024 22:29:13.755" 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'a8a48b4c-605d-4fb5-8de3-07f1d960c316', 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'27fdc5b7e92a4051a2879e1dd182a9f5', u'status': u'ACTIVE', u'subnets': [u'963db6b2-6c5c-4881-92eb-f48859f456a4'], u'description': u'', u'tags': [], u'updated_at': u'2018-10-24T22:15:47Z', u'is_default': False, u'provider:segmentation_id': None, u'name': u'ext-net', u'admin_state_up': True, u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'created_at': u'2018-10-24T22:15:39Z', u'mtu': 1500}]}</msg>
<status status="PASS" endtime="20181024 22:29:13.755" starttime="20181024 22:29:13.755"></status>
</kw>
<doc>Checking OpenStack Neutron for known networks</doc>
<tags>
<tag>Network Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181024 22:29:13.755" critical="yes" starttime="20181024 22:29:13.285"></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="20181024 22:29:13.757" 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 0x7facc357e0d0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181024 22:29:13.758" starttime="20181024 22:29:13.757"></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="20181024 22:29:13.769" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181024 22:29:13.769" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:13.769" starttime="20181024 22:29:13.758"></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="20181024 22:29:13.770" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:13.770" starttime="20181024 22:29:13.769"></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="20181024 22:29:13.771" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
      "tenant_id" : "bd8db3a82b304083a8b3b3fd46401142",
      "project_id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
      "name" : "Sync Canary Network",
      "admin_state_up" : false,
      "status" : "ACTIVE",
      "shared" : false,
      "router:external" : false,
      "provider:network_type" : "flat",
      "segments" : [ ]
   }, {
      "id" : "a8a48b4c-605d-4fb5-8de3-07f1d960c316",
      "tenant_id" : "27fdc5b7e92a4051a2879e1dd182a9f5",
      "project_id" : "27fdc5b7e92a4051a2879e1dd182a9f5",
      "revision_number" : 1,
      "name" : "ext-net",
      "admin_state_up" : true,
      "status" : "ACTIVE",
      "shared" : false,
      "router:external" : true,
      "provider:network_type" : "flat",
      "provider:physical_network" : "physnet",
      "segments" : [ ]
   } ]
} </msg>
<msg timestamp="20181024 22:29:13.771" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181024 22:29:13.771" level="INFO">${ODLResult} = {u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'name': u'Sync Canary Network', u'admin_state_up': False, u'tenant_id': u'bd8db3a82b304083a8b3b3fd46401142', u'segments': [], u'provid...</msg>
<status status="PASS" endtime="20181024 22:29:13.771" starttime="20181024 22:29:13.770"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181024 22:29:13.772" level="INFO">{u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'name': u'Sync Canary Network', u'admin_state_up': False, u'tenant_id': u'bd8db3a82b304083a8b3b3fd46401142', u'segments': [], u'provider:network_type': u'flat', u'shared': False, u'project_id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142', u'id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142'}, {u'status': u'ACTIVE', u'router:external': True, u'name': u'ext-net', u'provider:physical_network': u'physnet', u'admin_state_up': True, u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'id': u'a8a48b4c-605d-4fb5-8de3-07f1d960c316'}]}</msg>
<status status="PASS" endtime="20181024 22:29:13.772" starttime="20181024 22:29:13.771"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known networks</doc>
<tags>
<tag>Network Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181024 22:29:13.772" critical="yes" starttime="20181024 22:29:13.756"></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="20181024 22:29:13.774" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20181024 22:29:13.774" starttime="20181024 22:29:13.774"></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="20181024 22:29:13.776" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181024 22:29:14.185" 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="20181024 22:29:14.186" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:14.186" starttime="20181024 22:29:13.774"></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="20181024 22:29:14.187" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:14.188" starttime="20181024 22:29:14.187"></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="20181024 22:29:14.188" 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":"d8a3d077-386c-4bb8-9bae-f78865bf6b28","router:external":false,"availability_zone_hints":[],"availability_zones":[],"ipv4_address_scope":null,"shared":false,"project_id":"27fdc5b7e92a4051a2879e1dd182a9f5","status":"ACTIVE","subnets":[],"description":"","tags":[],"updated_at":"2018-10-24T22:29:13Z","is_default":false,"provider:segmentation_id":94,"name":"odl_network","admin_state_up":true,"tenant_id":"27fdc5b7e92a4051a2879e1dd182a9f5","created_at":"2018-10-24T22:29:13Z","mtu":1450}} </msg>
<msg timestamp="20181024 22:29:14.189" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181024 22:29:14.189" 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'd8a3d077-386c-4bb8-9bae-f78865bf6b28', u'ro...</msg>
<status status="PASS" endtime="20181024 22:29:14.189" starttime="20181024 22:29:14.188"></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="20181024 22:29:14.189" 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'd8a3d077-386c-4bb8-9bae-f78865bf6b28', u'router:external...</msg>
<status status="PASS" endtime="20181024 22:29:14.189" starttime="20181024 22:29:14.189"></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="20181024 22:29:14.190" level="INFO">${NETID} = d8a3d077-386c-4bb8-9bae-f78865bf6b28</msg>
<status status="PASS" endtime="20181024 22:29:14.190" starttime="20181024 22:29:14.190"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181024 22:29:14.191" 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'd8a3d077-386c-4bb8-9bae-f78865bf6b28', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'status': u'ACTIVE', u'subnets': [], u'description': u'', u'tags': [], u'updated_at': u'2018-10-24T22:29:13Z', u'is_default': False, u'provider:segmentation_id': 94, u'name': u'odl_network', u'admin_state_up': True, u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'created_at': u'2018-10-24T22:29:13Z', u'provider:network_type': u'vxlan'}</msg>
<status status="PASS" endtime="20181024 22:29:14.191" starttime="20181024 22:29:14.190"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${NETID}</arg>
</arguments>
<msg timestamp="20181024 22:29:14.191" level="INFO">d8a3d077-386c-4bb8-9bae-f78865bf6b28</msg>
<status status="PASS" endtime="20181024 22:29:14.191" starttime="20181024 22:29:14.191"></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="20181024 22:29:14.192" level="INFO">${NETID} = d8a3d077-386c-4bb8-9bae-f78865bf6b28</msg>
<status status="PASS" endtime="20181024 22:29:14.192" starttime="20181024 22:29:14.192"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181024 22:29:16.193" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181024 22:29:16.193" starttime="20181024 22:29:14.192"></status>
</kw>
<doc>Create new network in OpenStack</doc>
<tags>
<tag>Create Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181024 22:29:16.193" critical="yes" starttime="20181024 22:29:13.772"></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="20181024 22:29:16.208" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/d8a3d077-386c-4bb8-9bae-f78865bf6b28, headers=None json=None</msg>
<msg timestamp="20181024 22:29:16.209" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:16.209" starttime="20181024 22:29:16.197"></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="20181024 22:29:16.209" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:16.209" starttime="20181024 22:29:16.209"></status>
</kw>
<doc>Check network created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181024 22:29:16.210" critical="yes" starttime="20181024 22:29:16.195"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181024 22:29:16.211" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181024 22:29:16.211" starttime="20181024 22:29:16.210"></status>
</kw>
<doc>Checking Network created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181024 22:29:16.211" starttime="20181024 22:29:13.266"></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="20181024 22:29:16.229" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABb0PI5fTgsSXI2ppkQqCK_2cLn2aInG2lnaZi2Voqm2PyHy3WTatGr1dNOuN5ZKTEvIAItJLTPOps6iW3jPIUEFKATMEjqJP92f6cWdluE1gZNtOTHyyEu2pLh1GvZupx351EO-XOkMivg8fIVtKGOQKhGjfQl-nk6V4WsjXXgGHha0Ro', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181024 22:29:16.230" starttime="20181024 22:29:16.229"></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="20181024 22:29:16.231" level="INFO">{u'X-Auth-Token': 'gAAAAABb0PI5fTgsSXI2ppkQqCK_2cLn2aInG2lnaZi2Voqm2PyHy3WTatGr1dNOuN5ZKTEvIAItJLTPOps6iW3jPIUEFKATMEjqJP92f6cWdluE1gZNtOTHyyEu2pLh1GvZupx351EO-XOkMivg8fIVtKGOQKhGjfQl-nk6V4WsjXXgGHha0Ro', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181024 22:29:16.231" starttime="20181024 22:29:16.231"></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="20181024 22:29:16.237" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181024 22:29:16.317" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/subnets, headers=None json=None</msg>
<msg timestamp="20181024 22:29:16.318" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:16.318" starttime="20181024 22:29:16.231"></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="20181024 22:29:16.318" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:16.318" starttime="20181024 22:29:16.318"></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="20181024 22:29:16.319" level="INFO">To JSON using : content={"subnets":[{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"a8a48b4c-605d-4fb5-8de3-07f1d960c316","tenant_id":"27fdc5b7e92a4051a2879e1dd182a9f5","created_at":"2018-10-24T22:15:47Z","dns_nameservers":[],"updated_at":"2018-10-24T22:15: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":"27fdc5b7e92a4051a2879e1dd182a9f5","id":"963db6b2-6c5c-4881-92eb-f48859f456a4","subnetpool_id":null,"name":"ext-subnet"}]} </msg>
<msg timestamp="20181024 22:29:16.319" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181024 22:29:16.319" level="INFO">${OSResult} = {u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'a8a48b4c-605d-4fb5-8de3-07f1d960c316', u'tenant_id': u'27fdc5b7e92a405...</msg>
<status status="PASS" endtime="20181024 22:29:16.319" starttime="20181024 22:29:16.318"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181024 22:29:16.320" level="INFO">{u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'a8a48b4c-605d-4fb5-8de3-07f1d960c316', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'created_at': u'2018-10-24T22:15:47Z', u'dns_nameservers': [], u'updated_at': u'2018-10-24T22:15: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'27fdc5b7e92a4051a2879e1dd182a9f5', u'id': u'963db6b2-6c5c-4881-92eb-f48859f456a4', u'subnetpool_id': None, u'name': u'ext-subnet'}]}</msg>
<status status="PASS" endtime="20181024 22:29:16.320" starttime="20181024 22:29:16.319"></status>
</kw>
<doc>Checking OpenStack Neutron for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181024 22:29:16.320" critical="yes" starttime="20181024 22:29:16.230"></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="20181024 22:29:16.322" 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 0x7facc34032d0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181024 22:29:16.322" starttime="20181024 22:29:16.321"></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="20181024 22:29:16.334" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181024 22:29:16.334" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:16.334" starttime="20181024 22:29:16.322"></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="20181024 22:29:16.334" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:16.335" starttime="20181024 22:29:16.334"></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="20181024 22:29:16.335" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "963db6b2-6c5c-4881-92eb-f48859f456a4",
      "tenant_id" : "27fdc5b7e92a4051a2879e1dd182a9f5",
      "project_id" : "27fdc5b7e92a4051a2879e1dd182a9f5",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "a8a48b4c-605d-4fb5-8de3-07f1d960c316",
      "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="20181024 22:29:16.335" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181024 22:29:16.335" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'a8a48b4c-605d-4fb5-8de3-07f1d960c316', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20181024 22:29:16.335" starttime="20181024 22:29:16.335"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181024 22:29:16.336" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'a8a48b4c-605d-4fb5-8de3-07f1d960c316', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', 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'27fdc5b7e92a4051a2879e1dd182a9f5', u'id': u'963db6b2-6c5c-4881-92eb-f48859f456a4'}]}</msg>
<status status="PASS" endtime="20181024 22:29:16.336" starttime="20181024 22:29:16.336"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181024 22:29:16.336" critical="yes" starttime="20181024 22:29:16.320"></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="20181024 22:29:16.338" level="INFO">{"subnet":{"network_id":"d8a3d077-386c-4bb8-9bae-f78865bf6b28","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="20181024 22:29:16.338" starttime="20181024 22:29:16.337"></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="20181024 22:29:16.340" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181024 22:29:16.982" 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="20181024 22:29:16.982" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:16.982" starttime="20181024 22:29:16.338"></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="20181024 22:29:16.983" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:16.983" starttime="20181024 22:29:16.983"></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="20181024 22:29:16.984" level="INFO">To JSON using : content={"subnet":{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"d8a3d077-386c-4bb8-9bae-f78865bf6b28","tenant_id":"27fdc5b7e92a4051a2879e1dd182a9f5","created_at":"2018-10-24T22:29:16Z","dns_nameservers":[],"updated_at":"2018-10-24T22:29:16Z","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":"27fdc5b7e92a4051a2879e1dd182a9f5","id":"e7f7a037-09c6-4d5a-9f68-facb9f9338eb","subnetpool_id":null,"name":""}} </msg>
<msg timestamp="20181024 22:29:16.984" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181024 22:29:16.984" level="INFO">${result} = {u'subnet': {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'd8a3d077-386c-4bb8-9bae-f78865bf6b28', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'...</msg>
<status status="PASS" endtime="20181024 22:29:16.984" starttime="20181024 22:29:16.983"></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="20181024 22:29:16.985" level="INFO">${result} = {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'd8a3d077-386c-4bb8-9bae-f78865bf6b28', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'created_at':...</msg>
<status status="PASS" endtime="20181024 22:29:16.985" starttime="20181024 22:29:16.984"></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="20181024 22:29:16.985" level="INFO">${SUBNETID} = e7f7a037-09c6-4d5a-9f68-facb9f9338eb</msg>
<status status="PASS" endtime="20181024 22:29:16.985" starttime="20181024 22:29:16.985"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181024 22:29:16.986" level="INFO">{u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'd8a3d077-386c-4bb8-9bae-f78865bf6b28', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'created_at': u'2018-10-24T22:29:16Z', u'dns_nameservers': [], u'updated_at': u'2018-10-24T22:29:16Z', 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'27fdc5b7e92a4051a2879e1dd182a9f5', u'id': u'e7f7a037-09c6-4d5a-9f68-facb9f9338eb', u'subnetpool_id': None, u'name': u''}</msg>
<status status="PASS" endtime="20181024 22:29:16.986" starttime="20181024 22:29:16.986"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${SUBNETID}</arg>
</arguments>
<msg timestamp="20181024 22:29:16.986" level="INFO">e7f7a037-09c6-4d5a-9f68-facb9f9338eb</msg>
<status status="PASS" endtime="20181024 22:29:16.987" starttime="20181024 22:29:16.986"></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="20181024 22:29:16.987" level="INFO">${SUBNETID} = e7f7a037-09c6-4d5a-9f68-facb9f9338eb</msg>
<status status="PASS" endtime="20181024 22:29:16.987" starttime="20181024 22:29:16.987"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181024 22:29:18.988" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181024 22:29:18.988" starttime="20181024 22:29:16.987"></status>
</kw>
<doc>Create new subnet in OpenStack</doc>
<tags>
<tag>Create Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181024 22:29:18.988" critical="yes" starttime="20181024 22:29:16.337"></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="20181024 22:29:19.040" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/e7f7a037-09c6-4d5a-9f68-facb9f9338eb, headers=None json=None</msg>
<msg timestamp="20181024 22:29:19.040" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:19.040" starttime="20181024 22:29:18.990"></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="20181024 22:29:19.041" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:19.041" starttime="20181024 22:29:19.041"></status>
</kw>
<doc>Check new subnet created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>subnet OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181024 22:29:19.042" critical="yes" starttime="20181024 22:29:18.989"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181024 22:29:19.043" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181024 22:29:19.043" starttime="20181024 22:29:19.043"></status>
</kw>
<doc>Checking Subnets created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181024 22:29:19.043" starttime="20181024 22:29:16.212"></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="20181024 22:29:19.063" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABb0PI5fTgsSXI2ppkQqCK_2cLn2aInG2lnaZi2Voqm2PyHy3WTatGr1dNOuN5ZKTEvIAItJLTPOps6iW3jPIUEFKATMEjqJP92f6cWdluE1gZNtOTHyyEu2pLh1GvZupx351EO-XOkMivg8fIVtKGOQKhGjfQl-nk6V4WsjXXgGHha0Ro', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181024 22:29:19.064" starttime="20181024 22:29:19.063"></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="20181024 22:29:19.065" level="INFO">{u'X-Auth-Token': 'gAAAAABb0PI5fTgsSXI2ppkQqCK_2cLn2aInG2lnaZi2Voqm2PyHy3WTatGr1dNOuN5ZKTEvIAItJLTPOps6iW3jPIUEFKATMEjqJP92f6cWdluE1gZNtOTHyyEu2pLh1GvZupx351EO-XOkMivg8fIVtKGOQKhGjfQl-nk6V4WsjXXgGHha0Ro', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181024 22:29:19.065" starttime="20181024 22:29:19.065"></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="20181024 22:29:19.071" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181024 22:29:19.195" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/ports, headers=None json=None</msg>
<msg timestamp="20181024 22:29:19.196" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:19.196" starttime="20181024 22:29:19.065"></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="20181024 22:29:19.197" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:19.197" starttime="20181024 22:29:19.196"></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="20181024 22:29:19.198" level="INFO">To JSON using : content={"ports":[{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-24T22:15:57Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"963db6b2-6c5c-4881-92eb-f48859f456a4","ip_address":"192.16.1.103"}],"id":"09966da8-a419-4a4a-8512-7efbd58a1a32","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"46d2aae8-d75f-4ab5-95e1-2451ed44f298","host_addresses":["host2"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:7a:43:00","project_id":"27fdc5b7e92a4051a2879e1dd182a9f5","status":"ACTIVE","binding:host_id":"host2","description":"","tags":[],"device_id":"dhcp6e683b9c-430b-509e-9237-cf130714d68f-a8a48b4c-605d-4fb5-8de3-07f1d960c316","name":"","admin_state_up":true,"network_id":"a8a48b4c-605d-4fb5-8de3-07f1d960c316","tenant_id":"27fdc5b7e92a4051a2879e1dd182a9f5","created_at":"2018-10-24T22:15:51Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-24T22:29:18Z","device_owner":"network:dhcp","revision_number":2,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"e7f7a037-09c6-4d5a-9f68-facb9f9338eb","ip_address":"172.16.64.20"}],"id":"10310147-7c02-40a1-badd-49fca5768790","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"dbb1c5c1-c166-4ee3-859c-e02b17b9c583","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:ec:7a:94","project_id":"27fdc5b7e92a4051a2879e1dd182a9f5","status":"DOWN","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-d8a3d077-386c-4bb8-9bae-f78865bf6b28","name":"","admin_state_up":true,"network_id":"d8a3d077-386c-4bb8-9bae-f78865bf6b28","tenant_id":"27fdc5b7e92a4051a2879e1dd182a9f5","created_at":"2018-10-24T22:29:17Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-24T22:15:56Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"963db6b2-6c5c-4881-92eb-f48859f456a4","ip_address":"192.16.1.102"}],"id":"1697d7ac-25d5-4877-89a8-4bdb517a09e9","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"dbb1c5c1-c166-4ee3-859c-e02b17b9c583","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:4e:ae:6e","project_id":"27fdc5b7e92a4051a2879e1dd182a9f5","status":"ACTIVE","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-a8a48b4c-605d-4fb5-8de3-07f1d960c316","name":"","admin_state_up":true,"network_id":"a8a48b4c-605d-4fb5-8de3-07f1d960c316","tenant_id":"27fdc5b7e92a4051a2879e1dd182a9f5","created_at":"2018-10-24T22:15:49Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-24T22:15:55Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"963db6b2-6c5c-4881-92eb-f48859f456a4","ip_address":"192.16.1.101"}],"id":"d6ab5413-104e-42a1-83a3-e12388b3e3b6","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"f0ded779-3494-4cd8-af37-78c8716dcc3c","host_addresses":["host3"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:ec:42:6c","project_id":"27fdc5b7e92a4051a2879e1dd182a9f5","status":"ACTIVE","binding:host_id":"host3","description":"","tags":[],"device_id":"dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-a8a48b4c-605d-4fb5-8de3-07f1d960c316","name":"","admin_state_up":true,"network_id":"a8a48b4c-605d-4fb5-8de3-07f1d960c316","tenant_id":"27fdc5b7e92a4051a2879e1dd182a9f5","created_at":"2018-10-24T22:15:48Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-24T22:29:18Z","device_owner":"network:dhcp","revision_number":1,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"e7f7a037-09c6-4d5a-9f68-facb9f9338eb","ip_address":"172.16.64.21"}],"id":"ee23293f-d442-4eee-9041-db5efc65c08a","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:9b:cc:f6","project_id":"27fdc5b7e92a4051a2879e1dd182a9f5","status":"DOWN","binding:host_id":"host2","description":"","tags":[],"device_id":"dhcp6e683b9c-430b-509e-9237-cf130714d68f-d8a3d077-386c-4bb8-9bae-f78865bf6b28","name":"","admin_state_up":true,"network_id":"d8a3d077-386c-4bb8-9bae-f78865bf6b28","tenant_id":"27fdc5b7e92a4051a2879e1dd182a9f5","created_at":"2018-10-24T22:29:18Z","binding:vnic_type":"normal"}]} </msg>
<msg timestamp="20181024 22:29:19.198" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181024 22:29:19.198" level="INFO">${OSResult} = {u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-24T22:15:57Z', u'device_owner': u'network:dhcp', u'revision_number': 3, u'port_security_enabled': False, u'b...</msg>
<status status="PASS" endtime="20181024 22:29:19.198" starttime="20181024 22:29:19.197"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181024 22:29:19.199" level="INFO">{u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-24T22:15:57Z', 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'963db6b2-6c5c-4881-92eb-f48859f456a4', u'ip_address': u'192.16.1.103'}], u'id': u'09966da8-a419-4a4a-8512-7efbd58a1a32', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'46d2aae8-d75f-4ab5-95e1-2451ed44f298', u'host_addresses': [u'host2']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:7a:43:00', u'project_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'status': u'ACTIVE', u'binding:host_id': u'host2', u'description': u'', u'tags': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-a8a48b4c-605d-4fb5-8de3-07f1d960c316', u'name': u'', u'admin_state_up': True, u'network_id': u'a8a48b4c-605d-4fb5-8de3-07f1d960c316', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'created_at': u'2018-10-24T22:15:51Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-24T22:29:18Z', 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'e7f7a037-09c6-4d5a-9f68-facb9f9338eb', u'ip_address': u'172.16.64.20'}], u'id': u'10310147-7c02-40a1-badd-49fca5768790', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'dbb1c5c1-c166-4ee3-859c-e02b17b9c583', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:ec:7a:94', u'project_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'status': u'DOWN', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-d8a3d077-386c-4bb8-9bae-f78865bf6b28', u'name': u'', u'admin_state_up': True, u'network_id': u'd8a3d077-386c-4bb8-9bae-f78865bf6b28', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'created_at': u'2018-10-24T22:29:17Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-24T22:15: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'963db6b2-6c5c-4881-92eb-f48859f456a4', u'ip_address': u'192.16.1.102'}], u'id': u'1697d7ac-25d5-4877-89a8-4bdb517a09e9', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'dbb1c5c1-c166-4ee3-859c-e02b17b9c583', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:4e:ae:6e', u'project_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'status': u'ACTIVE', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-a8a48b4c-605d-4fb5-8de3-07f1d960c316', u'name': u'', u'admin_state_up': True, u'network_id': u'a8a48b4c-605d-4fb5-8de3-07f1d960c316', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'created_at': u'2018-10-24T22:15:49Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-24T22:15: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'963db6b2-6c5c-4881-92eb-f48859f456a4', u'ip_address': u'192.16.1.101'}], u'id': u'd6ab5413-104e-42a1-83a3-e12388b3e3b6', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'f0ded779-3494-4cd8-af37-78c8716dcc3c', u'host_addresses': [u'host3']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:ec:42:6c', u'project_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'status': u'ACTIVE', u'binding:host_id': u'host3', u'description': u'', u'tags': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-a8a48b4c-605d-4fb5-8de3-07f1d960c316', u'name': u'', u'admin_state_up': True, u'network_id': u'a8a48b4c-605d-4fb5-8de3-07f1d960c316', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'created_at': u'2018-10-24T22:15:48Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-24T22:29:18Z', 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'e7f7a037-09c6-4d5a-9f68-facb9f9338eb', u'ip_address': u'172.16.64.21'}], u'id': u'ee23293f-d442-4eee-9041-db5efc65c08a', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:9b:cc:f6', u'project_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'status': u'DOWN', u'binding:host_id': u'host2', u'description': u'', u'tags': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-d8a3d077-386c-4bb8-9bae-f78865bf6b28', u'name': u'', u'admin_state_up': True, u'network_id': u'd8a3d077-386c-4bb8-9bae-f78865bf6b28', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'created_at': u'2018-10-24T22:29:18Z', u'binding:vnic_type': u'normal'}]}</msg>
<status status="PASS" endtime="20181024 22:29:19.199" starttime="20181024 22:29:19.199"></status>
</kw>
<doc>Checking OpenStack Neutron for known ports</doc>
<tags>
<tag>Ports Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181024 22:29:19.199" critical="yes" starttime="20181024 22:29:19.064"></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="20181024 22:29:19.202" 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 0x7facc326c5d0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181024 22:29:19.202" starttime="20181024 22:29:19.201"></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="20181024 22:29:19.268" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181024 22:29:19.269" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:19.269" starttime="20181024 22:29:19.202"></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="20181024 22:29:19.269" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:19.269" starttime="20181024 22:29:19.269"></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="20181024 22:29:19.270" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "09966da8-a419-4a4a-8512-7efbd58a1a32",
      "tenant_id" : "27fdc5b7e92a4051a2879e1dd182a9f5",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "a8a48b4c-605d-4fb5-8de3-07f1d960c316",
      "mac_address" : "fa:16:3e:7a:43:00",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.103",
         "subnet_id" : "963db6b2-6c5c-4881-92eb-f48859f456a4"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-a8a48b4c-605d-4fb5-8de3-07f1d960c316",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host2",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "46d2aae8-d75f-4ab5-95e1-2451ed44f298",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "1697d7ac-25d5-4877-89a8-4bdb517a09e9",
      "tenant_id" : "27fdc5b7e92a4051a2879e1dd182a9f5",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "a8a48b4c-605d-4fb5-8de3-07f1d960c316",
      "mac_address" : "fa:16:3e:4e:ae:6e",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.102",
         "subnet_id" : "963db6b2-6c5c-4881-92eb-f48859f456a4"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-a8a48b4c-605d-4fb5-8de3-07f1d960c316",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "dbb1c5c1-c166-4ee3-859c-e02b17b9c583",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "ee23293f-d442-4eee-9041-db5efc65c08a",
      "tenant_id" : "27fdc5b7e92a4051a2879e1dd182a9f5",
      "project_id" : "27fdc5b7e92a4051a2879e1dd182a9f5",
      "name" : "",
      "admin_state_up" : true,
      "status" : "ACTIVE",
      "network_id" : "d8a3d077-386c-4bb8-9bae-f78865bf6b28",
      "mac_address" : "fa:16:3e:9b:cc:f6",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.21",
         "subnet_id" : "e7f7a037-09c6-4d5a-9f68-facb9f9338eb"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-d8a3d077-386c-4bb8-9bae-f78865bf6b28",
      "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" : "d6ab5413-104e-42a1-83a3-e12388b3e3b6",
      "tenant_id" : "27fdc5b7e92a4051a2879e1dd182a9f5",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "a8a48b4c-605d-4fb5-8de3-07f1d960c316",
      "mac_address" : "fa:16:3e:ec:42:6c",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "963db6b2-6c5c-4881-92eb-f48859f456a4"
      } ],
      "device_id" : "dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-a8a48b4c-605d-4fb5-8de3-07f1d960c316",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host3",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "f0ded779-3494-4cd8-af37-78c8716dcc3c",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "10310147-7c02-40a1-badd-49fca5768790",
      "tenant_id" : "27fdc5b7e92a4051a2879e1dd182a9f5",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "d8a3d077-386c-4bb8-9bae-f78865bf6b28",
      "mac_address" : "fa:16:3e:ec:7a:94",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "e7f7a037-09c6-4d5a-9f68-facb9f9338eb"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-d8a3d077-386c-4bb8-9bae-f78865bf6b28",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "dbb1c5c1-c166-4ee3-859c-e02b17b9c583",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20181024 22:29:19.270" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181024 22:29:19.271" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'46d2aae8-d75f-4ab5-95e1-2451ed44f298'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20181024 22:29:19.271" starttime="20181024 22:29:19.270"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181024 22:29:19.271" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'46d2aae8-d75f-4ab5-95e1-2451ed44f298'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'a8a48b4c-605d-4fb5-8de3-07f1d960c316', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', 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:7a:43:00', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'963db6b2-6c5c-4881-92eb-f48859f456a4', u'ip_address': u'192.16.1.103'}], u'id': u'09966da8-a419-4a4a-8512-7efbd58a1a32', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-a8a48b4c-605d-4fb5-8de3-07f1d960c316'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'dbb1c5c1-c166-4ee3-859c-e02b17b9c583'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'a8a48b4c-605d-4fb5-8de3-07f1d960c316', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', 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:4e:ae:6e', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'963db6b2-6c5c-4881-92eb-f48859f456a4', u'ip_address': u'192.16.1.102'}], u'id': u'1697d7ac-25d5-4877-89a8-4bdb517a09e9', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-a8a48b4c-605d-4fb5-8de3-07f1d960c316'}, {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'd8a3d077-386c-4bb8-9bae-f78865bf6b28', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', 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:9b:cc:f6', u'port_security_enabled': False, u'project_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'fixed_ips': [{u'subnet_id': u'e7f7a037-09c6-4d5a-9f68-facb9f9338eb', u'ip_address': u'172.16.64.21'}], u'id': u'ee23293f-d442-4eee-9041-db5efc65c08a', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-d8a3d077-386c-4bb8-9bae-f78865bf6b28'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'f0ded779-3494-4cd8-af37-78c8716dcc3c'}, u'binding:host_id': u'host3', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'a8a48b4c-605d-4fb5-8de3-07f1d960c316', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', 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:ec:42:6c', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'963db6b2-6c5c-4881-92eb-f48859f456a4', u'ip_address': u'192.16.1.101'}], u'id': u'd6ab5413-104e-42a1-83a3-e12388b3e3b6', u'security_groups': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-a8a48b4c-605d-4fb5-8de3-07f1d960c316'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'dbb1c5c1-c166-4ee3-859c-e02b17b9c583'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'd8a3d077-386c-4bb8-9bae-f78865bf6b28', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', 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:ec:7a:94', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'e7f7a037-09c6-4d5a-9f68-facb9f9338eb', u'ip_address': u'172.16.64.20'}], u'id': u'10310147-7c02-40a1-badd-49fca5768790', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-d8a3d077-386c-4bb8-9bae-f78865bf6b28'}]}</msg>
<status status="PASS" endtime="20181024 22:29:19.272" starttime="20181024 22:29:19.271"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known ports</doc>
<tags>
<tag>Ports Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181024 22:29:19.272" critical="yes" starttime="20181024 22:29:19.200"></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="20181024 22:29:19.273" level="INFO">{"port":{"network_id":"d8a3d077-386c-4bb8-9bae-f78865bf6b28","admin_state_up": true}}</msg>
<status status="PASS" endtime="20181024 22:29:19.273" starttime="20181024 22:29:19.273"></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="20181024 22:29:19.275" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181024 22:29:20.229" 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="20181024 22:29:20.229" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:20.229" starttime="20181024 22:29:19.273"></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="20181024 22:29:20.230" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:20.230" starttime="20181024 22:29:20.230"></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="20181024 22:29:20.231" level="INFO">To JSON using : content={"port":{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-24T22:29:19Z","device_owner":"","revision_number":1,"binding:profile":{},"port_security_enabled":true,"fixed_ips":[{"subnet_id":"e7f7a037-09c6-4d5a-9f68-facb9f9338eb","ip_address":"172.16.64.22"}],"id":"f2b58b7a-aa70-494f-ac16-f95b88fbcfa8","security_groups":["5fa1ad65-4736-423c-b5ac-663434c4ae1a"],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:77:99:ee","project_id":"27fdc5b7e92a4051a2879e1dd182a9f5","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"","name":"","admin_state_up":true,"network_id":"d8a3d077-386c-4bb8-9bae-f78865bf6b28","tenant_id":"27fdc5b7e92a4051a2879e1dd182a9f5","created_at":"2018-10-24T22:29:19Z","binding:vnic_type":"normal"}} </msg>
<msg timestamp="20181024 22:29:20.231" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181024 22:29:20.231" level="INFO">${result} = {u'port': {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-24T22:29:19Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': ...</msg>
<status status="PASS" endtime="20181024 22:29:20.231" starttime="20181024 22:29:20.231"></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="20181024 22:29:20.232" level="INFO">${result} = {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-24T22:29:19Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fi...</msg>
<status status="PASS" endtime="20181024 22:29:20.232" starttime="20181024 22:29:20.232"></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="20181024 22:29:20.233" level="INFO">${PORTID} = f2b58b7a-aa70-494f-ac16-f95b88fbcfa8</msg>
<status status="PASS" endtime="20181024 22:29:20.233" starttime="20181024 22:29:20.232"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181024 22:29:20.233" level="INFO">{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-24T22:29:19Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fixed_ips': [{u'subnet_id': u'e7f7a037-09c6-4d5a-9f68-facb9f9338eb', u'ip_address': u'172.16.64.22'}], u'id': u'f2b58b7a-aa70-494f-ac16-f95b88fbcfa8', u'security_groups': [u'5fa1ad65-4736-423c-b5ac-663434c4ae1a'], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:77:99:ee', u'project_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', 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'd8a3d077-386c-4bb8-9bae-f78865bf6b28', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'created_at': u'2018-10-24T22:29:19Z', u'binding:vnic_type': u'normal'}</msg>
<status status="PASS" endtime="20181024 22:29:20.233" starttime="20181024 22:29:20.233"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${PORTID}</arg>
</arguments>
<msg timestamp="20181024 22:29:20.234" level="INFO">f2b58b7a-aa70-494f-ac16-f95b88fbcfa8</msg>
<status status="PASS" endtime="20181024 22:29:20.234" starttime="20181024 22:29:20.233"></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="20181024 22:29:20.234" level="INFO">${PORTID} = f2b58b7a-aa70-494f-ac16-f95b88fbcfa8</msg>
<status status="PASS" endtime="20181024 22:29:20.234" starttime="20181024 22:29:20.234"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181024 22:29:22.235" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181024 22:29:22.235" starttime="20181024 22:29:20.235"></status>
</kw>
<doc>Create new port in OpenStack</doc>
<tags>
<tag>Create port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181024 22:29:22.236" critical="yes" starttime="20181024 22:29:19.272"></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="20181024 22:29:22.251" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/f2b58b7a-aa70-494f-ac16-f95b88fbcfa8, headers=None json=None</msg>
<msg timestamp="20181024 22:29:22.251" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:22.251" starttime="20181024 22:29:22.237"></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="20181024 22:29:22.252" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:22.252" starttime="20181024 22:29:22.251"></status>
</kw>
<doc>Check new port created in OpenDaylight</doc>
<tags>
<tag>Check port OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181024 22:29:22.252" critical="yes" starttime="20181024 22:29:22.236"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181024 22:29:22.253" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181024 22:29:22.254" starttime="20181024 22:29:22.253"></status>
</kw>
<doc>Checking Port created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181024 22:29:22.254" starttime="20181024 22:29:19.046"></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="20181024 22:29:22.273" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABb0PI5fTgsSXI2ppkQqCK_2cLn2aInG2lnaZi2Voqm2PyHy3WTatGr1dNOuN5ZKTEvIAItJLTPOps6iW3jPIUEFKATMEjqJP92f6cWdluE1gZNtOTHyyEu2pLh1GvZupx351EO-XOkMivg8fIVtKGOQKhGjfQl-nk6V4WsjXXgGHha0Ro'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181024 22:29:22.273" starttime="20181024 22:29:22.272"></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="20181024 22:29:22.274" 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 0x7facc321b810&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181024 22:29:22.274" starttime="20181024 22:29:22.273"></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="20181024 22:29:22.295" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/f2b58b7a-aa70-494f-ac16-f95b88fbcfa8, headers=None json=None</msg>
<msg timestamp="20181024 22:29:22.295" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:22.296" starttime="20181024 22:29:22.275"></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="20181024 22:29:22.296" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:22.297" starttime="20181024 22:29:22.296"></status>
</kw>
<status status="PASS" endtime="20181024 22:29:22.297" starttime="20181024 22:29:22.275"></status>
</kw>
<status status="PASS" endtime="20181024 22:29:22.297" starttime="20181024 22:29:22.272"></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="20181024 22:29:22.298" level="INFO">{"port":{"network_id":"d8a3d077-386c-4bb8-9bae-f78865bf6b28","admin_state_up": true}}</msg>
<status status="PASS" endtime="20181024 22:29:22.298" starttime="20181024 22:29:22.298"></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="20181024 22:29:22.304" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181024 22:29:23.567" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/ports/f2b58b7a-aa70-494f-ac16-f95b88fbcfa8, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181024 22:29:23.568" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:23.568" starttime="20181024 22:29:22.298"></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="20181024 22:29:23.569" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:23.569" starttime="20181024 22:29:23.568"></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="20181024 22:29:23.570" level="INFO"></msg>
<status status="PASS" endtime="20181024 22:29:23.570" starttime="20181024 22:29:23.569"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181024 22:29:25.570" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181024 22:29:25.571" starttime="20181024 22:29:23.570"></status>
</kw>
<doc>Delete previously created port in OpenStack</doc>
<tags>
<tag>Delete port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181024 22:29:25.571" critical="yes" starttime="20181024 22:29:22.297"></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="20181024 22:29:25.611" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181024 22:29:25.611" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:25.611" starttime="20181024 22:29:25.575"></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="20181024 22:29:25.612" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:25.612" starttime="20181024 22:29:25.611"></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="20181024 22:29:25.613" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "10310147-7c02-40a1-badd-49fca5768790",
      "tenant_id" : "27fdc5b7e92a4051a2879e1dd182a9f5",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "d8a3d077-386c-4bb8-9bae-f78865bf6b28",
      "mac_address" : "fa:16:3e:ec:7a:94",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "e7f7a037-09c6-4d5a-9f68-facb9f9338eb"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-d8a3d077-386c-4bb8-9bae-f78865bf6b28",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "dbb1c5c1-c166-4ee3-859c-e02b17b9c583",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "ee23293f-d442-4eee-9041-db5efc65c08a",
      "tenant_id" : "27fdc5b7e92a4051a2879e1dd182a9f5",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "d8a3d077-386c-4bb8-9bae-f78865bf6b28",
      "mac_address" : "fa:16:3e:9b:cc:f6",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.21",
         "subnet_id" : "e7f7a037-09c6-4d5a-9f68-facb9f9338eb"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-d8a3d077-386c-4bb8-9bae-f78865bf6b28",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host2",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "46d2aae8-d75f-4ab5-95e1-2451ed44f298",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "1697d7ac-25d5-4877-89a8-4bdb517a09e9",
      "tenant_id" : "27fdc5b7e92a4051a2879e1dd182a9f5",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "a8a48b4c-605d-4fb5-8de3-07f1d960c316",
      "mac_address" : "fa:16:3e:4e:ae:6e",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.102",
         "subnet_id" : "963db6b2-6c5c-4881-92eb-f48859f456a4"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-a8a48b4c-605d-4fb5-8de3-07f1d960c316",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "dbb1c5c1-c166-4ee3-859c-e02b17b9c583",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "a35f0a39-39af-43dd-b693-d1aa29bf8c43",
      "tenant_id" : "27fdc5b7e92a4051a2879e1dd182a9f5",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "d8a3d077-386c-4bb8-9bae-f78865bf6b28",
      "mac_address" : "fa:16:3e:10:68:23",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.23",
         "subnet_id" : "e7f7a037-09c6-4d5a-9f68-facb9f9338eb"
      } ],
      "device_id" : "dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-d8a3d077-386c-4bb8-9bae-f78865bf6b28",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host3",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "f0ded779-3494-4cd8-af37-78c8716dcc3c",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "09966da8-a419-4a4a-8512-7efbd58a1a32",
      "tenant_id" : "27fdc5b7e92a4051a2879e1dd182a9f5",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "a8a48b4c-605d-4fb5-8de3-07f1d960c316",
      "mac_address" : "fa:16:3e:7a:43:00",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.103",
         "subnet_id" : "963db6b2-6c5c-4881-92eb-f48859f456a4"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-a8a48b4c-605d-4fb5-8de3-07f1d960c316",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host2",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "46d2aae8-d75f-4ab5-95e1-2451ed44f298",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "d6ab5413-104e-42a1-83a3-e12388b3e3b6",
      "tenant_id" : "27fdc5b7e92a4051a2879e1dd182a9f5",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "a8a48b4c-605d-4fb5-8de3-07f1d960c316",
      "mac_address" : "fa:16:3e:ec:42:6c",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "963db6b2-6c5c-4881-92eb-f48859f456a4"
      } ],
      "device_id" : "dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-a8a48b4c-605d-4fb5-8de3-07f1d960c316",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host3",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "f0ded779-3494-4cd8-af37-78c8716dcc3c",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20181024 22:29:25.613" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181024 22:29:25.614" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'dbb1c5c1-c166-4ee3-859c-e02b17b9c583'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20181024 22:29:25.614" starttime="20181024 22:29:25.612"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181024 22:29:25.614" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'dbb1c5c1-c166-4ee3-859c-e02b17b9c583'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'd8a3d077-386c-4bb8-9bae-f78865bf6b28', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', 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:ec:7a:94', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'e7f7a037-09c6-4d5a-9f68-facb9f9338eb', u'ip_address': u'172.16.64.20'}], u'id': u'10310147-7c02-40a1-badd-49fca5768790', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-d8a3d077-386c-4bb8-9bae-f78865bf6b28'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'46d2aae8-d75f-4ab5-95e1-2451ed44f298'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'd8a3d077-386c-4bb8-9bae-f78865bf6b28', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', 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:9b:cc:f6', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'e7f7a037-09c6-4d5a-9f68-facb9f9338eb', u'ip_address': u'172.16.64.21'}], u'id': u'ee23293f-d442-4eee-9041-db5efc65c08a', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-d8a3d077-386c-4bb8-9bae-f78865bf6b28'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'dbb1c5c1-c166-4ee3-859c-e02b17b9c583'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'a8a48b4c-605d-4fb5-8de3-07f1d960c316', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', 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:4e:ae:6e', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'963db6b2-6c5c-4881-92eb-f48859f456a4', u'ip_address': u'192.16.1.102'}], u'id': u'1697d7ac-25d5-4877-89a8-4bdb517a09e9', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-a8a48b4c-605d-4fb5-8de3-07f1d960c316'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'f0ded779-3494-4cd8-af37-78c8716dcc3c'}, u'binding:host_id': u'host3', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'd8a3d077-386c-4bb8-9bae-f78865bf6b28', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', 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:10:68:23', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'e7f7a037-09c6-4d5a-9f68-facb9f9338eb', u'ip_address': u'172.16.64.23'}], u'id': u'a35f0a39-39af-43dd-b693-d1aa29bf8c43', u'security_groups': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-d8a3d077-386c-4bb8-9bae-f78865bf6b28'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'46d2aae8-d75f-4ab5-95e1-2451ed44f298'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'a8a48b4c-605d-4fb5-8de3-07f1d960c316', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', 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:7a:43:00', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'963db6b2-6c5c-4881-92eb-f48859f456a4', u'ip_address': u'192.16.1.103'}], u'id': u'09966da8-a419-4a4a-8512-7efbd58a1a32', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-a8a48b4c-605d-4fb5-8de3-07f1d960c316'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'f0ded779-3494-4cd8-af37-78c8716dcc3c'}, u'binding:host_id': u'host3', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'a8a48b4c-605d-4fb5-8de3-07f1d960c316', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', 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:ec:42:6c', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'963db6b2-6c5c-4881-92eb-f48859f456a4', u'ip_address': u'192.16.1.101'}], u'id': u'd6ab5413-104e-42a1-83a3-e12388b3e3b6', u'security_groups': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-a8a48b4c-605d-4fb5-8de3-07f1d960c316'}]}</msg>
<status status="PASS" endtime="20181024 22:29:25.615" starttime="20181024 22:29:25.614"></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="20181024 22:29:25.621" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/f2b58b7a-aa70-494f-ac16-f95b88fbcfa8, headers=None json=None</msg>
<msg timestamp="20181024 22:29:25.621" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:25.621" starttime="20181024 22:29:25.615"></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="20181024 22:29:25.622" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:25.622" starttime="20181024 22:29:25.621"></status>
</kw>
<doc>Check port deleted in OpenDaylight</doc>
<tags>
<tag>Check port deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181024 22:29:25.622" critical="yes" starttime="20181024 22:29:25.572"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181024 22:29:25.623" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181024 22:29:25.623" starttime="20181024 22:29:25.623"></status>
</kw>
<doc>Checking Port deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181024 22:29:25.624" starttime="20181024 22:29:22.255"></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="20181024 22:29:25.643" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABb0PI5fTgsSXI2ppkQqCK_2cLn2aInG2lnaZi2Voqm2PyHy3WTatGr1dNOuN5ZKTEvIAItJLTPOps6iW3jPIUEFKATMEjqJP92f6cWdluE1gZNtOTHyyEu2pLh1GvZupx351EO-XOkMivg8fIVtKGOQKhGjfQl-nk6V4WsjXXgGHha0Ro'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181024 22:29:25.644" starttime="20181024 22:29:25.643"></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="20181024 22:29:25.645" 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 0x7facc33c1890&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181024 22:29:25.645" starttime="20181024 22:29:25.644"></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="20181024 22:29:25.656" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/e7f7a037-09c6-4d5a-9f68-facb9f9338eb, headers=None json=None</msg>
<msg timestamp="20181024 22:29:25.656" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:25.656" starttime="20181024 22:29:25.646"></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="20181024 22:29:25.657" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:25.657" starttime="20181024 22:29:25.657"></status>
</kw>
<status status="PASS" endtime="20181024 22:29:25.658" starttime="20181024 22:29:25.645"></status>
</kw>
<status status="PASS" endtime="20181024 22:29:25.658" starttime="20181024 22:29:25.642"></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="20181024 22:29:25.659" level="INFO">{"subnet":{"network_id":"d8a3d077-386c-4bb8-9bae-f78865bf6b28","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="20181024 22:29:25.659" starttime="20181024 22:29:25.659"></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="20181024 22:29:25.670" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181024 22:29:28.983" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/subnets/e7f7a037-09c6-4d5a-9f68-facb9f9338eb, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181024 22:29:28.984" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:28.984" starttime="20181024 22:29:25.660"></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="20181024 22:29:28.985" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:28.985" starttime="20181024 22:29:28.984"></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="20181024 22:29:28.985" level="INFO"></msg>
<status status="PASS" endtime="20181024 22:29:28.985" starttime="20181024 22:29:28.985"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181024 22:29:30.986" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181024 22:29:30.987" starttime="20181024 22:29:28.986"></status>
</kw>
<doc>Delete previously created subnet in OpenStack</doc>
<tags>
<tag>Delete Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181024 22:29:30.987" critical="yes" starttime="20181024 22:29:25.658"></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="20181024 22:29:31.001" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181024 22:29:31.001" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:31.002" starttime="20181024 22:29:30.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>200</arg>
</arguments>
<msg timestamp="20181024 22:29:31.002" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:31.002" starttime="20181024 22:29:31.002"></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="20181024 22:29:31.003" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "963db6b2-6c5c-4881-92eb-f48859f456a4",
      "tenant_id" : "27fdc5b7e92a4051a2879e1dd182a9f5",
      "project_id" : "27fdc5b7e92a4051a2879e1dd182a9f5",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "a8a48b4c-605d-4fb5-8de3-07f1d960c316",
      "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="20181024 22:29:31.003" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181024 22:29:31.003" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'a8a48b4c-605d-4fb5-8de3-07f1d960c316', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20181024 22:29:31.003" starttime="20181024 22:29:31.002"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181024 22:29:31.004" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'a8a48b4c-605d-4fb5-8de3-07f1d960c316', u'tenant_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', 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'27fdc5b7e92a4051a2879e1dd182a9f5', u'id': u'963db6b2-6c5c-4881-92eb-f48859f456a4'}]}</msg>
<status status="PASS" endtime="20181024 22:29:31.004" starttime="20181024 22:29:31.003"></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="20181024 22:29:31.008" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/e7f7a037-09c6-4d5a-9f68-facb9f9338eb, headers=None json=None</msg>
<msg timestamp="20181024 22:29:31.008" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:31.008" starttime="20181024 22:29:31.004"></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="20181024 22:29:31.009" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:31.009" starttime="20181024 22:29:31.008"></status>
</kw>
<doc>Check subnet deleted in OpenDaylight</doc>
<tags>
<tag>Check subnet deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181024 22:29:31.009" critical="yes" starttime="20181024 22:29:30.987"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181024 22:29:31.010" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181024 22:29:31.010" starttime="20181024 22:29:31.010"></status>
</kw>
<doc>Checking Subnets deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181024 22:29:31.011" starttime="20181024 22:29:25.625"></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="20181024 22:29:31.029" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABb0PI5fTgsSXI2ppkQqCK_2cLn2aInG2lnaZi2Voqm2PyHy3WTatGr1dNOuN5ZKTEvIAItJLTPOps6iW3jPIUEFKATMEjqJP92f6cWdluE1gZNtOTHyyEu2pLh1GvZupx351EO-XOkMivg8fIVtKGOQKhGjfQl-nk6V4WsjXXgGHha0Ro'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181024 22:29:31.030" starttime="20181024 22:29:31.029"></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="20181024 22:29:31.030" 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 0x7facc32850d0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181024 22:29:31.031" starttime="20181024 22:29:31.030"></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="20181024 22:29:31.042" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/d8a3d077-386c-4bb8-9bae-f78865bf6b28, headers=None json=None</msg>
<msg timestamp="20181024 22:29:31.042" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:31.042" starttime="20181024 22:29:31.031"></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="20181024 22:29:31.043" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:31.043" starttime="20181024 22:29:31.043"></status>
</kw>
<status status="PASS" endtime="20181024 22:29:31.044" starttime="20181024 22:29:31.031"></status>
</kw>
<status status="PASS" endtime="20181024 22:29:31.044" starttime="20181024 22:29:31.028"></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="20181024 22:29:31.045" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20181024 22:29:31.045" starttime="20181024 22:29:31.045"></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="20181024 22:29:31.052" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181024 22:29:34.187" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/networks/d8a3d077-386c-4bb8-9bae-f78865bf6b28, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181024 22:29:34.187" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:34.187" starttime="20181024 22:29:31.045"></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="20181024 22:29:34.188" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:34.188" starttime="20181024 22:29:34.188"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<msg timestamp="20181024 22:29:34.189" level="INFO"></msg>
<status status="PASS" endtime="20181024 22:29:34.189" starttime="20181024 22:29:34.189"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181024 22:29:36.190" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181024 22:29:36.190" starttime="20181024 22:29:34.189"></status>
</kw>
<doc>Delete network in OpenStack</doc>
<tags>
<tag>Delete Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181024 22:29:36.190" critical="yes" starttime="20181024 22:29:31.044"></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="20181024 22:29:36.211" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181024 22:29:36.211" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:36.211" starttime="20181024 22:29:36.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="20181024 22:29:36.212" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:36.212" starttime="20181024 22:29:36.211"></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="20181024 22:29:36.213" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "a8a48b4c-605d-4fb5-8de3-07f1d960c316",
      "tenant_id" : "27fdc5b7e92a4051a2879e1dd182a9f5",
      "project_id" : "27fdc5b7e92a4051a2879e1dd182a9f5",
      "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="20181024 22:29:36.213" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181024 22:29:36.213" 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'27fdc5b7e92a4051a2879e1dd182a9f5...</msg>
<status status="PASS" endtime="20181024 22:29:36.213" starttime="20181024 22:29:36.212"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181024 22:29:36.213" 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'27fdc5b7e92a4051a2879e1dd182a9f5', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'27fdc5b7e92a4051a2879e1dd182a9f5', u'id': u'a8a48b4c-605d-4fb5-8de3-07f1d960c316'}, {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="20181024 22:29:36.214" starttime="20181024 22:29:36.213"></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="20181024 22:29:36.219" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/d8a3d077-386c-4bb8-9bae-f78865bf6b28, headers=None json=None</msg>
<msg timestamp="20181024 22:29:36.219" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181024 22:29:36.219" starttime="20181024 22:29:36.214"></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="20181024 22:29:36.220" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181024 22:29:36.220" starttime="20181024 22:29:36.219"></status>
</kw>
<doc>Check network deleted in OpenDaylight</doc>
<tags>
<tag>Check Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181024 22:29:36.220" critical="yes" starttime="20181024 22:29:36.191"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181024 22:29:36.221" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181024 22:29:36.221" starttime="20181024 22:29:36.221"></status>
</kw>
<doc>Checking Network deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181024 22:29:36.221" starttime="20181024 22:29:31.012"></status>
</suite>
<kw type="teardown" name="Stop Suite">
<kw name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181024 22:29:36.225" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181024 22:29:36.225" starttime="20181024 22:29:36.225"></status>
</kw>
<status status="PASS" endtime="20181024 22:29:36.225" starttime="20181024 22:29:36.224"></status>
</kw>
<doc>Test suite for Neutron Plugin</doc>
<status status="PASS" endtime="20181024 22:29:36.225" starttime="20181024 22:29:12.587"></status>
</suite>
<status status="FAIL" endtime="20181024 22:29:36.231" starttime="20181024 22:29:11.906"></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="20181024 22:29:12.633" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20181024 22:29:12.639" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181024 22:29:13.291" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181024 22:29:13.776" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181024 22:29:16.237" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181024 22:29:16.340" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181024 22:29:19.071" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181024 22:29:19.275" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181024 22:29:22.304" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181024 22:29:25.670" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181024 22:29:31.052" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
</errors>
</robot>
