<?xml version="1.0" encoding="UTF-8"?>
<robot generated="20180829 17:57:45.815" 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="20180829 17:57:45.879" 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 0x7fa52f428350&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180829 17:57:45.880" starttime="20180829 17:57:45.879"></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="20180829 17:57:46.488" 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 0x7fa52f428650&gt;: Failed to establish a new connection: [Errno 111] Connection refused',))</msg>
<status status="FAIL" endtime="20180829 17:57:46.488" starttime="20180829 17:57:45.881"></status>
</kw>
<doc>Get the restconf modules, check 200 status and ietf-restconf presence.</doc>
<status status="FAIL" endtime="20180829 17:57:46.489" critical="yes" starttime="20180829 17:57:45.880">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 0x7fa52f428650&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="20180829 17:57:46.490" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180829 17:57:46.490" starttime="20180829 17:57:46.489"></status>
</kw>
<doc>Test suite to verify Restconf is OK.</doc>
<status status="FAIL" endtime="20180829 17:57:46.490" starttime="20180829 17:57:45.847"></status>
</suite>
<status status="FAIL" endtime="20180829 17:57:46.492" starttime="20180829 17:57:45.844"></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="20180829 17:57:46.534" 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="20180829 17:57:46.534" starttime="20180829 17:57:46.534"></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="20180829 17:57:46.535" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20180829 17:57:46.540" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180829 17:57:46.989" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20180829 17:57:46.989" starttime="20180829 17:57:46.535"></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="20180829 17:57:46.990" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:57:46.990" starttime="20180829 17:57:46.990"></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="20180829 17:57:46.991" level="INFO">${TOKEN} = gAAAAABbht6aSfstk1nd69e6qAgMlkCcULsBrNvGnLXyucFzgNrCY5-4gH4McbA4k1du_y5yQNXLxxHe3KdBRZMXmQ8ZZalSuz8pBHgE_8wW799aa-d8qBxLZG9rrO79nV35PuU-d5fV4lPdmlvC1bEqdS5LgUFoycHJJnORkTykrne6S_YVqco</msg>
<status status="PASS" endtime="20180829 17:57:46.991" starttime="20180829 17:57:46.990"></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="20180829 17:57:46.992" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABbht6aSfstk1nd69e6qAgMlkCcULsBrNvGnLXyucFzgNrCY5-4gH4McbA4k1du_y5yQNXLxxHe3KdBRZMXmQ8ZZalSuz8pBHgE_8wW799aa-d8qBxLZG9rrO79nV35PuU-d5fV4lPdmlvC1bEqdS5LgUFoycHJJnORkTykrne6S_YVq...</msg>
<status status="PASS" endtime="20180829 17:57:46.992" starttime="20180829 17:57:46.991"></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="20180829 17:57:46.992" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABbht6aSfstk1nd69e6qAgMlkCcULsBrNvGnLXyucFzgNrCY5-4gH4McbA4k1du_y5yQNXLxxHe3KdBRZMXmQ8ZZalSuz8pBHgE_8wW799aa-d8qBxLZG9rrO79nV35PuU-d5fV4lPdmlvC1bEqdS5LgUFoycHJJnORkTykrne6S_YVq...</msg>
<status status="PASS" endtime="20180829 17:57:46.992" starttime="20180829 17:57:46.992"></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="20180829 17:57:46.993" level="INFO">${X-AUTH} = {u'X-Auth-Token': 'gAAAAABbht6aSfstk1nd69e6qAgMlkCcULsBrNvGnLXyucFzgNrCY5-4gH4McbA4k1du_y5yQNXLxxHe3KdBRZMXmQ8ZZalSuz8pBHgE_8wW799aa-d8qBxLZG9rrO79nV35PuU-d5fV4lPdmlvC1bEqdS5LgUFoycHJJnORkTykrne6S_YVq...</msg>
<status status="PASS" endtime="20180829 17:57:46.993" starttime="20180829 17:57:46.993"></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="20180829 17:57:46.994" level="INFO">${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABbht6aSfstk1nd69e6qAgMlkCcULsBrNvGnLXyucFzgNrCY5-4gH4McbA4k1du_y5yQNXLxxHe3KdBRZMXmQ8ZZalSuz8pBHgE_8wW799aa-d8qBxLZG9rrO79nV35PuU-d5fV4lPdmlvC1bEqdS5LgUFoycHJJnORkTykrne6S_YVq...</msg>
<status status="PASS" endtime="20180829 17:57:46.994" starttime="20180829 17:57:46.993"></status>
</kw>
<status status="PASS" endtime="20180829 17:57:46.994" starttime="20180829 17:57:46.533"></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="20180829 17:57:47.010" 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 0x7fa52f5c8750&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180829 17:57:47.010" starttime="20180829 17:57:47.009"></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="20180829 17:57:47.050" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20180829 17:57:47.051" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180829 17:57:47.051" starttime="20180829 17:57:47.011"></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="20180829 17:57:47.051" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:57:47.051" starttime="20180829 17:57:47.051"></status>
</kw>
<doc>Get the complete list of networks</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20180829 17:57:47.052" critical="yes" starttime="20180829 17:57:47.010"></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="20180829 17:57:47.075" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20180829 17:57:47.075" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180829 17:57:47.075" starttime="20180829 17:57:47.053"></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="20180829 17:57:47.076" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:57:47.076" starttime="20180829 17:57:47.075"></status>
</kw>
<doc>Get the complete list of subnets</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20180829 17:57:47.076" critical="yes" starttime="20180829 17:57:47.052"></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="20180829 17:57:47.088" level="INFO">Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20180829 17:57:47.088" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180829 17:57:47.088" starttime="20180829 17:57:47.077"></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="20180829 17:57:47.089" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:57:47.089" starttime="20180829 17:57:47.089"></status>
</kw>
<doc>Get the complete list of ports</doc>
<tags>
<tag>reachability</tag>
</tags>
<status status="PASS" endtime="20180829 17:57:47.089" critical="yes" starttime="20180829 17:57:47.076"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180829 17:57:47.090" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180829 17:57:47.090" starttime="20180829 17:57:47.090"></status>
</kw>
<status status="PASS" endtime="20180829 17:57:47.090" starttime="20180829 17:57:46.994"></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="20180829 17:57:47.109" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbht6aSfstk1nd69e6qAgMlkCcULsBrNvGnLXyucFzgNrCY5-4gH4McbA4k1du_y5yQNXLxxHe3KdBRZMXmQ8ZZalSuz8pBHgE_8wW799aa-d8qBxLZG9rrO79nV35PuU-d5fV4lPdmlvC1bEqdS5LgUFoycHJJnORkTykrne6S_YVqco', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180829 17:57:47.110" starttime="20180829 17:57:47.109"></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="20180829 17:57:47.111" level="INFO">{u'X-Auth-Token': 'gAAAAABbht6aSfstk1nd69e6qAgMlkCcULsBrNvGnLXyucFzgNrCY5-4gH4McbA4k1du_y5yQNXLxxHe3KdBRZMXmQ8ZZalSuz8pBHgE_8wW799aa-d8qBxLZG9rrO79nV35PuU-d5fV4lPdmlvC1bEqdS5LgUFoycHJJnORkTykrne6S_YVqco', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20180829 17:57:47.111" starttime="20180829 17:57:47.111"></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="20180829 17:57:47.116" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180829 17:57:47.312" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/networks, headers=None json=None</msg>
<msg timestamp="20180829 17:57:47.312" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180829 17:57:47.312" starttime="20180829 17:57:47.111"></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="20180829 17:57:47.313" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:57:47.313" starttime="20180829 17:57:47.313"></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="20180829 17:57:47.314" 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":"8a91c2aa-24c1-432d-8324-5448b4e666c0","router:external":true,"availability_zone_hints":[],"availability_zones":["nova"],"ipv4_address_scope":null,"shared":false,"project_id":"2f1f6fa26f6944ddbbd9a85ac05617e3","status":"ACTIVE","subnets":["303ac259-1d74-4a00-972e-50d12ace9516"],"description":"","tags":[],"updated_at":"2018-08-29T17:46:28Z","is_default":false,"provider:segmentation_id":null,"name":"ext-net","admin_state_up":true,"tenant_id":"2f1f6fa26f6944ddbbd9a85ac05617e3","created_at":"2018-08-29T17:46:22Z","provider:network_type":"flat"}]} </msg>
<msg timestamp="20180829 17:57:47.314" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180829 17:57:47.314" 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'8a91c2aa-24c1-...</msg>
<status status="PASS" endtime="20180829 17:57:47.314" starttime="20180829 17:57:47.313"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20180829 17:57:47.315" 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'8a91c2aa-24c1-432d-8324-5448b4e666c0', 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'2f1f6fa26f6944ddbbd9a85ac05617e3', u'status': u'ACTIVE', u'subnets': [u'303ac259-1d74-4a00-972e-50d12ace9516'], u'description': u'', u'tags': [], u'updated_at': u'2018-08-29T17:46:28Z', u'is_default': False, u'provider:segmentation_id': None, u'name': u'ext-net', u'admin_state_up': True, u'tenant_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', u'created_at': u'2018-08-29T17:46:22Z', u'mtu': 1500}]}</msg>
<status status="PASS" endtime="20180829 17:57:47.315" starttime="20180829 17:57:47.314"></status>
</kw>
<doc>Checking OpenStack Neutron for known networks</doc>
<tags>
<tag>Network Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20180829 17:57:47.315" critical="yes" starttime="20180829 17:57:47.110"></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="20180829 17:57:47.316" 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 0x7fa52f4087d0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180829 17:57:47.317" starttime="20180829 17:57:47.316"></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="20180829 17:57:47.327" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20180829 17:57:47.327" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180829 17:57:47.327" starttime="20180829 17:57:47.317"></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="20180829 17:57:47.328" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:57:47.328" starttime="20180829 17:57:47.327"></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="20180829 17:57:47.329" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "8a91c2aa-24c1-432d-8324-5448b4e666c0",
      "tenant_id" : "2f1f6fa26f6944ddbbd9a85ac05617e3",
      "project_id" : "2f1f6fa26f6944ddbbd9a85ac05617e3",
      "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="20180829 17:57:47.329" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180829 17:57:47.329" 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'2f1f6fa26f6944ddbbd9a85ac05617e3...</msg>
<status status="PASS" endtime="20180829 17:57:47.329" starttime="20180829 17:57:47.328"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180829 17:57:47.330" 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'2f1f6fa26f6944ddbbd9a85ac05617e3', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', u'id': u'8a91c2aa-24c1-432d-8324-5448b4e666c0'}, {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="20180829 17:57:47.330" starttime="20180829 17:57:47.329"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known networks</doc>
<tags>
<tag>Network Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180829 17:57:47.330" critical="yes" starttime="20180829 17:57:47.315"></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="20180829 17:57:47.331" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20180829 17:57:47.331" starttime="20180829 17:57:47.331"></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="20180829 17:57:47.333" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180829 17:57:47.679" 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="20180829 17:57:47.680" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20180829 17:57:47.680" starttime="20180829 17:57:47.331"></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="20180829 17:57:47.681" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:57:47.681" starttime="20180829 17:57:47.680"></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="20180829 17:57:47.681" 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":"d368fc26-38f4-44bf-868f-9aa1d5106a70","router:external":false,"availability_zone_hints":[],"availability_zones":[],"ipv4_address_scope":null,"shared":false,"project_id":"2f1f6fa26f6944ddbbd9a85ac05617e3","status":"ACTIVE","subnets":[],"description":"","tags":[],"updated_at":"2018-08-29T17:57:47Z","is_default":false,"provider:segmentation_id":22,"name":"odl_network","admin_state_up":true,"tenant_id":"2f1f6fa26f6944ddbbd9a85ac05617e3","created_at":"2018-08-29T17:57:47Z","mtu":1450}} </msg>
<msg timestamp="20180829 17:57:47.682" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180829 17:57:47.682" 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'd368fc26-38f4-44bf-868f-9aa1d5106a70', u'ro...</msg>
<status status="PASS" endtime="20180829 17:57:47.682" starttime="20180829 17:57:47.681"></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="20180829 17:57:47.682" 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'd368fc26-38f4-44bf-868f-9aa1d5106a70', u'router:external...</msg>
<status status="PASS" endtime="20180829 17:57:47.682" starttime="20180829 17:57:47.682"></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="20180829 17:57:47.683" level="INFO">${NETID} = d368fc26-38f4-44bf-868f-9aa1d5106a70</msg>
<status status="PASS" endtime="20180829 17:57:47.683" starttime="20180829 17:57:47.683"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20180829 17:57:47.683" 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'd368fc26-38f4-44bf-868f-9aa1d5106a70', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', u'status': u'ACTIVE', u'subnets': [], u'description': u'', u'tags': [], u'updated_at': u'2018-08-29T17:57:47Z', u'is_default': False, u'provider:segmentation_id': 22, u'name': u'odl_network', u'admin_state_up': True, u'tenant_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', u'created_at': u'2018-08-29T17:57:47Z', u'provider:network_type': u'vxlan'}</msg>
<status status="PASS" endtime="20180829 17:57:47.684" starttime="20180829 17:57:47.683"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${NETID}</arg>
</arguments>
<msg timestamp="20180829 17:57:47.684" level="INFO">d368fc26-38f4-44bf-868f-9aa1d5106a70</msg>
<status status="PASS" endtime="20180829 17:57:47.684" starttime="20180829 17:57:47.684"></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="20180829 17:57:47.685" level="INFO">${NETID} = d368fc26-38f4-44bf-868f-9aa1d5106a70</msg>
<status status="PASS" endtime="20180829 17:57:47.685" starttime="20180829 17:57:47.684"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180829 17:57:49.685" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180829 17:57:49.686" starttime="20180829 17:57:47.685"></status>
</kw>
<doc>Create new network in OpenStack</doc>
<tags>
<tag>Create Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180829 17:57:49.686" critical="yes" starttime="20180829 17:57:47.330"></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="20180829 17:57:49.695" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/d368fc26-38f4-44bf-868f-9aa1d5106a70, headers=None json=None</msg>
<msg timestamp="20180829 17:57:49.695" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180829 17:57:49.696" starttime="20180829 17:57:49.688"></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="20180829 17:57:49.696" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:57:49.697" starttime="20180829 17:57:49.696"></status>
</kw>
<doc>Check network created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180829 17:57:49.697" critical="yes" starttime="20180829 17:57:49.687"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180829 17:57:49.698" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180829 17:57:49.698" starttime="20180829 17:57:49.698"></status>
</kw>
<doc>Checking Network created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20180829 17:57:49.698" starttime="20180829 17:57:47.091"></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="20180829 17:57:49.719" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbht6aSfstk1nd69e6qAgMlkCcULsBrNvGnLXyucFzgNrCY5-4gH4McbA4k1du_y5yQNXLxxHe3KdBRZMXmQ8ZZalSuz8pBHgE_8wW799aa-d8qBxLZG9rrO79nV35PuU-d5fV4lPdmlvC1bEqdS5LgUFoycHJJnORkTykrne6S_YVqco', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180829 17:57:49.720" starttime="20180829 17:57:49.719"></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="20180829 17:57:49.721" level="INFO">{u'X-Auth-Token': 'gAAAAABbht6aSfstk1nd69e6qAgMlkCcULsBrNvGnLXyucFzgNrCY5-4gH4McbA4k1du_y5yQNXLxxHe3KdBRZMXmQ8ZZalSuz8pBHgE_8wW799aa-d8qBxLZG9rrO79nV35PuU-d5fV4lPdmlvC1bEqdS5LgUFoycHJJnORkTykrne6S_YVqco', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20180829 17:57:49.721" starttime="20180829 17:57:49.721"></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="20180829 17:57:49.727" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180829 17:57:49.797" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/subnets, headers=None json=None</msg>
<msg timestamp="20180829 17:57:49.797" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180829 17:57:49.797" starttime="20180829 17:57:49.722"></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="20180829 17:57:49.798" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:57:49.798" starttime="20180829 17:57:49.797"></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="20180829 17:57:49.798" level="INFO">To JSON using : content={"subnets":[{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"8a91c2aa-24c1-432d-8324-5448b4e666c0","tenant_id":"2f1f6fa26f6944ddbbd9a85ac05617e3","created_at":"2018-08-29T17:46:28Z","dns_nameservers":[],"updated_at":"2018-08-29T17:46:28Z","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":"2f1f6fa26f6944ddbbd9a85ac05617e3","id":"303ac259-1d74-4a00-972e-50d12ace9516","subnetpool_id":null,"name":"ext-subnet"}]} </msg>
<msg timestamp="20180829 17:57:49.799" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180829 17:57:49.799" level="INFO">${OSResult} = {u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'8a91c2aa-24c1-432d-8324-5448b4e666c0', u'tenant_id': u'2f1f6fa26f6944d...</msg>
<status status="PASS" endtime="20180829 17:57:49.799" starttime="20180829 17:57:49.798"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20180829 17:57:49.799" level="INFO">{u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'8a91c2aa-24c1-432d-8324-5448b4e666c0', u'tenant_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', u'created_at': u'2018-08-29T17:46:28Z', u'dns_nameservers': [], u'updated_at': u'2018-08-29T17:46:28Z', 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'2f1f6fa26f6944ddbbd9a85ac05617e3', u'id': u'303ac259-1d74-4a00-972e-50d12ace9516', u'subnetpool_id': None, u'name': u'ext-subnet'}]}</msg>
<status status="PASS" endtime="20180829 17:57:49.799" starttime="20180829 17:57:49.799"></status>
</kw>
<doc>Checking OpenStack Neutron for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20180829 17:57:49.800" critical="yes" starttime="20180829 17:57:49.720"></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="20180829 17:57:49.801" 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 0x7fa52f30c410&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180829 17:57:49.802" starttime="20180829 17:57:49.801"></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="20180829 17:57:49.815" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20180829 17:57:49.816" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180829 17:57:49.816" starttime="20180829 17:57:49.802"></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="20180829 17:57:49.816" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:57:49.816" starttime="20180829 17:57:49.816"></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="20180829 17:57:49.817" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "303ac259-1d74-4a00-972e-50d12ace9516",
      "tenant_id" : "2f1f6fa26f6944ddbbd9a85ac05617e3",
      "project_id" : "2f1f6fa26f6944ddbbd9a85ac05617e3",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "8a91c2aa-24c1-432d-8324-5448b4e666c0",
      "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="20180829 17:57:49.817" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180829 17:57:49.817" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'8a91c2aa-24c1-432d-8324-5448b4e666c0', u'tenant_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20180829 17:57:49.817" starttime="20180829 17:57:49.817"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180829 17:57:49.818" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'8a91c2aa-24c1-432d-8324-5448b4e666c0', u'tenant_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', 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'2f1f6fa26f6944ddbbd9a85ac05617e3', u'id': u'303ac259-1d74-4a00-972e-50d12ace9516'}]}</msg>
<status status="PASS" endtime="20180829 17:57:49.818" starttime="20180829 17:57:49.817"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known subnets</doc>
<tags>
<tag>Subnets Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180829 17:57:49.818" critical="yes" starttime="20180829 17:57:49.800"></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="20180829 17:57:49.819" level="INFO">{"subnet":{"network_id":"d368fc26-38f4-44bf-868f-9aa1d5106a70","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="20180829 17:57:49.819" starttime="20180829 17:57:49.819"></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="20180829 17:57:49.821" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180829 17:57:50.454" 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="20180829 17:57:50.454" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20180829 17:57:50.454" starttime="20180829 17:57:49.820"></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="20180829 17:57:50.454" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:57:50.455" starttime="20180829 17:57:50.454"></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="20180829 17:57:50.455" level="INFO">To JSON using : content={"subnet":{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"d368fc26-38f4-44bf-868f-9aa1d5106a70","tenant_id":"2f1f6fa26f6944ddbbd9a85ac05617e3","created_at":"2018-08-29T17:57:50Z","dns_nameservers":[],"updated_at":"2018-08-29T17:57:50Z","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":"2f1f6fa26f6944ddbbd9a85ac05617e3","id":"e21a4647-4774-43fd-9db3-060898a7b80e","subnetpool_id":null,"name":""}} </msg>
<msg timestamp="20180829 17:57:50.455" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180829 17:57:50.455" level="INFO">${result} = {u'subnet': {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'd368fc26-38f4-44bf-868f-9aa1d5106a70', u'tenant_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', u'...</msg>
<status status="PASS" endtime="20180829 17:57:50.455" starttime="20180829 17:57:50.455"></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="20180829 17:57:50.456" level="INFO">${result} = {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'd368fc26-38f4-44bf-868f-9aa1d5106a70', u'tenant_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', u'created_at':...</msg>
<status status="PASS" endtime="20180829 17:57:50.456" starttime="20180829 17:57:50.456"></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="20180829 17:57:50.457" level="INFO">${SUBNETID} = e21a4647-4774-43fd-9db3-060898a7b80e</msg>
<status status="PASS" endtime="20180829 17:57:50.457" starttime="20180829 17:57:50.456"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20180829 17:57:50.457" level="INFO">{u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'd368fc26-38f4-44bf-868f-9aa1d5106a70', u'tenant_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', u'created_at': u'2018-08-29T17:57:50Z', u'dns_nameservers': [], u'updated_at': u'2018-08-29T17:57:50Z', 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'2f1f6fa26f6944ddbbd9a85ac05617e3', u'id': u'e21a4647-4774-43fd-9db3-060898a7b80e', u'subnetpool_id': None, u'name': u''}</msg>
<status status="PASS" endtime="20180829 17:57:50.457" starttime="20180829 17:57:50.457"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${SUBNETID}</arg>
</arguments>
<msg timestamp="20180829 17:57:50.458" level="INFO">e21a4647-4774-43fd-9db3-060898a7b80e</msg>
<status status="PASS" endtime="20180829 17:57:50.458" starttime="20180829 17:57:50.457"></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="20180829 17:57:50.458" level="INFO">${SUBNETID} = e21a4647-4774-43fd-9db3-060898a7b80e</msg>
<status status="PASS" endtime="20180829 17:57:50.458" starttime="20180829 17:57:50.458"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180829 17:57:52.459" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180829 17:57:52.459" starttime="20180829 17:57:50.459"></status>
</kw>
<doc>Create new subnet in OpenStack</doc>
<tags>
<tag>Create Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180829 17:57:52.460" critical="yes" starttime="20180829 17:57:49.818"></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="20180829 17:57:52.468" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/e21a4647-4774-43fd-9db3-060898a7b80e, headers=None json=None</msg>
<msg timestamp="20180829 17:57:52.468" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180829 17:57:52.468" starttime="20180829 17:57:52.461"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>200</arg>
</arguments>
<msg timestamp="20180829 17:57:52.469" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:57:52.469" starttime="20180829 17:57:52.469"></status>
</kw>
<doc>Check new subnet created in OpenDaylight</doc>
<tags>
<tag>Check</tag>
<tag>subnet OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180829 17:57:52.469" critical="yes" starttime="20180829 17:57:52.460"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180829 17:57:52.470" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180829 17:57:52.470" starttime="20180829 17:57:52.470"></status>
</kw>
<doc>Checking Subnets created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20180829 17:57:52.470" starttime="20180829 17:57:49.700"></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="20180829 17:57:52.489" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbht6aSfstk1nd69e6qAgMlkCcULsBrNvGnLXyucFzgNrCY5-4gH4McbA4k1du_y5yQNXLxxHe3KdBRZMXmQ8ZZalSuz8pBHgE_8wW799aa-d8qBxLZG9rrO79nV35PuU-d5fV4lPdmlvC1bEqdS5LgUFoycHJJnORkTykrne6S_YVqco', u'Content-Type': u'application/json'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180829 17:57:52.490" starttime="20180829 17:57:52.489"></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="20180829 17:57:52.491" level="INFO">{u'X-Auth-Token': 'gAAAAABbht6aSfstk1nd69e6qAgMlkCcULsBrNvGnLXyucFzgNrCY5-4gH4McbA4k1du_y5yQNXLxxHe3KdBRZMXmQ8ZZalSuz8pBHgE_8wW799aa-d8qBxLZG9rrO79nV35PuU-d5fV4lPdmlvC1bEqdS5LgUFoycHJJnORkTykrne6S_YVqco', u'Content-Type': u'application/json'}</msg>
<status status="PASS" endtime="20180829 17:57:52.491" starttime="20180829 17:57:52.490"></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="20180829 17:57:52.496" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180829 17:57:52.606" level="INFO">Get Request using : alias=OSSession, uri=/v2.0/ports, headers=None json=None</msg>
<msg timestamp="20180829 17:57:52.606" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180829 17:57:52.606" starttime="20180829 17:57:52.491"></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="20180829 17:57:52.607" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:57:52.607" starttime="20180829 17:57:52.607"></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="20180829 17:57:52.608" level="INFO">To JSON using : content={"ports":[{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-08-29T17:46:37Z","device_owner":"network:dhcp","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"303ac259-1d74-4a00-972e-50d12ace9516","ip_address":"192.16.1.101"}],"id":"195977b9-f983-43fe-81ea-78f0c6966651","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"23271d3a-396c-43fe-8e1c-ed39062acab7","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:72:9a:d4","project_id":"2f1f6fa26f6944ddbbd9a85ac05617e3","status":"ACTIVE","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-8a91c2aa-24c1-432d-8324-5448b4e666c0","name":"","admin_state_up":true,"network_id":"8a91c2aa-24c1-432d-8324-5448b4e666c0","tenant_id":"2f1f6fa26f6944ddbbd9a85ac05617e3","created_at":"2018-08-29T17:46:29Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-08-29T17:57:51Z","device_owner":"network:dhcp","revision_number":2,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"e21a4647-4774-43fd-9db3-060898a7b80e","ip_address":"172.16.64.20"}],"id":"307be372-33b6-4c06-9c69-3fc28edc5119","security_groups":[],"binding:vif_details":{"support_vhost_user":false,"has_datapath_type_netdev":false,"uuid":"23271d3a-396c-43fe-8e1c-ed39062acab7","host_addresses":["host1"]},"binding:vif_type":"ovs","mac_address":"fa:16:3e:12:2e:5b","project_id":"2f1f6fa26f6944ddbbd9a85ac05617e3","status":"DOWN","binding:host_id":"host1","description":"","tags":[],"device_id":"dhcp540ba512-ba2e-5213-b381-56c767787d41-d368fc26-38f4-44bf-868f-9aa1d5106a70","name":"","admin_state_up":true,"network_id":"d368fc26-38f4-44bf-868f-9aa1d5106a70","tenant_id":"2f1f6fa26f6944ddbbd9a85ac05617e3","created_at":"2018-08-29T17:57:50Z","binding:vnic_type":"normal"}]} </msg>
<msg timestamp="20180829 17:57:52.608" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180829 17:57:52.608" level="INFO">${OSResult} = {u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-08-29T17:46:37Z', u'device_owner': u'network:dhcp', u'revision_number': 3, u'port_security_enabled': False, u'b...</msg>
<status status="PASS" endtime="20180829 17:57:52.608" starttime="20180829 17:57:52.607"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${OSResult}</arg>
</arguments>
<msg timestamp="20180829 17:57:52.609" level="INFO">{u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-08-29T17:46:37Z', 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'303ac259-1d74-4a00-972e-50d12ace9516', u'ip_address': u'192.16.1.101'}], u'id': u'195977b9-f983-43fe-81ea-78f0c6966651', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'23271d3a-396c-43fe-8e1c-ed39062acab7', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:72:9a:d4', u'project_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', u'status': u'ACTIVE', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-8a91c2aa-24c1-432d-8324-5448b4e666c0', u'name': u'', u'admin_state_up': True, u'network_id': u'8a91c2aa-24c1-432d-8324-5448b4e666c0', u'tenant_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', u'created_at': u'2018-08-29T17:46:29Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-08-29T17:57:51Z', 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'e21a4647-4774-43fd-9db3-060898a7b80e', u'ip_address': u'172.16.64.20'}], u'id': u'307be372-33b6-4c06-9c69-3fc28edc5119', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'23271d3a-396c-43fe-8e1c-ed39062acab7', u'host_addresses': [u'host1']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:12:2e:5b', u'project_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', u'status': u'DOWN', u'binding:host_id': u'host1', u'description': u'', u'tags': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-d368fc26-38f4-44bf-868f-9aa1d5106a70', u'name': u'', u'admin_state_up': True, u'network_id': u'd368fc26-38f4-44bf-868f-9aa1d5106a70', u'tenant_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', u'created_at': u'2018-08-29T17:57:50Z', u'binding:vnic_type': u'normal'}]}</msg>
<status status="PASS" endtime="20180829 17:57:52.609" starttime="20180829 17:57:52.609"></status>
</kw>
<doc>Checking OpenStack Neutron for known ports</doc>
<tags>
<tag>Ports Neutron OpenStack</tag>
</tags>
<status status="PASS" endtime="20180829 17:57:52.609" critical="yes" starttime="20180829 17:57:52.490"></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="20180829 17:57:52.611" 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 0x7fa52f282ad0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180829 17:57:52.611" starttime="20180829 17:57:52.610"></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="20180829 17:57:52.627" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20180829 17:57:52.627" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180829 17:57:52.627" starttime="20180829 17:57:52.612"></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="20180829 17:57:52.628" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:57:52.628" starttime="20180829 17:57:52.628"></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="20180829 17:57:52.629" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "307be372-33b6-4c06-9c69-3fc28edc5119",
      "tenant_id" : "2f1f6fa26f6944ddbbd9a85ac05617e3",
      "revision_number" : 1,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "d368fc26-38f4-44bf-868f-9aa1d5106a70",
      "mac_address" : "fa:16:3e:12:2e:5b",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "e21a4647-4774-43fd-9db3-060898a7b80e"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-d368fc26-38f4-44bf-868f-9aa1d5106a70",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "23271d3a-396c-43fe-8e1c-ed39062acab7",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "195977b9-f983-43fe-81ea-78f0c6966651",
      "tenant_id" : "2f1f6fa26f6944ddbbd9a85ac05617e3",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "8a91c2aa-24c1-432d-8324-5448b4e666c0",
      "mac_address" : "fa:16:3e:72:9a:d4",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "303ac259-1d74-4a00-972e-50d12ace9516"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-8a91c2aa-24c1-432d-8324-5448b4e666c0",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "23271d3a-396c-43fe-8e1c-ed39062acab7",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20180829 17:57:52.629" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180829 17:57:52.629" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'23271d3a-396c-43fe-8e1c-ed39062acab7'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20180829 17:57:52.629" starttime="20180829 17:57:52.628"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180829 17:57:52.630" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'23271d3a-396c-43fe-8e1c-ed39062acab7'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'd368fc26-38f4-44bf-868f-9aa1d5106a70', u'tenant_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', 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:12:2e:5b', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'e21a4647-4774-43fd-9db3-060898a7b80e', u'ip_address': u'172.16.64.20'}], u'id': u'307be372-33b6-4c06-9c69-3fc28edc5119', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-d368fc26-38f4-44bf-868f-9aa1d5106a70'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'23271d3a-396c-43fe-8e1c-ed39062acab7'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'8a91c2aa-24c1-432d-8324-5448b4e666c0', u'tenant_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', 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:72:9a:d4', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'303ac259-1d74-4a00-972e-50d12ace9516', u'ip_address': u'192.16.1.101'}], u'id': u'195977b9-f983-43fe-81ea-78f0c6966651', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-8a91c2aa-24c1-432d-8324-5448b4e666c0'}]}</msg>
<status status="PASS" endtime="20180829 17:57:52.630" starttime="20180829 17:57:52.629"></status>
</kw>
<doc>Checking OpenDaylight Neutron API for known ports</doc>
<tags>
<tag>Ports Neutron OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180829 17:57:52.630" critical="yes" starttime="20180829 17:57:52.610"></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="20180829 17:57:52.632" level="INFO">{"port":{"network_id":"d368fc26-38f4-44bf-868f-9aa1d5106a70","admin_state_up": true}}</msg>
<status status="PASS" endtime="20180829 17:57:52.632" starttime="20180829 17:57:52.631"></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="20180829 17:57:52.633" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180829 17:57:53.627" 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="20180829 17:57:53.627" level="INFO">${resp} = &lt;Response [201]&gt;</msg>
<status status="PASS" endtime="20180829 17:57:53.627" starttime="20180829 17:57:52.632"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${resp.status_code}</arg>
<arg>201</arg>
</arguments>
<msg timestamp="20180829 17:57:53.628" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:57:53.628" starttime="20180829 17:57:53.628"></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="20180829 17:57:53.629" level="INFO">To JSON using : content={"port":{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-08-29T17:57:53Z","device_owner":"","revision_number":1,"binding:profile":{},"port_security_enabled":true,"fixed_ips":[{"subnet_id":"e21a4647-4774-43fd-9db3-060898a7b80e","ip_address":"172.16.64.33"}],"id":"39bd8f51-48fa-4e24-bbe1-71e4849a2504","security_groups":["01186772-f929-4632-ad1f-5568a5098f87"],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:ac:9a:77","project_id":"2f1f6fa26f6944ddbbd9a85ac05617e3","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"","name":"","admin_state_up":true,"network_id":"d368fc26-38f4-44bf-868f-9aa1d5106a70","tenant_id":"2f1f6fa26f6944ddbbd9a85ac05617e3","created_at":"2018-08-29T17:57:52Z","binding:vnic_type":"normal"}} </msg>
<msg timestamp="20180829 17:57:53.629" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180829 17:57:53.629" level="INFO">${result} = {u'port': {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-08-29T17:57:53Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': ...</msg>
<status status="PASS" endtime="20180829 17:57:53.629" starttime="20180829 17:57:53.628"></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="20180829 17:57:53.630" level="INFO">${result} = {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-08-29T17:57:53Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fi...</msg>
<status status="PASS" endtime="20180829 17:57:53.630" starttime="20180829 17:57:53.629"></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="20180829 17:57:53.630" level="INFO">${PORTID} = 39bd8f51-48fa-4e24-bbe1-71e4849a2504</msg>
<status status="PASS" endtime="20180829 17:57:53.631" starttime="20180829 17:57:53.630"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${result}</arg>
</arguments>
<msg timestamp="20180829 17:57:53.631" level="INFO">{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-08-29T17:57:53Z', u'device_owner': u'', u'revision_number': 1, u'binding:profile': {}, u'port_security_enabled': True, u'fixed_ips': [{u'subnet_id': u'e21a4647-4774-43fd-9db3-060898a7b80e', u'ip_address': u'172.16.64.33'}], u'id': u'39bd8f51-48fa-4e24-bbe1-71e4849a2504', u'security_groups': [u'01186772-f929-4632-ad1f-5568a5098f87'], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:ac:9a:77', u'project_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', 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'd368fc26-38f4-44bf-868f-9aa1d5106a70', u'tenant_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', u'created_at': u'2018-08-29T17:57:52Z', u'binding:vnic_type': u'normal'}</msg>
<status status="PASS" endtime="20180829 17:57:53.631" starttime="20180829 17:57:53.631"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${PORTID}</arg>
</arguments>
<msg timestamp="20180829 17:57:53.632" level="INFO">39bd8f51-48fa-4e24-bbe1-71e4849a2504</msg>
<status status="PASS" endtime="20180829 17:57:53.632" starttime="20180829 17:57:53.631"></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="20180829 17:57:53.632" level="INFO">${PORTID} = 39bd8f51-48fa-4e24-bbe1-71e4849a2504</msg>
<status status="PASS" endtime="20180829 17:57:53.632" starttime="20180829 17:57:53.632"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180829 17:57:55.633" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180829 17:57:55.633" starttime="20180829 17:57:53.633"></status>
</kw>
<doc>Create new port in OpenStack</doc>
<tags>
<tag>Create port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180829 17:57:55.634" critical="yes" starttime="20180829 17:57:52.630"></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="20180829 17:57:55.676" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/39bd8f51-48fa-4e24-bbe1-71e4849a2504, headers=None json=None</msg>
<msg timestamp="20180829 17:57:55.676" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180829 17:57:55.676" starttime="20180829 17:57:55.635"></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="20180829 17:57:55.677" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:57:55.677" starttime="20180829 17:57:55.677"></status>
</kw>
<doc>Check new port created in OpenDaylight</doc>
<tags>
<tag>Check port OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180829 17:57:55.678" critical="yes" starttime="20180829 17:57:55.634"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180829 17:57:55.679" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180829 17:57:55.679" starttime="20180829 17:57:55.679"></status>
</kw>
<doc>Checking Port created in OpenStack are pushed to OpenDaylight</doc>
<status status="PASS" endtime="20180829 17:57:55.679" starttime="20180829 17:57:52.472"></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="20180829 17:57:55.698" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbht6aSfstk1nd69e6qAgMlkCcULsBrNvGnLXyucFzgNrCY5-4gH4McbA4k1du_y5yQNXLxxHe3KdBRZMXmQ8ZZalSuz8pBHgE_8wW799aa-d8qBxLZG9rrO79nV35PuU-d5fV4lPdmlvC1bEqdS5LgUFoycHJJnORkTykrne6S_YVqco'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180829 17:57:55.699" starttime="20180829 17:57:55.698"></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="20180829 17:57:55.699" 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 0x7fa52f2a1ed0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180829 17:57:55.700" starttime="20180829 17:57:55.699"></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="20180829 17:57:55.717" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/39bd8f51-48fa-4e24-bbe1-71e4849a2504, headers=None json=None</msg>
<msg timestamp="20180829 17:57:55.717" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180829 17:57:55.717" starttime="20180829 17:57:55.700"></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="20180829 17:57:55.718" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:57:55.718" starttime="20180829 17:57:55.717"></status>
</kw>
<status status="PASS" endtime="20180829 17:57:55.718" starttime="20180829 17:57:55.700"></status>
</kw>
<status status="PASS" endtime="20180829 17:57:55.718" starttime="20180829 17:57:55.697"></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="20180829 17:57:55.719" level="INFO">{"port":{"network_id":"d368fc26-38f4-44bf-868f-9aa1d5106a70","admin_state_up": true}}</msg>
<status status="PASS" endtime="20180829 17:57:55.719" starttime="20180829 17:57:55.719"></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="20180829 17:57:55.725" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180829 17:57:56.788" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/ports/39bd8f51-48fa-4e24-bbe1-71e4849a2504, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20180829 17:57:56.788" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20180829 17:57:56.789" starttime="20180829 17:57:55.720"></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="20180829 17:57:56.789" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:57:56.790" starttime="20180829 17:57:56.789"></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="20180829 17:57:56.790" level="INFO"></msg>
<status status="PASS" endtime="20180829 17:57:56.790" starttime="20180829 17:57:56.790"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180829 17:57:58.791" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180829 17:57:58.791" starttime="20180829 17:57:56.790"></status>
</kw>
<doc>Delete previously created port in OpenStack</doc>
<tags>
<tag>Delete port OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180829 17:57:58.792" critical="yes" starttime="20180829 17:57:55.718"></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="20180829 17:57:58.815" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None</msg>
<msg timestamp="20180829 17:57:58.815" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180829 17:57:58.816" starttime="20180829 17:57:58.793"></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="20180829 17:57:58.816" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:57:58.816" starttime="20180829 17:57:58.816"></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="20180829 17:57:58.817" level="INFO">To JSON using : content={
   "ports" : [ {
      "id" : "307be372-33b6-4c06-9c69-3fc28edc5119",
      "tenant_id" : "2f1f6fa26f6944ddbbd9a85ac05617e3",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "d368fc26-38f4-44bf-868f-9aa1d5106a70",
      "mac_address" : "fa:16:3e:12:2e:5b",
      "fixed_ips" : [ {
         "ip_address" : "172.16.64.20",
         "subnet_id" : "e21a4647-4774-43fd-9db3-060898a7b80e"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-d368fc26-38f4-44bf-868f-9aa1d5106a70",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "23271d3a-396c-43fe-8e1c-ed39062acab7",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   }, {
      "id" : "195977b9-f983-43fe-81ea-78f0c6966651",
      "tenant_id" : "2f1f6fa26f6944ddbbd9a85ac05617e3",
      "revision_number" : 3,
      "name" : "",
      "admin_state_up" : true,
      "network_id" : "8a91c2aa-24c1-432d-8324-5448b4e666c0",
      "mac_address" : "fa:16:3e:72:9a:d4",
      "fixed_ips" : [ {
         "ip_address" : "192.16.1.101",
         "subnet_id" : "303ac259-1d74-4a00-972e-50d12ace9516"
      } ],
      "device_id" : "dhcp540ba512-ba2e-5213-b381-56c767787d41-8a91c2aa-24c1-432d-8324-5448b4e666c0",
      "device_owner" : "network:dhcp",
      "security_groups" : [ ],
      "allowed_address_pairs" : [ ],
      "binding:host_id" : "host1",
      "binding:vnic_type" : "normal",
      "binding:vif_type" : "ovs",
      "Map" : {
         "uuid" : "23271d3a-396c-43fe-8e1c-ed39062acab7",
         "support_vhost_user" : "false",
         "has_datapath_type_netdev" : "false"
      },
      "extra_dhcp_opts" : [ ],
      "port_security_enabled" : false
   } ]
} </msg>
<msg timestamp="20180829 17:57:58.817" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180829 17:57:58.817" level="INFO">${ODLResult} = {u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'23271d3a-396c-43fe-8e1c-ed39062acab7'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_a...</msg>
<status status="PASS" endtime="20180829 17:57:58.817" starttime="20180829 17:57:58.816"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180829 17:57:58.818" level="INFO">{u'ports': [{u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'23271d3a-396c-43fe-8e1c-ed39062acab7'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'd368fc26-38f4-44bf-868f-9aa1d5106a70', u'tenant_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', 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:12:2e:5b', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'e21a4647-4774-43fd-9db3-060898a7b80e', u'ip_address': u'172.16.64.20'}], u'id': u'307be372-33b6-4c06-9c69-3fc28edc5119', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-d368fc26-38f4-44bf-868f-9aa1d5106a70'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'23271d3a-396c-43fe-8e1c-ed39062acab7'}, u'binding:host_id': u'host1', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'8a91c2aa-24c1-432d-8324-5448b4e666c0', u'tenant_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', 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:72:9a:d4', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'303ac259-1d74-4a00-972e-50d12ace9516', u'ip_address': u'192.16.1.101'}], u'id': u'195977b9-f983-43fe-81ea-78f0c6966651', u'security_groups': [], u'device_id': u'dhcp540ba512-ba2e-5213-b381-56c767787d41-8a91c2aa-24c1-432d-8324-5448b4e666c0'}]}</msg>
<status status="PASS" endtime="20180829 17:57:58.818" starttime="20180829 17:57:58.818"></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="20180829 17:57:58.825" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/39bd8f51-48fa-4e24-bbe1-71e4849a2504, headers=None json=None</msg>
<msg timestamp="20180829 17:57:58.825" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20180829 17:57:58.826" starttime="20180829 17:57:58.818"></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="20180829 17:57:58.826" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:57:58.826" starttime="20180829 17:57:58.826"></status>
</kw>
<doc>Check port deleted in OpenDaylight</doc>
<tags>
<tag>Check port deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180829 17:57:58.826" critical="yes" starttime="20180829 17:57:58.792"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180829 17:57:58.827" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180829 17:57:58.827" starttime="20180829 17:57:58.827"></status>
</kw>
<doc>Checking Port deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20180829 17:57:58.827" starttime="20180829 17:57:55.681"></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="20180829 17:57:58.847" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbht6aSfstk1nd69e6qAgMlkCcULsBrNvGnLXyucFzgNrCY5-4gH4McbA4k1du_y5yQNXLxxHe3KdBRZMXmQ8ZZalSuz8pBHgE_8wW799aa-d8qBxLZG9rrO79nV35PuU-d5fV4lPdmlvC1bEqdS5LgUFoycHJJnORkTykrne6S_YVqco'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180829 17:57:58.848" starttime="20180829 17:57:58.847"></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="20180829 17:57:58.849" 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 0x7fa52f2464d0&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180829 17:57:58.849" starttime="20180829 17:57:58.848"></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="20180829 17:57:58.858" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/e21a4647-4774-43fd-9db3-060898a7b80e, headers=None json=None</msg>
<msg timestamp="20180829 17:57:58.858" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180829 17:57:58.858" starttime="20180829 17:57:58.850"></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="20180829 17:57:58.858" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:57:58.859" starttime="20180829 17:57:58.858"></status>
</kw>
<status status="PASS" endtime="20180829 17:57:58.859" starttime="20180829 17:57:58.849"></status>
</kw>
<status status="PASS" endtime="20180829 17:57:58.859" starttime="20180829 17:57:58.847"></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="20180829 17:57:58.861" level="INFO">{"subnet":{"network_id":"d368fc26-38f4-44bf-868f-9aa1d5106a70","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="20180829 17:57:58.861" starttime="20180829 17:57:58.860"></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="20180829 17:57:58.866" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180829 17:58:00.263" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/subnets/e21a4647-4774-43fd-9db3-060898a7b80e, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20180829 17:58:00.264" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20180829 17:58:00.264" starttime="20180829 17:57:58.861"></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="20180829 17:58:00.265" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:58:00.265" starttime="20180829 17:58:00.264"></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="20180829 17:58:00.265" level="INFO"></msg>
<status status="PASS" endtime="20180829 17:58:00.265" starttime="20180829 17:58:00.265"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180829 17:58:02.266" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180829 17:58:02.266" starttime="20180829 17:58:00.265"></status>
</kw>
<doc>Delete previously created subnet in OpenStack</doc>
<tags>
<tag>Delete Subnet OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180829 17:58:02.267" critical="yes" starttime="20180829 17:57:58.859"></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="20180829 17:58:02.285" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None</msg>
<msg timestamp="20180829 17:58:02.285" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180829 17:58:02.285" starttime="20180829 17:58:02.268"></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="20180829 17:58:02.286" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:58:02.286" starttime="20180829 17:58:02.286"></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="20180829 17:58:02.287" level="INFO">To JSON using : content={
   "subnets" : [ {
      "id" : "303ac259-1d74-4a00-972e-50d12ace9516",
      "tenant_id" : "2f1f6fa26f6944ddbbd9a85ac05617e3",
      "project_id" : "2f1f6fa26f6944ddbbd9a85ac05617e3",
      "revision_number" : 0,
      "name" : "ext-subnet",
      "network_id" : "8a91c2aa-24c1-432d-8324-5448b4e666c0",
      "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="20180829 17:58:02.287" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180829 17:58:02.287" level="INFO">${ODLResult} = {u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'8a91c2aa-24c1-432d-8324-5448b4e666c0', u'tenant_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', u'dns_nameservers': [], u'ipv6_r...</msg>
<status status="PASS" endtime="20180829 17:58:02.287" starttime="20180829 17:58:02.287"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180829 17:58:02.288" level="INFO">{u'subnets': [{u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'8a91c2aa-24c1-432d-8324-5448b4e666c0', u'tenant_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', 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'2f1f6fa26f6944ddbbd9a85ac05617e3', u'id': u'303ac259-1d74-4a00-972e-50d12ace9516'}]}</msg>
<status status="PASS" endtime="20180829 17:58:02.288" starttime="20180829 17:58:02.288"></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="20180829 17:58:02.294" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/e21a4647-4774-43fd-9db3-060898a7b80e, headers=None json=None</msg>
<msg timestamp="20180829 17:58:02.295" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20180829 17:58:02.295" starttime="20180829 17:58:02.288"></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="20180829 17:58:02.296" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:58:02.296" starttime="20180829 17:58:02.295"></status>
</kw>
<doc>Check subnet deleted in OpenDaylight</doc>
<tags>
<tag>Check subnet deleted OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180829 17:58:02.296" critical="yes" starttime="20180829 17:58:02.267"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180829 17:58:02.297" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180829 17:58:02.297" starttime="20180829 17:58:02.297"></status>
</kw>
<doc>Checking Subnets deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20180829 17:58:02.298" starttime="20180829 17:57:58.829"></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="20180829 17:58:02.317" level="INFO">Creating Session using : alias=OSSession, url=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABbht6aSfstk1nd69e6qAgMlkCcULsBrNvGnLXyucFzgNrCY5-4gH4McbA4k1du_y5yQNXLxxHe3KdBRZMXmQ8ZZalSuz8pBHgE_8wW799aa-d8qBxLZG9rrO79nV35PuU-d5fV4lPdmlvC1bEqdS5LgUFoycHJJnORkTykrne6S_YVqco'},                     cookies=None, auth=None, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180829 17:58:02.317" starttime="20180829 17:58:02.317"></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="20180829 17:58:02.318" 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 0x7fa52f22e490&gt;, timeout=None, proxies=None, verify=False,                     debug=0 </msg>
<status status="PASS" endtime="20180829 17:58:02.319" starttime="20180829 17:58:02.318"></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="20180829 17:58:02.329" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/d368fc26-38f4-44bf-868f-9aa1d5106a70, headers=None json=None</msg>
<msg timestamp="20180829 17:58:02.329" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180829 17:58:02.329" starttime="20180829 17:58:02.319"></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="20180829 17:58:02.330" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:58:02.330" starttime="20180829 17:58:02.329"></status>
</kw>
<status status="PASS" endtime="20180829 17:58:02.330" starttime="20180829 17:58:02.319"></status>
</kw>
<status status="PASS" endtime="20180829 17:58:02.330" starttime="20180829 17:58:02.316"></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="20180829 17:58:02.332" level="INFO">{"network":{"name":"odl_network","admin_state_up":true}}</msg>
<status status="PASS" endtime="20180829 17:58:02.332" starttime="20180829 17:58:02.332"></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="20180829 17:58:02.338" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180829 17:58:03.300" level="INFO">Delete Request using : alias=OSSession, uri=/v2.0/networks/d368fc26-38f4-44bf-868f-9aa1d5106a70, data=(),                     headers=None, allow_redirects=True </msg>
<msg timestamp="20180829 17:58:03.301" level="INFO">${resp} = &lt;Response [204]&gt;</msg>
<status status="PASS" endtime="20180829 17:58:03.301" starttime="20180829 17:58:02.332"></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="20180829 17:58:03.302" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:58:03.302" starttime="20180829 17:58:03.301"></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="20180829 17:58:03.302" level="INFO"></msg>
<status status="PASS" endtime="20180829 17:58:03.303" starttime="20180829 17:58:03.302"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20180829 17:58:05.303" level="INFO">Slept 2 seconds</msg>
<status status="PASS" endtime="20180829 17:58:05.306" starttime="20180829 17:58:03.303"></status>
</kw>
<doc>Delete network in OpenStack</doc>
<tags>
<tag>Delete Network OpenStack Neutron</tag>
</tags>
<status status="PASS" endtime="20180829 17:58:05.306" critical="yes" starttime="20180829 17:58:02.330"></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="20180829 17:58:05.318" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None</msg>
<msg timestamp="20180829 17:58:05.318" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" endtime="20180829 17:58:05.319" starttime="20180829 17:58:05.308"></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="20180829 17:58:05.319" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:58:05.320" starttime="20180829 17:58:05.319"></status>
</kw>
<kw name="To Json" library="RequestsLibrary">
<doc>Convert a string to a JSON object</doc>
<arguments>
<arg>${resp.content}</arg>
</arguments>
<assign>
<var>${ODLResult}</var>
</assign>
<msg timestamp="20180829 17:58:05.320" level="INFO">To JSON using : content={
   "networks" : [ {
      "id" : "8a91c2aa-24c1-432d-8324-5448b4e666c0",
      "tenant_id" : "2f1f6fa26f6944ddbbd9a85ac05617e3",
      "project_id" : "2f1f6fa26f6944ddbbd9a85ac05617e3",
      "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="20180829 17:58:05.320" level="INFO">To JSON using : pretty_print=False </msg>
<msg timestamp="20180829 17:58:05.321" 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'2f1f6fa26f6944ddbbd9a85ac05617e3...</msg>
<status status="PASS" endtime="20180829 17:58:05.321" starttime="20180829 17:58:05.320"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${ODLResult}</arg>
</arguments>
<msg timestamp="20180829 17:58:05.321" 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'2f1f6fa26f6944ddbbd9a85ac05617e3', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 1, u'shared': False, u'project_id': u'2f1f6fa26f6944ddbbd9a85ac05617e3', u'id': u'8a91c2aa-24c1-432d-8324-5448b4e666c0'}, {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="20180829 17:58:05.321" starttime="20180829 17:58:05.321"></status>
</kw>
<kw name="Get Request" library="RequestsLibrary">
<doc>Send a GET request on the session object found using the</doc>
<arguments>
<arg>ODLSession</arg>
<arg>${NEUTRON_NETWORKS_API}/${NETID}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20180829 17:58:05.336" level="INFO">Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/d368fc26-38f4-44bf-868f-9aa1d5106a70, headers=None json=None</msg>
<msg timestamp="20180829 17:58:05.336" level="INFO">${resp} = &lt;Response [404]&gt;</msg>
<status status="PASS" endtime="20180829 17:58:05.337" starttime="20180829 17:58:05.321"></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="20180829 17:58:05.338" level="INFO">Argument types are:
&lt;type 'int'&gt;
&lt;type 'unicode'&gt;</msg>
<status status="PASS" endtime="20180829 17:58:05.338" starttime="20180829 17:58:05.337"></status>
</kw>
<doc>Check network deleted in OpenDaylight</doc>
<tags>
<tag>Check Network OpenDaylight</tag>
</tags>
<status status="PASS" endtime="20180829 17:58:05.338" critical="yes" starttime="20180829 17:58:05.307"></status>
</test>
<kw type="teardown" name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180829 17:58:05.339" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180829 17:58:05.340" starttime="20180829 17:58:05.339"></status>
</kw>
<doc>Checking Network deleted in OpenStack are deleted also in OpenDaylight</doc>
<status status="PASS" endtime="20180829 17:58:05.340" starttime="20180829 17:58:02.299"></status>
</suite>
<kw type="teardown" name="Stop Suite">
<kw name="Delete All Sessions" library="RequestsLibrary">
<doc>Removes all the session objects</doc>
<msg timestamp="20180829 17:58:05.343" level="INFO">Delete All Sessions</msg>
<status status="PASS" endtime="20180829 17:58:05.343" starttime="20180829 17:58:05.343"></status>
</kw>
<status status="PASS" endtime="20180829 17:58:05.344" starttime="20180829 17:58:05.343"></status>
</kw>
<doc>Test suite for Neutron Plugin</doc>
<status status="PASS" endtime="20180829 17:58:05.344" starttime="20180829 17:57:46.493"></status>
</suite>
<status status="FAIL" endtime="20180829 17:58:05.349" starttime="20180829 17:57:45.816"></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="20180829 17:57:46.535" level="WARN">Deprecation Warning: Use Post Request in the future</msg>
<msg timestamp="20180829 17:57:46.540" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180829 17:57:47.116" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180829 17:57:47.333" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180829 17:57:49.727" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180829 17:57:49.821" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180829 17:57:52.496" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180829 17:57:52.633" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180829 17:57:55.725" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180829 17:57:58.866" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
<msg timestamp="20180829 17:58:02.338" level="WARN">/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
</msg>
</errors>
</robot>
