<?xml version="1.0" encoding="UTF-8"?>
<robot generated="20181002 16:24:08.626" 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 16:24:08.720" 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 0x7f0a7f85a210&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 16:24:08.720" starttime="20181002 16:24:08.719"></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 16:24:09.328" 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 0x7f0a7f85a310&gt;: Failed to establish a new connection: [Errno 111] Connection refused',))</msg>
<status status="FAIL" endtime="20181002 16:24:09.328" starttime="20181002 16:24:08.721"></status>
</kw>
<doc>Get the restconf modules, check 200 status and ietf-restconf presence.</doc>
<status status="FAIL" endtime="20181002 16:24:09.328" critical="yes" starttime="20181002 16:24:08.720">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 0x7f0a7f85a310&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 16:24:09.329" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181002 16:24:09.329" starttime="20181002 16:24:09.329"></status>
</kw>
<doc>Test suite to verify Restconf is OK.</doc>
<status status="FAIL" endtime="20181002 16:24:09.329" starttime="20181002 16:24:08.652"></status>
</suite>
<status status="FAIL" endtime="20181002 16:24:09.331" starttime="20181002 16:24:08.650"></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 16:24:09.368" 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 16:24:09.368" starttime="20181002 16:24:09.367"></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 16:24:09.368" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20181002 16:24:09.374" 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 16:24:09.799" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:09.799" starttime="20181002 16:24:09.368"></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 16:24:09.800" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:09.800" starttime="20181002 16:24:09.799"></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 16:24:09.801" level="INFO">${TOKEN} = gAAAAABbs5upY9MpxtgbXOPynAijEJy4MKECkCGzvyTrr7gMDDspAjMxs1onsCvI_Q6ThhYWn6AF4eyAc9PDq16UXBxbmuy1LbA7rVApG_VvjTBpMbpm7-DB69OH-yXnl67EGVa_8Gsun_DzGQ0T1IhNwI_2FOCuKDtWC49ILWtZxmYo_qLyOYA</msg>
<status status="PASS" endtime="20181002 16:24:09.801" starttime="20181002 16:24:09.800"></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 16:24:09.801" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABbs5upY9MpxtgbXOPynAijEJy4MKECkCGzvyTrr7gMDDspAjMxs1onsCvI_Q6ThhYWn6AF4eyAc9PDq16UXBxbmuy1LbA7rVApG_VvjTBpMbpm7-DB69OH-yXnl67EGVa_8Gsun_DzGQ0T1IhNwI_2FOCuKDtWC49ILWtZxmYo_qLyO...</msg>
<status status="PASS" endtime="20181002 16:24:09.801" starttime="20181002 16:24:09.801"></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 16:24:09.802" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABbs5upY9MpxtgbXOPynAijEJy4MKECkCGzvyTrr7gMDDspAjMxs1onsCvI_Q6ThhYWn6AF4eyAc9PDq16UXBxbmuy1LbA7rVApG_VvjTBpMbpm7-DB69OH-yXnl67EGVa_8Gsun_DzGQ0T1IhNwI_2FOCuKDtWC49ILWtZxmYo_qLyO...</msg>
<status status="PASS" endtime="20181002 16:24:09.802" starttime="20181002 16:24:09.802"></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 16:24:09.803" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABbs5upY9MpxtgbXOPynAijEJy4MKECkCGzvyTrr7gMDDspAjMxs1onsCvI_Q6ThhYWn6AF4eyAc9PDq16UXBxbmuy1LbA7rVApG_VvjTBpMbpm7-DB69OH-yXnl67EGVa_8Gsun_DzGQ0T1IhNwI_2FOCuKDtWC49ILWtZxmYo_qLyO...</msg>
<status status="PASS" endtime="20181002 16:24:09.803" starttime="20181002 16:24:09.802"></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 16:24:09.803" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABbs5upY9MpxtgbXOPynAijEJy4MKECkCGzvyTrr7gMDDspAjMxs1onsCvI_Q6ThhYWn6AF4eyAc9PDq16UXBxbmuy1LbA7rVApG_VvjTBpMbpm7-DB69OH-yXnl67EGVa_8Gsun_DzGQ0T1IhNwI_2FOCuKDtWC49ILWtZxmYo_qLyO...</msg>
<status status="PASS" endtime="20181002 16:24:09.804" starttime="20181002 16:24:09.803"></status>
</kw>
<status status="PASS" endtime="20181002 16:24:09.804" starttime="20181002 16:24:09.367"></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 16:24:09.820" 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 0x7f0a7f792d90&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 16:24:09.820" starttime="20181002 16:24:09.819"></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 16:24:09.836" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181002 16:24:09.836" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:09.836" starttime="20181002 16:24:09.821"></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 16:24:09.836" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:09.837" starttime="20181002 16:24:09.836"></status>
</kw>
<doc>Get the complete list of networks</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181002 16:24:09.837" critical="yes" starttime="20181002 16:24:09.821"></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 16:24:09.857" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181002 16:24:09.857" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:09.857" starttime="20181002 16:24:09.838"></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 16:24:09.858" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:09.858" starttime="20181002 16:24:09.857"></status>
</kw>
<doc>Get the complete list of subnets</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181002 16:24:09.858" critical="yes" starttime="20181002 16:24:09.837"></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 16:24:09.871" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181002 16:24:09.871" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:09.871" starttime="20181002 16:24:09.859"></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 16:24:09.872" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:09.872" starttime="20181002 16:24:09.871"></status>
</kw>
<doc>Get the complete list of ports</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20181002 16:24:09.872" critical="yes" starttime="20181002 16:24:09.858"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181002 16:24:09.873" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181002 16:24:09.873" starttime="20181002 16:24:09.873"></status>
</kw>
<status status="PASS" endtime="20181002 16:24:09.873" starttime="20181002 16:24:09.804"></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 16:24:09.891" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbs5upY9MpxtgbXOPynAijEJy4MKECkCGzvyTrr7gMDDspAjMxs1onsCvI_Q6ThhYWn6AF4eyAc9PDq16UXBxbmuy1LbA7rVApG_VvjTBpMbpm7-DB69OH-yXnl67EGVa_8Gsun_DzGQ0T1IhNwI_2FOCuKDtWC49ILWtZxmYo_qLyOYA', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 16:24:09.891" starttime="20181002 16:24:09.890"></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 16:24:09.892" level="INFO">{u'X-Auth-Token': 'gAAAAABbs5upY9MpxtgbXOPynAijEJy4MKECkCGzvyTrr7gMDDspAjMxs1onsCvI_Q6ThhYWn6AF4eyAc9PDq16UXBxbmuy1LbA7rVApG_VvjTBpMbpm7-DB69OH-yXnl67EGVa_8Gsun_DzGQ0T1IhNwI_2FOCuKDtWC49ILWtZxmYo_qLyOYA', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181002 16:24:09.892" starttime="20181002 16:24:09.892"></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 16:24:09.897" 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 16:24:10.054" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/networks, headers=None json=None</msg>
<msg timestamp="20181002 16:24:10.054" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:10.054" starttime="20181002 16:24:09.892"></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 16:24:10.055" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:10.055" starttime="20181002 16:24:10.055"></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 16:24:10.056" 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":"674cfad9-6213-4268-8425-b4cc5ba26a55","router:external":true,"availability_zone_hints":[],"availability_zones":["nova"],"ipv4_address_scope":null,"shared":false,"project_id":"723dc34482a148c5b03917ef39e919fb","status":"ACTIVE","subnets":["9a36c4ab-e4e1-4709-9c88-77d426bd525b"],"description":"","tags":[],"updated_at":"2018-10-02T16:11:17Z","is_default":false,"provider:segmentation_id":null,"name":"ext-net","admin_state_up":true,"tenant_id":"723dc34482a148c5b03917ef39e919fb","created_at":"2018-10-02T16:11:12Z","provider:network_type":"flat"}]} </msg>
<msg timestamp="20181002 16:24:10.056" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 16:24:10.056" 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'674cfad9-6213-...</msg>
<status status="PASS" endtime="20181002 16:24:10.056" starttime="20181002 16:24:10.055"></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 16:24:10.057" 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'674cfad9-6213-4268-8425-b4cc5ba26a55', 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'723dc34482a148c5b03917ef39e919fb', u'status': u'ACTIVE', u'subnets': [u'9a36c4ab-e4e1-4709-9c88-77d426bd525b'], u'description': u'', u'tags': [], u'updated_at': u'2018-10-02T16:11:17Z', u'is_default': False, u'provider:segmentation_id': None, u'name': u'ext-net', u'admin_state_up': True, u'tenant_id': u'723dc34482a148c5b03917ef39e919fb', u'created_at': u'2018-10-02T16:11:12Z', u'mtu': 1500}]}</msg>
<status status="PASS" endtime="20181002 16:24:10.057" starttime="20181002 16:24:10.056"></status>
</kw>
<doc>Checking OpenStack Neutron for known networks</doc>
<tags>
<tag>Network Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181002 16:24:10.057" critical="yes" starttime="20181002 16:24:09.891"></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 16:24:10.059" 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 0x7f0a7f7b6f10&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 16:24:10.059" starttime="20181002 16:24:10.058"></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 16:24:10.079" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181002 16:24:10.080" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:10.080" starttime="20181002 16:24:10.059"></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 16:24:10.080" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:10.080" starttime="20181002 16:24:10.080"></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 16:24:10.081" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "674cfad9-6213-4268-8425-b4cc5ba26a55",
      "tenant_id" : "723dc34482a148c5b03917ef39e919fb",
      "project_id" : "723dc34482a148c5b03917ef39e919fb",
      "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 16:24:10.081" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 16:24:10.081" 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'723dc34482a148c5b03917ef39e919fb...</msg>
<status status="PASS" endtime="20181002 16:24:10.081" starttime="20181002 16:24:10.081"></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 16:24:10.082" 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'723dc34482a148c5b03917ef39e919fb', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'723dc34482a148c5b03917ef39e919fb', u'id': u'674cfad9-6213-4268-8425-b4cc5ba26a55'}, {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 16:24:10.082" starttime="20181002 16:24:10.082"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known networks</doc>
<tags>
<tag>Network Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181002 16:24:10.082" critical="yes" starttime="20181002 16:24:10.057"></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 16:24:10.083" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20181002 16:24:10.084" starttime="20181002 16:24:10.083"></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 16:24:10.085" 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 16:24:10.306" 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 16:24:10.307" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:10.307" starttime="20181002 16:24:10.084"></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 16:24:10.307" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:10.308" starttime="20181002 16:24:10.307"></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 16:24:10.308" 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":"90f8dd6d-c695-40b8-bffe-eff93762bcc7","router:external":false,"availability_zone_hints":[],"availability_zones":[],"ipv4_address_scope":null,"shared":false,"project_id":"723dc34482a148c5b03917ef39e919fb","status":"ACTIVE","subnets":[],"description":"","tags":[],"updated_at":"2018-10-02T16:24:10Z","is_default":false,"provider:segmentation_id":11,"name":"odl_network","admin_state_up":true,"tenant_id":"723dc34482a148c5b03917ef39e919fb","created_at":"2018-10-02T16:24:10Z","mtu":1450}} </msg>
<msg timestamp="20181002 16:24:10.308" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 16:24:10.309" 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'90f8dd6d-c695-40b8-bffe-eff93762bcc7', u'ro...</msg>
<status status="PASS" endtime="20181002 16:24:10.309" starttime="20181002 16:24:10.308"></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 16:24:10.309" 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'90f8dd6d-c695-40b8-bffe-eff93762bcc7', u'router:external...</msg>
<status status="PASS" endtime="20181002 16:24:10.309" starttime="20181002 16:24:10.309"></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 16:24:10.310" level="INFO">${NETID} = 90f8dd6d-c695-40b8-bffe-eff93762bcc7</msg>
<status status="PASS" endtime="20181002 16:24:10.310" starttime="20181002 16:24:10.309"></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 16:24:10.310" 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'90f8dd6d-c695-40b8-bffe-eff93762bcc7', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'723dc34482a148c5b03917ef39e919fb', u'status': u'ACTIVE', u'subnets': [], u'description': u'', u'tags': [], u'updated_at': u'2018-10-02T16:24:10Z', u'is_default': False, u'provider:segmentation_id': 11, u'name': u'odl_network', u'admin_state_up': True, u'tenant_id': u'723dc34482a148c5b03917ef39e919fb', u'created_at': u'2018-10-02T16:24:10Z', u'provider:network_type': u'vxlan'}</msg>
<status status="PASS" endtime="20181002 16:24:10.310" starttime="20181002 16:24:10.310"></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 16:24:10.311" level="INFO">90f8dd6d-c695-40b8-bffe-eff93762bcc7</msg>
<status status="PASS" endtime="20181002 16:24:10.311" starttime="20181002 16:24:10.310"></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 16:24:10.311" level="INFO">${NETID} = 90f8dd6d-c695-40b8-bffe-eff93762bcc7</msg>
<status status="PASS" endtime="20181002 16:24:10.312" starttime="20181002 16:24:10.311"></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 16:24:12.313" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181002 16:24:12.313" starttime="20181002 16:24:10.312"></status>
</kw>
<doc>Create new network in OpenStack</doc>
<tags>
<tag>Create Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181002 16:24:12.314" critical="yes" starttime="20181002 16:24:10.082"></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 16:24:12.321" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/90f8dd6d-c695-40b8-bffe-eff93762bcc7, headers=None json=None</msg>
<msg timestamp="20181002 16:24:12.321" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:12.322" starttime="20181002 16:24:12.315"></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 16:24:12.322" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:12.322" starttime="20181002 16:24:12.322"></status>
</kw>
<doc>Check network created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181002 16:24:12.323" critical="yes" starttime="20181002 16:24:12.314"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181002 16:24:12.324" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181002 16:24:12.324" starttime="20181002 16:24:12.324"></status>
</kw>
<doc>Checking Network created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181002 16:24:12.324" starttime="20181002 16:24:09.874"></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 16:24:12.344" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbs5upY9MpxtgbXOPynAijEJy4MKECkCGzvyTrr7gMDDspAjMxs1onsCvI_Q6ThhYWn6AF4eyAc9PDq16UXBxbmuy1LbA7rVApG_VvjTBpMbpm7-DB69OH-yXnl67EGVa_8Gsun_DzGQ0T1IhNwI_2FOCuKDtWC49ILWtZxmYo_qLyOYA', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 16:24:12.344" starttime="20181002 16:24:12.343"></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 16:24:12.345" level="INFO">{u'X-Auth-Token': 'gAAAAABbs5upY9MpxtgbXOPynAijEJy4MKECkCGzvyTrr7gMDDspAjMxs1onsCvI_Q6ThhYWn6AF4eyAc9PDq16UXBxbmuy1LbA7rVApG_VvjTBpMbpm7-DB69OH-yXnl67EGVa_8Gsun_DzGQ0T1IhNwI_2FOCuKDtWC49ILWtZxmYo_qLyOYA', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181002 16:24:12.345" starttime="20181002 16:24:12.345"></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 16:24:12.351" 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 16:24:12.438" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/subnets, headers=None json=None</msg>
<msg timestamp="20181002 16:24:12.438" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:12.438" starttime="20181002 16:24:12.345"></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 16:24:12.439" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:12.439" starttime="20181002 16:24:12.438"></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 16:24:12.440" level="INFO">To JSON using : content={"subnets":[{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"674cfad9-6213-4268-8425-b4cc5ba26a55","tenant_id":"723dc34482a148c5b03917ef39e919fb","created_at":"2018-10-02T16:11:17Z","dns_nameservers":[],"updated_at":"2018-10-02T16:11:17Z","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":"723dc34482a148c5b03917ef39e919fb","id":"9a36c4ab-e4e1-4709-9c88-77d426bd525b","subnetpool_id":null,"name":"ext-subnet"}]} </msg>
<msg timestamp="20181002 16:24:12.440" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 16:24:12.440" level="INFO">${OSResult} = {u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'674cfad9-6213-4268-8425-b4cc5ba26a55', u'tenant_id': u'723dc34482a148c...</msg>
<status status="PASS" endtime="20181002 16:24:12.440" starttime="20181002 16:24:12.439"></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 16:24:12.440" level="INFO">{u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'674cfad9-6213-4268-8425-b4cc5ba26a55', u'tenant_id': u'723dc34482a148c5b03917ef39e919fb', u'created_at': u'2018-10-02T16:11:17Z', u'dns_nameservers': [], u'updated_at': u'2018-10-02T16:11:17Z', 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'723dc34482a148c5b03917ef39e919fb', u'id': u'9a36c4ab-e4e1-4709-9c88-77d426bd525b', u'subnetpool_id': None, u'name': u'ext-subnet'}]}</msg>
<status status="PASS" endtime="20181002 16:24:12.440" starttime="20181002 16:24:12.440"></status>
</kw>
<doc>Checking OpenStack Neutron for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181002 16:24:12.441" critical="yes" starttime="20181002 16:24:12.344"></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 16:24:12.442" 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 0x7f0a7f708ad0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 16:24:12.443" starttime="20181002 16:24:12.442"></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 16:24:12.450" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181002 16:24:12.450" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:12.450" starttime="20181002 16:24:12.443"></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 16:24:12.451" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:12.451" starttime="20181002 16:24:12.450"></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 16:24:12.452" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "9a36c4ab-e4e1-4709-9c88-77d426bd525b",
      "tenant_id" : "723dc34482a148c5b03917ef39e919fb",
      "project_id" : "723dc34482a148c5b03917ef39e919fb",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "674cfad9-6213-4268-8425-b4cc5ba26a55",
      "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 16:24:12.452" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 16:24:12.452" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'674cfad9-6213-4268-8425-b4cc5ba26a55', u'tenant_id': u'723dc34482a148c5b03917ef39e919fb', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20181002 16:24:12.452" starttime="20181002 16:24:12.451"></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 16:24:12.452" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'674cfad9-6213-4268-8425-b4cc5ba26a55', u'tenant_id': u'723dc34482a148c5b03917ef39e919fb', 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'723dc34482a148c5b03917ef39e919fb', u'id': u'9a36c4ab-e4e1-4709-9c88-77d426bd525b'}]}</msg>
<status status="PASS" endtime="20181002 16:24:12.452" starttime="20181002 16:24:12.452"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181002 16:24:12.453" critical="yes" starttime="20181002 16:24:12.441"></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 16:24:12.456" level="INFO">{"subnet":{"network_id":"90f8dd6d-c695-40b8-bffe-eff93762bcc7","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 16:24:12.456" starttime="20181002 16:24:12.455"></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 16:24:12.457" 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 16:24:13.057" 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 16:24:13.057" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:13.057" starttime="20181002 16:24:12.456"></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 16:24:13.058" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:13.058" starttime="20181002 16:24:13.057"></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 16:24:13.059" level="INFO">To JSON using : content={"subnet":{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"90f8dd6d-c695-40b8-bffe-eff93762bcc7","tenant_id":"723dc34482a148c5b03917ef39e919fb","created_at":"2018-10-02T16:24:12Z","dns_nameservers":[],"updated_at":"2018-10-02T16:24:12Z","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":"723dc34482a148c5b03917ef39e919fb","id":"0326af8e-547a-40ea-82c0-3e6ed6a4312b","subnetpool_id":null,"name":""}} </msg>
<msg timestamp="20181002 16:24:13.059" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 16:24:13.059" level="INFO">${result} = {u'subnet': {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'90f8dd6d-c695-40b8-bffe-eff93762bcc7', u'tenant_id': u'723dc34482a148c5b03917ef39e919fb', u'...</msg>
<status status="PASS" endtime="20181002 16:24:13.059" starttime="20181002 16:24:13.058"></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 16:24:13.060" level="INFO">${result} = {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'90f8dd6d-c695-40b8-bffe-eff93762bcc7', u'tenant_id': u'723dc34482a148c5b03917ef39e919fb', u'created_at':...</msg>
<status status="PASS" endtime="20181002 16:24:13.060" starttime="20181002 16:24:13.059"></status>
</kw>
<kw name="Get From Dictionary" library="Collections">
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<arguments>
<arg>${result}</arg>
<arg>id</arg>
</arguments>
<assign>
<var>${SUBNETID}</var>
</assign>
<msg timestamp="20181002 16:24:13.060" level="INFO">${SUBNETID} = 0326af8e-547a-40ea-82c0-3e6ed6a4312b</msg>
<status status="PASS" endtime="20181002 16:24:13.060" starttime="20181002 16:24:13.060"></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 16:24:13.061" level="INFO">{u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'90f8dd6d-c695-40b8-bffe-eff93762bcc7', u'tenant_id': u'723dc34482a148c5b03917ef39e919fb', u'created_at': u'2018-10-02T16:24:12Z', u'dns_nameservers': [], u'updated_at': u'2018-10-02T16:24:12Z', 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'723dc34482a148c5b03917ef39e919fb', u'id': u'0326af8e-547a-40ea-82c0-3e6ed6a4312b', u'subnetpool_id': None, u'name': u''}</msg>
<status status="PASS" endtime="20181002 16:24:13.061" starttime="20181002 16:24:13.060"></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 16:24:13.061" level="INFO">0326af8e-547a-40ea-82c0-3e6ed6a4312b</msg>
<status status="PASS" endtime="20181002 16:24:13.061" starttime="20181002 16:24:13.061"></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 16:24:13.062" level="INFO">${SUBNETID} = 0326af8e-547a-40ea-82c0-3e6ed6a4312b</msg>
<status status="PASS" endtime="20181002 16:24:13.062" starttime="20181002 16:24:13.061"></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 16:24:15.062" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181002 16:24:15.063" starttime="20181002 16:24:13.062"></status>
</kw>
<doc>Create new subnet in OpenStack</doc>
<tags>
<tag>Create Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181002 16:24:15.063" critical="yes" starttime="20181002 16:24:12.453"></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 16:24:15.076" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/0326af8e-547a-40ea-82c0-3e6ed6a4312b, headers=None json=None</msg>
<msg timestamp="20181002 16:24:15.077" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:15.077" starttime="20181002 16:24:15.064"></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 16:24:15.078" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:15.078" starttime="20181002 16:24:15.077"></status>
</kw>
<doc>Check new subnet created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>subnet OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181002 16:24:15.078" critical="yes" starttime="20181002 16:24:15.063"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181002 16:24:15.079" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181002 16:24:15.079" starttime="20181002 16:24:15.079"></status>
</kw>
<doc>Checking Subnets created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181002 16:24:15.079" starttime="20181002 16:24:12.326"></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 16:24:15.097" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbs5upY9MpxtgbXOPynAijEJy4MKECkCGzvyTrr7gMDDspAjMxs1onsCvI_Q6ThhYWn6AF4eyAc9PDq16UXBxbmuy1LbA7rVApG_VvjTBpMbpm7-DB69OH-yXnl67EGVa_8Gsun_DzGQ0T1IhNwI_2FOCuKDtWC49ILWtZxmYo_qLyOYA', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 16:24:15.097" starttime="20181002 16:24:15.096"></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 16:24:15.098" level="INFO">{u'X-Auth-Token': 'gAAAAABbs5upY9MpxtgbXOPynAijEJy4MKECkCGzvyTrr7gMDDspAjMxs1onsCvI_Q6ThhYWn6AF4eyAc9PDq16UXBxbmuy1LbA7rVApG_VvjTBpMbpm7-DB69OH-yXnl67EGVa_8Gsun_DzGQ0T1IhNwI_2FOCuKDtWC49ILWtZxmYo_qLyOYA', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20181002 16:24:15.099" starttime="20181002 16:24:15.098"></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 16:24:15.103" 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 16:24:15.198" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/ports, headers=None json=None</msg>
<msg timestamp="20181002 16:24:15.198" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:15.198" starttime="20181002 16:24:15.099"></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 16:24:15.199" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:15.199" starttime="20181002 16:24:15.199"></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 16:24:15.200" level="INFO">To JSON using : content={"ports":[{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-02T16:11:25Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"9a36c4ab-e4e1-4709-9c88-77d426bd525b","ip_address":"192.16.1.101"}],"id":"1e7994b3-eb1f-4f0a-b501-880902737fb4","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"b778e03d-686a-4db3-a6bc-0baa7cf56996","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:78:05:fd","project_id":"723dc34482a148c5b03917ef39e919fb","status":"ACTIVE","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-674cfad9-6213-4268-8425-b4cc5ba26a55","name":"","admin_state_up":true,"network_id":"674cfad9-6213-4268-8425-b4cc5ba26a55","tenant_id":"723dc34482a148c5b03917ef39e919fb","created_at":"2018-10-02T16:11:18Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-02T16:24:14Z","device_owner":"network:dhcp","revision_number":2,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"0326af8e-547a-40ea-82c0-3e6ed6a4312b","ip_address":"172.16.64.20"}],"id":"25bbfb12-1f61-4c6c-8555-aedaa325f1b8","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"b778e03d-686a-4db3-a6bc-0baa7cf56996","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:d1:23:fc","project_id":"723dc34482a148c5b03917ef39e919fb","status":"DOWN","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-90f8dd6d-c695-40b8-bffe-eff93762bcc7","name":"","admin_state_up":true,"network_id":"90f8dd6d-c695-40b8-bffe-eff93762bcc7","tenant_id":"723dc34482a148c5b03917ef39e919fb","created_at":"2018-10-02T16:24:13Z","binding:vnic_type":"normal"}]} </msg>
<msg timestamp="20181002 16:24:15.200" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 16:24:15.200" level="INFO">${OSResult} = {u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-02T16:11:25Z', u'device_owner': u'network:dhcp', u'revision_number': 3, u'port_security_enabled': False, u'b...</msg>
<status status="PASS" endtime="20181002 16:24:15.200" starttime="20181002 16:24:15.199"></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 16:24:15.201" level="INFO">{u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-02T16:11:25Z', 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'9a36c4ab-e4e1-4709-9c88-77d426bd525b', u'ip_address': u'192.16.1.101'}], u'id': u'1e7994b3-eb1f-4f0a-b501-880902737fb4', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'b778e03d-686a-4db3-a6bc-0baa7cf56996', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:78:05:fd', u'project_id': u'723dc34482a148c5b03917ef39e919fb', u'status': u'ACTIVE', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-674cfad9-6213-4268-8425-b4cc5ba26a55', u'name': u'', u'admin_state_up': True, u'network_id': u'674cfad9-6213-4268-8425-b4cc5ba26a55', u'tenant_id': u'723dc34482a148c5b03917ef39e919fb', u'created_at': u'2018-10-02T16:11:18Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-02T16:24:14Z', 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'0326af8e-547a-40ea-82c0-3e6ed6a4312b', u'ip_address': u'172.16.64.20'}], u'id': u'25bbfb12-1f61-4c6c-8555-aedaa325f1b8', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'b778e03d-686a-4db3-a6bc-0baa7cf56996', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:d1:23:fc', u'project_id': u'723dc34482a148c5b03917ef39e919fb', u'status': u'DOWN', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-90f8dd6d-c695-40b8-bffe-eff93762bcc7', u'name': u'', u'admin_state_up': True, u'network_id': u'90f8dd6d-c695-40b8-bffe-eff93762bcc7', u'tenant_id': u'723dc34482a148c5b03917ef39e919fb', u'created_at': u'2018-10-02T16:24:13Z', u'binding:vnic_type': u'normal'}]}</msg>
<status status="PASS" endtime="20181002 16:24:15.201" starttime="20181002 16:24:15.200"></status>
</kw>
<doc>Checking OpenStack Neutron for known ports</doc>
<tags>
<tag>Ports Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20181002 16:24:15.201" critical="yes" starttime="20181002 16:24:15.097"></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 16:24:15.202" level="INFO">Creating Session using : alias=ODLSession, url=http://192.16.1.222:8080, headers={u'Content-Type': u'application/json'},                     cookies=None, auth=&lt;requests.auth.HTTPBasicAuth object at 0x7f0a7f822750&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 16:24:15.203" starttime="20181002 16:24:15.202"></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 16:24:15.216" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181002 16:24:15.216" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:15.216" starttime="20181002 16:24:15.203"></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 16:24:15.217" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:15.217" starttime="20181002 16:24:15.216"></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 16:24:15.217" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "25bbfb12-1f61-4c6c-8555-aedaa325f1b8",
      "tenant_id" : "723dc34482a148c5b03917ef39e919fb",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "90f8dd6d-c695-40b8-bffe-eff93762bcc7",
      "mac_address" : "fa:16:3e:d1:23:fc",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "0326af8e-547a-40ea-82c0-3e6ed6a4312b"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-90f8dd6d-c695-40b8-bffe-eff93762bcc7",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "b778e03d-686a-4db3-a6bc-0baa7cf56996",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "1e7994b3-eb1f-4f0a-b501-880902737fb4",
      "tenant_id" : "723dc34482a148c5b03917ef39e919fb",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "674cfad9-6213-4268-8425-b4cc5ba26a55",
      "mac_address" : "fa:16:3e:78:05:fd",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "9a36c4ab-e4e1-4709-9c88-77d426bd525b"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-674cfad9-6213-4268-8425-b4cc5ba26a55",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "b778e03d-686a-4db3-a6bc-0baa7cf56996",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20181002 16:24:15.217" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 16:24:15.218" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'b778e03d-686a-4db3-a6bc-0baa7cf56996'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20181002 16:24:15.218" starttime="20181002 16:24:15.217"></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 16:24:15.218" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'b778e03d-686a-4db3-a6bc-0baa7cf56996'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'90f8dd6d-c695-40b8-bffe-eff93762bcc7', u'tenant_id': u'723dc34482a148c5b03917ef39e919fb', 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:d1:23:fc', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'0326af8e-547a-40ea-82c0-3e6ed6a4312b', u'ip_address': u'172.16.64.20'}], u'id': u'25bbfb12-1f61-4c6c-8555-aedaa325f1b8', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-90f8dd6d-c695-40b8-bffe-eff93762bcc7'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'b778e03d-686a-4db3-a6bc-0baa7cf56996'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'674cfad9-6213-4268-8425-b4cc5ba26a55', u'tenant_id': u'723dc34482a148c5b03917ef39e919fb', 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:78:05:fd', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'9a36c4ab-e4e1-4709-9c88-77d426bd525b', u'ip_address': u'192.16.1.101'}], u'id': u'1e7994b3-eb1f-4f0a-b501-880902737fb4', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-674cfad9-6213-4268-8425-b4cc5ba26a55'}]}</msg>
<status status="PASS" endtime="20181002 16:24:15.218" starttime="20181002 16:24:15.218"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known ports</doc>
<tags>
<tag>Ports Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181002 16:24:15.218" critical="yes" starttime="20181002 16:24:15.201"></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 16:24:15.220" level="INFO">{"port":{"network_id":"90f8dd6d-c695-40b8-bffe-eff93762bcc7","admin_state_up": true}}</msg>
<status status="PASS" endtime="20181002 16:24:15.220" starttime="20181002 16:24:15.219"></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 16:24:15.221" 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 16:24:16.083" 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 16:24:16.083" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:16.083" starttime="20181002 16:24:15.220"></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 16:24:16.084" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:16.084" starttime="20181002 16:24:16.083"></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 16:24:16.085" level="INFO">To JSON using : content={"port":{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-10-02T16:24:15Z","device_owner":"","revision_number":1,"binding:profile":{},"port_security_enabled":true,"fixed_ips":[{"subnet_id":"0326af8e-547a-40ea-82c0-3e6ed6a4312b","ip_address":"172.16.64.23"}],"id":"8ab21cda-2232-4672-bb2e-b6b49984ff78","security_groups":["34f9d674-7a19-489a-946d-ddf04d088319"],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:2a:2b:70","project_id":"723dc34482a148c5b03917ef39e919fb","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"","name":"","admin_state_up":true,"network_id":"90f8dd6d-c695-40b8-bffe-eff93762bcc7","tenant_id":"723dc34482a148c5b03917ef39e919fb","created_at":"2018-10-02T16:24:15Z","binding:vnic_type":"normal"}} </msg>
<msg timestamp="20181002 16:24:16.085" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 16:24:16.086" level="INFO">${result} = {u'port': {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-02T16:24:15Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': ...</msg>
<status status="PASS" endtime="20181002 16:24:16.086" starttime="20181002 16:24:16.084"></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 16:24:16.087" level="INFO">${result} = {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-02T16:24:15Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fi...</msg>
<status status="PASS" endtime="20181002 16:24:16.087" starttime="20181002 16:24:16.086"></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 16:24:16.087" level="INFO">${PORTID} = 8ab21cda-2232-4672-bb2e-b6b49984ff78</msg>
<status status="PASS" endtime="20181002 16:24:16.087" starttime="20181002 16:24:16.087"></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 16:24:16.088" level="INFO">{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-10-02T16:24:15Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fixed_ips': [{u'subnet_id': u'0326af8e-547a-40ea-82c0-3e6ed6a4312b', u'ip_address': u'172.16.64.23'}], u'id': u'8ab21cda-2232-4672-bb2e-b6b49984ff78', u'security_groups': [u'34f9d674-7a19-489a-946d-ddf04d088319'], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:2a:2b:70', u'project_id': u'723dc34482a148c5b03917ef39e919fb', 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'90f8dd6d-c695-40b8-bffe-eff93762bcc7', u'tenant_id': u'723dc34482a148c5b03917ef39e919fb', u'created_at': u'2018-10-02T16:24:15Z', u'binding:vnic_type': u'normal'}</msg>
<status status="PASS" endtime="20181002 16:24:16.088" starttime="20181002 16:24:16.087"></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 16:24:16.088" level="INFO">8ab21cda-2232-4672-bb2e-b6b49984ff78</msg>
<status status="PASS" endtime="20181002 16:24:16.088" starttime="20181002 16:24:16.088"></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 16:24:16.089" level="INFO">${PORTID} = 8ab21cda-2232-4672-bb2e-b6b49984ff78</msg>
<status status="PASS" endtime="20181002 16:24:16.089" starttime="20181002 16:24:16.089"></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 16:24:18.090" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181002 16:24:18.090" starttime="20181002 16:24:16.089"></status>
</kw>
<doc>Create new port in OpenStack</doc>
<tags>
<tag>Create port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181002 16:24:18.090" critical="yes" starttime="20181002 16:24:15.219"></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 16:24:18.111" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/8ab21cda-2232-4672-bb2e-b6b49984ff78, headers=None json=None</msg>
<msg timestamp="20181002 16:24:18.111" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:18.111" starttime="20181002 16:24:18.091"></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 16:24:18.112" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:18.112" starttime="20181002 16:24:18.111"></status>
</kw>
<doc>Check new port created in OpenDaylight</doc>
<tags>
<tag>Check port OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181002 16:24:18.112" critical="yes" starttime="20181002 16:24:18.091"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181002 16:24:18.113" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181002 16:24:18.114" starttime="20181002 16:24:18.113"></status>
</kw>
<doc>Checking Port created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20181002 16:24:18.114" starttime="20181002 16:24:15.081"></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 16:24:18.132" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbs5upY9MpxtgbXOPynAijEJy4MKECkCGzvyTrr7gMDDspAjMxs1onsCvI_Q6ThhYWn6AF4eyAc9PDq16UXBxbmuy1LbA7rVApG_VvjTBpMbpm7-DB69OH-yXnl67EGVa_8Gsun_DzGQ0T1IhNwI_2FOCuKDtWC49ILWtZxmYo_qLyOYA'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 16:24:18.132" starttime="20181002 16:24:18.132"></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 16:24:18.133" 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 0x7f0a7f7f0f90&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 16:24:18.134" starttime="20181002 16:24:18.133"></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 16:24:18.143" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/8ab21cda-2232-4672-bb2e-b6b49984ff78, headers=None json=None</msg>
<msg timestamp="20181002 16:24:18.144" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:18.144" starttime="20181002 16:24:18.134"></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 16:24:18.144" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:18.145" starttime="20181002 16:24:18.144"></status>
</kw>
<status status="PASS" endtime="20181002 16:24:18.145" starttime="20181002 16:24:18.134"></status>
</kw>
<status status="PASS" endtime="20181002 16:24:18.145" starttime="20181002 16:24:18.131"></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 16:24:18.146" level="INFO">{"port":{"network_id":"90f8dd6d-c695-40b8-bffe-eff93762bcc7","admin_state_up": true}}</msg>
<status status="PASS" endtime="20181002 16:24:18.146" starttime="20181002 16:24:18.146"></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 16:24:18.151" 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 16:24:18.949" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/ports/8ab21cda-2232-4672-bb2e-b6b49984ff78, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181002 16:24:18.949" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:18.949" starttime="20181002 16:24:18.146"></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 16:24:18.950" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:18.950" starttime="20181002 16:24:18.949"></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 16:24:18.951" level="INFO"></msg>
<status status="PASS" endtime="20181002 16:24:18.951" starttime="20181002 16:24:18.950"></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 16:24:20.951" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181002 16:24:20.951" starttime="20181002 16:24:18.951"></status>
</kw>
<doc>Delete previously created port in OpenStack</doc>
<tags>
<tag>Delete port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181002 16:24:20.952" critical="yes" starttime="20181002 16:24:18.145"></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 16:24:20.971" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20181002 16:24:20.971" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:20.972" starttime="20181002 16:24:20.954"></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 16:24:20.972" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:20.972" starttime="20181002 16:24:20.972"></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 16:24:20.973" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "1e7994b3-eb1f-4f0a-b501-880902737fb4",
      "tenant_id" : "723dc34482a148c5b03917ef39e919fb",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "674cfad9-6213-4268-8425-b4cc5ba26a55",
      "mac_address" : "fa:16:3e:78:05:fd",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "9a36c4ab-e4e1-4709-9c88-77d426bd525b"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-674cfad9-6213-4268-8425-b4cc5ba26a55",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "b778e03d-686a-4db3-a6bc-0baa7cf56996",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "25bbfb12-1f61-4c6c-8555-aedaa325f1b8",
      "tenant_id" : "723dc34482a148c5b03917ef39e919fb",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "90f8dd6d-c695-40b8-bffe-eff93762bcc7",
      "mac_address" : "fa:16:3e:d1:23:fc",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "0326af8e-547a-40ea-82c0-3e6ed6a4312b"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-90f8dd6d-c695-40b8-bffe-eff93762bcc7",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "b778e03d-686a-4db3-a6bc-0baa7cf56996",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20181002 16:24:20.973" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 16:24:20.973" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'b778e03d-686a-4db3-a6bc-0baa7cf56996'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20181002 16:24:20.973" starttime="20181002 16:24:20.972"></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 16:24:20.974" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'b778e03d-686a-4db3-a6bc-0baa7cf56996'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'674cfad9-6213-4268-8425-b4cc5ba26a55', u'tenant_id': u'723dc34482a148c5b03917ef39e919fb', 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:78:05:fd', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'9a36c4ab-e4e1-4709-9c88-77d426bd525b', u'ip_address': u'192.16.1.101'}], u'id': u'1e7994b3-eb1f-4f0a-b501-880902737fb4', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-674cfad9-6213-4268-8425-b4cc5ba26a55'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'b778e03d-686a-4db3-a6bc-0baa7cf56996'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'90f8dd6d-c695-40b8-bffe-eff93762bcc7', u'tenant_id': u'723dc34482a148c5b03917ef39e919fb', 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:d1:23:fc', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'0326af8e-547a-40ea-82c0-3e6ed6a4312b', u'ip_address': u'172.16.64.20'}], u'id': u'25bbfb12-1f61-4c6c-8555-aedaa325f1b8', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-90f8dd6d-c695-40b8-bffe-eff93762bcc7'}]}</msg>
<status status="PASS" endtime="20181002 16:24:20.974" starttime="20181002 16:24:20.974"></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 16:24:20.984" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/8ab21cda-2232-4672-bb2e-b6b49984ff78, headers=None json=None</msg>
<msg timestamp="20181002 16:24:20.984" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:20.984" starttime="20181002 16:24:20.974"></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 16:24:20.985" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:20.985" starttime="20181002 16:24:20.984"></status>
</kw>
<doc>Check port deleted in OpenDaylight</doc>
<tags>
<tag>Check port deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181002 16:24:20.985" critical="yes" starttime="20181002 16:24:20.952"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181002 16:24:20.986" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181002 16:24:20.986" starttime="20181002 16:24:20.986"></status>
</kw>
<doc>Checking Port deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181002 16:24:20.986" starttime="20181002 16:24:18.115"></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 16:24:21.004" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbs5upY9MpxtgbXOPynAijEJy4MKECkCGzvyTrr7gMDDspAjMxs1onsCvI_Q6ThhYWn6AF4eyAc9PDq16UXBxbmuy1LbA7rVApG_VvjTBpMbpm7-DB69OH-yXnl67EGVa_8Gsun_DzGQ0T1IhNwI_2FOCuKDtWC49ILWtZxmYo_qLyOYA'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 16:24:21.005" starttime="20181002 16:24:21.004"></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 16:24:21.005" 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 0x7f0a7f708c50&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 16:24:21.006" starttime="20181002 16:24:21.005"></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 16:24:21.015" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/0326af8e-547a-40ea-82c0-3e6ed6a4312b, headers=None json=None</msg>
<msg timestamp="20181002 16:24:21.015" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:21.016" starttime="20181002 16:24:21.006"></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 16:24:21.016" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:21.016" starttime="20181002 16:24:21.016"></status>
</kw>
<status status="PASS" endtime="20181002 16:24:21.016" starttime="20181002 16:24:21.006"></status>
</kw>
<status status="PASS" endtime="20181002 16:24:21.016" starttime="20181002 16:24:21.003"></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 16:24:21.018" level="INFO">{"subnet":{"network_id":"90f8dd6d-c695-40b8-bffe-eff93762bcc7","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 16:24:21.018" starttime="20181002 16:24:21.017"></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 16:24:21.023" 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 16:24:22.574" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/subnets/0326af8e-547a-40ea-82c0-3e6ed6a4312b, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181002 16:24:22.574" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:22.574" starttime="20181002 16:24:21.018"></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 16:24:22.575" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:22.576" starttime="20181002 16:24:22.575"></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 16:24:22.576" level="INFO"></msg>
<status status="PASS" endtime="20181002 16:24:22.576" starttime="20181002 16:24:22.576"></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 16:24:24.577" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181002 16:24:24.577" starttime="20181002 16:24:22.576"></status>
</kw>
<doc>Delete previously created subnet in OpenStack</doc>
<tags>
<tag>Delete Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181002 16:24:24.577" critical="yes" starttime="20181002 16:24:21.017"></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 16:24:24.586" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20181002 16:24:24.587" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:24.587" starttime="20181002 16:24:24.579"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20181002 16:24:24.588" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:24.588" starttime="20181002 16:24:24.587"></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 16:24:24.588" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "9a36c4ab-e4e1-4709-9c88-77d426bd525b",
      "tenant_id" : "723dc34482a148c5b03917ef39e919fb",
      "project_id" : "723dc34482a148c5b03917ef39e919fb",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "674cfad9-6213-4268-8425-b4cc5ba26a55",
      "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 16:24:24.588" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 16:24:24.589" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'674cfad9-6213-4268-8425-b4cc5ba26a55', u'tenant_id': u'723dc34482a148c5b03917ef39e919fb', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20181002 16:24:24.589" starttime="20181002 16:24:24.588"></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 16:24:24.589" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'674cfad9-6213-4268-8425-b4cc5ba26a55', u'tenant_id': u'723dc34482a148c5b03917ef39e919fb', 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'723dc34482a148c5b03917ef39e919fb', u'id': u'9a36c4ab-e4e1-4709-9c88-77d426bd525b'}]}</msg>
<status status="PASS" endtime="20181002 16:24:24.589" starttime="20181002 16:24:24.589"></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 16:24:24.599" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/0326af8e-547a-40ea-82c0-3e6ed6a4312b, headers=None json=None</msg>
<msg timestamp="20181002 16:24:24.599" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:24.600" starttime="20181002 16:24:24.589"></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 16:24:24.600" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:24.600" starttime="20181002 16:24:24.600"></status>
</kw>
<doc>Check subnet deleted in OpenDaylight</doc>
<tags>
<tag>Check subnet deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181002 16:24:24.601" critical="yes" starttime="20181002 16:24:24.578"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181002 16:24:24.602" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181002 16:24:24.602" starttime="20181002 16:24:24.601"></status>
</kw>
<doc>Checking Subnets deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181002 16:24:24.602" starttime="20181002 16:24:20.988"></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 16:24:24.621" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbs5upY9MpxtgbXOPynAijEJy4MKECkCGzvyTrr7gMDDspAjMxs1onsCvI_Q6ThhYWn6AF4eyAc9PDq16UXBxbmuy1LbA7rVApG_VvjTBpMbpm7-DB69OH-yXnl67EGVa_8Gsun_DzGQ0T1IhNwI_2FOCuKDtWC49ILWtZxmYo_qLyOYA'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 16:24:24.622" starttime="20181002 16:24:24.621"></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 16:24:24.622" 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 0x7f0a7f6d6fd0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20181002 16:24:24.623" starttime="20181002 16:24:24.622"></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 16:24:24.631" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/90f8dd6d-c695-40b8-bffe-eff93762bcc7, headers=None json=None</msg>
<msg timestamp="20181002 16:24:24.631" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:24.631" starttime="20181002 16:24:24.623"></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 16:24:24.633" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:24.633" starttime="20181002 16:24:24.632"></status>
</kw>
<status status="PASS" endtime="20181002 16:24:24.633" starttime="20181002 16:24:24.623"></status>
</kw>
<status status="PASS" endtime="20181002 16:24:24.633" starttime="20181002 16:24:24.620"></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 16:24:24.634" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20181002 16:24:24.634" starttime="20181002 16:24:24.634"></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 16:24:24.639" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20181002 16:24:25.427" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/networks/90f8dd6d-c695-40b8-bffe-eff93762bcc7, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20181002 16:24:25.428" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:25.428" starttime="20181002 16:24:24.634"></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 16:24:25.428" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:25.428" starttime="20181002 16:24:25.428"></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 16:24:25.429" level="INFO"></msg>
<status status="PASS" endtime="20181002 16:24:25.429" starttime="20181002 16:24:25.429"></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 16:24:27.430" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20181002 16:24:27.430" starttime="20181002 16:24:25.429"></status>
</kw>
<doc>Delete network in OpenStack</doc>
<tags>
<tag>Delete Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20181002 16:24:27.430" critical="yes" starttime="20181002 16:24:24.633"></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 16:24:27.442" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20181002 16:24:27.443" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:27.443" starttime="20181002 16:24:27.432"></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 16:24:27.444" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:27.444" starttime="20181002 16:24:27.443"></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 16:24:27.445" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
      "tenant_id" : "bd8db3a82b304083a8b3b3fd46401142",
      "project_id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
      "name" : "Sync Canary Network",
      "admin_state_up" : false,
      "status" : "ACTIVE",
      "shared" : false,
      "router:external" : false,
      "provider:network_type" : "flat",
      "segments" : [ ]
   }, {
      "id" : "674cfad9-6213-4268-8425-b4cc5ba26a55",
      "tenant_id" : "723dc34482a148c5b03917ef39e919fb",
      "project_id" : "723dc34482a148c5b03917ef39e919fb",
      "revision_number" : 1,
      "name" : "ext-net",
      "admin_state_up" : true,
      "status" : "ACTIVE",
      "shared" : false,
      "router:external" : true,
      "provider:network_type" : "flat",
      "provider:physical_network" : "physnet",
      "segments" : [ ]
   } ]
} </msg>
<msg timestamp="20181002 16:24:27.445" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20181002 16:24:27.445" level="INFO">${ODLResult} = {u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'name': u'Sync Canary Network', u'admin_state_up': False, u'tenant_id': u'bd8db3a82b304083a8b3b3fd46401142', u'segments': [], u'provid...</msg>
<status status="PASS" endtime="20181002 16:24:27.445" starttime="20181002 16:24:27.444"></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 16:24:27.446" level="INFO">{u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'name': u'Sync Canary Network', u'admin_state_up': False, u'tenant_id': u'bd8db3a82b304083a8b3b3fd46401142', u'segments': [], u'provider:network_type': u'flat', u'shared': False, u'project_id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142', u'id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142'}, {u'status': u'ACTIVE', u'router:external': True, u'name': u'ext-net', u'provider:physical_network': u'physnet', u'admin_state_up': True, u'tenant_id': u'723dc34482a148c5b03917ef39e919fb', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'723dc34482a148c5b03917ef39e919fb', u'id': u'674cfad9-6213-4268-8425-b4cc5ba26a55'}]}</msg>
<status status="PASS" endtime="20181002 16:24:27.446" starttime="20181002 16:24:27.445"></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 16:24:27.452" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/90f8dd6d-c695-40b8-bffe-eff93762bcc7, headers=None json=None</msg>
<msg timestamp="20181002 16:24:27.452" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20181002 16:24:27.453" starttime="20181002 16:24:27.446"></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 16:24:27.453" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20181002 16:24:27.453" starttime="20181002 16:24:27.453"></status>
</kw>
<doc>Check network deleted in OpenDaylight</doc>
<tags>
<tag>Check Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20181002 16:24:27.454" critical="yes" starttime="20181002 16:24:27.431"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20181002 16:24:27.455" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181002 16:24:27.455" starttime="20181002 16:24:27.454"></status>
</kw>
<doc>Checking Network deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20181002 16:24:27.455" starttime="20181002 16:24:24.603"></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 16:24:27.459" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20181002 16:24:27.459" starttime="20181002 16:24:27.458"></status>
</kw>
<status status="PASS" endtime="20181002 16:24:27.459" starttime="20181002 16:24:27.458"></status>
</kw>
<doc>Test suite for Neutron Plugin</doc>
<status status="PASS" endtime="20181002 16:24:27.459" starttime="20181002 16:24:09.332"></status>
</suite>
<status status="FAIL" endtime="20181002 16:24:27.465" starttime="20181002 16:24:08.626"></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 16:24:09.368" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20181002 16:24:09.374" 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 16:24:09.897" 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 16:24:10.085" 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 16:24:12.351" 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 16:24:12.457" 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 16:24:15.103" 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 16:24:15.221" 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 16:24:18.151" 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 16:24:21.023" 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 16:24:24.639" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
</errors>
</robot>
