<?xml version="1.0" encoding="UTF-8"?>
<robot generated="20181002 10:02:19.490" 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="20181002 10:02:19.640" 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 0x7f5722c6ca10&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 10:02:19.641" starttime="20181002 10:02:19.640"></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="20181002 10:02:20.275" 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 0x7f5722c6cc50&gt;: Failed to establish a new connection: [Errno 111] Connection refused',))</msg>
<status status="FAIL" endtime="20181002 10:02:20.275" starttime="20181002 10:02:19.642"></status>
</kw>
<doc>Get the restconf modules, check 200 status and ietf-restconf presence.</doc>
<status status="FAIL" endtime="20181002 10:02:20.275" critical="yes" starttime="20181002 10:02:19.641">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 0x7f5722c6cc50&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="20181002 10:02:20.278" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181002 10:02:20.279" starttime="20181002 10:02:20.277"></status>
</kw>
<doc>Test suite to verify Restconf is OK.</doc>
<status status="FAIL" endtime="20181002 10:02:20.279" starttime="20181002 10:02:19.556"></status>
</suite>
<status status="FAIL" endtime="20181002 10:02:20.281" starttime="20181002 10:02:19.554"></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="20181002 10:02:20.533" 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="20181002 10:02:20.534" starttime="20181002 10:02:20.532"></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="20181002 10:02:20.535" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20181002 10:02:20.563" 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="20181002 10:02:20.976" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:20.976" starttime="20181002 10:02:20.534"></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="20181002 10:02:20.977" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:20.977" starttime="20181002 10:02:20.976"></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="20181002 10:02:20.977" level="INFO">${TOKEN} = gAAAAABbs0IsEa6V9ed23z2-F8lkzYGF-ONnBdOt_SPAbWFbd62KEuFleQrzntIobhQEGj1F0P4K5zHP3XRU51nOgmyNABvY8VMrKkTpxw2N64gNTxik7DOoByOYW9vziFckEvW75y9udtBzXXVehF0UBwRZ5LGvtRfBrnKQtvxb3guxBLLG-hs</msg>
<status status="PASS" endtime="20181002 10:02:20.977" starttime="20181002 10:02:20.977"></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="20181002 10:02:20.978" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABbs0IsEa6V9ed23z2-F8lkzYGF-ONnBdOt_SPAbWFbd62KEuFleQrzntIobhQEGj1F0P4K5zHP3XRU51nOgmyNABvY8VMrKkTpxw2N64gNTxik7DOoByOYW9vziFckEvW75y9udtBzXXVehF0UBwRZ5LGvtRfBrnKQtvxb3guxBLLG-...</msg>
<status status="PASS" endtime="20181002 10:02:20.978" starttime="20181002 10:02:20.978"></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="20181002 10:02:20.979" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABbs0IsEa6V9ed23z2-F8lkzYGF-ONnBdOt_SPAbWFbd62KEuFleQrzntIobhQEGj1F0P4K5zHP3XRU51nOgmyNABvY8VMrKkTpxw2N64gNTxik7DOoByOYW9vziFckEvW75y9udtBzXXVehF0UBwRZ5LGvtRfBrnKQtvxb3guxBLLG-...</msg>
<status status="PASS" endtime="20181002 10:02:20.979" starttime="20181002 10:02:20.978"></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="20181002 10:02:20.980" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABbs0IsEa6V9ed23z2-F8lkzYGF-ONnBdOt_SPAbWFbd62KEuFleQrzntIobhQEGj1F0P4K5zHP3XRU51nOgmyNABvY8VMrKkTpxw2N64gNTxik7DOoByOYW9vziFckEvW75y9udtBzXXVehF0UBwRZ5LGvtRfBrnKQtvxb3guxBLLG-...</msg>
<status status="PASS" endtime="20181002 10:02:20.980" starttime="20181002 10:02:20.979"></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="20181002 10:02:20.980" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABbs0IsEa6V9ed23z2-F8lkzYGF-ONnBdOt_SPAbWFbd62KEuFleQrzntIobhQEGj1F0P4K5zHP3XRU51nOgmyNABvY8VMrKkTpxw2N64gNTxik7DOoByOYW9vziFckEvW75y9udtBzXXVehF0UBwRZ5LGvtRfBrnKQtvxb3guxBLLG-...</msg>
<status status="PASS" endtime="20181002 10:02:20.980" starttime="20181002 10:02:20.980"></status>
</kw>
<status status="PASS" endtime="20181002 10:02:20.981" starttime="20181002 10:02:20.532"></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="20181002 10:02:20.997" 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 0x7f5722bded90&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 10:02:20.997" starttime="20181002 10:02:20.996"></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="20181002 10:02:21.005" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181002 10:02:21.005" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:21.005" starttime="20181002 10:02:20.998"></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="20181002 10:02:21.006" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:21.006" starttime="20181002 10:02:21.005"></status>
</kw>
<doc>Get the complete list of networks</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181002 10:02:21.006" critical="yes" starttime="20181002 10:02:20.997"></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="20181002 10:02:21.019" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181002 10:02:21.020" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:21.020" starttime="20181002 10:02:21.007"></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="20181002 10:02:21.020" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:21.020" starttime="20181002 10:02:21.020"></status>
</kw>
<doc>Get the complete list of subnets</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181002 10:02:21.021" critical="yes" starttime="20181002 10:02:21.006"></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="20181002 10:02:21.032" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181002 10:02:21.032" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:21.032" starttime="20181002 10:02:21.021"></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="20181002 10:02:21.033" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:21.033" starttime="20181002 10:02:21.032"></status>
</kw>
<doc>Get the complete list of ports</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181002 10:02:21.033" critical="yes" starttime="20181002 10:02:21.021"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181002 10:02:21.034" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181002 10:02:21.034" starttime="20181002 10:02:21.034"></status>
</kw>
<status status="PASS" endtime="20181002 10:02:21.034" starttime="20181002 10:02:20.981"></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="20181002 10:02:21.053" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbs0IsEa6V9ed23z2-F8lkzYGF-ONnBdOt_SPAbWFbd62KEuFleQrzntIobhQEGj1F0P4K5zHP3XRU51nOgmyNABvY8VMrKkTpxw2N64gNTxik7DOoByOYW9vziFckEvW75y9udtBzXXVehF0UBwRZ5LGvtRfBrnKQtvxb3guxBLLG-hs', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 10:02:21.053" starttime="20181002 10:02:21.052"></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="20181002 10:02:21.055" level="INFO">{u'X-Auth-Token': 'gAAAAABbs0IsEa6V9ed23z2-F8lkzYGF-ONnBdOt_SPAbWFbd62KEuFleQrzntIobhQEGj1F0P4K5zHP3XRU51nOgmyNABvY8VMrKkTpxw2N64gNTxik7DOoByOYW9vziFckEvW75y9udtBzXXVehF0UBwRZ5LGvtRfBrnKQtvxb3guxBLLG-hs', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181002 10:02:21.055" starttime="20181002 10:02:21.054"></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="20181002 10:02:21.059" 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="20181002 10:02:21.207" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/networks, headers=None json=None</msg>
<msg timestamp="20181002 10:02:21.207" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:21.207" starttime="20181002 10:02:21.055"></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="20181002 10:02:21.208" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:21.208" starttime="20181002 10:02:21.207"></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="20181002 10:02:21.209" 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":"b281271c-e4b3-4055-b5aa-0d6cca053c42","router:external":true,"availability_zone_hints":[],"availability_zones":["nova"],"ipv4_address_scope":null,"shared":false,"project_id":"da37744d787542889f6745cb7f9e0f24","status":"ACTIVE","subnets":["3cb9480f-afa3-4e1d-a863-3f86f2efcecc"],"description":"","tags":[],"updated_at":"2018-10-02T09:50:13Z","is_default":false,"provider:segmentation_id":null,"name":"ext-net","admin_state_up":true,"tenant_id":"da37744d787542889f6745cb7f9e0f24","created_at":"2018-10-02T09:50:06Z","provider:network_type":"flat"}]} </msg>
<msg timestamp="20181002 10:02:21.209" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 10:02:21.209" 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'b281271c-e4b3-...</msg>
<status status="PASS" endtime="20181002 10:02:21.209" starttime="20181002 10:02:21.208"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181002 10:02:21.210" 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'b281271c-e4b3-4055-b5aa-0d6cca053c42', 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'da37744d787542889f6745cb7f9e0f24', u'status': u'ACTIVE', u'subnets': [u'3cb9480f-afa3-4e1d-a863-3f86f2efcecc'], u'description': u'', u'tags': [], u'updated_at': u'2018-10-02T09:50:13Z', u'is_default': False, u'provider:segmentation_id': None, u'name': u'ext-net', u'admin_state_up': True, u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', u'created_at': u'2018-10-02T09:50:06Z', u'mtu': 1500}]}</msg>
<status status="PASS" endtime="20181002 10:02:21.210" starttime="20181002 10:02:21.210"></status>
</kw>
<doc>Checking OpenStack Neutron for known networks</doc>
<tags>
<tag>Network Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181002 10:02:21.210" critical="yes" starttime="20181002 10:02:21.053"></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="20181002 10:02:21.212" 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 0x7f5722bcd990&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 10:02:21.213" starttime="20181002 10:02:21.211"></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="20181002 10:02:21.219" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181002 10:02:21.220" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:21.220" starttime="20181002 10:02:21.213"></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="20181002 10:02:21.220" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:21.220" starttime="20181002 10:02:21.220"></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="20181002 10:02:21.221" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "b281271c-e4b3-4055-b5aa-0d6cca053c42",
      "tenant_id" : "da37744d787542889f6745cb7f9e0f24",
      "project_id" : "da37744d787542889f6745cb7f9e0f24",
      "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="20181002 10:02:21.221" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 10:02:21.221" 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'da37744d787542889f6745cb7f9e0f24...</msg>
<status status="PASS" endtime="20181002 10:02:21.221" starttime="20181002 10:02:21.221"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181002 10:02:21.222" 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'da37744d787542889f6745cb7f9e0f24', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'da37744d787542889f6745cb7f9e0f24', u'id': u'b281271c-e4b3-4055-b5aa-0d6cca053c42'}, {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="20181002 10:02:21.222" starttime="20181002 10:02:21.222"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known networks</doc>
<tags>
<tag>Network Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181002 10:02:21.222" critical="yes" starttime="20181002 10:02:21.211"></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="20181002 10:02:21.223" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20181002 10:02:21.224" starttime="20181002 10:02:21.223"></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="20181002 10:02:21.225" 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="20181002 10:02:21.547" 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="20181002 10:02:21.547" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:21.547" starttime="20181002 10:02:21.224"></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="20181002 10:02:21.548" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:21.549" starttime="20181002 10:02:21.548"></status>
</kw>
<kw name="To Json" library="RequestsLibrary">
<doc>Convert a string to a JSON object</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<assign>
<var>${result}</var>
</assign>
<msg timestamp="20181002 10:02:21.549" 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":"ebfc1f65-7da1-470c-95d2-80491c580dd5","router:external":false,"availability_zone_hints":[],"availability_zones":[],"ipv4_address_scope":null,"shared":false,"project_id":"da37744d787542889f6745cb7f9e0f24","status":"ACTIVE","subnets":[],"description":"","tags":[],"updated_at":"2018-10-02T10:02:21Z","is_default":false,"provider:segmentation_id":52,"name":"odl_network","admin_state_up":true,"tenant_id":"da37744d787542889f6745cb7f9e0f24","created_at":"2018-10-02T10:02:21Z","mtu":1450}} </msg>
<msg timestamp="20181002 10:02:21.549" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 10:02:21.550" 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'ebfc1f65-7da1-470c-95d2-80491c580dd5', u'ro...</msg>
<status status="PASS" endtime="20181002 10:02:21.550" starttime="20181002 10:02:21.549"></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="20181002 10:02:21.550" 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'ebfc1f65-7da1-470c-95d2-80491c580dd5', u'router:external...</msg>
<status status="PASS" endtime="20181002 10:02:21.550" starttime="20181002 10:02:21.550"></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="20181002 10:02:21.551" level="INFO">${NETID} = ebfc1f65-7da1-470c-95d2-80491c580dd5</msg>
<status status="PASS" endtime="20181002 10:02:21.551" starttime="20181002 10:02:21.550"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181002 10:02:21.551" 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'ebfc1f65-7da1-470c-95d2-80491c580dd5', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'da37744d787542889f6745cb7f9e0f24', u'status': u'ACTIVE', u'subnets': [], u'description': u'', u'tags': [], u'updated_at': u'2018-10-02T10:02:21Z', u'is_default': False, u'provider:segmentation_id': 52, u'name': u'odl_network', u'admin_state_up': True, u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', u'created_at': u'2018-10-02T10:02:21Z', u'provider:network_type': u'vxlan'}</msg>
<status status="PASS" endtime="20181002 10:02:21.551" starttime="20181002 10:02:21.551"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${NETID}</arg>
</arguments>
<msg timestamp="20181002 10:02:21.552" level="INFO">ebfc1f65-7da1-470c-95d2-80491c580dd5</msg>
<status status="PASS" endtime="20181002 10:02:21.552" starttime="20181002 10:02:21.552"></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="20181002 10:02:21.553" level="INFO">${NETID} = ebfc1f65-7da1-470c-95d2-80491c580dd5</msg>
<status status="PASS" endtime="20181002 10:02:21.553" starttime="20181002 10:02:21.552"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181002 10:02:23.553" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181002 10:02:23.554" starttime="20181002 10:02:21.553"></status>
</kw>
<doc>Create new network in OpenStack</doc>
<tags>
<tag>Create Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181002 10:02:23.554" critical="yes" starttime="20181002 10:02:21.223"></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="20181002 10:02:23.562" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/ebfc1f65-7da1-470c-95d2-80491c580dd5, headers=None json=None</msg>
<msg timestamp="20181002 10:02:23.562" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:23.563" starttime="20181002 10:02:23.555"></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="20181002 10:02:23.563" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:23.564" starttime="20181002 10:02:23.563"></status>
</kw>
<doc>Check network created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181002 10:02:23.564" critical="yes" starttime="20181002 10:02:23.554"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181002 10:02:23.565" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181002 10:02:23.565" starttime="20181002 10:02:23.565"></status>
</kw>
<doc>Checking Network created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181002 10:02:23.565" starttime="20181002 10:02:21.035"></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="20181002 10:02:23.585" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbs0IsEa6V9ed23z2-F8lkzYGF-ONnBdOt_SPAbWFbd62KEuFleQrzntIobhQEGj1F0P4K5zHP3XRU51nOgmyNABvY8VMrKkTpxw2N64gNTxik7DOoByOYW9vziFckEvW75y9udtBzXXVehF0UBwRZ5LGvtRfBrnKQtvxb3guxBLLG-hs', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 10:02:23.585" starttime="20181002 10:02:23.584"></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="20181002 10:02:23.586" level="INFO">{u'X-Auth-Token': 'gAAAAABbs0IsEa6V9ed23z2-F8lkzYGF-ONnBdOt_SPAbWFbd62KEuFleQrzntIobhQEGj1F0P4K5zHP3XRU51nOgmyNABvY8VMrKkTpxw2N64gNTxik7DOoByOYW9vziFckEvW75y9udtBzXXVehF0UBwRZ5LGvtRfBrnKQtvxb3guxBLLG-hs', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181002 10:02:23.586" starttime="20181002 10:02:23.586"></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="20181002 10:02:23.591" 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="20181002 10:02:23.658" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/subnets, headers=None json=None</msg>
<msg timestamp="20181002 10:02:23.659" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:23.659" starttime="20181002 10:02:23.586"></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="20181002 10:02:23.660" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:23.660" starttime="20181002 10:02:23.659"></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="20181002 10:02:23.660" level="INFO">To JSON using : content={"subnets":[{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"b281271c-e4b3-4055-b5aa-0d6cca053c42","tenant_id":"da37744d787542889f6745cb7f9e0f24","created_at":"2018-10-02T09:50:13Z","dns_nameservers":[],"updated_at":"2018-10-02T09:50:13Z","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":"da37744d787542889f6745cb7f9e0f24","id":"3cb9480f-afa3-4e1d-a863-3f86f2efcecc","subnetpool_id":null,"name":"ext-subnet"}]} </msg>
<msg timestamp="20181002 10:02:23.661" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 10:02:23.661" level="INFO">${OSResult} = {u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'b281271c-e4b3-4055-b5aa-0d6cca053c42', u'tenant_id': u'da37744d7875428...</msg>
<status status="PASS" endtime="20181002 10:02:23.661" starttime="20181002 10:02:23.660"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181002 10:02:23.661" level="INFO">{u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'b281271c-e4b3-4055-b5aa-0d6cca053c42', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', u'created_at': u'2018-10-02T09:50:13Z', u'dns_nameservers': [], u'updated_at': u'2018-10-02T09:50:13Z', 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'da37744d787542889f6745cb7f9e0f24', u'id': u'3cb9480f-afa3-4e1d-a863-3f86f2efcecc', u'subnetpool_id': None, u'name': u'ext-subnet'}]}</msg>
<status status="PASS" endtime="20181002 10:02:23.661" starttime="20181002 10:02:23.661"></status>
</kw>
<doc>Checking OpenStack Neutron for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181002 10:02:23.662" critical="yes" starttime="20181002 10:02:23.585"></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="20181002 10:02:23.663" 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 0x7f5722b53510&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 10:02:23.664" starttime="20181002 10:02:23.663"></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="20181002 10:02:23.684" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181002 10:02:23.684" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:23.684" starttime="20181002 10:02:23.664"></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="20181002 10:02:23.685" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:23.685" starttime="20181002 10:02:23.684"></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="20181002 10:02:23.685" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "3cb9480f-afa3-4e1d-a863-3f86f2efcecc",
      "tenant_id" : "da37744d787542889f6745cb7f9e0f24",
      "project_id" : "da37744d787542889f6745cb7f9e0f24",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "b281271c-e4b3-4055-b5aa-0d6cca053c42",
      "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="20181002 10:02:23.685" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 10:02:23.686" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'b281271c-e4b3-4055-b5aa-0d6cca053c42', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20181002 10:02:23.686" starttime="20181002 10:02:23.685"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181002 10:02:23.686" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'b281271c-e4b3-4055-b5aa-0d6cca053c42', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', 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'da37744d787542889f6745cb7f9e0f24', u'id': u'3cb9480f-afa3-4e1d-a863-3f86f2efcecc'}]}</msg>
<status status="PASS" endtime="20181002 10:02:23.686" starttime="20181002 10:02:23.686"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181002 10:02:23.686" critical="yes" starttime="20181002 10:02:23.662"></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="20181002 10:02:23.690" level="INFO">{"subnet":{"network_id":"ebfc1f65-7da1-470c-95d2-80491c580dd5","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="20181002 10:02:23.690" starttime="20181002 10:02:23.689"></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="20181002 10:02:23.691" 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="20181002 10:02:24.174" 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="20181002 10:02:24.174" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:24.174" starttime="20181002 10:02:23.690"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>201</arg>
</arguments>
<msg timestamp="20181002 10:02:24.175" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:24.175" starttime="20181002 10:02:24.174"></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="20181002 10:02:24.176" level="INFO">To JSON using : content={"subnet":{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"ebfc1f65-7da1-470c-95d2-80491c580dd5","tenant_id":"da37744d787542889f6745cb7f9e0f24","created_at":"2018-10-02T10:02:23Z","dns_nameservers":[],"updated_at":"2018-10-02T10:02:23Z","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":"da37744d787542889f6745cb7f9e0f24","id":"c96a7e05-1518-4b37-83cb-e40e8b24e41d","subnetpool_id":null,"name":""}} </msg>
<msg timestamp="20181002 10:02:24.176" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 10:02:24.176" level="INFO">${result} = {u'subnet': {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'ebfc1f65-7da1-470c-95d2-80491c580dd5', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', u'...</msg>
<status status="PASS" endtime="20181002 10:02:24.176" starttime="20181002 10:02:24.175"></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="20181002 10:02:24.176" level="INFO">${result} = {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'ebfc1f65-7da1-470c-95d2-80491c580dd5', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', u'created_at':...</msg>
<status status="PASS" endtime="20181002 10:02:24.177" starttime="20181002 10:02:24.176"></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="20181002 10:02:24.177" level="INFO">${SUBNETID} = c96a7e05-1518-4b37-83cb-e40e8b24e41d</msg>
<status status="PASS" endtime="20181002 10:02:24.177" starttime="20181002 10:02:24.177"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181002 10:02:24.178" level="INFO">{u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'ebfc1f65-7da1-470c-95d2-80491c580dd5', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', u'created_at': u'2018-10-02T10:02:23Z', u'dns_nameservers': [], u'updated_at': u'2018-10-02T10:02:23Z', 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'da37744d787542889f6745cb7f9e0f24', u'id': u'c96a7e05-1518-4b37-83cb-e40e8b24e41d', u'subnetpool_id': None, u'name': u''}</msg>
<status status="PASS" endtime="20181002 10:02:24.178" starttime="20181002 10:02:24.177"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${SUBNETID}</arg>
</arguments>
<msg timestamp="20181002 10:02:24.178" level="INFO">c96a7e05-1518-4b37-83cb-e40e8b24e41d</msg>
<status status="PASS" endtime="20181002 10:02:24.178" starttime="20181002 10:02:24.178"></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="20181002 10:02:24.179" level="INFO">${SUBNETID} = c96a7e05-1518-4b37-83cb-e40e8b24e41d</msg>
<status status="PASS" endtime="20181002 10:02:24.179" starttime="20181002 10:02:24.178"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181002 10:02:26.179" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181002 10:02:26.180" starttime="20181002 10:02:24.179"></status>
</kw>
<doc>Create new subnet in OpenStack</doc>
<tags>
<tag>Create Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181002 10:02:26.180" critical="yes" starttime="20181002 10:02:23.687"></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="20181002 10:02:26.190" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/c96a7e05-1518-4b37-83cb-e40e8b24e41d, headers=None json=None</msg>
<msg timestamp="20181002 10:02:26.191" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:26.191" starttime="20181002 10:02:26.182"></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="20181002 10:02:26.191" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:26.191" starttime="20181002 10:02:26.191"></status>
</kw>
<doc>Check new subnet created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>subnet OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181002 10:02:26.192" critical="yes" starttime="20181002 10:02:26.181"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181002 10:02:26.193" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181002 10:02:26.193" starttime="20181002 10:02:26.192"></status>
</kw>
<doc>Checking Subnets created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181002 10:02:26.193" starttime="20181002 10:02:23.566"></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="20181002 10:02:26.211" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbs0IsEa6V9ed23z2-F8lkzYGF-ONnBdOt_SPAbWFbd62KEuFleQrzntIobhQEGj1F0P4K5zHP3XRU51nOgmyNABvY8VMrKkTpxw2N64gNTxik7DOoByOYW9vziFckEvW75y9udtBzXXVehF0UBwRZ5LGvtRfBrnKQtvxb3guxBLLG-hs', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 10:02:26.211" starttime="20181002 10:02:26.211"></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="20181002 10:02:26.212" level="INFO">{u'X-Auth-Token': 'gAAAAABbs0IsEa6V9ed23z2-F8lkzYGF-ONnBdOt_SPAbWFbd62KEuFleQrzntIobhQEGj1F0P4K5zHP3XRU51nOgmyNABvY8VMrKkTpxw2N64gNTxik7DOoByOYW9vziFckEvW75y9udtBzXXVehF0UBwRZ5LGvtRfBrnKQtvxb3guxBLLG-hs', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181002 10:02:26.213" starttime="20181002 10:02:26.212"></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="20181002 10:02:26.218" 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="20181002 10:02:26.318" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/ports, headers=None json=None</msg>
<msg timestamp="20181002 10:02:26.318" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:26.318" starttime="20181002 10:02:26.213"></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="20181002 10:02:26.319" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:26.319" starttime="20181002 10:02:26.319"></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="20181002 10:02:26.320" level="INFO">To JSON using : content={"ports":[{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-02T09:50:23Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"3cb9480f-afa3-4e1d-a863-3f86f2efcecc","ip_address":"192.16.1.103"}],"id":"1ebf8ba6-e8fa-4015-81cf-8fb6179718c3","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"fd8b7a8e-ba76-4434-b22f-b446fd0da237","host_addresses":["host2"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:61:37:21","project_id":"da37744d787542889f6745cb7f9e0f24","status":"ACTIVE","binding:host_id":"host2","description":"","tags":[],"device_id":"dhcp6e683b9c-430b-509e-9237-cf130714d68f-b281271c-e4b3-4055-b5aa-0d6cca053c42","name":"","admin_state_up":true,"network_id":"b281271c-e4b3-4055-b5aa-0d6cca053c42","tenant_id":"da37744d787542889f6745cb7f9e0f24","created_at":"2018-10-02T09:50:19Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-02T10:02:25Z","device_owner":"network:dhcp","revision_number":2,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"c96a7e05-1518-4b37-83cb-e40e8b24e41d","ip_address":"172.16.64.20"}],"id":"237a787f-316d-42a0-867d-9ee2c6ebbdd3","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"690119a2-156d-480e-ad1c-fa1c45de65a6","host_addresses":["host3"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:a7:df:86","project_id":"da37744d787542889f6745cb7f9e0f24","status":"DOWN","binding:host_id":"host3","description":"","tags":[],"device_id":"dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-ebfc1f65-7da1-470c-95d2-80491c580dd5","name":"","admin_state_up":true,"network_id":"ebfc1f65-7da1-470c-95d2-80491c580dd5","tenant_id":"da37744d787542889f6745cb7f9e0f24","created_at":"2018-10-02T10:02:24Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-02T09:50:21Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"3cb9480f-afa3-4e1d-a863-3f86f2efcecc","ip_address":"192.16.1.101"}],"id":"886b311c-05d9-4ec2-8eea-73dcda9688a1","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"6f59a9f5-1975-46f2-8bd4-8c66c2c1c95e","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:46:d9:8f","project_id":"da37744d787542889f6745cb7f9e0f24","status":"ACTIVE","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-b281271c-e4b3-4055-b5aa-0d6cca053c42","name":"","admin_state_up":true,"network_id":"b281271c-e4b3-4055-b5aa-0d6cca053c42","tenant_id":"da37744d787542889f6745cb7f9e0f24","created_at":"2018-10-02T09:50:15Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-02T09:50:22Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"3cb9480f-afa3-4e1d-a863-3f86f2efcecc","ip_address":"192.16.1.102"}],"id":"b2bd2295-9a3b-4c4e-abcd-c97890b4866a","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"690119a2-156d-480e-ad1c-fa1c45de65a6","host_addresses":["host3"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:9d:d6:e4","project_id":"da37744d787542889f6745cb7f9e0f24","status":"ACTIVE","binding:host_id":"host3","description":"","tags":[],"device_id":"dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-b281271c-e4b3-4055-b5aa-0d6cca053c42","name":"","admin_state_up":true,"network_id":"b281271c-e4b3-4055-b5aa-0d6cca053c42","tenant_id":"da37744d787542889f6745cb7f9e0f24","created_at":"2018-10-02T09:50:16Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-02T10:02:25Z","device_owner":"network:dhcp","revision_number":2,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"c96a7e05-1518-4b37-83cb-e40e8b24e41d","ip_address":"172.16.64.21"}],"id":"c984970d-f1d6-457b-aa31-03c44f1821f3","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"6f59a9f5-1975-46f2-8bd4-8c66c2c1c95e","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:fd:ac:e7","project_id":"da37744d787542889f6745cb7f9e0f24","status":"DOWN","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-ebfc1f65-7da1-470c-95d2-80491c580dd5","name":"","admin_state_up":true,"network_id":"ebfc1f65-7da1-470c-95d2-80491c580dd5","tenant_id":"da37744d787542889f6745cb7f9e0f24","created_at":"2018-10-02T10:02:25Z","binding:vnic_type":"normal"}]} </msg>
<msg timestamp="20181002 10:02:26.320" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 10:02:26.321" level="INFO">${OSResult} = {u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-02T09:50:23Z', u'device_owner': u'network:dhcp', u'revision_number': 3, u'port_security_enabled': False, u'b...</msg>
<status status="PASS" endtime="20181002 10:02:26.321" starttime="20181002 10:02:26.319"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20181002 10:02:26.321" level="INFO">{u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-02T09:50:23Z', 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'3cb9480f-afa3-4e1d-a863-3f86f2efcecc', u'ip_address': u'192.16.1.103'}], u'id': u'1ebf8ba6-e8fa-4015-81cf-8fb6179718c3', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'fd8b7a8e-ba76-4434-b22f-b446fd0da237', u'host_addresses': [u'host2']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:61:37:21', u'project_id': u'da37744d787542889f6745cb7f9e0f24', u'status': u'ACTIVE', u'binding:host_id': u'host2', u'description': u'', u'tags': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-b281271c-e4b3-4055-b5aa-0d6cca053c42', u'name': u'', u'admin_state_up': True, u'network_id': u'b281271c-e4b3-4055-b5aa-0d6cca053c42', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', u'created_at': u'2018-10-02T09:50:19Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-02T10:02:25Z', u'device_owner': u'network:dhcp', u'revision_number': 2, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'c96a7e05-1518-4b37-83cb-e40e8b24e41d', u'ip_address': u'172.16.64.20'}], u'id': u'237a787f-316d-42a0-867d-9ee2c6ebbdd3', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'690119a2-156d-480e-ad1c-fa1c45de65a6', u'host_addresses': [u'host3']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:a7:df:86', u'project_id': u'da37744d787542889f6745cb7f9e0f24', u'status': u'DOWN', u'binding:host_id': u'host3', u'description': u'', u'tags': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-ebfc1f65-7da1-470c-95d2-80491c580dd5', u'name': u'', u'admin_state_up': True, u'network_id': u'ebfc1f65-7da1-470c-95d2-80491c580dd5', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', u'created_at': u'2018-10-02T10:02:24Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-02T09:50:21Z', 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'3cb9480f-afa3-4e1d-a863-3f86f2efcecc', u'ip_address': u'192.16.1.101'}], u'id': u'886b311c-05d9-4ec2-8eea-73dcda9688a1', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'6f59a9f5-1975-46f2-8bd4-8c66c2c1c95e', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:46:d9:8f', u'project_id': u'da37744d787542889f6745cb7f9e0f24', u'status': u'ACTIVE', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-b281271c-e4b3-4055-b5aa-0d6cca053c42', u'name': u'', u'admin_state_up': True, u'network_id': u'b281271c-e4b3-4055-b5aa-0d6cca053c42', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', u'created_at': u'2018-10-02T09:50:15Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-02T09:50:22Z', 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'3cb9480f-afa3-4e1d-a863-3f86f2efcecc', u'ip_address': u'192.16.1.102'}], u'id': u'b2bd2295-9a3b-4c4e-abcd-c97890b4866a', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'690119a2-156d-480e-ad1c-fa1c45de65a6', u'host_addresses': [u'host3']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:9d:d6:e4', u'project_id': u'da37744d787542889f6745cb7f9e0f24', u'status': u'ACTIVE', u'binding:host_id': u'host3', u'description': u'', u'tags': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-b281271c-e4b3-4055-b5aa-0d6cca053c42', u'name': u'', u'admin_state_up': True, u'network_id': u'b281271c-e4b3-4055-b5aa-0d6cca053c42', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', u'created_at': u'2018-10-02T09:50:16Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-02T10:02:25Z', u'device_owner': u'network:dhcp', u'revision_number': 2, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'c96a7e05-1518-4b37-83cb-e40e8b24e41d', u'ip_address': u'172.16.64.21'}], u'id': u'c984970d-f1d6-457b-aa31-03c44f1821f3', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'6f59a9f5-1975-46f2-8bd4-8c66c2c1c95e', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:fd:ac:e7', u'project_id': u'da37744d787542889f6745cb7f9e0f24', u'status': u'DOWN', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-ebfc1f65-7da1-470c-95d2-80491c580dd5', u'name': u'', u'admin_state_up': True, u'network_id': u'ebfc1f65-7da1-470c-95d2-80491c580dd5', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', u'created_at': u'2018-10-02T10:02:25Z', u'binding:vnic_type': u'normal'}]}</msg>
<status status="PASS" endtime="20181002 10:02:26.322" starttime="20181002 10:02:26.321"></status>
</kw>
<doc>Checking OpenStack Neutron for known ports</doc>
<tags>
<tag>Ports Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181002 10:02:26.322" critical="yes" starttime="20181002 10:02:26.212"></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="20181002 10:02:26.323" 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 0x7f5722bc7d10&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 10:02:26.324" starttime="20181002 10:02:26.323"></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="20181002 10:02:26.339" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181002 10:02:26.339" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:26.339" starttime="20181002 10:02:26.324"></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="20181002 10:02:26.340" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:26.340" starttime="20181002 10:02:26.340"></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="20181002 10:02:26.341" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "237a787f-316d-42a0-867d-9ee2c6ebbdd3",
      "tenant_id" : "da37744d787542889f6745cb7f9e0f24",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "ebfc1f65-7da1-470c-95d2-80491c580dd5",
      "mac_address" : "fa:16:3e:a7:df:86",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "c96a7e05-1518-4b37-83cb-e40e8b24e41d"
      } ],
      "device_id" : "dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-ebfc1f65-7da1-470c-95d2-80491c580dd5",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host3",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "690119a2-156d-480e-ad1c-fa1c45de65a6",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "c984970d-f1d6-457b-aa31-03c44f1821f3",
      "tenant_id" : "da37744d787542889f6745cb7f9e0f24",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "ebfc1f65-7da1-470c-95d2-80491c580dd5",
      "mac_address" : "fa:16:3e:fd:ac:e7",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.21",
         "subnet_id" : "c96a7e05-1518-4b37-83cb-e40e8b24e41d"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-ebfc1f65-7da1-470c-95d2-80491c580dd5",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "6f59a9f5-1975-46f2-8bd4-8c66c2c1c95e",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "1ebf8ba6-e8fa-4015-81cf-8fb6179718c3",
      "tenant_id" : "da37744d787542889f6745cb7f9e0f24",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "b281271c-e4b3-4055-b5aa-0d6cca053c42",
      "mac_address" : "fa:16:3e:61:37:21",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.103",
         "subnet_id" : "3cb9480f-afa3-4e1d-a863-3f86f2efcecc"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-b281271c-e4b3-4055-b5aa-0d6cca053c42",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host2",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "fd8b7a8e-ba76-4434-b22f-b446fd0da237",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "886b311c-05d9-4ec2-8eea-73dcda9688a1",
      "tenant_id" : "da37744d787542889f6745cb7f9e0f24",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "b281271c-e4b3-4055-b5aa-0d6cca053c42",
      "mac_address" : "fa:16:3e:46:d9:8f",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "3cb9480f-afa3-4e1d-a863-3f86f2efcecc"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-b281271c-e4b3-4055-b5aa-0d6cca053c42",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "6f59a9f5-1975-46f2-8bd4-8c66c2c1c95e",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "b2bd2295-9a3b-4c4e-abcd-c97890b4866a",
      "tenant_id" : "da37744d787542889f6745cb7f9e0f24",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "b281271c-e4b3-4055-b5aa-0d6cca053c42",
      "mac_address" : "fa:16:3e:9d:d6:e4",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.102",
         "subnet_id" : "3cb9480f-afa3-4e1d-a863-3f86f2efcecc"
      } ],
      "device_id" : "dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-b281271c-e4b3-4055-b5aa-0d6cca053c42",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host3",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "690119a2-156d-480e-ad1c-fa1c45de65a6",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20181002 10:02:26.341" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 10:02:26.341" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'690119a2-156d-480e-ad1c-fa1c45de65a6'}, u'binding:host_id': u'host3', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20181002 10:02:26.341" starttime="20181002 10:02:26.340"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181002 10:02:26.342" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'690119a2-156d-480e-ad1c-fa1c45de65a6'}, u'binding:host_id': u'host3', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'ebfc1f65-7da1-470c-95d2-80491c580dd5', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', 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:a7:df:86', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'c96a7e05-1518-4b37-83cb-e40e8b24e41d', u'ip_address': u'172.16.64.20'}], u'id': u'237a787f-316d-42a0-867d-9ee2c6ebbdd3', u'security_groups': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-ebfc1f65-7da1-470c-95d2-80491c580dd5'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'6f59a9f5-1975-46f2-8bd4-8c66c2c1c95e'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'ebfc1f65-7da1-470c-95d2-80491c580dd5', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', 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:fd:ac:e7', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'c96a7e05-1518-4b37-83cb-e40e8b24e41d', u'ip_address': u'172.16.64.21'}], u'id': u'c984970d-f1d6-457b-aa31-03c44f1821f3', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-ebfc1f65-7da1-470c-95d2-80491c580dd5'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'fd8b7a8e-ba76-4434-b22f-b446fd0da237'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'b281271c-e4b3-4055-b5aa-0d6cca053c42', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'revision_number': 3, u'mac_address': u'fa:16:3e:61:37:21', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'3cb9480f-afa3-4e1d-a863-3f86f2efcecc', u'ip_address': u'192.16.1.103'}], u'id': u'1ebf8ba6-e8fa-4015-81cf-8fb6179718c3', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-b281271c-e4b3-4055-b5aa-0d6cca053c42'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'6f59a9f5-1975-46f2-8bd4-8c66c2c1c95e'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'b281271c-e4b3-4055-b5aa-0d6cca053c42', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', 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:46:d9:8f', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'3cb9480f-afa3-4e1d-a863-3f86f2efcecc', u'ip_address': u'192.16.1.101'}], u'id': u'886b311c-05d9-4ec2-8eea-73dcda9688a1', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-b281271c-e4b3-4055-b5aa-0d6cca053c42'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'690119a2-156d-480e-ad1c-fa1c45de65a6'}, u'binding:host_id': u'host3', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'b281271c-e4b3-4055-b5aa-0d6cca053c42', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', 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:9d:d6:e4', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'3cb9480f-afa3-4e1d-a863-3f86f2efcecc', u'ip_address': u'192.16.1.102'}], u'id': u'b2bd2295-9a3b-4c4e-abcd-c97890b4866a', u'security_groups': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-b281271c-e4b3-4055-b5aa-0d6cca053c42'}]}</msg>
<status status="PASS" endtime="20181002 10:02:26.342" starttime="20181002 10:02:26.342"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known ports</doc>
<tags>
<tag>Ports Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181002 10:02:26.342" critical="yes" starttime="20181002 10:02:26.322"></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="20181002 10:02:26.344" level="INFO">{"port":{"network_id":"ebfc1f65-7da1-470c-95d2-80491c580dd5","admin_state_up": true}}</msg>
<status status="PASS" endtime="20181002 10:02:26.344" starttime="20181002 10:02:26.343"></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="20181002 10:02:26.345" 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="20181002 10:02:27.167" 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="20181002 10:02:27.167" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:27.167" starttime="20181002 10:02:26.344"></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="20181002 10:02:27.168" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:27.168" starttime="20181002 10:02:27.168"></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="20181002 10:02:27.169" level="INFO">To JSON using : content={"port":{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-02T10:02:26Z","device_owner":"","revision_number":1,"binding:profile":{},"port_security_enabled":true,"fixed_ips":[{"subnet_id":"c96a7e05-1518-4b37-83cb-e40e8b24e41d","ip_address":"172.16.64.26"}],"id":"5110db15-5da2-4a7d-9767-2d7bc741c7a2","security_groups":["7d523b6d-e7b8-41e9-8e0d-9c996e9c5680"],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:a3:0b:aa","project_id":"da37744d787542889f6745cb7f9e0f24","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"","name":"","admin_state_up":true,"network_id":"ebfc1f65-7da1-470c-95d2-80491c580dd5","tenant_id":"da37744d787542889f6745cb7f9e0f24","created_at":"2018-10-02T10:02:26Z","binding:vnic_type":"normal"}} </msg>
<msg timestamp="20181002 10:02:27.169" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 10:02:27.169" level="INFO">${result} = {u'port': {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-02T10:02:26Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': ...</msg>
<status status="PASS" endtime="20181002 10:02:27.169" starttime="20181002 10:02:27.168"></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="20181002 10:02:27.170" level="INFO">${result} = {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-02T10:02:26Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fi...</msg>
<status status="PASS" endtime="20181002 10:02:27.170" starttime="20181002 10:02:27.169"></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="20181002 10:02:27.170" level="INFO">${PORTID} = 5110db15-5da2-4a7d-9767-2d7bc741c7a2</msg>
<status status="PASS" endtime="20181002 10:02:27.170" starttime="20181002 10:02:27.170"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20181002 10:02:27.171" level="INFO">{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-02T10:02:26Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fixed_ips': [{u'subnet_id': u'c96a7e05-1518-4b37-83cb-e40e8b24e41d', u'ip_address': u'172.16.64.26'}], u'id': u'5110db15-5da2-4a7d-9767-2d7bc741c7a2', u'security_groups': [u'7d523b6d-e7b8-41e9-8e0d-9c996e9c5680'], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:a3:0b:aa', u'project_id': u'da37744d787542889f6745cb7f9e0f24', 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'ebfc1f65-7da1-470c-95d2-80491c580dd5', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', u'created_at': u'2018-10-02T10:02:26Z', u'binding:vnic_type': u'normal'}</msg>
<status status="PASS" endtime="20181002 10:02:27.171" starttime="20181002 10:02:27.170"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${PORTID}</arg>
</arguments>
<msg timestamp="20181002 10:02:27.171" level="INFO">5110db15-5da2-4a7d-9767-2d7bc741c7a2</msg>
<status status="PASS" endtime="20181002 10:02:27.171" starttime="20181002 10:02:27.171"></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="20181002 10:02:27.172" level="INFO">${PORTID} = 5110db15-5da2-4a7d-9767-2d7bc741c7a2</msg>
<status status="PASS" endtime="20181002 10:02:27.172" starttime="20181002 10:02:27.171"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181002 10:02:29.173" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181002 10:02:29.173" starttime="20181002 10:02:27.172"></status>
</kw>
<doc>Create new port in OpenStack</doc>
<tags>
<tag>Create port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181002 10:02:29.173" critical="yes" starttime="20181002 10:02:26.343"></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="20181002 10:02:29.193" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/5110db15-5da2-4a7d-9767-2d7bc741c7a2, headers=None json=None</msg>
<msg timestamp="20181002 10:02:29.194" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:29.194" starttime="20181002 10:02:29.174"></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="20181002 10:02:29.195" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:29.195" starttime="20181002 10:02:29.194"></status>
</kw>
<doc>Check new port created in OpenDaylight</doc>
<tags>
<tag>Check port OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181002 10:02:29.195" critical="yes" starttime="20181002 10:02:29.173"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181002 10:02:29.196" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181002 10:02:29.197" starttime="20181002 10:02:29.196"></status>
</kw>
<doc>Checking Port created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181002 10:02:29.197" starttime="20181002 10:02:26.194"></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="20181002 10:02:29.216" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbs0IsEa6V9ed23z2-F8lkzYGF-ONnBdOt_SPAbWFbd62KEuFleQrzntIobhQEGj1F0P4K5zHP3XRU51nOgmyNABvY8VMrKkTpxw2N64gNTxik7DOoByOYW9vziFckEvW75y9udtBzXXVehF0UBwRZ5LGvtRfBrnKQtvxb3guxBLLG-hs'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 10:02:29.216" starttime="20181002 10:02:29.215"></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="20181002 10:02:29.217" 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 0x7f5722bbe9d0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 10:02:29.217" starttime="20181002 10:02:29.216"></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="20181002 10:02:29.227" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/5110db15-5da2-4a7d-9767-2d7bc741c7a2, headers=None json=None</msg>
<msg timestamp="20181002 10:02:29.227" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:29.227" starttime="20181002 10:02:29.218"></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="20181002 10:02:29.228" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:29.228" starttime="20181002 10:02:29.227"></status>
</kw>
<status status="PASS" endtime="20181002 10:02:29.228" starttime="20181002 10:02:29.217"></status>
</kw>
<status status="PASS" endtime="20181002 10:02:29.228" starttime="20181002 10:02:29.215"></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="20181002 10:02:29.230" level="INFO">{"port":{"network_id":"ebfc1f65-7da1-470c-95d2-80491c580dd5","admin_state_up": true}}</msg>
<status status="PASS" endtime="20181002 10:02:29.230" starttime="20181002 10:02:29.229"></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="20181002 10:02:29.235" 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="20181002 10:02:30.210" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/ports/5110db15-5da2-4a7d-9767-2d7bc741c7a2, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181002 10:02:30.211" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:30.211" starttime="20181002 10:02:29.230"></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="20181002 10:02:30.211" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:30.212" starttime="20181002 10:02:30.211"></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="20181002 10:02:30.212" level="INFO"></msg>
<status status="PASS" endtime="20181002 10:02:30.212" starttime="20181002 10:02:30.212"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181002 10:02:32.213" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181002 10:02:32.213" starttime="20181002 10:02:30.212"></status>
</kw>
<doc>Delete previously created port in OpenStack</doc>
<tags>
<tag>Delete port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181002 10:02:32.213" critical="yes" starttime="20181002 10:02:29.229"></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="20181002 10:02:32.233" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181002 10:02:32.234" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:32.234" starttime="20181002 10:02:32.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>200</arg>
</arguments>
<msg timestamp="20181002 10:02:32.235" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:32.235" starttime="20181002 10:02:32.234"></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="20181002 10:02:32.236" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "1ebf8ba6-e8fa-4015-81cf-8fb6179718c3",
      "tenant_id" : "da37744d787542889f6745cb7f9e0f24",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "b281271c-e4b3-4055-b5aa-0d6cca053c42",
      "mac_address" : "fa:16:3e:61:37:21",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.103",
         "subnet_id" : "3cb9480f-afa3-4e1d-a863-3f86f2efcecc"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-b281271c-e4b3-4055-b5aa-0d6cca053c42",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host2",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "fd8b7a8e-ba76-4434-b22f-b446fd0da237",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "237a787f-316d-42a0-867d-9ee2c6ebbdd3",
      "tenant_id" : "da37744d787542889f6745cb7f9e0f24",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "ebfc1f65-7da1-470c-95d2-80491c580dd5",
      "mac_address" : "fa:16:3e:a7:df:86",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "c96a7e05-1518-4b37-83cb-e40e8b24e41d"
      } ],
      "device_id" : "dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-ebfc1f65-7da1-470c-95d2-80491c580dd5",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host3",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "690119a2-156d-480e-ad1c-fa1c45de65a6",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "b2bd2295-9a3b-4c4e-abcd-c97890b4866a",
      "tenant_id" : "da37744d787542889f6745cb7f9e0f24",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "b281271c-e4b3-4055-b5aa-0d6cca053c42",
      "mac_address" : "fa:16:3e:9d:d6:e4",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.102",
         "subnet_id" : "3cb9480f-afa3-4e1d-a863-3f86f2efcecc"
      } ],
      "device_id" : "dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-b281271c-e4b3-4055-b5aa-0d6cca053c42",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host3",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "690119a2-156d-480e-ad1c-fa1c45de65a6",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "4cd5d99a-551b-4da1-81bc-150266c4178a",
      "tenant_id" : "da37744d787542889f6745cb7f9e0f24",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "ebfc1f65-7da1-470c-95d2-80491c580dd5",
      "mac_address" : "fa:16:3e:e5:d3:0e",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.22",
         "subnet_id" : "c96a7e05-1518-4b37-83cb-e40e8b24e41d"
      } ],
      "device_id" : "dhcp6e683b9c-430b-509e-9237-cf130714d68f-ebfc1f65-7da1-470c-95d2-80491c580dd5",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host2",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "fd8b7a8e-ba76-4434-b22f-b446fd0da237",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "886b311c-05d9-4ec2-8eea-73dcda9688a1",
      "tenant_id" : "da37744d787542889f6745cb7f9e0f24",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "b281271c-e4b3-4055-b5aa-0d6cca053c42",
      "mac_address" : "fa:16:3e:46:d9:8f",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "3cb9480f-afa3-4e1d-a863-3f86f2efcecc"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-b281271c-e4b3-4055-b5aa-0d6cca053c42",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "6f59a9f5-1975-46f2-8bd4-8c66c2c1c95e",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "c984970d-f1d6-457b-aa31-03c44f1821f3",
      "tenant_id" : "da37744d787542889f6745cb7f9e0f24",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "ebfc1f65-7da1-470c-95d2-80491c580dd5",
      "mac_address" : "fa:16:3e:fd:ac:e7",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.21",
         "subnet_id" : "c96a7e05-1518-4b37-83cb-e40e8b24e41d"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-ebfc1f65-7da1-470c-95d2-80491c580dd5",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "6f59a9f5-1975-46f2-8bd4-8c66c2c1c95e",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20181002 10:02:32.236" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 10:02:32.237" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'fd8b7a8e-ba76-4434-b22f-b446fd0da237'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20181002 10:02:32.237" starttime="20181002 10:02:32.235"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181002 10:02:32.237" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'fd8b7a8e-ba76-4434-b22f-b446fd0da237'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'b281271c-e4b3-4055-b5aa-0d6cca053c42', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'revision_number': 3, u'mac_address': u'fa:16:3e:61:37:21', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'3cb9480f-afa3-4e1d-a863-3f86f2efcecc', u'ip_address': u'192.16.1.103'}], u'id': u'1ebf8ba6-e8fa-4015-81cf-8fb6179718c3', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-b281271c-e4b3-4055-b5aa-0d6cca053c42'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'690119a2-156d-480e-ad1c-fa1c45de65a6'}, u'binding:host_id': u'host3', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'ebfc1f65-7da1-470c-95d2-80491c580dd5', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'revision_number': 3, u'mac_address': u'fa:16:3e:a7:df:86', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'c96a7e05-1518-4b37-83cb-e40e8b24e41d', u'ip_address': u'172.16.64.20'}], u'id': u'237a787f-316d-42a0-867d-9ee2c6ebbdd3', u'security_groups': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-ebfc1f65-7da1-470c-95d2-80491c580dd5'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'690119a2-156d-480e-ad1c-fa1c45de65a6'}, u'binding:host_id': u'host3', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'b281271c-e4b3-4055-b5aa-0d6cca053c42', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', 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:9d:d6:e4', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'3cb9480f-afa3-4e1d-a863-3f86f2efcecc', u'ip_address': u'192.16.1.102'}], u'id': u'b2bd2295-9a3b-4c4e-abcd-c97890b4866a', u'security_groups': [], u'device_id': u'dhcp2197ba4b-134a-51ec-99fb-2dd0d9b2a42f-b281271c-e4b3-4055-b5aa-0d6cca053c42'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'fd8b7a8e-ba76-4434-b22f-b446fd0da237'}, u'binding:host_id': u'host2', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'ebfc1f65-7da1-470c-95d2-80491c580dd5', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', 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:e5:d3:0e', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'c96a7e05-1518-4b37-83cb-e40e8b24e41d', u'ip_address': u'172.16.64.22'}], u'id': u'4cd5d99a-551b-4da1-81bc-150266c4178a', u'security_groups': [], u'device_id': u'dhcp6e683b9c-430b-509e-9237-cf130714d68f-ebfc1f65-7da1-470c-95d2-80491c580dd5'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'6f59a9f5-1975-46f2-8bd4-8c66c2c1c95e'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'b281271c-e4b3-4055-b5aa-0d6cca053c42', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', 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:46:d9:8f', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'3cb9480f-afa3-4e1d-a863-3f86f2efcecc', u'ip_address': u'192.16.1.101'}], u'id': u'886b311c-05d9-4ec2-8eea-73dcda9688a1', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-b281271c-e4b3-4055-b5aa-0d6cca053c42'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'6f59a9f5-1975-46f2-8bd4-8c66c2c1c95e'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'ebfc1f65-7da1-470c-95d2-80491c580dd5', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', 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:fd:ac:e7', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'c96a7e05-1518-4b37-83cb-e40e8b24e41d', u'ip_address': u'172.16.64.21'}], u'id': u'c984970d-f1d6-457b-aa31-03c44f1821f3', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-ebfc1f65-7da1-470c-95d2-80491c580dd5'}]}</msg>
<status status="PASS" endtime="20181002 10:02:32.237" starttime="20181002 10:02:32.237"></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="20181002 10:02:32.243" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/5110db15-5da2-4a7d-9767-2d7bc741c7a2, headers=None json=None</msg>
<msg timestamp="20181002 10:02:32.243" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:32.243" starttime="20181002 10:02:32.238"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>404</arg>
</arguments>
<msg timestamp="20181002 10:02:32.244" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:32.244" starttime="20181002 10:02:32.244"></status>
</kw>
<doc>Check port deleted in OpenDaylight</doc>
<tags>
<tag>Check port deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181002 10:02:32.244" critical="yes" starttime="20181002 10:02:32.214"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181002 10:02:32.245" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181002 10:02:32.245" starttime="20181002 10:02:32.245"></status>
</kw>
<doc>Checking Port deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181002 10:02:32.246" starttime="20181002 10:02:29.198"></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="20181002 10:02:32.264" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbs0IsEa6V9ed23z2-F8lkzYGF-ONnBdOt_SPAbWFbd62KEuFleQrzntIobhQEGj1F0P4K5zHP3XRU51nOgmyNABvY8VMrKkTpxw2N64gNTxik7DOoByOYW9vziFckEvW75y9udtBzXXVehF0UBwRZ5LGvtRfBrnKQtvxb3guxBLLG-hs'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 10:02:32.265" starttime="20181002 10:02:32.264"></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="20181002 10:02:32.265" 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 0x7f5722b8d790&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 10:02:32.266" starttime="20181002 10:02:32.265"></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="20181002 10:02:32.274" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/c96a7e05-1518-4b37-83cb-e40e8b24e41d, headers=None json=None</msg>
<msg timestamp="20181002 10:02:32.274" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:32.274" starttime="20181002 10:02:32.266"></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="20181002 10:02:32.275" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:32.275" starttime="20181002 10:02:32.274"></status>
</kw>
<status status="PASS" endtime="20181002 10:02:32.275" starttime="20181002 10:02:32.266"></status>
</kw>
<status status="PASS" endtime="20181002 10:02:32.275" starttime="20181002 10:02:32.263"></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="20181002 10:02:32.276" level="INFO">{"subnet":{"network_id":"ebfc1f65-7da1-470c-95d2-80491c580dd5","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="20181002 10:02:32.276" starttime="20181002 10:02:32.276"></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="20181002 10:02:32.282" 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="20181002 10:02:35.418" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/subnets/c96a7e05-1518-4b37-83cb-e40e8b24e41d, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181002 10:02:35.418" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:35.419" starttime="20181002 10:02:32.276"></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="20181002 10:02:35.420" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:35.420" starttime="20181002 10:02:35.419"></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="20181002 10:02:35.420" level="INFO"></msg>
<status status="PASS" endtime="20181002 10:02:35.420" starttime="20181002 10:02:35.420"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181002 10:02:37.421" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181002 10:02:37.421" starttime="20181002 10:02:35.421"></status>
</kw>
<doc>Delete previously created subnet in OpenStack</doc>
<tags>
<tag>Delete Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181002 10:02:37.421" critical="yes" starttime="20181002 10:02:32.275"></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="20181002 10:02:37.431" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181002 10:02:37.431" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:37.431" starttime="20181002 10:02:37.423"></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="20181002 10:02:37.432" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:37.432" starttime="20181002 10:02:37.432"></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="20181002 10:02:37.433" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "3cb9480f-afa3-4e1d-a863-3f86f2efcecc",
      "tenant_id" : "da37744d787542889f6745cb7f9e0f24",
      "project_id" : "da37744d787542889f6745cb7f9e0f24",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "b281271c-e4b3-4055-b5aa-0d6cca053c42",
      "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="20181002 10:02:37.433" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 10:02:37.433" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'b281271c-e4b3-4055-b5aa-0d6cca053c42', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20181002 10:02:37.433" starttime="20181002 10:02:37.433"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181002 10:02:37.434" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'b281271c-e4b3-4055-b5aa-0d6cca053c42', u'tenant_id': u'da37744d787542889f6745cb7f9e0f24', 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'da37744d787542889f6745cb7f9e0f24', u'id': u'3cb9480f-afa3-4e1d-a863-3f86f2efcecc'}]}</msg>
<status status="PASS" endtime="20181002 10:02:37.434" starttime="20181002 10:02:37.434"></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="20181002 10:02:37.438" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/c96a7e05-1518-4b37-83cb-e40e8b24e41d, headers=None json=None</msg>
<msg timestamp="20181002 10:02:37.439" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:37.439" starttime="20181002 10:02:37.434"></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="20181002 10:02:37.439" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:37.439" starttime="20181002 10:02:37.439"></status>
</kw>
<doc>Check subnet deleted in OpenDaylight</doc>
<tags>
<tag>Check subnet deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181002 10:02:37.440" critical="yes" starttime="20181002 10:02:37.422"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181002 10:02:37.441" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181002 10:02:37.441" starttime="20181002 10:02:37.440"></status>
</kw>
<doc>Checking Subnets deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181002 10:02:37.441" starttime="20181002 10:02:32.247"></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="20181002 10:02:37.459" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbs0IsEa6V9ed23z2-F8lkzYGF-ONnBdOt_SPAbWFbd62KEuFleQrzntIobhQEGj1F0P4K5zHP3XRU51nOgmyNABvY8VMrKkTpxw2N64gNTxik7DOoByOYW9vziFckEvW75y9udtBzXXVehF0UBwRZ5LGvtRfBrnKQtvxb3guxBLLG-hs'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 10:02:37.460" starttime="20181002 10:02:37.459"></status>
</kw>
<kw name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>ODLSession</arg>
<arg>http://${ODL_SYSTEM_IP}:${PORT}</arg>
<arg>headers=${HEADERS}</arg>
<arg>auth=${AUTH}</arg>
</arguments>
<msg timestamp="20181002 10:02:37.460" 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 0x7f5722b24e90&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 10:02:37.461" starttime="20181002 10:02:37.460"></status>
</kw>
<kw name="Check Network Exists">
<arguments>
<arg>${NETID}</arg>
</arguments>
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>ODLSession</arg>
<arg>${NEUTRON_NETWORKS_API}/${netid}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20181002 10:02:37.469" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/ebfc1f65-7da1-470c-95d2-80491c580dd5, headers=None json=None</msg>
<msg timestamp="20181002 10:02:37.469" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:37.469" starttime="20181002 10:02:37.461"></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="20181002 10:02:37.470" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:37.470" starttime="20181002 10:02:37.469"></status>
</kw>
<status status="PASS" endtime="20181002 10:02:37.470" starttime="20181002 10:02:37.461"></status>
</kw>
<status status="PASS" endtime="20181002 10:02:37.470" starttime="20181002 10:02:37.458"></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="20181002 10:02:37.471" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20181002 10:02:37.471" starttime="20181002 10:02:37.471"></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="20181002 10:02:37.480" 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="20181002 10:02:39.265" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/networks/ebfc1f65-7da1-470c-95d2-80491c580dd5, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181002 10:02:39.265" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:39.265" starttime="20181002 10:02:37.472"></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="20181002 10:02:39.266" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:39.266" starttime="20181002 10:02:39.266"></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="20181002 10:02:39.267" level="INFO"></msg>
<status status="PASS" endtime="20181002 10:02:39.267" starttime="20181002 10:02:39.267"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20181002 10:02:41.268" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181002 10:02:41.268" starttime="20181002 10:02:39.267"></status>
</kw>
<doc>Delete network in OpenStack</doc>
<tags>
<tag>Delete Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181002 10:02:41.269" critical="yes" starttime="20181002 10:02:37.470"></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="20181002 10:02:41.277" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181002 10:02:41.277" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:41.277" starttime="20181002 10:02:41.270"></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="20181002 10:02:41.278" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:41.278" starttime="20181002 10:02:41.278"></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="20181002 10:02:41.279" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "b281271c-e4b3-4055-b5aa-0d6cca053c42",
      "tenant_id" : "da37744d787542889f6745cb7f9e0f24",
      "project_id" : "da37744d787542889f6745cb7f9e0f24",
      "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="20181002 10:02:41.279" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 10:02:41.279" 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'da37744d787542889f6745cb7f9e0f24...</msg>
<status status="PASS" endtime="20181002 10:02:41.279" starttime="20181002 10:02:41.278"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20181002 10:02:41.280" 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'da37744d787542889f6745cb7f9e0f24', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'da37744d787542889f6745cb7f9e0f24', u'id': u'b281271c-e4b3-4055-b5aa-0d6cca053c42'}, {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="20181002 10:02:41.280" starttime="20181002 10:02:41.279"></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="20181002 10:02:41.283" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/ebfc1f65-7da1-470c-95d2-80491c580dd5, headers=None json=None</msg>
<msg timestamp="20181002 10:02:41.283" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181002 10:02:41.283" starttime="20181002 10:02:41.280"></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="20181002 10:02:41.284" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 10:02:41.284" starttime="20181002 10:02:41.283"></status>
</kw>
<doc>Check network deleted in OpenDaylight</doc>
<tags>
<tag>Check Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181002 10:02:41.284" critical="yes" starttime="20181002 10:02:41.269"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181002 10:02:41.285" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181002 10:02:41.285" starttime="20181002 10:02:41.285"></status>
</kw>
<doc>Checking Network deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181002 10:02:41.285" starttime="20181002 10:02:37.442"></status>
</suite>
<kw type="teardown" name="Stop Suite">
<kw name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181002 10:02:41.288" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181002 10:02:41.289" starttime="20181002 10:02:41.288"></status>
</kw>
<status status="PASS" endtime="20181002 10:02:41.289" starttime="20181002 10:02:41.288"></status>
</kw>
<doc>Test suite for Neutron Plugin</doc>
<status status="PASS" endtime="20181002 10:02:41.289" starttime="20181002 10:02:20.282"></status>
</suite>
<status status="FAIL" endtime="20181002 10:02:41.296" starttime="20181002 10:02:19.491"></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="20181002 10:02:20.535" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20181002 10:02:20.563" 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="20181002 10:02:21.059" 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="20181002 10:02:21.225" 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="20181002 10:02:23.591" 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="20181002 10:02:23.691" 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="20181002 10:02:26.218" 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="20181002 10:02:26.345" 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="20181002 10:02:29.235" 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="20181002 10:02:32.282" 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="20181002 10:02:37.480" 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>
