Create Session: create a HTTP session to a server
KeyStoneSession
http://${OPENSTACK}:5000
headers=${HEADERS}
* * * Depricated - See Post Request now * * *
KeyStoneSession
/v2.0/tokens
${UserInfo}
${resp}
Starting new HTTP connection (1): 172.30.10.67
Deprication Warning Use Post Request in the future
${resp} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
200
Argument types are:
<type 'int'>
<type 'unicode'>
Convert a string to a JSON object
${resp.content}
${result}
${result} = {u'access': {u'token': {u'issued_at': u'2015-10-01T02:33:45.288774', u'expires': u'2015-10-01T03:33:45Z', u'id': u'823d3a9425ab4f41828abccc2fc1cebc', u'tenant': {u'description': u'admin tenant', u'ena...
Returns a value from the given ``dictionary`` based on the given ``key``.
${result}
access
${result}
${result} = {u'token': {u'issued_at': u'2015-10-01T02:33:45.288774', u'expires': u'2015-10-01T03:33:45Z', u'id': u'823d3a9425ab4f41828abccc2fc1cebc', u'tenant': {u'description': u'admin tenant', u'enabled': True,...
Returns a value from the given ``dictionary`` based on the given ``key``.
${result}
token
${result}
${result} = {u'issued_at': u'2015-10-01T02:33:45.288774', u'expires': u'2015-10-01T03:33:45Z', u'id': u'823d3a9425ab4f41828abccc2fc1cebc', u'tenant': {u'description': u'admin tenant', u'enabled': True, u'id': u'c...
Returns a value from the given ``dictionary`` based on the given ``key``.
${result}
id
${TOKEN}
${TOKEN} = 823d3a9425ab4f41828abccc2fc1cebc
Creates and returns a dictionary based on given items.
X-Auth-Token=${TOKEN}
Content-Type=application/json
${X-AUTH}
${X-AUTH} = {u'X-Auth-Token': u'823d3a9425ab4f41828abccc2fc1cebc', u'Content-Type': u'application/json'}
Makes a variable available globally in all tests and suites.
${X-AUTH}
${X-AUTH} = {u'X-Auth-Token': u'823d3a9425ab4f41828abccc2fc1cebc', u'Content-Type': u'application/json'}
Create Session: create a HTTP session to a server
OSSession
http://${OPENSTACK}:9696
headers=${X-AUTH}
Logs the given message with the given level.
${X-AUTH}
{u'X-Auth-Token': u'823d3a9425ab4f41828abccc2fc1cebc', u'Content-Type': u'application/json'}
* * * Depricated - See Get Request now * * *
OSSession
${OSREST}
${resp}
Starting new HTTP connection (1): 172.30.10.67
Deprication Warning Use Get Request in the future
${resp} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
200
Argument types are:
<type 'int'>
<type 'unicode'>
Convert a string to a JSON object
${resp.content}
${OSResult}
${OSResult} = {u'networks': [{u'status': u'ACTIVE', u'subnets': [u'496a01e2-6253-4b75-9b9e-0561abfa40d3'], u'name': u'net04_ext', u'provider:physical_network': None, u'admin_state_up': True, u'tenant_id': u'cd06a8b...
Makes a variable available everywhere within the scope of the current suite.
${OSResult}
${OSResult} = {u'networks': [{u'status': u'ACTIVE', u'subnets': [u'496a01e2-6253-4b75-9b9e-0561abfa40d3'], u'name': u'net04_ext', u'provider:physical_network': None, u'admin_state_up': True, u'tenant_id': u'cd06a8b...
Logs the given message with the given level.
${OSResult}
{u'networks': [{u'status': u'ACTIVE', u'subnets': [u'496a01e2-6253-4b75-9b9e-0561abfa40d3'], u'name': u'net04_ext', u'provider:physical_network': None, u'admin_state_up': True, u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'provider:network_type': u'local', u'router:external': True, u'shared': False, u'id': u'6058c54d-2bdb-4b2e-9aac-96b5b51cc859', u'provider:segmentation_id': None}, {u'status': u'ACTIVE', u'subnets': [u'626d2e74-09ce-4fbf-98c2-c022ee7f4c84'], u'name': u'net04', u'provider:physical_network': None, u'admin_state_up': True, u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'provider:network_type': u'vxlan', u'router:external': False, u'shared': False, u'id': u'635dbf9a-89be-4015-a37e-d1a2a2ac363f', u'provider:segmentation_id': 1}, {u'status': u'ACTIVE', u'subnets': [u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022'], u'name': u'functest-net', u'provider:physical_network': None, u'admin_state_up': True, u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'provider:network_type': u'vxlan', u'router:external': False, u'shared': False, u'id': u'e31386b0-fac1-47d2-aac1-032525932142', u'provider:segmentation_id': 36}]}
Checking OpenStack Neutron for known networks
Network Neutron OpenStack
Create Session: create a HTTP session to a server
ODLSession
http://${CONTROLLER}:${PORT}
headers=${HEADERS}
auth=${AUTH}
* * * Depricated - See Get Request now * * *
ODLSession
${ODLREST}
${resp}
Starting new HTTP connection (1): 172.30.10.67
Deprication Warning Use Get Request in the future
${resp} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
200
Argument types are:
<type 'int'>
<type 'unicode'>
Convert a string to a JSON object
${resp.content}
${ODLResult}
${ODLResult} = {u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'subnets': [u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022'], u'name': u'functest-net', u'admin_state_up': True, u'tenant_id': u'cd06a8b5cb574...
Makes a variable available everywhere within the scope of the current suite.
${ODLResult}
${ODLResult} = {u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'subnets': [u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022'], u'name': u'functest-net', u'admin_state_up': True, u'tenant_id': u'cd06a8b5cb574...
Logs the given message with the given level.
${ODLResult}
{u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'subnets': [u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022'], u'name': u'functest-net', u'admin_state_up': True, u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'provider:network_type': u'vxlan', u'shared': False, u'id': u'e31386b0-fac1-47d2-aac1-032525932142', u'provider:segmentation_id': u'36'}, {u'status': u'ACTIVE', u'router:external': True, u'subnets': [u'496a01e2-6253-4b75-9b9e-0561abfa40d3'], u'name': u'net04_ext', u'admin_state_up': True, u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'provider:network_type': u'local', u'shared': False, u'id': u'6058c54d-2bdb-4b2e-9aac-96b5b51cc859'}, {u'status': u'ACTIVE', u'router:external': False, u'subnets': [u'626d2e74-09ce-4fbf-98c2-c022ee7f4c84'], u'name': u'net04', u'admin_state_up': True, u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'provider:network_type': u'vxlan', u'shared': False, u'id': u'635dbf9a-89be-4015-a37e-d1a2a2ac363f', u'provider:segmentation_id': u'1'}]}
Checking OpenDaylight Neutron API for Known Networks
Network Neutron OpenDaylight
Logs the given message with the given level.
${postNet}
{"network":{"name":"odl_network","admin_state_up":true}}
* * * Depricated - See Post Request now * * *
OSSession
${OSREST}
data=${postNet}
${resp}
Resetting dropped connection: 172.30.10.67
Deprication Warning Use Post Request in the future
${resp} = <Response [201]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
201
Argument types are:
<type 'int'>
<type 'unicode'>
Convert a string to a JSON object
${resp.content}
${result}
${result} = {u'network': {u'status': u'ACTIVE', u'subnets': [], u'name': u'odl_network', u'provider:physical_network': None, u'admin_state_up': True, u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'provider:...
Returns a value from the given ``dictionary`` based on the given ``key``.
${result}
network
${result}
${result} = {u'status': u'ACTIVE', u'subnets': [], u'name': u'odl_network', u'provider:physical_network': None, u'admin_state_up': True, u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'provider:network_type'...
Returns a value from the given ``dictionary`` based on the given ``key``.
${result}
id
${NETID}
${NETID} = 40624b01-1c3b-4032-bf4d-81c1d3f4bbce
Logs the given message with the given level.
${result}
{u'status': u'ACTIVE', u'subnets': [], u'name': u'odl_network', u'provider:physical_network': None, u'admin_state_up': True, u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'provider:network_type': u'vxlan', u'router:external': False, u'shared': False, u'id': u'40624b01-1c3b-4032-bf4d-81c1d3f4bbce', u'provider:segmentation_id': 95}
Logs the given message with the given level.
${NETID}
40624b01-1c3b-4032-bf4d-81c1d3f4bbce
Makes a variable available globally in all tests and suites.
${NETID}
${NETID} = 40624b01-1c3b-4032-bf4d-81c1d3f4bbce
Pauses the test executed for the given time.
2
Slept 2 seconds
Create new network in OpenStack
Create Network OpenStack Neutron
* * * Depricated - See Get Request now * * *
ODLSession
${ODLREST}/${NetID}
${resp}
Resetting dropped connection: 172.30.10.67
Deprication Warning Use Get Request in the future
${resp} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
200
Argument types are:
<type 'int'>
<type 'unicode'>
Check Network created in OpenDaylight
Check
Network OpenDaylight
Removes all the session objects
Checking Network created in OpenStack are pushed to OpenDaylight
Create Session: create a HTTP session to a server
OSSession
http://${OPENSTACK}:9696
headers=${X-AUTH}
Logs the given message with the given level.
${X-AUTH}
{u'X-Auth-Token': u'823d3a9425ab4f41828abccc2fc1cebc', u'Content-Type': u'application/json'}
* * * Depricated - See Get Request now * * *
OSSession
${OSREST}
${resp}
Starting new HTTP connection (1): 172.30.10.67
Deprication Warning Use Get Request in the future
${resp} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
200
Argument types are:
<type 'int'>
<type 'unicode'>
Convert a string to a JSON object
${resp.content}
${OSResult}
${OSResult} = {u'subnets': [{u'name': u'net04_ext__subnet', u'enable_dhcp': False, u'network_id': u'6058c54d-2bdb-4b2e-9aac-96b5b51cc859', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'dns_nameservers': [], ...
Makes a variable available everywhere within the scope of the current suite.
${OSResult}
${OSResult} = {u'subnets': [{u'name': u'net04_ext__subnet', u'enable_dhcp': False, u'network_id': u'6058c54d-2bdb-4b2e-9aac-96b5b51cc859', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'dns_nameservers': [], ...
Logs the given message with the given level.
${OSResult}
{u'subnets': [{u'name': u'net04_ext__subnet', u'enable_dhcp': False, u'network_id': u'6058c54d-2bdb-4b2e-9aac-96b5b51cc859', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'172.30.10.160', u'end': u'172.30.10.254'}], u'gateway_ip': u'172.30.10.1', u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'172.30.10.0/24', u'id': u'496a01e2-6253-4b75-9b9e-0561abfa40d3'}, {u'name': u'net04__subnet', u'enable_dhcp': True, u'network_id': u'635dbf9a-89be-4015-a37e-d1a2a2ac363f', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'dns_nameservers': [u'8.8.4.4', u'8.8.8.8'], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'192.168.111.2', u'end': u'192.168.111.254'}], u'gateway_ip': u'192.168.111.1', u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'192.168.111.0/24', u'id': u'626d2e74-09ce-4fbf-98c2-c022ee7f4c84'}, {u'name': u'functest-subnet', u'enable_dhcp': True, u'network_id': u'e31386b0-fac1-47d2-aac1-032525932142', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'192.168.120.2', u'end': u'192.168.120.254'}], u'gateway_ip': u'192.168.120.1', u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'192.168.120.0/24', u'id': u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022'}]}
Checking OpenStack Neutron for known Subnets
Subnets Neutron OpenStack
Create Session: create a HTTP session to a server
ODLSession
http://${CONTROLLER}:${PORT}
headers=${HEADERS}
auth=${AUTH}
* * * Depricated - See Get Request now * * *
ODLSession
${ODLREST}
${resp}
Starting new HTTP connection (1): 172.30.10.67
Deprication Warning Use Get Request in the future
${resp} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
200
Argument types are:
<type 'int'>
<type 'unicode'>
Convert a string to a JSON object
${resp.content}
${ODLResult}
${ODLResult} = {u'subnets': [{u'name': u'net04_ext__subnet', u'enable_dhcp': False, u'network_id': u'6058c54d-2bdb-4b2e-9aac-96b5b51cc859', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'dns_nameservers': [], ...
Makes a variable available everywhere within the scope of the current suite.
${ODLResult}
${ODLResult} = {u'subnets': [{u'name': u'net04_ext__subnet', u'enable_dhcp': False, u'network_id': u'6058c54d-2bdb-4b2e-9aac-96b5b51cc859', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'dns_nameservers': [], ...
Logs the given message with the given level.
${ODLResult}
{u'subnets': [{u'name': u'net04_ext__subnet', u'enable_dhcp': False, u'network_id': u'6058c54d-2bdb-4b2e-9aac-96b5b51cc859', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'172.30.10.160', u'end': u'172.30.10.254'}], u'gateway_ip': u'172.30.10.1', u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'172.30.10.0/24', u'id': u'496a01e2-6253-4b75-9b9e-0561abfa40d3'}, {u'name': u'functest-subnet', u'enable_dhcp': True, u'network_id': u'e31386b0-fac1-47d2-aac1-032525932142', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'192.168.120.2', u'end': u'192.168.120.254'}], u'gateway_ip': u'192.168.120.1', u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'192.168.120.0/24', u'id': u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022'}, {u'name': u'net04__subnet', u'enable_dhcp': True, u'network_id': u'635dbf9a-89be-4015-a37e-d1a2a2ac363f', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'192.168.111.2', u'end': u'192.168.111.254'}], u'gateway_ip': u'192.168.111.1', u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'192.168.111.0/24', u'id': u'626d2e74-09ce-4fbf-98c2-c022ee7f4c84'}]}
Checking OpenDaylight Neutron API for Known Subnets
Subnets Neutron OpenDaylight
Logs the given message with the given level.
${data}
{"subnet":{"network_id":"40624b01-1c3b-4032-bf4d-81c1d3f4bbce","ip_version":4,"cidr":"172.16.64.0/24","allocation_pools":[{"start":"172.16.64.20","end":"172.16.64.120"}]}}
* * * Depricated - See Post Request now * * *
OSSession
${OSREST}
data=${data}
${resp}
Resetting dropped connection: 172.30.10.67
Deprication Warning Use Post Request in the future
${resp} = <Response [201]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
201
Argument types are:
<type 'int'>
<type 'unicode'>
Convert a string to a JSON object
${resp.content}
${result}
${result} = {u'subnet': {u'name': u'', u'enable_dhcp': True, u'network_id': u'40624b01-1c3b-4032-bf4d-81c1d3f4bbce', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'dns_nameservers': [], u'ipv6_ra_mode': Non...
Returns a value from the given ``dictionary`` based on the given ``key``.
${result}
subnet
${result}
${result} = {u'name': u'', u'enable_dhcp': True, u'network_id': u'40624b01-1c3b-4032-bf4d-81c1d3f4bbce', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocat...
Returns a value from the given ``dictionary`` based on the given ``key``.
${result}
id
${SUBNETID}
${SUBNETID} = 0f4dd6e6-79ab-49c4-950d-8ebb3a7850ef
Logs the given message with the given level.
${result}
{u'name': u'', u'enable_dhcp': True, u'network_id': u'40624b01-1c3b-4032-bf4d-81c1d3f4bbce', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'dns_nameservers': [], 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'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'172.16.64.0/24', u'id': u'0f4dd6e6-79ab-49c4-950d-8ebb3a7850ef'}
Logs the given message with the given level.
${SUBNETID}
0f4dd6e6-79ab-49c4-950d-8ebb3a7850ef
Makes a variable available globally in all tests and suites.
${SUBNETID}
${SUBNETID} = 0f4dd6e6-79ab-49c4-950d-8ebb3a7850ef
Pauses the test executed for the given time.
2
Slept 2 seconds
Create new subnet in OpenStack
Create Subnet OpenStack Neutron
* * * Depricated - See Get Request now * * *
ODLSession
${ODLREST}/${SUBNETID}
${resp}
Resetting dropped connection: 172.30.10.67
Deprication Warning Use Get Request in the future
${resp} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
200
Argument types are:
<type 'int'>
<type 'unicode'>
Check new subnet created in OpenDaylight
Check
subnet OpenDaylight
Removes all the session objects
Checking Subnets created in OpenStack are pushed to OpenDaylight
Create Session: create a HTTP session to a server
OSSession
http://${OPENSTACK}:9696
headers=${X-AUTH}
Logs the given message with the given level.
${X-AUTH}
{u'X-Auth-Token': u'823d3a9425ab4f41828abccc2fc1cebc', u'Content-Type': u'application/json'}
* * * Depricated - See Get Request now * * *
OSSession
${OSREST}
${resp}
Starting new HTTP connection (1): 172.30.10.67
Deprication Warning Use Get Request in the future
${resp} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
200
Argument types are:
<type 'int'>
<type 'unicode'>
Convert a string to a JSON object
${resp.content}
${OSResult}
${OSResult} = {u'ports': [{u'status': u'ACTIVE', u'binding:host_id': u'node-3.domain.tld', u'name': u'vping-port-2', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e31386b0-fac1-47d2-aac1-0...
Makes a variable available everywhere within the scope of the current suite.
${OSResult}
${OSResult} = {u'ports': [{u'status': u'ACTIVE', u'binding:host_id': u'node-3.domain.tld', u'name': u'vping-port-2', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e31386b0-fac1-47d2-aac1-0...
Logs the given message with the given level.
${OSResult}
{u'ports': [{u'status': u'ACTIVE', u'binding:host_id': u'node-3.domain.tld', u'name': u'vping-port-2', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e31386b0-fac1-47d2-aac1-032525932142', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'extra_dhcp_opts': [], u'binding:vif_details': {u'port_filter': True}, u'binding:vif_type': u'ovs', u'device_owner': u'', u'mac_address': u'fa:16:3e:7e:15:0e', u'binding:profile': {}, u'binding:vnic_type': u'normal', u'fixed_ips': [{u'subnet_id': u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022', u'ip_address': u'192.168.120.40'}], u'id': u'082960ab-d2cf-4ceb-88af-20741d279f25', u'security_groups': [u'69cef145-62dc-49ee-9208-9c700476af8a'], u'device_id': u''}, {u'status': u'ACTIVE', u'binding:host_id': u'node-3.domain.tld', u'name': u'vping-port-1', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e31386b0-fac1-47d2-aac1-032525932142', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'extra_dhcp_opts': [], u'binding:vif_details': {u'port_filter': True}, u'binding:vif_type': u'ovs', u'device_owner': u'', u'mac_address': u'fa:16:3e:b4:bd:64', u'binding:profile': {}, u'binding:vnic_type': u'normal', u'fixed_ips': [{u'subnet_id': u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022', u'ip_address': u'192.168.120.30'}], u'id': u'45004ec3-f5eb-4a1b-a260-7ab5d0ec5267', u'security_groups': [u'69cef145-62dc-49ee-9208-9c700476af8a'], u'device_id': u''}, {u'status': u'ACTIVE', u'binding:host_id': u'node-1.domain.tld', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e31386b0-fac1-47d2-aac1-032525932142', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'extra_dhcp_opts': [], u'binding:vif_details': {u'port_filter': True}, u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'mac_address': u'fa:16:3e:96:bb:9a', u'binding:profile': {}, u'binding:vnic_type': u'normal', u'fixed_ips': [{u'subnet_id': u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022', u'ip_address': u'192.168.120.2'}], u'id': u'679d81a3-072b-454a-93ca-d276808adb11', u'security_groups': [], u'device_id': u'dhcp9b3b6618-0449-5cf4-ba1a-1bd2727132bc-e31386b0-fac1-47d2-aac1-032525932142'}, {u'status': u'ACTIVE', u'binding:host_id': u'node-1.domain.tld', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'635dbf9a-89be-4015-a37e-d1a2a2ac363f', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'extra_dhcp_opts': [], u'binding:vif_details': {u'port_filter': True}, u'binding:vif_type': u'ovs', u'device_owner': u'network:router_interface', u'mac_address': u'fa:16:3e:c9:bf:b2', u'binding:profile': {}, u'binding:vnic_type': u'normal', u'fixed_ips': [{u'subnet_id': u'626d2e74-09ce-4fbf-98c2-c022ee7f4c84', u'ip_address': u'192.168.111.1'}], u'id': u'6bbb5ffa-b21e-423c-85b6-c4134f78f099', u'security_groups': [], u'device_id': u'3ef1d215-4774-473a-92cf-566ae8fa0947'}, {u'status': u'ACTIVE', u'binding:host_id': u'node-4.domain.tld', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e31386b0-fac1-47d2-aac1-032525932142', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'extra_dhcp_opts': [], u'binding:vif_details': {u'port_filter': True}, u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'mac_address': u'fa:16:3e:95:1c:11', u'binding:profile': {}, u'binding:vnic_type': u'normal', u'fixed_ips': [{u'subnet_id': u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022', u'ip_address': u'192.168.120.3'}], u'id': u'bb4c3c29-d2f4-47a8-b998-d0c0e2cded1f', u'security_groups': [], u'device_id': u'dhcp96333170-7ef4-5de5-a3f8-407858e19d51-e31386b0-fac1-47d2-aac1-032525932142'}, {u'status': u'ACTIVE', u'binding:host_id': u'node-1.domain.tld', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'6058c54d-2bdb-4b2e-9aac-96b5b51cc859', u'tenant_id': u'', u'extra_dhcp_opts': [], u'binding:vif_details': {u'port_filter': True}, u'binding:vif_type': u'ovs', u'device_owner': u'network:router_gateway', u'mac_address': u'fa:16:3e:e1:dd:22', u'binding:profile': {}, u'binding:vnic_type': u'normal', u'fixed_ips': [{u'subnet_id': u'496a01e2-6253-4b75-9b9e-0561abfa40d3', u'ip_address': u'172.30.10.160'}], u'id': u'da473412-a233-43ec-b4e5-7571fbe1287e', u'security_groups': [], u'device_id': u'3ef1d215-4774-473a-92cf-566ae8fa0947'}]}
Checking OpenStack Neutron for known ports
Ports Neutron OpenStack
Create Session: create a HTTP session to a server
ODLSession
http://${CONTROLLER}:${PORT}
headers=${HEADERS}
auth=${AUTH}
* * * Depricated - See Get Request now * * *
ODLSession
${ODLREST}
${resp}
Starting new HTTP connection (1): 172.30.10.67
Deprication Warning Use Get Request in the future
${resp} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
200
Argument types are:
<type 'int'>
<type 'unicode'>
Convert a string to a JSON object
${resp.content}
${ODLResult}
${ODLResult} = {u'ports': [{u'extra_dhcp_opts': [], u'binding:host_id': u'node-4.domain.tld', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e31386b0-fac1-47d2-aac1-03252593214...
Makes a variable available everywhere within the scope of the current suite.
${ODLResult}
${ODLResult} = {u'ports': [{u'extra_dhcp_opts': [], u'binding:host_id': u'node-4.domain.tld', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e31386b0-fac1-47d2-aac1-03252593214...
Logs the given message with the given level.
${ODLResult}
{u'ports': [{u'extra_dhcp_opts': [], u'binding:host_id': u'node-4.domain.tld', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e31386b0-fac1-47d2-aac1-032525932142', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'binding:vif_details': [{u'port_filter': True}], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:router_interface', u'mac_address': u'FA:16:3E:76:DD:86', u'fixed_ips': [{u'subnet_id': u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022', u'ip_address': u'192.168.120.1'}], u'id': u'25c189d8-be4e-4567-8701-63745f9ad536', u'security_groups': [], u'device_id': u'4ab3b252-477c-4efa-8528-89168b67970b'}, {u'extra_dhcp_opts': [], u'binding:host_id': u'node-3.domain.tld', u'name': u'vping-port-2', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e31386b0-fac1-47d2-aac1-032525932142', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'binding:vif_details': [{u'port_filter': True}], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'compute:None', u'mac_address': u'FA:16:3E:7E:15:0E', u'fixed_ips': [{u'subnet_id': u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022', u'ip_address': u'192.168.120.40'}], u'id': u'082960ab-d2cf-4ceb-88af-20741d279f25', u'security_groups': [{u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'description': u'default', u'id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'security_group_rules': [{u'ethertype': u'IPv4', u'direction': u'egress', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'id': u'7dd19fbf-906f-4edb-963b-e47e17c96b66', u'security_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a'}, {u'ethertype': u'IPv6', u'direction': u'egress', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'id': u'b016bd34-95f6-40fd-8b8f-c4d865256206', u'security_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a'}, {u'remote_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'direction': u'ingress', u'ethertype': u'IPv4', u'security_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'id': u'b1238bf2-e585-420f-b9d6-736b4e047523'}, {u'remote_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'direction': u'ingress', u'ethertype': u'IPv6', u'security_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'id': u'f48e531e-e0d4-4d78-9c07-420f110609b7'}], u'name': u'default'}], u'device_id': u'065220bd-3847-4578-bced-97429fce4cde'}, {u'extra_dhcp_opts': [], u'binding:host_id': u'node-1.domain.tld', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e31386b0-fac1-47d2-aac1-032525932142', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'binding:vif_details': [{u'port_filter': True}], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'mac_address': u'FA:16:3E:96:BB:9A', u'fixed_ips': [{u'subnet_id': u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022', u'ip_address': u'192.168.120.2'}], u'id': u'679d81a3-072b-454a-93ca-d276808adb11', u'security_groups': [], u'device_id': u'dhcp9b3b6618-0449-5cf4-ba1a-1bd2727132bc-e31386b0-fac1-47d2-aac1-032525932142'}, {u'extra_dhcp_opts': [], u'binding:host_id': u'node-4.domain.tld', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e31386b0-fac1-47d2-aac1-032525932142', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'binding:vif_details': [{u'port_filter': True}], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'mac_address': u'FA:16:3E:95:1C:11', u'fixed_ips': [{u'subnet_id': u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022', u'ip_address': u'192.168.120.3'}], u'id': u'bb4c3c29-d2f4-47a8-b998-d0c0e2cded1f', u'security_groups': [], u'device_id': u'dhcp96333170-7ef4-5de5-a3f8-407858e19d51-e31386b0-fac1-47d2-aac1-032525932142'}, {u'extra_dhcp_opts': [], u'binding:host_id': u'node-1.domain.tld', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'6058c54d-2bdb-4b2e-9aac-96b5b51cc859', u'tenant_id': u'', u'binding:vif_details': [{u'port_filter': True}], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:router_gateway', u'mac_address': u'FA:16:3E:E1:DD:22', u'fixed_ips': [{u'subnet_id': u'496a01e2-6253-4b75-9b9e-0561abfa40d3', u'ip_address': u'172.30.10.160'}], u'id': u'da473412-a233-43ec-b4e5-7571fbe1287e', u'security_groups': [], u'device_id': u'3ef1d215-4774-473a-92cf-566ae8fa0947'}, {u'extra_dhcp_opts': [], u'binding:host_id': u'node-1.domain.tld', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'635dbf9a-89be-4015-a37e-d1a2a2ac363f', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'binding:vif_details': [{u'port_filter': True}], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:router_interface', u'mac_address': u'FA:16:3E:C9:BF:B2', u'fixed_ips': [{u'subnet_id': u'626d2e74-09ce-4fbf-98c2-c022ee7f4c84', u'ip_address': u'192.168.111.1'}], u'id': u'6bbb5ffa-b21e-423c-85b6-c4134f78f099', u'security_groups': [], u'device_id': u'3ef1d215-4774-473a-92cf-566ae8fa0947'}, {u'extra_dhcp_opts': [], u'binding:host_id': u'node-3.domain.tld', u'name': u'vping-port-1', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e31386b0-fac1-47d2-aac1-032525932142', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'binding:vif_details': [{u'port_filter': True}], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'compute:None', u'mac_address': u'FA:16:3E:B4:BD:64', u'fixed_ips': [{u'subnet_id': u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022', u'ip_address': u'192.168.120.30'}], u'id': u'45004ec3-f5eb-4a1b-a260-7ab5d0ec5267', u'security_groups': [{u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'description': u'default', u'id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'security_group_rules': [{u'ethertype': u'IPv4', u'direction': u'egress', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'id': u'7dd19fbf-906f-4edb-963b-e47e17c96b66', u'security_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a'}, {u'ethertype': u'IPv6', u'direction': u'egress', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'id': u'b016bd34-95f6-40fd-8b8f-c4d865256206', u'security_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a'}, {u'remote_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'direction': u'ingress', u'ethertype': u'IPv4', u'security_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'id': u'b1238bf2-e585-420f-b9d6-736b4e047523'}, {u'remote_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'direction': u'ingress', u'ethertype': u'IPv6', u'security_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'id': u'f48e531e-e0d4-4d78-9c07-420f110609b7'}], u'name': u'default'}], u'device_id': u'f22d909a-9ecf-4a52-9529-ba78d22f3b93'}]}
Checking OpenDaylight Neutron API for Known Ports
Ports Neutron OpenDaylight
Logs the given message with the given level.
${data}
{"port":{"network_id":"40624b01-1c3b-4032-bf4d-81c1d3f4bbce","admin_state_up": true}}
* * * Depricated - See Post Request now * * *
OSSession
${OSREST}
data=${data}
${resp}
Resetting dropped connection: 172.30.10.67
Deprication Warning Use Post Request in the future
${resp} = <Response [201]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
201
Argument types are:
<type 'int'>
<type 'unicode'>
Convert a string to a JSON object
${resp.content}
${result}
${result} = {u'port': {u'status': u'DOWN', u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'40624b01-1c3b-4032-bf4d-81c1d3f4bbce', u'tenant_id': u'cd0...
Returns a value from the given ``dictionary`` based on the given ``key``.
${result}
port
${result}
${result} = {u'status': u'DOWN', u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'40624b01-1c3b-4032-bf4d-81c1d3f4bbce', u'tenant_id': u'cd06a8b5cb574...
Returns a value from the given ``dictionary`` based on the given ``key``.
${result}
id
${PORTID}
${PORTID} = a39ec04a-e702-4c99-b150-355dd377f08a
Logs the given message with the given level.
${result}
{u'status': u'DOWN', u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'40624b01-1c3b-4032-bf4d-81c1d3f4bbce', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'binding:vif_details': {}, u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'', u'mac_address': u'fa:16:3e:60:a3:4f', u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'0f4dd6e6-79ab-49c4-950d-8ebb3a7850ef', u'ip_address': u'172.16.64.20'}], u'id': u'a39ec04a-e702-4c99-b150-355dd377f08a', u'security_groups': [u'69cef145-62dc-49ee-9208-9c700476af8a'], u'device_id': u''}
Logs the given message with the given level.
${PORTID}
a39ec04a-e702-4c99-b150-355dd377f08a
Makes a variable available globally in all tests and suites.
${PORTID}
${PORTID} = a39ec04a-e702-4c99-b150-355dd377f08a
Pauses the test executed for the given time.
2
Slept 2 seconds
Create new port in OpenStack
Create port OpenStack Neutron
* * * Depricated - See Get Request now * * *
ODLSession
${ODLREST}/${PORTID}
${resp}
Resetting dropped connection: 172.30.10.67
Deprication Warning Use Get Request in the future
${resp} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
200
Argument types are:
<type 'int'>
<type 'unicode'>
Check new subnet created in OpenDaylight
Check subnet OpenDaylight
Removes all the session objects
Checking Port created in OpenStack are pushed to OpenDaylight
Create Session: create a HTTP session to a server
OSSession
http://${OPENSTACK}:9696
headers=${X-AUTH}
Logs the given message with the given level.
${data}
{"port":{"network_id":"40624b01-1c3b-4032-bf4d-81c1d3f4bbce","admin_state_up": true}}
Send a DELETE request on the session object found using the given `alias`
OSSession
${OSREST}
${resp}
Starting new HTTP connection (1): 172.30.10.67
${resp} = <Response [204]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
204
Argument types are:
<type 'int'>
<type 'unicode'>
Logs the given message with the given level.
${resp.content}
Pauses the test executed for the given time.
2
Slept 2 seconds
Delete previously created port in OpenStack
Delete port OpenStack Neutron
Create Session: create a HTTP session to a server
ODLSession
http://${CONTROLLER}:${PORT}
headers=${HEADERS}
auth=${AUTH}
Send a GET request on the session object found using the given `alias`
ODLSession
${ODLREST}
${resp}
Starting new HTTP connection (1): 172.30.10.67
${resp} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
200
Argument types are:
<type 'int'>
<type 'unicode'>
Convert a string to a JSON object
${resp.content}
${ODLResult}
${ODLResult} = {u'ports': [{u'extra_dhcp_opts': [], u'binding:host_id': u'node-1.domain.tld', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'40624b01-1c3b-4032-bf4d-81c1d3f4bbc...
Makes a variable available everywhere within the scope of the current suite.
${ODLResult}
${ODLResult} = {u'ports': [{u'extra_dhcp_opts': [], u'binding:host_id': u'node-1.domain.tld', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'40624b01-1c3b-4032-bf4d-81c1d3f4bbc...
Logs the given message with the given level.
${ODLResult}
{u'ports': [{u'extra_dhcp_opts': [], u'binding:host_id': u'node-1.domain.tld', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'40624b01-1c3b-4032-bf4d-81c1d3f4bbce', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'binding:vif_details': [{}], u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:dhcp', u'mac_address': u'FA:16:3E:14:09:71', u'fixed_ips': [{u'subnet_id': u'0f4dd6e6-79ab-49c4-950d-8ebb3a7850ef', u'ip_address': u'172.16.64.22'}], u'id': u'15bb4df2-faa0-4460-979b-40d611f4872d', u'security_groups': [], u'device_id': u'dhcp9b3b6618-0449-5cf4-ba1a-1bd2727132bc-40624b01-1c3b-4032-bf4d-81c1d3f4bbce'}, {u'extra_dhcp_opts': [], u'binding:host_id': u'node-4.domain.tld', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e31386b0-fac1-47d2-aac1-032525932142', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'binding:vif_details': [{u'port_filter': True}], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:router_interface', u'mac_address': u'FA:16:3E:76:DD:86', u'fixed_ips': [{u'subnet_id': u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022', u'ip_address': u'192.168.120.1'}], u'id': u'25c189d8-be4e-4567-8701-63745f9ad536', u'security_groups': [], u'device_id': u'4ab3b252-477c-4efa-8528-89168b67970b'}, {u'extra_dhcp_opts': [], u'binding:host_id': u'node-1.domain.tld', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'40624b01-1c3b-4032-bf4d-81c1d3f4bbce', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'binding:vif_details': [{}], u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:dhcp', u'mac_address': u'FA:16:3E:56:AE:81', u'fixed_ips': [{u'subnet_id': u'0f4dd6e6-79ab-49c4-950d-8ebb3a7850ef', u'ip_address': u'172.16.64.23'}], u'id': u'ee77843f-0adb-490b-859a-e2d3f061cb0a', u'security_groups': [], u'device_id': u'dhcp9b3b6618-0449-5cf4-ba1a-1bd2727132bc-40624b01-1c3b-4032-bf4d-81c1d3f4bbce'}, {u'extra_dhcp_opts': [], u'binding:host_id': u'node-3.domain.tld', u'name': u'vping-port-2', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e31386b0-fac1-47d2-aac1-032525932142', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'binding:vif_details': [{u'port_filter': True}], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'compute:None', u'mac_address': u'FA:16:3E:7E:15:0E', u'fixed_ips': [{u'subnet_id': u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022', u'ip_address': u'192.168.120.40'}], u'id': u'082960ab-d2cf-4ceb-88af-20741d279f25', u'security_groups': [{u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'description': u'default', u'id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'security_group_rules': [{u'ethertype': u'IPv4', u'direction': u'egress', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'id': u'7dd19fbf-906f-4edb-963b-e47e17c96b66', u'security_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a'}, {u'ethertype': u'IPv6', u'direction': u'egress', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'id': u'b016bd34-95f6-40fd-8b8f-c4d865256206', u'security_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a'}, {u'remote_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'direction': u'ingress', u'ethertype': u'IPv4', u'security_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'id': u'b1238bf2-e585-420f-b9d6-736b4e047523'}, {u'remote_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'direction': u'ingress', u'ethertype': u'IPv6', u'security_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'id': u'f48e531e-e0d4-4d78-9c07-420f110609b7'}], u'name': u'default'}], u'device_id': u'065220bd-3847-4578-bced-97429fce4cde'}, {u'extra_dhcp_opts': [], u'binding:host_id': u'node-1.domain.tld', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e31386b0-fac1-47d2-aac1-032525932142', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'binding:vif_details': [{u'port_filter': True}], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'mac_address': u'FA:16:3E:96:BB:9A', u'fixed_ips': [{u'subnet_id': u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022', u'ip_address': u'192.168.120.2'}], u'id': u'679d81a3-072b-454a-93ca-d276808adb11', u'security_groups': [], u'device_id': u'dhcp9b3b6618-0449-5cf4-ba1a-1bd2727132bc-e31386b0-fac1-47d2-aac1-032525932142'}, {u'extra_dhcp_opts': [], u'binding:host_id': u'node-4.domain.tld', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e31386b0-fac1-47d2-aac1-032525932142', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'binding:vif_details': [{u'port_filter': True}], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'mac_address': u'FA:16:3E:95:1C:11', u'fixed_ips': [{u'subnet_id': u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022', u'ip_address': u'192.168.120.3'}], u'id': u'bb4c3c29-d2f4-47a8-b998-d0c0e2cded1f', u'security_groups': [], u'device_id': u'dhcp96333170-7ef4-5de5-a3f8-407858e19d51-e31386b0-fac1-47d2-aac1-032525932142'}, {u'extra_dhcp_opts': [], u'binding:host_id': u'node-1.domain.tld', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'6058c54d-2bdb-4b2e-9aac-96b5b51cc859', u'tenant_id': u'', u'binding:vif_details': [{u'port_filter': True}], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:router_gateway', u'mac_address': u'FA:16:3E:E1:DD:22', u'fixed_ips': [{u'subnet_id': u'496a01e2-6253-4b75-9b9e-0561abfa40d3', u'ip_address': u'172.30.10.160'}], u'id': u'da473412-a233-43ec-b4e5-7571fbe1287e', u'security_groups': [], u'device_id': u'3ef1d215-4774-473a-92cf-566ae8fa0947'}, {u'extra_dhcp_opts': [], u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'40624b01-1c3b-4032-bf4d-81c1d3f4bbce', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'binding:vif_details': [{}], u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'', u'mac_address': u'FA:16:3E:60:A3:4F', u'fixed_ips': [{u'subnet_id': u'0f4dd6e6-79ab-49c4-950d-8ebb3a7850ef', u'ip_address': u'172.16.64.20'}], u'id': u'a39ec04a-e702-4c99-b150-355dd377f08a', u'security_groups': [{u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'description': u'default', u'id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'security_group_rules': [{u'ethertype': u'IPv4', u'direction': u'egress', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'id': u'7dd19fbf-906f-4edb-963b-e47e17c96b66', u'security_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a'}, {u'ethertype': u'IPv6', u'direction': u'egress', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'id': u'b016bd34-95f6-40fd-8b8f-c4d865256206', u'security_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a'}, {u'remote_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'direction': u'ingress', u'ethertype': u'IPv4', u'security_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'id': u'b1238bf2-e585-420f-b9d6-736b4e047523'}, {u'remote_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'direction': u'ingress', u'ethertype': u'IPv6', u'security_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'id': u'f48e531e-e0d4-4d78-9c07-420f110609b7'}], u'name': u'default'}], u'device_id': u''}, {u'extra_dhcp_opts': [], u'binding:host_id': u'node-1.domain.tld', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'635dbf9a-89be-4015-a37e-d1a2a2ac363f', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'binding:vif_details': [{u'port_filter': True}], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:router_interface', u'mac_address': u'FA:16:3E:C9:BF:B2', u'fixed_ips': [{u'subnet_id': u'626d2e74-09ce-4fbf-98c2-c022ee7f4c84', u'ip_address': u'192.168.111.1'}], u'id': u'6bbb5ffa-b21e-423c-85b6-c4134f78f099', u'security_groups': [], u'device_id': u'3ef1d215-4774-473a-92cf-566ae8fa0947'}, {u'extra_dhcp_opts': [], u'binding:host_id': u'node-1.domain.tld', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'635dbf9a-89be-4015-a37e-d1a2a2ac363f', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'binding:vif_details': [{u'port_filter': True}], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'mac_address': u'FA:16:3E:23:C1:33', u'fixed_ips': [{u'subnet_id': u'626d2e74-09ce-4fbf-98c2-c022ee7f4c84', u'ip_address': u'192.168.111.2'}], u'id': u'87feaf95-d84c-4a78-9327-10c0b65cd24a', u'security_groups': [], u'device_id': u'dhcp9b3b6618-0449-5cf4-ba1a-1bd2727132bc-635dbf9a-89be-4015-a37e-d1a2a2ac363f'}, {u'extra_dhcp_opts': [], u'binding:host_id': u'node-3.domain.tld', u'name': u'vping-port-1', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e31386b0-fac1-47d2-aac1-032525932142', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'binding:vif_details': [{u'port_filter': True}], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'compute:None', u'mac_address': u'FA:16:3E:B4:BD:64', u'fixed_ips': [{u'subnet_id': u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022', u'ip_address': u'192.168.120.30'}], u'id': u'45004ec3-f5eb-4a1b-a260-7ab5d0ec5267', u'security_groups': [{u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'description': u'default', u'id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'security_group_rules': [{u'ethertype': u'IPv4', u'direction': u'egress', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'id': u'7dd19fbf-906f-4edb-963b-e47e17c96b66', u'security_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a'}, {u'ethertype': u'IPv6', u'direction': u'egress', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'id': u'b016bd34-95f6-40fd-8b8f-c4d865256206', u'security_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a'}, {u'remote_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'direction': u'ingress', u'ethertype': u'IPv4', u'security_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'id': u'b1238bf2-e585-420f-b9d6-736b4e047523'}, {u'remote_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'direction': u'ingress', u'ethertype': u'IPv6', u'security_group_id': u'69cef145-62dc-49ee-9208-9c700476af8a', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'id': u'f48e531e-e0d4-4d78-9c07-420f110609b7'}], u'name': u'default'}], u'device_id': u'f22d909a-9ecf-4a52-9529-ba78d22f3b93'}, {u'extra_dhcp_opts': [], u'binding:host_id': u'node-4.domain.tld', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'40624b01-1c3b-4032-bf4d-81c1d3f4bbce', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'binding:vif_details': [{u'port_filter': True}], u'binding:vnic_type': u'normal', u'binding:vif_type': u'ovs', u'device_owner': u'network:dhcp', u'mac_address': u'FA:16:3E:94:7F:F3', u'fixed_ips': [{u'subnet_id': u'0f4dd6e6-79ab-49c4-950d-8ebb3a7850ef', u'ip_address': u'172.16.64.21'}], u'id': u'8f21ff6c-485a-4450-98af-259fdb9a72b3', u'security_groups': [], u'device_id': u'dhcp96333170-7ef4-5de5-a3f8-407858e19d51-40624b01-1c3b-4032-bf4d-81c1d3f4bbce'}]}
Send a GET request on the session object found using the given `alias`
ODLSession
${ODLREST}/${PORTID}
${resp}
Resetting dropped connection: 172.30.10.67
${resp} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
204
Argument types are:
<type 'int'>
<type 'unicode'>
200 != 204
Check port deleted in OpenDaylight
Check port deleted OpenDaylight
200 != 204
Removes all the session objects
Checking Port deleted in OpenStack are deleted also in OpenDaylight
Create Session: create a HTTP session to a server
OSSession
http://${OPENSTACK}:9696
headers=${X-AUTH}
Logs the given message with the given level.
${data}
{"subnet":{"network_id":"40624b01-1c3b-4032-bf4d-81c1d3f4bbce","ip_version":4,"cidr":"172.16.64.0/24","allocation_pools":[{"start":"172.16.64.20","end":"172.16.64.120"}]}}
Send a DELETE request on the session object found using the given `alias`
OSSession
${OSREST}
${resp}
Starting new HTTP connection (1): 172.30.10.67
${resp} = <Response [204]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
204
Argument types are:
<type 'int'>
<type 'unicode'>
Logs the given message with the given level.
${resp.content}
Pauses the test executed for the given time.
2
Slept 2 seconds
Delete previously created subnet in OpenStack
Delete Subnet OpenStack Neutron
Create Session: create a HTTP session to a server
ODLSession
http://${CONTROLLER}:${PORT}
headers=${HEADERS}
auth=${AUTH}
Send a GET request on the session object found using the given `alias`
ODLSession
${ODLREST}
${resp}
Starting new HTTP connection (1): 172.30.10.67
${resp} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
200
Argument types are:
<type 'int'>
<type 'unicode'>
Convert a string to a JSON object
${resp.content}
${ODLResult}
${ODLResult} = {u'subnets': [{u'name': u'', u'enable_dhcp': True, u'network_id': u'40624b01-1c3b-4032-bf4d-81c1d3f4bbce', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'dns_nameservers': [], u'ipv6_ra_mode': N...
Makes a variable available everywhere within the scope of the current suite.
${ODLResult}
${ODLResult} = {u'subnets': [{u'name': u'', u'enable_dhcp': True, u'network_id': u'40624b01-1c3b-4032-bf4d-81c1d3f4bbce', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'dns_nameservers': [], u'ipv6_ra_mode': N...
Logs the given message with the given level.
${ODLResult}
{u'subnets': [{u'name': u'', u'enable_dhcp': True, u'network_id': u'40624b01-1c3b-4032-bf4d-81c1d3f4bbce', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'dns_nameservers': [], 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'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'172.16.64.0/24', u'id': u'0f4dd6e6-79ab-49c4-950d-8ebb3a7850ef'}, {u'name': u'net04_ext__subnet', u'enable_dhcp': False, u'network_id': u'6058c54d-2bdb-4b2e-9aac-96b5b51cc859', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'172.30.10.160', u'end': u'172.30.10.254'}], u'gateway_ip': u'172.30.10.1', u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'172.30.10.0/24', u'id': u'496a01e2-6253-4b75-9b9e-0561abfa40d3'}, {u'name': u'functest-subnet', u'enable_dhcp': True, u'network_id': u'e31386b0-fac1-47d2-aac1-032525932142', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'192.168.120.2', u'end': u'192.168.120.254'}], u'gateway_ip': u'192.168.120.1', u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'192.168.120.0/24', u'id': u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022'}, {u'name': u'net04__subnet', u'enable_dhcp': True, u'network_id': u'635dbf9a-89be-4015-a37e-d1a2a2ac363f', u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'192.168.111.2', u'end': u'192.168.111.254'}], u'gateway_ip': u'192.168.111.1', u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'192.168.111.0/24', u'id': u'626d2e74-09ce-4fbf-98c2-c022ee7f4c84'}]}
Send a GET request on the session object found using the given `alias`
ODLSession
${ODLREST}/${SUBNETID}
${resp}
Resetting dropped connection: 172.30.10.67
${resp} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
204
Argument types are:
<type 'int'>
<type 'unicode'>
200 != 204
Check subnet deleted in OpenDaylight
Check subnet deleted OpenDaylight
200 != 204
Removes all the session objects
Checking Subnets deleted in OpenStack are deleted also in OpenDaylight
Create Session: create a HTTP session to a server
OSSession
http://${OPENSTACK}:9696
headers=${X-AUTH}
Logs the given message with the given level.
${postNet}
{"network":{"name":"odl_network","admin_state_up":true}}
Send a DELETE request on the session object found using the given `alias`
OSSession
${OSREST}
${resp}
Starting new HTTP connection (1): 172.30.10.67
${resp} = <Response [204]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
204
Argument types are:
<type 'int'>
<type 'unicode'>
Logs the given message with the given level.
${resp.content}
Pauses the test executed for the given time.
2
Slept 2 seconds
Delete network in OpenStack
Delete Network OpenStack Neutron
Create Session: create a HTTP session to a server
ODLSession
http://${CONTROLLER}:${PORT}
headers=${HEADERS}
auth=${AUTH}
Send a GET request on the session object found using the given `alias`
ODLSession
${ODLREST}
${resp}
Starting new HTTP connection (1): 172.30.10.67
${resp} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
200
Argument types are:
<type 'int'>
<type 'unicode'>
Convert a string to a JSON object
${resp.content}
${ODLResult}
${ODLResult} = {u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'subnets': [u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022'], u'name': u'functest-net', u'admin_state_up': True, u'tenant_id': u'cd06a8b5cb574...
Makes a variable available everywhere within the scope of the current suite.
${ODLResult}
${ODLResult} = {u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'subnets': [u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022'], u'name': u'functest-net', u'admin_state_up': True, u'tenant_id': u'cd06a8b5cb574...
Logs the given message with the given level.
${ODLResult}
{u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'subnets': [u'8a1d1e9e-c4de-4f33-933b-2bbf6aa81022'], u'name': u'functest-net', u'admin_state_up': True, u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'provider:network_type': u'vxlan', u'shared': False, u'id': u'e31386b0-fac1-47d2-aac1-032525932142', u'provider:segmentation_id': u'36'}, {u'status': u'ACTIVE', u'router:external': False, u'subnets': [u'0f4dd6e6-79ab-49c4-950d-8ebb3a7850ef'], u'name': u'odl_network', u'admin_state_up': True, u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'provider:network_type': u'vxlan', u'shared': False, u'id': u'40624b01-1c3b-4032-bf4d-81c1d3f4bbce', u'provider:segmentation_id': u'95'}, {u'status': u'ACTIVE', u'router:external': True, u'subnets': [u'496a01e2-6253-4b75-9b9e-0561abfa40d3'], u'name': u'net04_ext', u'admin_state_up': True, u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'provider:network_type': u'local', u'shared': False, u'id': u'6058c54d-2bdb-4b2e-9aac-96b5b51cc859'}, {u'status': u'ACTIVE', u'router:external': False, u'subnets': [u'626d2e74-09ce-4fbf-98c2-c022ee7f4c84'], u'name': u'net04', u'admin_state_up': True, u'tenant_id': u'cd06a8b5cb574fac88808d1102a37422', u'provider:network_type': u'vxlan', u'shared': False, u'id': u'635dbf9a-89be-4015-a37e-d1a2a2ac363f', u'provider:segmentation_id': u'1'}]}
Send a GET request on the session object found using the given `alias`
ODLSession
${ODLREST}/${NetID}
${resp}
Resetting dropped connection: 172.30.10.67
${resp} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
204
Argument types are:
<type 'int'>
<type 'unicode'>
200 != 204
Check Network deleted in OpenDaylight
Check
Network OpenDaylight
200 != 204
Removes all the session objects
Checking Network deleted in OpenStack are deleted also in OpenDaylight
Removes all the session objects
Test suite for Neutron Plugin
Critical Tests
All Tests
Check
Check port deleted OpenDaylight
Check subnet deleted OpenDaylight
Check subnet OpenDaylight
Create Network OpenStack Neutron
Create port OpenStack Neutron
Create Subnet OpenStack Neutron
Delete Network OpenStack Neutron
Delete port OpenStack Neutron
Delete Subnet OpenStack Neutron
Network Neutron OpenDaylight
Network Neutron OpenStack
Network OpenDaylight
Ports Neutron OpenDaylight
Ports Neutron OpenStack
subnet OpenDaylight
Subnets Neutron OpenDaylight
Subnets Neutron OpenStack
Neutron
Neutron.Networks
Neutron.Subnets
Neutron.Ports
Neutron.Delete Ports
Neutron.Delete Subnets
Neutron.Delete Networks