Create Session: create a HTTP session to a server
session
http://${ODL_SYSTEM_IP}:${RESTCONFPORT}
auth=${AUTH}
headers=${HEADERS_XML}
Creating Session using : alias=session, url=http://192.30.9.6:8081, headers={u'Content-Type': u'application/xml'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7fd1f82bd110>, timeout=None, proxies=None, verify=False, debug=0
Send a GET request on the session object found using the
session
${MODULES_API}
${resp}
Get Request using : alias=session, uri=/restconf/modules, headers=None json=None
${resp} = <Response [200]>
Logs the given message with the given level.
${resp.content}
{"modules":{"module":[{"name":"dhcpservice-config","revision":"2015-07-10","namespace":"urn:opendaylight:params:xml:ns:yang:dhcpservice:config"},{"name":"service","revision":"2017-06-11","namespace":"urn:opendaylight:coe:northbound:service"},{"name":"neutron-sfc-flow-classifier","revision":"2016-05-11","namespace":"urn:opendaylight:neutron-sfc-flow-classifier"},{"name":"system-notifications","revision":"2013-09-27","namespace":"urn:opendaylight:openflow:system"},{"name":"neutron-types","revision":"2016-05-17","namespace":"urn:opendaylight:neutron-types"},{"name":"actor-system-provider-impl","revision":"2015-10-05","namespace":"urn:opendaylight:params:xml:ns:yang:controller:config:actor-system-provider:impl"},{"name":"config","revision":"2013-04-05","namespace":"urn:opendaylight:params:xml:ns:yang:controller:config"},{"name":"netty","revision":"2013-11-19","namespace":"urn:opendaylight:params:xml:ns:yang:controller:netty"},{"name":"aclservice","revision":"2016-06-08","namespace":"urn:opendaylight:netvirt:aclservice"},{"name":"odl-arputil","revision":"2016-04-06","namespace":"urn:opendaylight:genius:arputil"},{"name":"sal-experimenter-message","revision":"2015-10-20","namespace":"urn:opendaylight:experimenter-message:service"},{"name":"distributed-datastore-provider","revision":"2014-06-12","namespace":"urn:opendaylight:params:xml:ns:yang:controller:config:distributed-datastore-provider"},{"name":"neutron-L3","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-L3"},{"name":"sal-meter","revision":"2013-09-18","namespace":"urn:opendaylight:meter:service"},{"name":"elan-config","revision":"2015-07-10","namespace":"urn:opendaylight:netvirt:elan:config"},{"name":"elan","revision":"2015-06-02","namespace":"urn:opendaylight:netvirt:elan"},{"name":"elan-statistics","revision":"2015-08-24","namespace":"urn:opendaylight:netvirt:elan:statistics"},{"name":"opendaylight-flow-types","revision":"2013-10-26","namespace":"urn:opendaylight:flow:types"},{"name":"flow-errors","revision":"2013-11-16","namespace":"urn:opendaylight:flow:errors"},{"name":"openflowplugin-extension-general","revision":"2014-07-14","namespace":"urn:opendaylight:openflowplugin:extension:general"},{"name":"neutron-sfc","revision":"2016-05-11","namespace":"urn:opendaylight:neutron-sfc"},{"name":"sal-experimenter-mp-message","revision":"2015-10-20","namespace":"urn:opendaylight:experimenter-mp-message:service"},{"name":"ietf-access-control-list","revision":"2016-02-18","namespace":"urn:ietf:params:xml:ns:yang:ietf-access-control-list"},{"name":"sal-bundle","revision":"2017-01-24","namespace":"urn:opendaylight:openflowplugin:extension:onf:bundle:service"},{"name":"aaa-cert","revision":"2015-11-26","namespace":"urn:opendaylight:yang:aaa:cert"},{"name":"rpc-context","revision":"2013-06-17","namespace":"urn:ietf:params:xml:ns:yang:rpc-context"},{"name":"odl-fib","revision":"2015-03-30","namespace":"urn:opendaylight:netvirt:fibmanager"},{"name":"neutron-metering","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-metering"},{"name":"itm","revision":"2016-04-06","namespace":"urn:opendaylight:genius:itm"},{"name":"opendaylight-multipart-types","revision":"2017-01-12","namespace":"urn:opendaylight:multipart:types"},{"name":"ietf-restconf-monitoring","revision":"2017-01-26","namespace":"urn:ietf:params:xml:ns:yang:ietf-restconf-monitoring"},{"name":"l3nexthop","revision":"2015-04-09","namespace":"urn:opendaylight:netvirt:l3nexthop"},{"name":"ietf-inet-types","revision":"2010-09-24","namespace":"urn:ietf:params:xml:ns:yang:ietf-inet-types"},{"name":"network-topology","revision":"2013-07-12","namespace":"urn:TBD:params:xml:ns:yang:network-topology"},{"name":"iana-if-type","revision":"2014-05-08","namespace":"urn:ietf:params:xml:ns:yang:iana-if-type"},{"name":"opendaylight-topology","revision":"2013-10-30","namespace":"urn:opendaylight:model:topology:general"},{"name":"sal-flows-batch","revision":"2016-03-14","namespace":"urn:opendaylight:flows:service"},{"name":"ietf-inet-types","revision":"2013-07-15","namespace":"urn:ietf:params:xml:ns:yang:ietf-inet-types"},{"name":"reconciliation-result-state","revision":"2017-07-13","namespace":"urn:opendaylight:params:xml:ns:yang:openflowplugin:rf:state"},{"name":"opendaylight-topology-inventory","revision":"2013-10-30","namespace":"urn:opendaylight:model:topology:inventory"},{"name":"acl-live-statistics","revision":"2016-11-29","namespace":"urn:opendaylight:netvirt:acl:live:statistics"},{"name":"opendaylight-md-sal-binding","revision":"2013-10-28","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding"},{"name":"neutron-qos","revision":"2016-06-13","namespace":"urn:opendaylight:neutron-qos"},{"name":"batch-common","revision":"2016-03-22","namespace":"urn:opendaylight:service:batch:common"},{"name":"l3-unicast-igp-topology","revision":"2013-07-12","namespace":"urn:TBD:params:xml:ns:yang:nt:l3-unicast-igp-topology"},{"name":"openflowplugin-extension-registry","revision":"2015-04-25","namespace":"urn:opendaylight:params:xml:ns:yang:openflowplugin:extension:api"},{"name":"opendaylight-group-types","revision":"2013-10-18","namespace":"urn:opendaylight:group:types"},{"name":"odl-nat","revision":"2016-01-11","namespace":"urn:opendaylight:netvirt:natservice"},{"name":"neutron-constants","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-constants"},{"name":"sal-flat-batch","revision":"2016-03-21","namespace":"urn:opendaylight:flat-batch:service"},{"name":"opendaylight-inmemory-datastore-provider","revision":"2014-06-17","namespace":"urn:opendaylight:params:xml:ns:yang:controller:inmemory-datastore-provider"},{"name":"opendaylight-port-types","revision":"2013-09-25","namespace":"urn:opendaylight:flow:types:port"},{"name":"aaa-cert-mdsal","revision":"2016-03-21","namespace":"urn:opendaylight:yang:aaa:cert:mdsal"},{"name":"opendaylight-entity-ownership-service","revision":"2015-08-10","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:spi:entity-ownership-service"},{"name":"statistics","revision":"2017-01-20","namespace":"urn:opendaylight:netvirt:statistics"},{"name":"opendaylight-ipv6-arbitrary-bitmask-fields","revision":"2016-02-24","namespace":"urn:opendaylight:opendaylight-ipv6-arbitrary-bitmask-fields"},{"name":"neutron-binding","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-binding"},{"name":"general-entity","revision":"2015-08-20","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity"},{"name":"odl-l3vpn","revision":"2013-09-11","namespace":"urn:opendaylight:netvirt:l3vpn"},{"name":"ietf-network-topology","revision":"2015-06-08","namespace":"urn:ietf:params:xml:ns:yang:ietf-network-topology"},{"name":"opendaylight-inventory","revision":"2013-08-19","namespace":"urn:opendaylight:inventory"},{"name":"odl-general-entity","revision":"2015-09-30","namespace":"urn:opendaylight:params:xml:ns:yang:mdsal:core:general-entity"},{"name":"opendaylight-port-statistics","revision":"2013-12-14","namespace":"urn:opendaylight:port:statistics"},{"name":"flow-node-inventory","revision":"2013-08-19","namespace":"urn:opendaylight:flow:inventory"},{"name":"cluster-singleton-service-spi","revision":"2016-07-18","namespace":"urn:opendaylight:params:xml:ns:yang:md:sal:config:spi:cluster-singleton-service"},{"name":"aliveness-monitor","revision":"2016-04-11","namespace":"urn:opendaylight:genius:alivenessmonitor"},{"name":"neutron-vpnaas","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-vpnaas"},{"name":"neutron-ports","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-ports"},{"name":"network-topology","revision":"2013-10-21","namespace":"urn:TBD:params:xml:ns:yang:network-topology"},{"name":"neutron-hostconfig","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-hostconfig"},{"name":"hwvtep","revision":"2015-09-01","namespace":"urn:opendaylight:params:xml:ns:yang:ovsdb:hwvtep"},{"name":"neutron-fwaas","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-fwaas"},{"name":"node-error","revision":"2014-04-10","namespace":"urn:opendaylight:node:error:service"},{"name":"sal-port","revision":"2013-11-07","namespace":"urn:opendaylight:port:service"},{"name":"isis-topology","revision":"2013-07-12","namespace":"urn:TBD:params:xml:ns:yang:network:isis-topology"},{"name":"opendaylight-arbitrary-bitmask-fields","revision":"2016-01-30","namespace":"urn:opendaylight:arbitrary:bitmask:fields"},{"name":"l3vpn","revision":"2014-08-15","namespace":"urn:huawei:params:xml:ns:yang:l3vpn"},{"name":"ietf-yang-types","revision":"2013-07-15","namespace":"urn:ietf:params:xml:ns:yang:ietf-yang-types"},{"name":"openflow-types","revision":"2013-07-31","namespace":"urn:opendaylight:openflow:common:types"},{"name":"ovsdb","revision":"2015-01-05","namespace":"urn:opendaylight:params:xml:ns:yang:ovsdb"},{"name":"opendaylight-meter-types","revision":"2013-09-18","namespace":"urn:opendaylight:meter:types"},{"name":"ietf-restconf","revision":"2017-01-26","namespace":"urn:ietf:params:xml:ns:yang:ietf-restconf"},{"name":"dhcpservice-api","revision":"2015-07-10","namespace":"urn:opendaylight:params:xml:ns:yang:dhcpservice:api"},{"name":"isis-topology","revision":"2013-10-21","namespace":"urn:TBD:params:xml:ns:yang:network:isis-topology"},{"name":"ietf-lisp-address-types","revision":"2015-11-05","namespace":"urn:ietf:params:xml:ns:yang:ietf-lisp-address-types"},{"name":"opendaylight-direct-statistics","revision":"2016-05-11","namespace":"urn:opendaylight:direct:statistics"},{"name":"opendaylight-topology-view","revision":"2013-10-30","namespace":"urn:opendaylight:model:topology:view"},{"name":"neighbor-discovery","revision":"2016-06-20","namespace":"urn:opendaylight:netvirt:ipv6service:nd:packet"},{"name":"opendaylight-meter-statistics","revision":"2013-11-11","namespace":"urn:opendaylight:meter:statistics"},{"name":"ospf-topology","revision":"2013-07-12","namespace":"urn:ietf:params:xml:ns:yang:ospf-topology"},{"name":"opendaylight-match-types","revision":"2013-10-26","namespace":"urn:opendaylight:model:match:types"},{"name":"opendaylight-group-statistics","revision":"2013-11-11","namespace":"urn:opendaylight:group:statistics"},{"name":"ted","revision":"2013-07-12","namespace":"urn:TBD:params:xml:ns:yang:network:ted"},{"name":"sal-remote","revision":"2014-01-14","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:remote"},{"name":"neutron-provider","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-provider"},{"name":"odl-interface-rpc","revision":"2016-04-06","namespace":"urn:opendaylight:genius:interfacemanager:rpcs"},{"name":"ietf-network","revision":"2015-06-08","namespace":"urn:ietf:params:xml:ns:yang:ietf-network"},{"name":"neutron-bgpvpns","revision":"2015-09-03","namespace":"urn:opendaylight:neutron-bgpvpns"},{"name":"neutron-provider-ext","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-provider-ext"},{"name":"opendaylight-action-types","revision":"2013-11-12","namespace":"urn:opendaylight:action:types"},{"name":"neutronvpn","revision":"2015-06-02","namespace":"urn:opendaylight:netvirt:neutronvpn"},{"name":"ipv6-ndutil","revision":"2017-02-10","namespace":"urn:opendaylight:netvirt:ipv6service:ipv6util"},{"name":"openflow-switch-connection-config","revision":"2016-05-06","namespace":"urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:config"},{"name":"openflowplugin-extension-nicira-action","revision":"2014-07-14","namespace":"urn:opendaylight:openflowplugin:extension:nicira:action"},{"name":"flow-capable-transaction","revision":"2015-03-04","namespace":"urn:opendaylight:flow:transaction"},{"name":"cluster-admin","revision":"2015-10-13","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:cluster:admin"},{"name":"sal-table","revision":"2013-10-26","namespace":"urn:opendaylight:table:service"},{"name":"neutron-l2gateways","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-l2gateways"},{"name":"neutron-subnets","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-subnets"},{"name":"opendaylight-l2-types","revision":"2013-08-27","namespace":"urn:opendaylight:l2:types"},{"name":"overlay","revision":"2015-01-05","namespace":"urn:opendaylight:params:xml:ns:yang:overlay"},{"name":"sal-role","revision":"2015-07-27","namespace":"urn:opendaylight:role:service"},{"name":"netty-event-executor","revision":"2013-11-12","namespace":"urn:opendaylight:params:xml:ns:yang:controller:netty:eventexecutor"},{"name":"sal-queue","revision":"2015-03-05","namespace":"urn:opendaylight:queue:service"},{"name":"aaa-encrypt-service-config","revision":"2016-09-15","namespace":"config:aaa:authn:encrypt:service:config"},{"name":"ietf-restconf","revision":"2013-10-19","namespace":"urn:ietf:params:xml:ns:yang:ietf-restconf"},{"name":"openflow-configuration","revision":"2014-06-30","namespace":"urn:opendaylight:openflow:config"},{"name":"vpn-rpc","revision":"2016-02-01","namespace":"urn:opendaylight:netvirt:vpn:rpc"},{"name":"natservice-config","revision":"2017-02-06","namespace":"urn:opendaylight:netvirt:natservice:config"},{"name":"neutron-trunks","revision":"2017-01-18","namespace":"urn:opendaylight:neutron-trunks"},{"name":"opendaylight-md-sal-common","revision":"2013-10-28","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:common"},{"name":"opendaylight-md-sal-binding-v1-codec","revision":"2016-07-14","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:v1:codec"},{"name":"qosalert-config","revision":"2017-03-01","namespace":"urn:opendaylight:netvirt:qosalert:config"},{"name":"bgp","revision":"2013-07-15","namespace":"urn:cisco:params:xml:ns:yang:bgp"},{"name":"neutron-networks","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-networks"},{"name":"ospf-topology","revision":"2013-10-21","namespace":"urn:TBD:params:xml:ns:yang:ospf-topology"},{"name":"ietf-yang-library","revision":"2016-06-21","namespace":"urn:ietf:params:xml:ns:yang:ietf-yang-library"},{"name":"ietf-packet-fields","revision":"2016-02-18","namespace":"urn:ietf:params:xml:ns:yang:ietf-packet-fields"},{"name":"opendaylight-sal-dom-broker-impl","revision":"2013-10-28","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl"},{"name":"aaa-app-config","revision":"2017-06-19","namespace":"urn:opendaylight:aaa:app:config"},{"name":"vpnservice-dhcp","revision":"2016-04-28","namespace":"urn:opendaylight:netvirt:dhcp"},{"name":"sal-group","revision":"2013-09-18","namespace":"urn:opendaylight:group:service"},{"name":"subscribe-to-notification","revision":"2016-10-28","namespace":"subscribe:to:notification"},{"name":"neutron-extensions","revision":"2016-06-17","namespace":"urn:opendaylight:neutron-extensions"},{"name":"neutron-attrs","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-attrs"},{"name":"yang-ext","revision":"2013-07-09","namespace":"urn:opendaylight:yang:extension:yang-ext"},{"name":"ietf-interfaces","revision":"2014-05-08","namespace":"urn:ietf:params:xml:ns:yang:ietf-interfaces","feature":["pre-provisioning","arbitrary-names","if-mib"]},{"name":"odl-interface-meta","revision":"2016-04-06","namespace":"urn:opendaylight:genius:interfacemanager:meta"},{"name":"node-config","revision":"2014-10-15","namespace":"urn:opendaylight:module:config"},{"name":"openflowplugin-experimenter-types","revision":"2015-10-20","namespace":"urn:opendaylight:openflowplugin:experimenter:types"},{"name":"statistics-config","revision":"2017-03-26","namespace":"urn:opendaylight:netvirt:statistics:config"},{"name":"prefix-shard-configuration","revision":"2017-01-10","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:clustering:prefix-shard-configuration"},{"name":"ietf-yang-types","revision":"2010-09-24","namespace":"urn:ietf:params:xml:ns:yang:ietf-yang-types"},{"name":"threadgroup","revision":"2013-11-07","namespace":"urn:opendaylight:params:xml:ns:yang:controller:netty:threadgroup"},{"name":"odl-concurrent-data-broker-cfg","revision":"2014-11-24","namespace":"urn:opendaylight:params:xml:ns:yang:controller:config:concurrent-data-broker"},{"name":"neutron","revision":"2015-07-12","namespace":"urn:opendaylight:neutron"},{"name":"barrier-common","revision":"2016-03-15","namespace":"urn:opendaylight:service:barrier:common"},{"name":"sal-groups-batch","revision":"2016-03-15","namespace":"urn:opendaylight:groups:service"},{"name":"netty-timer","revision":"2013-11-19","namespace":"urn:opendaylight:params:xml:ns:yang:controller:netty:timer"},{"name":"openflow-protocol","revision":"2013-07-31","namespace":"urn:opendaylight:openflow:protocol"},{"name":"topology-lldp-discovery-config","revision":"2016-05-11","namespace":"urn:opendaylight:params:xml:ns:yang:topology-lldp-discovery:config"},{"name":"shutdown","revision":"2013-12-18","namespace":"urn:opendaylight:params:xml:ns:yang:controller:shutdown"},{"name":"openflow-provider-config","revision":"2016-05-10","namespace":"urn:opendaylight:params:xml:ns:yang:openflow:provider:config"},{"name":"inter-vpn-link","revision":"2016-03-11","namespace":"urn:opendaylight:params:xml:ns:yang:netvirt:inter-vpn-link"},{"name":"openflowplugin-extension-nicira-match","revision":"2014-07-14","namespace":"urn:opendaylight:openflowplugin:extension:nicira:match"},{"name":"statistics-manager-control","revision":"2015-08-12","namespace":"urn:opendaylight:params:xml:ns:yang:openflowplugin:sm:control"},{"name":"opendaylight-operational-dom-datastore","revision":"2014-06-17","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:spi:operational-dom-store"},{"name":"instance-identifier-patch-module","revision":"2015-11-21","namespace":"instance:identifier:patch:module"},{"name":"neutron-secgroups","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-secgroups"},{"name":"itm-rpc","revision":"2016-04-06","namespace":"urn:opendaylight:genius:itm:rpcs"},{"name":"actor-system-provider-service","revision":"2015-10-05","namespace":"urn:opendaylight:params:xml:ns:yang:controller:config:actor-system-provider:service"},{"name":"cloud-service-chain-state","revision":"2016-07-11","namespace":"urn:opendaylight:netvirt:cloud-servicechain:state"},{"name":"l3-unicast-igp-topology","revision":"2013-10-21","namespace":"urn:TBD:params:xml:ns:yang:nt:l3-unicast-igp-topology"},{"name":"itm-config","revision":"2016-04-06","namespace":"urn:opendaylight:genius:itm:config"},{"name":"opendaylight-queue-types","revision":"2013-09-25","namespace":"urn:opendaylight:flow:types:queue"},{"name":"sal-remote-augment","revision":"2014-07-08","namespace":"urn:sal:restconf:event:subscription"},{"name":"itm-state","revision":"2016-04-06","namespace":"urn:opendaylight:genius:itm:op"},{"name":"dhcp_allocation_pool","revision":"2016-12-14","namespace":"urn:opendaylight:netvirt:dhcp_allocation_pool"},{"name":"cluster-singleton-service-impl","revision":"2016-07-18","namespace":"urn:opendaylight:params:xml:ns:yang:md:sal:config:impl:cluster-singleton-service"},{"name":"sal-flow","revision":"2013-08-19","namespace":"urn:opendaylight:flow:service"},{"name":"opendaylight-table-types","revision":"2013-10-26","namespace":"urn:opendaylight:table:types"},{"name":"odl-mdsalutil","revision":"2016-04-06","namespace":"urn:opendaylight:genius:mdsalutil"},{"name":"aaa-cert-rpc","revision":"2015-12-15","namespace":"urn:opendaylight:yang:aaa:cert:rpc"},{"name":"entity-owners","revision":"2015-08-04","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:clustering:entity-owners"},{"name":"lldp-speaker-config","revision":"2016-05-12","namespace":"urn:opendaylight:params:xml:ns:yang:openflow:applications:lldp-speaker:config"},{"name":"opendaylight-pingpong-broker","revision":"2014-11-07","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:pingpong"},{"name":"neutron-L3-ext","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-L3-ext"},{"name":"opendaylight-statistics-types","revision":"2013-09-25","namespace":"urn:opendaylight:model:statistics:types"},{"name":"shutdown-impl","revision":"2013-12-18","namespace":"urn:opendaylight:params:xml:ns:yang:controller:shutdown:impl"},{"name":"neutron-qos-ext","revision":"2016-06-13","namespace":"urn:opendaylight:neutron-qos-ext"},{"name":"openflow-augments","revision":"2015-02-25","namespace":"urn:opendaylight:openflow:augments"},{"name":"packet-processing","revision":"2013-07-09","namespace":"urn:opendaylight:packet:service"},{"name":"lldp-speaker","revision":"2014-10-23","namespace":"urn:opendaylight:params:xml:ns:yang:openflow:applications:lldp-speaker"},{"name":"opendaylight-flow-statistics","revision":"2013-08-19","namespace":"urn:opendaylight:flow:statistics"},{"name":"openflow-action","revision":"2015-02-03","namespace":"urn:opendaylight:openflow:common:action"},{"name":"neutron-portsecurity","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-portsecurity"},{"name":"odl-nat-rpc","revision":"2017-02-09","namespace":"urn:opendaylight:netvirt:natservice:rpc"},{"name":"sal-echo","revision":"2015-03-05","namespace":"urn:opendaylight:echo:service"},{"name":"lock-manager","revision":"2016-04-13","namespace":"urn:opendaylight:genius:lockmanager"},{"name":"opendaylight-sal-binding-broker-impl","revision":"2013-10-28","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl"},{"name":"openflow-approved-extensions","revision":"2016-08-02","namespace":"urn:opendaylight:openflow:approved:extensions"},{"name":"ted","revision":"2013-10-21","namespace":"urn:TBD:params:xml:ns:yang:network:ted"},{"name":"odl-interface","revision":"2016-04-06","namespace":"urn:opendaylight:genius:interfacemanager"},{"name":"iana-afn-safi","revision":"2013-07-04","namespace":"urn:ietf:params:xml:ns:yang:iana-afn-safi"},{"name":"pod","revision":"2017-06-11","namespace":"urn:opendaylight:coe:northbound:pod"},{"name":"interface-service-bindings","revision":"2016-04-06","namespace":"urn:opendaylight:genius:interfacemanager:servicebinding"},{"name":"vpn-config","revision":"2016-11-30","namespace":"urn:opendaylight:netvirt:vpn:config"},{"name":"etree","revision":"2016-06-14","namespace":"urn:opendaylight:netvirt:elan:etree"},{"name":"onf-extensions","revision":"2017-01-24","namespace":"urn:opendaylight:openflowplugin:extension:onf"},{"name":"aclservice-config","revision":"2016-08-06","namespace":"urn:opendaylight:netvirt:aclservice-config"},{"name":"netconf-node-inventory","revision":"2014-01-08","namespace":"urn:opendaylight:netconf-node-inventory"},{"name":"openflow-extensible-match","revision":"2015-02-25","namespace":"urn:opendaylight:openflow:oxm"},{"name":"id-manager","revision":"2016-04-06","namespace":"urn:opendaylight:genius:idmanager"},{"name":"aaa","revision":"2016-12-14","namespace":"urn:opendaylight:params:xml:ns:yang:aaa"},{"name":"fib-rpc","revision":"2016-01-21","namespace":"urn:opendaylight:netvirt:fib:rpc"},{"name":"sal-meters-batch","revision":"2016-03-16","namespace":"urn:opendaylight:meters:service"},{"name":"opendaylight-md-sal-dom","revision":"2013-10-28","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom"},{"name":"openflow-provider","revision":"2015-03-31","namespace":"urn:opendaylight:params:xml:ns:yang:openflow:api"},{"name":"flow-topology-discovery","revision":"2013-08-19","namespace":"urn:opendaylight:flow:topology:discovery"},{"name":"opendaylight-config-dom-datastore","revision":"2014-06-17","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:spi:config-dom-store"},{"name":"opendaylight-flow-table-statistics","revision":"2013-12-15","namespace":"urn:opendaylight:flow:table:statistics"},{"name":"neutronvpn-config","revision":"2016-08-06","namespace":"urn:opendaylight:netvirt:neutronvpn:config"},{"name":"opendaylight-legacy-entity-ownership-service-provider","revision":"2016-02-26","namespace":"urn:opendaylight:params:xml:ns:yang:controller:config:legacy-entity-ownership-service-provider"},{"name":"interface-statistics","revision":"2015-08-24","namespace":"urn:opendaylight:genius:interface:statistics"},{"name":"nicira-action","revision":"2014-04-21","namespace":"urn:opendaylight:openflowjava:nx:action"},{"name":"neutron-lbaasv2","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-lbaasv2"},{"name":"nicira-match","revision":"2014-04-21","namespace":"urn:opendaylight:openflowjava:nx:match"},{"name":"openflow-instruction","revision":"2013-07-31","namespace":"urn:opendaylight:openflow:common:instruction"},{"name":"opendaylight-queue-statistics","revision":"2013-12-16","namespace":"urn:opendaylight:queue:statistics"},{"name":"resource-manager","revision":"2016-06-22","namespace":"urn:opendaylight:genius:resourcemanager"},{"name":"ebgp","revision":"2015-09-01","namespace":"urn:ericsson:params:xml:ns:yang:ebgp"},{"name":"forwarding-rules-manager-config","revision":"2016-05-11","namespace":"urn:opendaylight:params:xml:ns:yang:openflowplugin:app:forwardingrules-manager:config"}]}}
Fails if the given objects are unequal.
${resp.status_code}
${200}
Fails if ``container`` does not contain ``item`` one or more times.
${resp.content}
ietf-restconf
Get the restconf modules, check 200 status and ietf-restconf presence.
Removes all the session objects
Delete All Sessions
Test suite to verify Restconf is OK.
Create Session: create a HTTP session to a server
KeyStoneSession
${KEYSTONEURL}
headers=${HEADERS}
Creating Session using : alias=KeyStoneSession, url=http://172.30.9.22:5000, headers={u'Content-Type': u'application/json'}, cookies=None, auth=None, timeout=None, proxies=None, verify=False, debug=0
**Deprecated- See Post Request now**
KeyStoneSession
/v3/auth/tokens
${UserInfo}
${resp}
Deprecation 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'>
Returns a value from the given ``dictionary`` based on the given ``key``.
${resp.headers}
X-Subject-Token
${TOKEN}
${TOKEN} = gAAAAABatgr25Fc6xhWv_U64ntoNmu3Hu_MiYh6yecBWzmBLKrgU_LOmp2Gclat5evgZ5H5iGw_kerzs4YVZOWAHUUo3mWN2u7LC7ObA_-q96hr61VTYljcXIblU7UNQpDDlqBfp2muxds4Krje6YXL29-iH-w0icuDdK4jsO7KwLvbXhVgZHKI
Creates and returns a dictionary based on the given ``items``.
X-Auth-Token=${TOKEN}
Content-Type=application/json
${X-AUTH}
${X-AUTH} = {u'X-Auth-Token': 'gAAAAABatgr25Fc6xhWv_U64ntoNmu3Hu_MiYh6yecBWzmBLKrgU_LOmp2Gclat5evgZ5H5iGw_kerzs4YVZOWAHUUo3mWN2u7LC7ObA_-q96hr61VTYljcXIblU7UNQpDDlqBfp2muxds4Krje6YXL29-iH-w0icuDdK4jsO7KwLvbXhVgZH...
Creates and returns a dictionary based on the given ``items``.
X-Auth-Token=${TOKEN}
${X-AUTH-NOCONTENT}
${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABatgr25Fc6xhWv_U64ntoNmu3Hu_MiYh6yecBWzmBLKrgU_LOmp2Gclat5evgZ5H5iGw_kerzs4YVZOWAHUUo3mWN2u7LC7ObA_-q96hr61VTYljcXIblU7UNQpDDlqBfp2muxds4Krje6YXL29-iH-w0icuDdK4jsO7KwLvbXhVgZH...
Makes a variable available globally in all tests and suites.
${X-AUTH}
${X-AUTH} = {u'X-Auth-Token': 'gAAAAABatgr25Fc6xhWv_U64ntoNmu3Hu_MiYh6yecBWzmBLKrgU_LOmp2Gclat5evgZ5H5iGw_kerzs4YVZOWAHUUo3mWN2u7LC7ObA_-q96hr61VTYljcXIblU7UNQpDDlqBfp2muxds4Krje6YXL29-iH-w0icuDdK4jsO7KwLvbXhVgZH...
Makes a variable available globally in all tests and suites.
${X-AUTH-NOCONTENT}
${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABatgr25Fc6xhWv_U64ntoNmu3Hu_MiYh6yecBWzmBLKrgU_LOmp2Gclat5evgZ5H5iGw_kerzs4YVZOWAHUUo3mWN2u7LC7ObA_-q96hr61VTYljcXIblU7UNQpDDlqBfp2muxds4Krje6YXL29-iH-w0icuDdK4jsO7KwLvbXhVgZH...
Create Session: create a HTTP session to a server
ODL
http://${ODL_SYSTEM_IP}:${PORT}
headers=${HEADERS}
auth=${AUTH}
Creating Session using : alias=ODL, url=http://192.30.9.6:8081, headers={u'Content-Type': u'application/json'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7fd1f8259410>, timeout=None, proxies=None, verify=False, debug=0
Send a GET request on the session object found using the
ODL
${NEUTRON_NETWORKS_API}
${resp}
Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/networks, headers=None json=None
${resp} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
200
Argument types are:
<type 'int'>
<type 'unicode'>
Get the complete list of networks
reachability
Send a GET request on the session object found using the
ODL
${NEUTRON_SUBNETS_API}
${resp}
Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/subnets, headers=None json=None
${resp} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
200
Argument types are:
<type 'int'>
<type 'unicode'>
Get the complete list of subnets
reachability
Send a GET request on the session object found using the
ODL
${NEUTRON_PORTS_API}
${resp}
Get Request using : alias=ODL, uri=/controller/nb/v2/neutron/ports, headers=None json=None
${resp} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
200
Argument types are:
<type 'int'>
<type 'unicode'>
Get the complete list of ports
reachability
Removes all the session objects
Delete All Sessions
Create Session: create a HTTP session to a server
OSSession
${NEUTRONURL}
headers=${X-AUTH}
Creating Session using : alias=OSSession, url=http://172.30.9.22:9696, headers={u'X-Auth-Token': 'gAAAAABatgr25Fc6xhWv_U64ntoNmu3Hu_MiYh6yecBWzmBLKrgU_LOmp2Gclat5evgZ5H5iGw_kerzs4YVZOWAHUUo3mWN2u7LC7ObA_-q96hr61VTYljcXIblU7UNQpDDlqBfp2muxds4Krje6YXL29-iH-w0icuDdK4jsO7KwLvbXhVgZHKI', u'Content-Type': u'application/json'}, cookies=None, auth=None, timeout=None, proxies=None, verify=False, debug=0
Logs the given message with the given level.
${X-AUTH}
{u'X-Auth-Token': 'gAAAAABatgr25Fc6xhWv_U64ntoNmu3Hu_MiYh6yecBWzmBLKrgU_LOmp2Gclat5evgZ5H5iGw_kerzs4YVZOWAHUUo3mWN2u7LC7ObA_-q96hr61VTYljcXIblU7UNQpDDlqBfp2muxds4Krje6YXL29-iH-w0icuDdK4jsO7KwLvbXhVgZHKI', u'Content-Type': u'application/json'}
Send a GET request on the session object found using the
OSSession
${OSREST}
${resp}
Get Request using : alias=OSSession, uri=/v2.0/networks, headers=None json=None
${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}
To JSON using : content={"networks":[{"provider:physical_network":"datacentre","ipv6_address_scope":null,"revision_number":4,"port_security_enabled":true,"mtu":1500,"id":"e62d7bd1-aae1-40c7-a269-efd63c88fe26","router:external":true,"availability_zone_hints":[],"availability_zones":["nova"],"ipv4_address_scope":null,"shared":false,"project_id":"5c2a9a30b4e046839dbad7ce3f065363","status":"ACTIVE","subnets":["a8cbd6d7-c453-4288-b902-6d08bde9a2fa"],"description":"","tags":[],"updated_at":"2018-03-24T07:11:56Z","is_default":false,"provider:segmentation_id":null,"name":"external","admin_state_up":true,"tenant_id":"5c2a9a30b4e046839dbad7ce3f065363","created_at":"2018-03-24T07:11:49Z","provider:network_type":"flat"}]}
To JSON using : pretty_print=False
${OSResult} = {u'networks': [{u'provider:physical_network': u'datacentre', u'ipv6_address_scope': None, u'revision_number': 4, u'port_security_enabled': True, u'provider:network_type': u'flat', u'id': u'e62d7bd1-aa...
Logs the given message with the given level.
${OSResult}
{u'networks': [{u'provider:physical_network': u'datacentre', u'ipv6_address_scope': None, u'revision_number': 4, u'port_security_enabled': True, u'provider:network_type': u'flat', u'id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', 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'5c2a9a30b4e046839dbad7ce3f065363', u'status': u'ACTIVE', u'subnets': [u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa'], u'description': u'', u'tags': [], u'updated_at': u'2018-03-24T07:11:56Z', u'is_default': False, u'provider:segmentation_id': None, u'name': u'external', u'admin_state_up': True, u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'created_at': u'2018-03-24T07:11:49Z', u'mtu': 1500}]}
Checking OpenStack Neutron for known networks
Network Neutron OpenStack
Create Session: create a HTTP session to a server
ODLSession
http://${ODL_SYSTEM_IP}:${PORT}
headers=${HEADERS}
auth=${AUTH}
Creating Session using : alias=ODLSession, url=http://192.30.9.6:8081, headers={u'Content-Type': u'application/json'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7fd1f82173d0>, timeout=None, proxies=None, verify=False, debug=0
Send a GET request on the session object found using the
ODLSession
${NEUTRON_NETWORKS_API}
${resp}
Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None
${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}
To JSON using : content={
"networks" : [ {
"id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"revision_number" : 3,
"name" : "external",
"admin_state_up" : true,
"status" : "ACTIVE",
"shared" : false,
"router:external" : true,
"provider:network_type" : "flat",
"provider:physical_network" : "datacentre",
"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" : [ ]
} ]
}
To JSON using : pretty_print=False
${ODLResult} = {u'networks': [{u'status': u'ACTIVE', u'router:external': True, u'name': u'external', u'provider:physical_network': u'datacentre', u'admin_state_up': True, u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f06...
Logs the given message with the given level.
${ODLResult}
{u'networks': [{u'status': u'ACTIVE', u'router:external': True, u'name': u'external', u'provider:physical_network': u'datacentre', u'admin_state_up': True, u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 3, u'shared': False, u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26'}, {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'}]}
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}}
Send a POST request on the session object found using the
OSSession
${OSREST}
data=${postNet}
${resp}
Post Request using : alias=OSSession, uri=/v2.0/networks, data=<empty>, headers=None, files=None, allow_redirects=True
${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}
To JSON using : content={"network":{"provider:physical_network":null,"ipv6_address_scope":null,"revision_number":2,"port_security_enabled":true,"provider:network_type":"vxlan","id":"3160e049-f721-446d-a338-83eb37ae21cf","router:external":false,"availability_zone_hints":[],"availability_zones":[],"ipv4_address_scope":null,"shared":false,"project_id":"bd4c756587724d39a2bf2c54bf879774","status":"ACTIVE","subnets":[],"description":"","tags":[],"updated_at":"2018-03-24T08:23:19Z","is_default":false,"provider:segmentation_id":50,"name":"odl_network","admin_state_up":true,"tenant_id":"bd4c756587724d39a2bf2c54bf879774","created_at":"2018-03-24T08:23:19Z","mtu":1450}}
To JSON using : pretty_print=False
${result} = {u'network': {u'provider:physical_network': None, u'ipv6_address_scope': None, u'revision_number': 2, u'port_security_enabled': True, u'mtu': 1450, u'id': u'3160e049-f721-446d-a338-83eb37ae21cf', u'ro...
Returns a value from the given ``dictionary`` based on the given ``key``.
${result}
network
${result}
${result} = {u'provider:physical_network': None, u'ipv6_address_scope': None, u'revision_number': 2, u'port_security_enabled': True, u'mtu': 1450, u'id': u'3160e049-f721-446d-a338-83eb37ae21cf', u'router:external...
Returns a value from the given ``dictionary`` based on the given ``key``.
${result}
id
${NETID}
${NETID} = 3160e049-f721-446d-a338-83eb37ae21cf
Logs the given message with the given level.
${result}
{u'provider:physical_network': None, u'ipv6_address_scope': None, u'revision_number': 2, u'port_security_enabled': True, u'mtu': 1450, u'id': u'3160e049-f721-446d-a338-83eb37ae21cf', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'bd4c756587724d39a2bf2c54bf879774', u'status': u'ACTIVE', u'subnets': [], u'description': u'', u'tags': [], u'updated_at': u'2018-03-24T08:23:19Z', u'is_default': False, u'provider:segmentation_id': 50, u'name': u'odl_network', u'admin_state_up': True, u'tenant_id': u'bd4c756587724d39a2bf2c54bf879774', u'created_at': u'2018-03-24T08:23:19Z', u'provider:network_type': u'vxlan'}
Logs the given message with the given level.
${NETID}
3160e049-f721-446d-a338-83eb37ae21cf
Makes a variable available globally in all tests and suites.
${NETID}
${NETID} = 3160e049-f721-446d-a338-83eb37ae21cf
Pauses the test executed for the given time.
2
Slept 2 seconds
Create new network in OpenStack
Create Network OpenStack Neutron
Send a GET request on the session object found using the
ODLSession
${NEUTRON_NETWORKS_API}/${NetID}
${resp}
Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/3160e049-f721-446d-a338-83eb37ae21cf, headers=None json=None
${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
Delete All Sessions
Checking Network created in OpenStack are pushed to OpenDaylight
Create Session: create a HTTP session to a server
OSSession
${NEUTRONURL}
headers=${X-AUTH}
Creating Session using : alias=OSSession, url=http://172.30.9.22:9696, headers={u'X-Auth-Token': 'gAAAAABatgr25Fc6xhWv_U64ntoNmu3Hu_MiYh6yecBWzmBLKrgU_LOmp2Gclat5evgZ5H5iGw_kerzs4YVZOWAHUUo3mWN2u7LC7ObA_-q96hr61VTYljcXIblU7UNQpDDlqBfp2muxds4Krje6YXL29-iH-w0icuDdK4jsO7KwLvbXhVgZHKI', u'Content-Type': u'application/json'}, cookies=None, auth=None, timeout=None, proxies=None, verify=False, debug=0
Logs the given message with the given level.
${X-AUTH}
{u'X-Auth-Token': 'gAAAAABatgr25Fc6xhWv_U64ntoNmu3Hu_MiYh6yecBWzmBLKrgU_LOmp2Gclat5evgZ5H5iGw_kerzs4YVZOWAHUUo3mWN2u7LC7ObA_-q96hr61VTYljcXIblU7UNQpDDlqBfp2muxds4Krje6YXL29-iH-w0icuDdK4jsO7KwLvbXhVgZHKI', u'Content-Type': u'application/json'}
Send a GET request on the session object found using the
OSSession
${OSREST}
${resp}
Get Request using : alias=OSSession, uri=/v2.0/subnets, headers=None json=None
${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}
To JSON using : content={"subnets":[{"service_types":[],"description":"","enable_dhcp":false,"tags":[],"network_id":"e62d7bd1-aae1-40c7-a269-efd63c88fe26","tenant_id":"5c2a9a30b4e046839dbad7ce3f065363","created_at":"2018-03-24T07:11:56Z","dns_nameservers":[],"updated_at":"2018-03-24T07:11:56Z","ipv6_ra_mode":null,"allocation_pools":[{"start":"172.30.9.200","end":"172.30.9.220"}],"gateway_ip":"172.30.9.1","revision_number":0,"ipv6_address_mode":null,"ip_version":4,"host_routes":[],"cidr":"172.30.9.0/24","project_id":"5c2a9a30b4e046839dbad7ce3f065363","id":"a8cbd6d7-c453-4288-b902-6d08bde9a2fa","subnetpool_id":null,"name":"external-subnet"}]}
To JSON using : pretty_print=False
${OSResult} = {u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': False, u'tags': [], u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046...
Logs the given message with the given level.
${OSResult}
{u'subnets': [{u'host_routes': [], u'service_types': [], u'description': u'', u'enable_dhcp': False, u'tags': [], u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'created_at': u'2018-03-24T07:11:56Z', u'dns_nameservers': [], u'updated_at': u'2018-03-24T07:11:56Z', u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'172.30.9.200', u'end': u'172.30.9.220'}], u'gateway_ip': u'172.30.9.1', u'revision_number': 0, u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'172.30.9.0/24', u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'subnetpool_id': None, u'name': u'external-subnet'}]}
Checking OpenStack Neutron for known subnets
Subnets Neutron OpenStack
Create Session: create a HTTP session to a server
ODLSession
http://${ODL_SYSTEM_IP}:${PORT}
headers=${HEADERS}
auth=${AUTH}
Creating Session using : alias=ODLSession, url=http://192.30.9.6:8081, headers={u'Content-Type': u'application/json'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7fd1f81cd0d0>, timeout=None, proxies=None, verify=False, debug=0
Send a GET request on the session object found using the
ODLSession
${NEUTRON_SUBNETS_API}
${resp}
Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None
${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}
To JSON using : content={
"subnets" : [ {
"id" : "a8cbd6d7-c453-4288-b902-6d08bde9a2fa",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"revision_number" : 0,
"name" : "external-subnet",
"network_id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"ip_version" : 4,
"cidr" : "172.30.9.0/24",
"gateway_ip" : "172.30.9.1",
"dns_nameservers" : [ ],
"allocation_pools" : [ {
"start" : "172.30.9.200",
"end" : "172.30.9.220"
} ],
"host_routes" : [ ],
"enable_dhcp" : false,
"ipv6_address_mode" : null,
"ipv6_ra_mode" : null
} ]
}
To JSON using : pretty_print=False
${ODLResult} = {u'subnets': [{u'name': u'external-subnet', u'enable_dhcp': False, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'dns_nameservers': [], u'...
Logs the given message with the given level.
${ODLResult}
{u'subnets': [{u'name': u'external-subnet', u'enable_dhcp': False, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'172.30.9.200', u'end': u'172.30.9.220'}], u'gateway_ip': u'172.30.9.1', u'revision_number': 0, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'172.30.9.0/24', u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa'}]}
Checking OpenDaylight Neutron API for known subnets
Subnets Neutron OpenDaylight
Logs the given message with the given level.
${data}
{"subnet":{"network_id":"3160e049-f721-446d-a338-83eb37ae21cf","ip_version":4,"cidr":"172.16.64.0/24","allocation_pools":[{"start":"172.16.64.20","end":"172.16.64.120"}]}}
Send a POST request on the session object found using the
OSSession
${OSREST}
data=${data}
${resp}
Post Request using : alias=OSSession, uri=/v2.0/subnets, data=<empty>, headers=None, files=None, allow_redirects=True
${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}
To JSON using : content={"subnet":{"service_types":[],"description":"","enable_dhcp":true,"tags":[],"network_id":"3160e049-f721-446d-a338-83eb37ae21cf","tenant_id":"bd4c756587724d39a2bf2c54bf879774","created_at":"2018-03-24T08:23:21Z","dns_nameservers":[],"updated_at":"2018-03-24T08:23:21Z","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":"bd4c756587724d39a2bf2c54bf879774","id":"00a0e7c0-6291-4a85-a849-513fe72113b8","subnetpool_id":null,"name":""}}
To JSON using : pretty_print=False
${result} = {u'subnet': {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'3160e049-f721-446d-a338-83eb37ae21cf', u'tenant_id': u'bd4c756587724d39a2bf2c54bf879774', u'...
Returns a value from the given ``dictionary`` based on the given ``key``.
${result}
subnet
${result}
${result} = {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'3160e049-f721-446d-a338-83eb37ae21cf', u'tenant_id': u'bd4c756587724d39a2bf2c54bf879774', u'created_at':...
Returns a value from the given ``dictionary`` based on the given ``key``.
${result}
id
${SUBNETID}
${SUBNETID} = 00a0e7c0-6291-4a85-a849-513fe72113b8
Logs the given message with the given level.
${result}
{u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'3160e049-f721-446d-a338-83eb37ae21cf', u'tenant_id': u'bd4c756587724d39a2bf2c54bf879774', u'created_at': u'2018-03-24T08:23:21Z', u'dns_nameservers': [], u'updated_at': u'2018-03-24T08:23:21Z', 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'bd4c756587724d39a2bf2c54bf879774', u'id': u'00a0e7c0-6291-4a85-a849-513fe72113b8', u'subnetpool_id': None, u'name': u''}
Logs the given message with the given level.
${SUBNETID}
00a0e7c0-6291-4a85-a849-513fe72113b8
Makes a variable available globally in all tests and suites.
${SUBNETID}
${SUBNETID} = 00a0e7c0-6291-4a85-a849-513fe72113b8
Pauses the test executed for the given time.
2
Slept 2 seconds
Create new subnet in OpenStack
Create Subnet OpenStack Neutron
Send a GET request on the session object found using the
ODLSession
${NEUTRON_SUBNETS_API}/${SUBNETID}
${resp}
Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/00a0e7c0-6291-4a85-a849-513fe72113b8, headers=None json=None
${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
Delete All Sessions
Checking Subnets created in OpenStack are pushed to OpenDaylight
Create Session: create a HTTP session to a server
OSSession
${NEUTRONURL}
headers=${X-AUTH}
Creating Session using : alias=OSSession, url=http://172.30.9.22:9696, headers={u'X-Auth-Token': 'gAAAAABatgr25Fc6xhWv_U64ntoNmu3Hu_MiYh6yecBWzmBLKrgU_LOmp2Gclat5evgZ5H5iGw_kerzs4YVZOWAHUUo3mWN2u7LC7ObA_-q96hr61VTYljcXIblU7UNQpDDlqBfp2muxds4Krje6YXL29-iH-w0icuDdK4jsO7KwLvbXhVgZHKI', u'Content-Type': u'application/json'}, cookies=None, auth=None, timeout=None, proxies=None, verify=False, debug=0
Logs the given message with the given level.
${X-AUTH}
{u'X-Auth-Token': 'gAAAAABatgr25Fc6xhWv_U64ntoNmu3Hu_MiYh6yecBWzmBLKrgU_LOmp2Gclat5evgZ5H5iGw_kerzs4YVZOWAHUUo3mWN2u7LC7ObA_-q96hr61VTYljcXIblU7UNQpDDlqBfp2muxds4Krje6YXL29-iH-w0icuDdK4jsO7KwLvbXhVgZHKI', u'Content-Type': u'application/json'}
Send a GET request on the session object found using the
OSSession
${OSREST}
${resp}
Get Request using : alias=OSSession, uri=/v2.0/ports, headers=None json=None
${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}
To JSON using : content={"ports":[{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-24T08:23:23Z","device_owner":"network:dhcp","revision_number":4,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"00a0e7c0-6291-4a85-a849-513fe72113b8","ip_address":"172.16.64.21"}],"id":"10600c1c-b5e2-40bf-bd69-e337eb26aaf6","security_groups":[],"binding:vif_details":{},"binding:vif_type":"ovs","mac_address":"fa:16:3e:6e:7b:c6","project_id":"bd4c756587724d39a2bf2c54bf879774","status":"ACTIVE","binding:host_id":"overcloud-controller-0.opnfvlf.org","description":"","tags":[],"device_id":"dhcp827da361-9c56-50f7-913f-5a01f7bfed2c-3160e049-f721-446d-a338-83eb37ae21cf","name":"","admin_state_up":true,"network_id":"3160e049-f721-446d-a338-83eb37ae21cf","tenant_id":"bd4c756587724d39a2bf2c54bf879774","created_at":"2018-03-24T08:23:22Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-24T07:50:03Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"a8cbd6d7-c453-4288-b902-6d08bde9a2fa","ip_address":"172.30.9.207"}],"id":"10f575ec-b1e1-47c5-8ef5-bbf098b4f155","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:36:e4:ed","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"b9f59218-1ebf-4e2e-a106-aca5894b8528","name":"","admin_state_up":true,"network_id":"e62d7bd1-aae1-40c7-a269-efd63c88fe26","tenant_id":"","created_at":"2018-03-24T07:50:03Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-24T07:16:38Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"a8cbd6d7-c453-4288-b902-6d08bde9a2fa","ip_address":"172.30.9.200"}],"id":"1536345c-8848-4357-84ef-e5cf607440f7","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:ce:b6:58","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"09a3893f-cff0-40d1-94da-f0df655c6a57","name":"","admin_state_up":true,"network_id":"e62d7bd1-aae1-40c7-a269-efd63c88fe26","tenant_id":"","created_at":"2018-03-24T07:16:38Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-24T07:44:57Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"a8cbd6d7-c453-4288-b902-6d08bde9a2fa","ip_address":"172.30.9.206"}],"id":"44c7271a-7d46-4d28-b499-2673a43a40da","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:33:1f:e6","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"69504bc0-52e4-4283-95d5-cc3c4a527872","name":"","admin_state_up":true,"network_id":"e62d7bd1-aae1-40c7-a269-efd63c88fe26","tenant_id":"","created_at":"2018-03-24T07:44:56Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-24T07:50:02Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"a8cbd6d7-c453-4288-b902-6d08bde9a2fa","ip_address":"172.30.9.214"}],"id":"480e2d88-9a7f-4319-9de8-0f1267f379c2","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:a5:f2:2b","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"e3440237-e823-478c-a786-9d0b7880b406","name":"","admin_state_up":true,"network_id":"e62d7bd1-aae1-40c7-a269-efd63c88fe26","tenant_id":"","created_at":"2018-03-24T07:50:01Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-24T07:18:02Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"a8cbd6d7-c453-4288-b902-6d08bde9a2fa","ip_address":"172.30.9.208"}],"id":"507c02b4-6002-43c5-ab63-218719fc5492","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:13:9d:0c","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"7e140830-bd59-44e6-ad3c-d2eee7887b37","name":"","admin_state_up":true,"network_id":"e62d7bd1-aae1-40c7-a269-efd63c88fe26","tenant_id":"","created_at":"2018-03-24T07:18:01Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-24T08:01:36Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"a8cbd6d7-c453-4288-b902-6d08bde9a2fa","ip_address":"172.30.9.217"}],"id":"5311d0d9-2d1d-4948-90e6-aa968a7e945d","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:2b:4c:86","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"d6ff058d-10c4-4abe-bc4c-796ec2cd2be3","name":"","admin_state_up":true,"network_id":"e62d7bd1-aae1-40c7-a269-efd63c88fe26","tenant_id":"","created_at":"2018-03-24T08:01:36Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-24T07:25:01Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"a8cbd6d7-c453-4288-b902-6d08bde9a2fa","ip_address":"172.30.9.202"}],"id":"96f2cb94-50bb-49d0-bfed-5d8b66076736","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:ff:6b:bb","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"f5e8cab6-a051-4423-a82e-d0354eda103b","name":"","admin_state_up":true,"network_id":"e62d7bd1-aae1-40c7-a269-efd63c88fe26","tenant_id":"","created_at":"2018-03-24T07:25:01Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-24T08:23:23Z","device_owner":"network:dhcp","revision_number":4,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"00a0e7c0-6291-4a85-a849-513fe72113b8","ip_address":"172.16.64.20"}],"id":"d7da047b-0322-405a-9d70-822c291320d4","security_groups":[],"binding:vif_details":{},"binding:vif_type":"ovs","mac_address":"fa:16:3e:00:c7:f4","project_id":"bd4c756587724d39a2bf2c54bf879774","status":"ACTIVE","binding:host_id":"overcloud-controller-1.opnfvlf.org","description":"","tags":[],"device_id":"dhcp17e94b90-b2ce-5539-8324-a5c0ec508ba1-3160e049-f721-446d-a338-83eb37ae21cf","name":"","admin_state_up":true,"network_id":"3160e049-f721-446d-a338-83eb37ae21cf","tenant_id":"bd4c756587724d39a2bf2c54bf879774","created_at":"2018-03-24T08:23:22Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-24T08:23:23Z","device_owner":"network:dhcp","revision_number":4,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"00a0e7c0-6291-4a85-a849-513fe72113b8","ip_address":"172.16.64.22"}],"id":"db25fc5c-e189-4575-8b56-de2984a92b1a","security_groups":[],"binding:vif_details":{},"binding:vif_type":"ovs","mac_address":"fa:16:3e:b9:c6:16","project_id":"bd4c756587724d39a2bf2c54bf879774","status":"ACTIVE","binding:host_id":"overcloud-controller-2.opnfvlf.org","description":"","tags":[],"device_id":"dhcpc69a0073-335e-55e4-8ed9-d962a64f06e6-3160e049-f721-446d-a338-83eb37ae21cf","name":"","admin_state_up":true,"network_id":"3160e049-f721-446d-a338-83eb37ae21cf","tenant_id":"bd4c756587724d39a2bf2c54bf879774","created_at":"2018-03-24T08:23:23Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-24T07:16:57Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"a8cbd6d7-c453-4288-b902-6d08bde9a2fa","ip_address":"172.30.9.211"}],"id":"ea44251e-ab83-46d0-ae5f-6d303df2904c","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:3c:68:49","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"d05fd9ee-5565-4e1d-b670-028a0c14dc2e","name":"","admin_state_up":true,"network_id":"e62d7bd1-aae1-40c7-a269-efd63c88fe26","tenant_id":"","created_at":"2018-03-24T07:16:57Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-24T07:16:37Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"a8cbd6d7-c453-4288-b902-6d08bde9a2fa","ip_address":"172.30.9.205"}],"id":"f90ddaba-8a7b-4bde-9693-71b70318930b","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:a5:1f:76","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"bdc6edd5-a644-4e98-aa6a-7ab6ac048a2a","name":"","admin_state_up":true,"network_id":"e62d7bd1-aae1-40c7-a269-efd63c88fe26","tenant_id":"","created_at":"2018-03-24T07:16:37Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-24T07:37:15Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"a8cbd6d7-c453-4288-b902-6d08bde9a2fa","ip_address":"172.30.9.210"}],"id":"fc5b7d8b-65b1-437c-a761-9469c1a0b231","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:0a:a8:cd","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"5ab02b87-bc1e-4d24-885a-f6c3bba1631c","name":"","admin_state_up":true,"network_id":"e62d7bd1-aae1-40c7-a269-efd63c88fe26","tenant_id":"","created_at":"2018-03-24T07:37:15Z","binding:vnic_type":"normal"}]}
To JSON using : pretty_print=False
${OSResult} = {u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-24T08:23:23Z', u'device_owner': u'network:dhcp', u'revision_number': 4, u'port_security_enabled': False, u'b...
Logs the given message with the given level.
${OSResult}
{u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-24T08:23:23Z', u'device_owner': u'network:dhcp', u'revision_number': 4, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'00a0e7c0-6291-4a85-a849-513fe72113b8', u'ip_address': u'172.16.64.21'}], u'id': u'10600c1c-b5e2-40bf-bd69-e337eb26aaf6', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:6e:7b:c6', u'project_id': u'bd4c756587724d39a2bf2c54bf879774', u'status': u'ACTIVE', u'binding:host_id': u'overcloud-controller-0.opnfvlf.org', u'description': u'', u'tags': [], u'device_id': u'dhcp827da361-9c56-50f7-913f-5a01f7bfed2c-3160e049-f721-446d-a338-83eb37ae21cf', u'name': u'', u'admin_state_up': True, u'network_id': u'3160e049-f721-446d-a338-83eb37ae21cf', u'tenant_id': u'bd4c756587724d39a2bf2c54bf879774', u'created_at': u'2018-03-24T08:23:22Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-24T07:50:03Z', u'device_owner': u'network:router_gateway', u'revision_number': 3, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.207'}], u'id': u'10f575ec-b1e1-47c5-8ef5-bbf098b4f155', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:36:e4:ed', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'b9f59218-1ebf-4e2e-a106-aca5894b8528', u'name': u'', u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'', u'created_at': u'2018-03-24T07:50:03Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-24T07:16:38Z', u'device_owner': u'network:router_gateway', u'revision_number': 3, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.200'}], u'id': u'1536345c-8848-4357-84ef-e5cf607440f7', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:ce:b6:58', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'09a3893f-cff0-40d1-94da-f0df655c6a57', u'name': u'', u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'', u'created_at': u'2018-03-24T07:16:38Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-24T07:44:57Z', u'device_owner': u'network:router_gateway', u'revision_number': 3, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.206'}], u'id': u'44c7271a-7d46-4d28-b499-2673a43a40da', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:33:1f:e6', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'69504bc0-52e4-4283-95d5-cc3c4a527872', u'name': u'', u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'', u'created_at': u'2018-03-24T07:44:56Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-24T07:50:02Z', u'device_owner': u'network:router_gateway', u'revision_number': 3, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.214'}], u'id': u'480e2d88-9a7f-4319-9de8-0f1267f379c2', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:a5:f2:2b', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'e3440237-e823-478c-a786-9d0b7880b406', u'name': u'', u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'', u'created_at': u'2018-03-24T07:50:01Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-24T07:18:02Z', u'device_owner': u'network:router_gateway', u'revision_number': 3, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.208'}], u'id': u'507c02b4-6002-43c5-ab63-218719fc5492', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:13:9d:0c', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'7e140830-bd59-44e6-ad3c-d2eee7887b37', u'name': u'', u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'', u'created_at': u'2018-03-24T07:18:01Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-24T08:01:36Z', u'device_owner': u'network:router_gateway', u'revision_number': 3, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.217'}], u'id': u'5311d0d9-2d1d-4948-90e6-aa968a7e945d', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:2b:4c:86', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'd6ff058d-10c4-4abe-bc4c-796ec2cd2be3', u'name': u'', u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'', u'created_at': u'2018-03-24T08:01:36Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-24T07:25:01Z', u'device_owner': u'network:router_gateway', u'revision_number': 3, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.202'}], u'id': u'96f2cb94-50bb-49d0-bfed-5d8b66076736', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:ff:6b:bb', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'f5e8cab6-a051-4423-a82e-d0354eda103b', u'name': u'', u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'', u'created_at': u'2018-03-24T07:25:01Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-24T08:23:23Z', u'device_owner': u'network:dhcp', u'revision_number': 4, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'00a0e7c0-6291-4a85-a849-513fe72113b8', u'ip_address': u'172.16.64.20'}], u'id': u'd7da047b-0322-405a-9d70-822c291320d4', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:00:c7:f4', u'project_id': u'bd4c756587724d39a2bf2c54bf879774', u'status': u'ACTIVE', u'binding:host_id': u'overcloud-controller-1.opnfvlf.org', u'description': u'', u'tags': [], u'device_id': u'dhcp17e94b90-b2ce-5539-8324-a5c0ec508ba1-3160e049-f721-446d-a338-83eb37ae21cf', u'name': u'', u'admin_state_up': True, u'network_id': u'3160e049-f721-446d-a338-83eb37ae21cf', u'tenant_id': u'bd4c756587724d39a2bf2c54bf879774', u'created_at': u'2018-03-24T08:23:22Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-24T08:23:23Z', u'device_owner': u'network:dhcp', u'revision_number': 4, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'00a0e7c0-6291-4a85-a849-513fe72113b8', u'ip_address': u'172.16.64.22'}], u'id': u'db25fc5c-e189-4575-8b56-de2984a92b1a', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:b9:c6:16', u'project_id': u'bd4c756587724d39a2bf2c54bf879774', u'status': u'ACTIVE', u'binding:host_id': u'overcloud-controller-2.opnfvlf.org', u'description': u'', u'tags': [], u'device_id': u'dhcpc69a0073-335e-55e4-8ed9-d962a64f06e6-3160e049-f721-446d-a338-83eb37ae21cf', u'name': u'', u'admin_state_up': True, u'network_id': u'3160e049-f721-446d-a338-83eb37ae21cf', u'tenant_id': u'bd4c756587724d39a2bf2c54bf879774', u'created_at': u'2018-03-24T08:23:23Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-24T07:16:57Z', u'device_owner': u'network:router_gateway', u'revision_number': 3, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.211'}], u'id': u'ea44251e-ab83-46d0-ae5f-6d303df2904c', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:3c:68:49', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'd05fd9ee-5565-4e1d-b670-028a0c14dc2e', u'name': u'', u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'', u'created_at': u'2018-03-24T07:16:57Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-24T07:16:37Z', u'device_owner': u'network:router_gateway', u'revision_number': 3, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.205'}], u'id': u'f90ddaba-8a7b-4bde-9693-71b70318930b', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:a5:1f:76', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'bdc6edd5-a644-4e98-aa6a-7ab6ac048a2a', u'name': u'', u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'', u'created_at': u'2018-03-24T07:16:37Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-24T07:37:15Z', u'device_owner': u'network:router_gateway', u'revision_number': 3, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.210'}], u'id': u'fc5b7d8b-65b1-437c-a761-9469c1a0b231', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:0a:a8:cd', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'5ab02b87-bc1e-4d24-885a-f6c3bba1631c', u'name': u'', u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'', u'created_at': u'2018-03-24T07:37:15Z', u'binding:vnic_type': u'normal'}]}
Checking OpenStack Neutron for known ports
Ports Neutron OpenStack
Create Session: create a HTTP session to a server
ODLSession
http://${ODL_SYSTEM_IP}:${PORT}
headers=${HEADERS}
auth=${AUTH}
Creating Session using : alias=ODLSession, url=http://192.30.9.6:8081, headers={u'Content-Type': u'application/json'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7fd1f82245d0>, timeout=None, proxies=None, verify=False, debug=0
Send a GET request on the session object found using the
ODLSession
${NEUTRON_PORTS_API}
${resp}
Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None
${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}
To JSON using : content={
"ports" : [ {
"id" : "507c02b4-6002-43c5-ab63-218719fc5492",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"mac_address" : "fa:16:3e:13:9d:0c",
"fixed_ips" : [ {
"ip_address" : "172.30.9.208",
"subnet_id" : "a8cbd6d7-c453-4288-b902-6d08bde9a2fa"
} ],
"device_id" : "7e140830-bd59-44e6-ad3c-d2eee7887b37",
"device_owner" : "network:router_gateway",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "96f2cb94-50bb-49d0-bfed-5d8b66076736",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"mac_address" : "fa:16:3e:ff:6b:bb",
"fixed_ips" : [ {
"ip_address" : "172.30.9.202",
"subnet_id" : "a8cbd6d7-c453-4288-b902-6d08bde9a2fa"
} ],
"device_id" : "f5e8cab6-a051-4423-a82e-d0354eda103b",
"device_owner" : "network:router_gateway",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "d7da047b-0322-405a-9d70-822c291320d4",
"tenant_id" : "bd4c756587724d39a2bf2c54bf879774",
"revision_number" : 3,
"name" : "",
"admin_state_up" : true,
"network_id" : "3160e049-f721-446d-a338-83eb37ae21cf",
"mac_address" : "fa:16:3e:00:c7:f4",
"fixed_ips" : [ {
"ip_address" : "172.16.64.20",
"subnet_id" : "00a0e7c0-6291-4a85-a849-513fe72113b8"
} ],
"device_id" : "dhcp17e94b90-b2ce-5539-8324-a5c0ec508ba1-3160e049-f721-446d-a338-83eb37ae21cf",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "overcloud-controller-1.opnfvlf.org",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "5311d0d9-2d1d-4948-90e6-aa968a7e945d",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"mac_address" : "fa:16:3e:2b:4c:86",
"fixed_ips" : [ {
"ip_address" : "172.30.9.217",
"subnet_id" : "a8cbd6d7-c453-4288-b902-6d08bde9a2fa"
} ],
"device_id" : "d6ff058d-10c4-4abe-bc4c-796ec2cd2be3",
"device_owner" : "network:router_gateway",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "db25fc5c-e189-4575-8b56-de2984a92b1a",
"tenant_id" : "bd4c756587724d39a2bf2c54bf879774",
"revision_number" : 3,
"name" : "",
"admin_state_up" : true,
"network_id" : "3160e049-f721-446d-a338-83eb37ae21cf",
"mac_address" : "fa:16:3e:b9:c6:16",
"fixed_ips" : [ {
"ip_address" : "172.16.64.22",
"subnet_id" : "00a0e7c0-6291-4a85-a849-513fe72113b8"
} ],
"device_id" : "dhcpc69a0073-335e-55e4-8ed9-d962a64f06e6-3160e049-f721-446d-a338-83eb37ae21cf",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "overcloud-controller-2.opnfvlf.org",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "10f575ec-b1e1-47c5-8ef5-bbf098b4f155",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"mac_address" : "fa:16:3e:36:e4:ed",
"fixed_ips" : [ {
"ip_address" : "172.30.9.207",
"subnet_id" : "a8cbd6d7-c453-4288-b902-6d08bde9a2fa"
} ],
"device_id" : "b9f59218-1ebf-4e2e-a106-aca5894b8528",
"device_owner" : "network:router_gateway",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "10600c1c-b5e2-40bf-bd69-e337eb26aaf6",
"tenant_id" : "bd4c756587724d39a2bf2c54bf879774",
"revision_number" : 3,
"name" : "",
"admin_state_up" : true,
"network_id" : "3160e049-f721-446d-a338-83eb37ae21cf",
"mac_address" : "fa:16:3e:6e:7b:c6",
"fixed_ips" : [ {
"ip_address" : "172.16.64.21",
"subnet_id" : "00a0e7c0-6291-4a85-a849-513fe72113b8"
} ],
"device_id" : "dhcp827da361-9c56-50f7-913f-5a01f7bfed2c-3160e049-f721-446d-a338-83eb37ae21cf",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "overcloud-controller-0.opnfvlf.org",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "fc5b7d8b-65b1-437c-a761-9469c1a0b231",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"mac_address" : "fa:16:3e:0a:a8:cd",
"fixed_ips" : [ {
"ip_address" : "172.30.9.210",
"subnet_id" : "a8cbd6d7-c453-4288-b902-6d08bde9a2fa"
} ],
"device_id" : "5ab02b87-bc1e-4d24-885a-f6c3bba1631c",
"device_owner" : "network:router_gateway",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "44c7271a-7d46-4d28-b499-2673a43a40da",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"mac_address" : "fa:16:3e:33:1f:e6",
"fixed_ips" : [ {
"ip_address" : "172.30.9.206",
"subnet_id" : "a8cbd6d7-c453-4288-b902-6d08bde9a2fa"
} ],
"device_id" : "69504bc0-52e4-4283-95d5-cc3c4a527872",
"device_owner" : "network:router_gateway",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "ea44251e-ab83-46d0-ae5f-6d303df2904c",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"mac_address" : "fa:16:3e:3c:68:49",
"fixed_ips" : [ {
"ip_address" : "172.30.9.211",
"subnet_id" : "a8cbd6d7-c453-4288-b902-6d08bde9a2fa"
} ],
"device_id" : "d05fd9ee-5565-4e1d-b670-028a0c14dc2e",
"device_owner" : "network:router_gateway",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "1536345c-8848-4357-84ef-e5cf607440f7",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"mac_address" : "fa:16:3e:ce:b6:58",
"fixed_ips" : [ {
"ip_address" : "172.30.9.200",
"subnet_id" : "a8cbd6d7-c453-4288-b902-6d08bde9a2fa"
} ],
"device_id" : "09a3893f-cff0-40d1-94da-f0df655c6a57",
"device_owner" : "network:router_gateway",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "480e2d88-9a7f-4319-9de8-0f1267f379c2",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"mac_address" : "fa:16:3e:a5:f2:2b",
"fixed_ips" : [ {
"ip_address" : "172.30.9.214",
"subnet_id" : "a8cbd6d7-c453-4288-b902-6d08bde9a2fa"
} ],
"device_id" : "e3440237-e823-478c-a786-9d0b7880b406",
"device_owner" : "network:router_gateway",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "f90ddaba-8a7b-4bde-9693-71b70318930b",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"mac_address" : "fa:16:3e:a5:1f:76",
"fixed_ips" : [ {
"ip_address" : "172.30.9.205",
"subnet_id" : "a8cbd6d7-c453-4288-b902-6d08bde9a2fa"
} ],
"device_id" : "bdc6edd5-a644-4e98-aa6a-7ab6ac048a2a",
"device_owner" : "network:router_gateway",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
} ]
}
To JSON using : pretty_print=False
${ODLResult} = {u'ports': [{u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u't...
Logs the given message with the given level.
${ODLResult}
{u'ports': [{u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:router_gateway', u'mac_address': u'fa:16:3e:13:9d:0c', u'port_security_enabled': False, u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.208'}], u'id': u'507c02b4-6002-43c5-ab63-218719fc5492', u'security_groups': [], u'device_id': u'7e140830-bd59-44e6-ad3c-d2eee7887b37'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:router_gateway', u'mac_address': u'fa:16:3e:ff:6b:bb', u'port_security_enabled': False, u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.202'}], u'id': u'96f2cb94-50bb-49d0-bfed-5d8b66076736', u'security_groups': [], u'device_id': u'f5e8cab6-a051-4423-a82e-d0354eda103b'}, {u'Map': {}, u'binding:host_id': u'overcloud-controller-1.opnfvlf.org', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'3160e049-f721-446d-a338-83eb37ae21cf', u'tenant_id': u'bd4c756587724d39a2bf2c54bf879774', 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:00:c7:f4', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'00a0e7c0-6291-4a85-a849-513fe72113b8', u'ip_address': u'172.16.64.20'}], u'id': u'd7da047b-0322-405a-9d70-822c291320d4', u'security_groups': [], u'device_id': u'dhcp17e94b90-b2ce-5539-8324-a5c0ec508ba1-3160e049-f721-446d-a338-83eb37ae21cf'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:router_gateway', u'mac_address': u'fa:16:3e:2b:4c:86', u'port_security_enabled': False, u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.217'}], u'id': u'5311d0d9-2d1d-4948-90e6-aa968a7e945d', u'security_groups': [], u'device_id': u'd6ff058d-10c4-4abe-bc4c-796ec2cd2be3'}, {u'Map': {}, u'binding:host_id': u'overcloud-controller-2.opnfvlf.org', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'3160e049-f721-446d-a338-83eb37ae21cf', u'tenant_id': u'bd4c756587724d39a2bf2c54bf879774', 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:b9:c6:16', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'00a0e7c0-6291-4a85-a849-513fe72113b8', u'ip_address': u'172.16.64.22'}], u'id': u'db25fc5c-e189-4575-8b56-de2984a92b1a', u'security_groups': [], u'device_id': u'dhcpc69a0073-335e-55e4-8ed9-d962a64f06e6-3160e049-f721-446d-a338-83eb37ae21cf'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:router_gateway', u'mac_address': u'fa:16:3e:36:e4:ed', u'port_security_enabled': False, u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.207'}], u'id': u'10f575ec-b1e1-47c5-8ef5-bbf098b4f155', u'security_groups': [], u'device_id': u'b9f59218-1ebf-4e2e-a106-aca5894b8528'}, {u'Map': {}, u'binding:host_id': u'overcloud-controller-0.opnfvlf.org', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'3160e049-f721-446d-a338-83eb37ae21cf', u'tenant_id': u'bd4c756587724d39a2bf2c54bf879774', 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:6e:7b:c6', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'00a0e7c0-6291-4a85-a849-513fe72113b8', u'ip_address': u'172.16.64.21'}], u'id': u'10600c1c-b5e2-40bf-bd69-e337eb26aaf6', u'security_groups': [], u'device_id': u'dhcp827da361-9c56-50f7-913f-5a01f7bfed2c-3160e049-f721-446d-a338-83eb37ae21cf'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:router_gateway', u'mac_address': u'fa:16:3e:0a:a8:cd', u'port_security_enabled': False, u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.210'}], u'id': u'fc5b7d8b-65b1-437c-a761-9469c1a0b231', u'security_groups': [], u'device_id': u'5ab02b87-bc1e-4d24-885a-f6c3bba1631c'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:router_gateway', u'mac_address': u'fa:16:3e:33:1f:e6', u'port_security_enabled': False, u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.206'}], u'id': u'44c7271a-7d46-4d28-b499-2673a43a40da', u'security_groups': [], u'device_id': u'69504bc0-52e4-4283-95d5-cc3c4a527872'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:router_gateway', u'mac_address': u'fa:16:3e:3c:68:49', u'port_security_enabled': False, u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.211'}], u'id': u'ea44251e-ab83-46d0-ae5f-6d303df2904c', u'security_groups': [], u'device_id': u'd05fd9ee-5565-4e1d-b670-028a0c14dc2e'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:router_gateway', u'mac_address': u'fa:16:3e:ce:b6:58', u'port_security_enabled': False, u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.200'}], u'id': u'1536345c-8848-4357-84ef-e5cf607440f7', u'security_groups': [], u'device_id': u'09a3893f-cff0-40d1-94da-f0df655c6a57'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:router_gateway', u'mac_address': u'fa:16:3e:a5:f2:2b', u'port_security_enabled': False, u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.214'}], u'id': u'480e2d88-9a7f-4319-9de8-0f1267f379c2', u'security_groups': [], u'device_id': u'e3440237-e823-478c-a786-9d0b7880b406'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:router_gateway', u'mac_address': u'fa:16:3e:a5:1f:76', u'port_security_enabled': False, u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.205'}], u'id': u'f90ddaba-8a7b-4bde-9693-71b70318930b', u'security_groups': [], u'device_id': u'bdc6edd5-a644-4e98-aa6a-7ab6ac048a2a'}]}
Checking OpenDaylight Neutron API for known ports
Ports Neutron OpenDaylight
Logs the given message with the given level.
${data}
{"port":{"network_id":"3160e049-f721-446d-a338-83eb37ae21cf","admin_state_up": true}}
Send a POST request on the session object found using the
OSSession
${OSREST}
data=${data}
${resp}
Post Request using : alias=OSSession, uri=/v2.0/ports, data=<empty>, headers=None, files=None, allow_redirects=True
${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}
To JSON using : content={"port":{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-24T08:23:24Z","device_owner":"","revision_number":3,"binding:profile":{},"port_security_enabled":true,"fixed_ips":[{"subnet_id":"00a0e7c0-6291-4a85-a849-513fe72113b8","ip_address":"172.16.64.28"}],"id":"df5760ac-92bb-45fe-b712-feeacf079e62","security_groups":["c412fb4b-f70a-4026-b8d2-42ef13b4eae9"],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:fc:78:57","project_id":"bd4c756587724d39a2bf2c54bf879774","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"","name":"","admin_state_up":true,"network_id":"3160e049-f721-446d-a338-83eb37ae21cf","tenant_id":"bd4c756587724d39a2bf2c54bf879774","created_at":"2018-03-24T08:23:24Z","binding:vnic_type":"normal"}}
To JSON using : pretty_print=False
${result} = {u'port': {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-24T08:23:24Z', u'device_owner': u'', u'revision_number': 3, u'binding:profile': {}, u'port_security_enabled': ...
Returns a value from the given ``dictionary`` based on the given ``key``.
${result}
port
${result}
${result} = {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-24T08:23:24Z', u'device_owner': u'', u'revision_number': 3, u'binding:profile': {}, u'port_security_enabled': True, u'fi...
Returns a value from the given ``dictionary`` based on the given ``key``.
${result}
id
${PORTID}
${PORTID} = df5760ac-92bb-45fe-b712-feeacf079e62
Logs the given message with the given level.
${result}
{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-24T08:23:24Z', u'device_owner': u'', u'revision_number': 3, u'binding:profile': {}, u'port_security_enabled': True, u'fixed_ips': [{u'subnet_id': u'00a0e7c0-6291-4a85-a849-513fe72113b8', u'ip_address': u'172.16.64.28'}], u'id': u'df5760ac-92bb-45fe-b712-feeacf079e62', u'security_groups': [u'c412fb4b-f70a-4026-b8d2-42ef13b4eae9'], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:fc:78:57', u'project_id': u'bd4c756587724d39a2bf2c54bf879774', 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'3160e049-f721-446d-a338-83eb37ae21cf', u'tenant_id': u'bd4c756587724d39a2bf2c54bf879774', u'created_at': u'2018-03-24T08:23:24Z', u'binding:vnic_type': u'normal'}
Logs the given message with the given level.
${PORTID}
df5760ac-92bb-45fe-b712-feeacf079e62
Makes a variable available globally in all tests and suites.
${PORTID}
${PORTID} = df5760ac-92bb-45fe-b712-feeacf079e62
Pauses the test executed for the given time.
2
Slept 2 seconds
Create new port in OpenStack
Create port OpenStack Neutron
Send a GET request on the session object found using the
ODLSession
${NEUTRON_PORTS_API}/${PORTID}
${resp}
Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/df5760ac-92bb-45fe-b712-feeacf079e62, headers=None json=None
${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 port created in OpenDaylight
Check port OpenDaylight
Removes all the session objects
Delete All Sessions
Checking Port created in OpenStack are pushed to OpenDaylight
Create Session: create a HTTP session to a server
OSSession
${NEUTRONURL}
headers=${X-AUTH-NOCONTENT}
Creating Session using : alias=OSSession, url=http://172.30.9.22:9696, headers={u'X-Auth-Token': 'gAAAAABatgr25Fc6xhWv_U64ntoNmu3Hu_MiYh6yecBWzmBLKrgU_LOmp2Gclat5evgZ5H5iGw_kerzs4YVZOWAHUUo3mWN2u7LC7ObA_-q96hr61VTYljcXIblU7UNQpDDlqBfp2muxds4Krje6YXL29-iH-w0icuDdK4jsO7KwLvbXhVgZHKI'}, cookies=None, auth=None, timeout=None, proxies=None, verify=False, debug=0
Create Session: create a HTTP session to a server
ODLSession
http://${ODL_SYSTEM_IP}:${PORT}
headers=${HEADERS}
auth=${AUTH}
Creating Session using : alias=ODLSession, url=http://192.30.9.6:8081, headers={u'Content-Type': u'application/json'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7fd1f81c7190>, timeout=None, proxies=None, verify=False, debug=0
${PORTID}
Send a GET request on the session object found using the
ODLSession
${NEUTRON_PORTS_API}/${portid}
${resp}
Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/df5760ac-92bb-45fe-b712-feeacf079e62, headers=None json=None
${resp} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
200
Argument types are:
<type 'int'>
<type 'unicode'>
Logs the given message with the given level.
${data}
{"port":{"network_id":"3160e049-f721-446d-a338-83eb37ae21cf","admin_state_up": true}}
Send a DELETE request on the session object found using the
OSSession
${OSREST}
${resp}
Delete Request using : alias=OSSession, uri=/v2.0/ports/df5760ac-92bb-45fe-b712-feeacf079e62, data=(), headers=None, allow_redirects=True
${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
Send a GET request on the session object found using the
ODLSession
${NEUTRON_PORTS_API}
${resp}
Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports, headers=None json=None
${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}
To JSON using : content={
"ports" : [ {
"id" : "480e2d88-9a7f-4319-9de8-0f1267f379c2",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"mac_address" : "fa:16:3e:a5:f2:2b",
"fixed_ips" : [ {
"ip_address" : "172.30.9.214",
"subnet_id" : "a8cbd6d7-c453-4288-b902-6d08bde9a2fa"
} ],
"device_id" : "e3440237-e823-478c-a786-9d0b7880b406",
"device_owner" : "network:router_gateway",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "10600c1c-b5e2-40bf-bd69-e337eb26aaf6",
"tenant_id" : "bd4c756587724d39a2bf2c54bf879774",
"revision_number" : 3,
"name" : "",
"admin_state_up" : true,
"network_id" : "3160e049-f721-446d-a338-83eb37ae21cf",
"mac_address" : "fa:16:3e:6e:7b:c6",
"fixed_ips" : [ {
"ip_address" : "172.16.64.21",
"subnet_id" : "00a0e7c0-6291-4a85-a849-513fe72113b8"
} ],
"device_id" : "dhcp827da361-9c56-50f7-913f-5a01f7bfed2c-3160e049-f721-446d-a338-83eb37ae21cf",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "overcloud-controller-0.opnfvlf.org",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "fc5b7d8b-65b1-437c-a761-9469c1a0b231",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"mac_address" : "fa:16:3e:0a:a8:cd",
"fixed_ips" : [ {
"ip_address" : "172.30.9.210",
"subnet_id" : "a8cbd6d7-c453-4288-b902-6d08bde9a2fa"
} ],
"device_id" : "5ab02b87-bc1e-4d24-885a-f6c3bba1631c",
"device_owner" : "network:router_gateway",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "db25fc5c-e189-4575-8b56-de2984a92b1a",
"tenant_id" : "bd4c756587724d39a2bf2c54bf879774",
"revision_number" : 3,
"name" : "",
"admin_state_up" : true,
"network_id" : "3160e049-f721-446d-a338-83eb37ae21cf",
"mac_address" : "fa:16:3e:b9:c6:16",
"fixed_ips" : [ {
"ip_address" : "172.16.64.22",
"subnet_id" : "00a0e7c0-6291-4a85-a849-513fe72113b8"
} ],
"device_id" : "dhcpc69a0073-335e-55e4-8ed9-d962a64f06e6-3160e049-f721-446d-a338-83eb37ae21cf",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "overcloud-controller-2.opnfvlf.org",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "f90ddaba-8a7b-4bde-9693-71b70318930b",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"mac_address" : "fa:16:3e:a5:1f:76",
"fixed_ips" : [ {
"ip_address" : "172.30.9.205",
"subnet_id" : "a8cbd6d7-c453-4288-b902-6d08bde9a2fa"
} ],
"device_id" : "bdc6edd5-a644-4e98-aa6a-7ab6ac048a2a",
"device_owner" : "network:router_gateway",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "44c7271a-7d46-4d28-b499-2673a43a40da",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"mac_address" : "fa:16:3e:33:1f:e6",
"fixed_ips" : [ {
"ip_address" : "172.30.9.206",
"subnet_id" : "a8cbd6d7-c453-4288-b902-6d08bde9a2fa"
} ],
"device_id" : "69504bc0-52e4-4283-95d5-cc3c4a527872",
"device_owner" : "network:router_gateway",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "96f2cb94-50bb-49d0-bfed-5d8b66076736",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"mac_address" : "fa:16:3e:ff:6b:bb",
"fixed_ips" : [ {
"ip_address" : "172.30.9.202",
"subnet_id" : "a8cbd6d7-c453-4288-b902-6d08bde9a2fa"
} ],
"device_id" : "f5e8cab6-a051-4423-a82e-d0354eda103b",
"device_owner" : "network:router_gateway",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "1536345c-8848-4357-84ef-e5cf607440f7",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"mac_address" : "fa:16:3e:ce:b6:58",
"fixed_ips" : [ {
"ip_address" : "172.30.9.200",
"subnet_id" : "a8cbd6d7-c453-4288-b902-6d08bde9a2fa"
} ],
"device_id" : "09a3893f-cff0-40d1-94da-f0df655c6a57",
"device_owner" : "network:router_gateway",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "ea44251e-ab83-46d0-ae5f-6d303df2904c",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"mac_address" : "fa:16:3e:3c:68:49",
"fixed_ips" : [ {
"ip_address" : "172.30.9.211",
"subnet_id" : "a8cbd6d7-c453-4288-b902-6d08bde9a2fa"
} ],
"device_id" : "d05fd9ee-5565-4e1d-b670-028a0c14dc2e",
"device_owner" : "network:router_gateway",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "5311d0d9-2d1d-4948-90e6-aa968a7e945d",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"mac_address" : "fa:16:3e:2b:4c:86",
"fixed_ips" : [ {
"ip_address" : "172.30.9.217",
"subnet_id" : "a8cbd6d7-c453-4288-b902-6d08bde9a2fa"
} ],
"device_id" : "d6ff058d-10c4-4abe-bc4c-796ec2cd2be3",
"device_owner" : "network:router_gateway",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "10f575ec-b1e1-47c5-8ef5-bbf098b4f155",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"mac_address" : "fa:16:3e:36:e4:ed",
"fixed_ips" : [ {
"ip_address" : "172.30.9.207",
"subnet_id" : "a8cbd6d7-c453-4288-b902-6d08bde9a2fa"
} ],
"device_id" : "b9f59218-1ebf-4e2e-a106-aca5894b8528",
"device_owner" : "network:router_gateway",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "507c02b4-6002-43c5-ab63-218719fc5492",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"mac_address" : "fa:16:3e:13:9d:0c",
"fixed_ips" : [ {
"ip_address" : "172.30.9.208",
"subnet_id" : "a8cbd6d7-c453-4288-b902-6d08bde9a2fa"
} ],
"device_id" : "7e140830-bd59-44e6-ad3c-d2eee7887b37",
"device_owner" : "network:router_gateway",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "d7da047b-0322-405a-9d70-822c291320d4",
"tenant_id" : "bd4c756587724d39a2bf2c54bf879774",
"revision_number" : 3,
"name" : "",
"admin_state_up" : true,
"network_id" : "3160e049-f721-446d-a338-83eb37ae21cf",
"mac_address" : "fa:16:3e:00:c7:f4",
"fixed_ips" : [ {
"ip_address" : "172.16.64.20",
"subnet_id" : "00a0e7c0-6291-4a85-a849-513fe72113b8"
} ],
"device_id" : "dhcp17e94b90-b2ce-5539-8324-a5c0ec508ba1-3160e049-f721-446d-a338-83eb37ae21cf",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "overcloud-controller-1.opnfvlf.org",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
} ]
}
To JSON using : pretty_print=False
${ODLResult} = {u'ports': [{u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u't...
Logs the given message with the given level.
${ODLResult}
{u'ports': [{u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:router_gateway', u'mac_address': u'fa:16:3e:a5:f2:2b', u'port_security_enabled': False, u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.214'}], u'id': u'480e2d88-9a7f-4319-9de8-0f1267f379c2', u'security_groups': [], u'device_id': u'e3440237-e823-478c-a786-9d0b7880b406'}, {u'Map': {}, u'binding:host_id': u'overcloud-controller-0.opnfvlf.org', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'3160e049-f721-446d-a338-83eb37ae21cf', u'tenant_id': u'bd4c756587724d39a2bf2c54bf879774', 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:6e:7b:c6', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'00a0e7c0-6291-4a85-a849-513fe72113b8', u'ip_address': u'172.16.64.21'}], u'id': u'10600c1c-b5e2-40bf-bd69-e337eb26aaf6', u'security_groups': [], u'device_id': u'dhcp827da361-9c56-50f7-913f-5a01f7bfed2c-3160e049-f721-446d-a338-83eb37ae21cf'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:router_gateway', u'mac_address': u'fa:16:3e:0a:a8:cd', u'port_security_enabled': False, u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.210'}], u'id': u'fc5b7d8b-65b1-437c-a761-9469c1a0b231', u'security_groups': [], u'device_id': u'5ab02b87-bc1e-4d24-885a-f6c3bba1631c'}, {u'Map': {}, u'binding:host_id': u'overcloud-controller-2.opnfvlf.org', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'3160e049-f721-446d-a338-83eb37ae21cf', u'tenant_id': u'bd4c756587724d39a2bf2c54bf879774', 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:b9:c6:16', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'00a0e7c0-6291-4a85-a849-513fe72113b8', u'ip_address': u'172.16.64.22'}], u'id': u'db25fc5c-e189-4575-8b56-de2984a92b1a', u'security_groups': [], u'device_id': u'dhcpc69a0073-335e-55e4-8ed9-d962a64f06e6-3160e049-f721-446d-a338-83eb37ae21cf'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:router_gateway', u'mac_address': u'fa:16:3e:a5:1f:76', u'port_security_enabled': False, u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.205'}], u'id': u'f90ddaba-8a7b-4bde-9693-71b70318930b', u'security_groups': [], u'device_id': u'bdc6edd5-a644-4e98-aa6a-7ab6ac048a2a'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:router_gateway', u'mac_address': u'fa:16:3e:33:1f:e6', u'port_security_enabled': False, u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.206'}], u'id': u'44c7271a-7d46-4d28-b499-2673a43a40da', u'security_groups': [], u'device_id': u'69504bc0-52e4-4283-95d5-cc3c4a527872'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:router_gateway', u'mac_address': u'fa:16:3e:ff:6b:bb', u'port_security_enabled': False, u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.202'}], u'id': u'96f2cb94-50bb-49d0-bfed-5d8b66076736', u'security_groups': [], u'device_id': u'f5e8cab6-a051-4423-a82e-d0354eda103b'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:router_gateway', u'mac_address': u'fa:16:3e:ce:b6:58', u'port_security_enabled': False, u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.200'}], u'id': u'1536345c-8848-4357-84ef-e5cf607440f7', u'security_groups': [], u'device_id': u'09a3893f-cff0-40d1-94da-f0df655c6a57'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:router_gateway', u'mac_address': u'fa:16:3e:3c:68:49', u'port_security_enabled': False, u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.211'}], u'id': u'ea44251e-ab83-46d0-ae5f-6d303df2904c', u'security_groups': [], u'device_id': u'd05fd9ee-5565-4e1d-b670-028a0c14dc2e'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:router_gateway', u'mac_address': u'fa:16:3e:2b:4c:86', u'port_security_enabled': False, u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.217'}], u'id': u'5311d0d9-2d1d-4948-90e6-aa968a7e945d', u'security_groups': [], u'device_id': u'd6ff058d-10c4-4abe-bc4c-796ec2cd2be3'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:router_gateway', u'mac_address': u'fa:16:3e:36:e4:ed', u'port_security_enabled': False, u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.207'}], u'id': u'10f575ec-b1e1-47c5-8ef5-bbf098b4f155', u'security_groups': [], u'device_id': u'b9f59218-1ebf-4e2e-a106-aca5894b8528'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:router_gateway', u'mac_address': u'fa:16:3e:13:9d:0c', u'port_security_enabled': False, u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'fixed_ips': [{u'subnet_id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa', u'ip_address': u'172.30.9.208'}], u'id': u'507c02b4-6002-43c5-ab63-218719fc5492', u'security_groups': [], u'device_id': u'7e140830-bd59-44e6-ad3c-d2eee7887b37'}, {u'Map': {}, u'binding:host_id': u'overcloud-controller-1.opnfvlf.org', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'3160e049-f721-446d-a338-83eb37ae21cf', u'tenant_id': u'bd4c756587724d39a2bf2c54bf879774', 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:00:c7:f4', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'00a0e7c0-6291-4a85-a849-513fe72113b8', u'ip_address': u'172.16.64.20'}], u'id': u'd7da047b-0322-405a-9d70-822c291320d4', u'security_groups': [], u'device_id': u'dhcp17e94b90-b2ce-5539-8324-a5c0ec508ba1-3160e049-f721-446d-a338-83eb37ae21cf'}]}
Send a GET request on the session object found using the
ODLSession
${NEUTRON_PORTS_API}/${PORTID}
${resp}
Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/ports/df5760ac-92bb-45fe-b712-feeacf079e62, headers=None json=None
${resp} = <Response [404]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
404
Argument types are:
<type 'int'>
<type 'unicode'>
Check port deleted in OpenDaylight
Check port deleted OpenDaylight
Removes all the session objects
Delete All Sessions
Checking Port deleted in OpenStack are deleted also in OpenDaylight
Create Session: create a HTTP session to a server
OSSession
${NEUTRONURL}
headers=${X-AUTH-NOCONTENT}
Creating Session using : alias=OSSession, url=http://172.30.9.22:9696, headers={u'X-Auth-Token': 'gAAAAABatgr25Fc6xhWv_U64ntoNmu3Hu_MiYh6yecBWzmBLKrgU_LOmp2Gclat5evgZ5H5iGw_kerzs4YVZOWAHUUo3mWN2u7LC7ObA_-q96hr61VTYljcXIblU7UNQpDDlqBfp2muxds4Krje6YXL29-iH-w0icuDdK4jsO7KwLvbXhVgZHKI'}, cookies=None, auth=None, timeout=None, proxies=None, verify=False, debug=0
Create Session: create a HTTP session to a server
ODLSession
http://${ODL_SYSTEM_IP}:${PORT}
headers=${HEADERS}
auth=${AUTH}
Creating Session using : alias=ODLSession, url=http://192.30.9.6:8081, headers={u'Content-Type': u'application/json'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7fd1f8171550>, timeout=None, proxies=None, verify=False, debug=0
${SUBNETID}
Send a GET request on the session object found using the
ODLSession
${NEUTRON_SUBNETS_API}/${subnetid}
${resp}
Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/00a0e7c0-6291-4a85-a849-513fe72113b8, headers=None json=None
${resp} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
200
Argument types are:
<type 'int'>
<type 'unicode'>
Logs the given message with the given level.
${data}
{"subnet":{"network_id":"3160e049-f721-446d-a338-83eb37ae21cf","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
OSSession
${OSREST}
${resp}
Delete Request using : alias=OSSession, uri=/v2.0/subnets/00a0e7c0-6291-4a85-a849-513fe72113b8, data=(), headers=None, allow_redirects=True
${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
Send a GET request on the session object found using the
ODLSession
${NEUTRON_SUBNETS_API}
${resp}
Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets, headers=None json=None
${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}
To JSON using : content={
"subnets" : [ {
"id" : "a8cbd6d7-c453-4288-b902-6d08bde9a2fa",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"revision_number" : 0,
"name" : "external-subnet",
"network_id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"ip_version" : 4,
"cidr" : "172.30.9.0/24",
"gateway_ip" : "172.30.9.1",
"dns_nameservers" : [ ],
"allocation_pools" : [ {
"start" : "172.30.9.200",
"end" : "172.30.9.220"
} ],
"host_routes" : [ ],
"enable_dhcp" : false,
"ipv6_address_mode" : null,
"ipv6_ra_mode" : null
} ]
}
To JSON using : pretty_print=False
${ODLResult} = {u'subnets': [{u'name': u'external-subnet', u'enable_dhcp': False, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'dns_nameservers': [], u'...
Logs the given message with the given level.
${ODLResult}
{u'subnets': [{u'name': u'external-subnet', u'enable_dhcp': False, u'network_id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26', u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'172.30.9.200', u'end': u'172.30.9.220'}], u'gateway_ip': u'172.30.9.1', u'revision_number': 0, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'172.30.9.0/24', u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'id': u'a8cbd6d7-c453-4288-b902-6d08bde9a2fa'}]}
Send a GET request on the session object found using the
ODLSession
${NEUTRON_SUBNETS_API}/${SUBNETID}
${resp}
Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/subnets/00a0e7c0-6291-4a85-a849-513fe72113b8, headers=None json=None
${resp} = <Response [404]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
404
Argument types are:
<type 'int'>
<type 'unicode'>
Check subnet deleted in OpenDaylight
Check subnet deleted OpenDaylight
Removes all the session objects
Delete All Sessions
Checking Subnets deleted in OpenStack are deleted also in OpenDaylight
Create Session: create a HTTP session to a server
OSSession
${NEUTRONURL}
headers=${X-AUTH-NOCONTENT}
Creating Session using : alias=OSSession, url=http://172.30.9.22:9696, headers={u'X-Auth-Token': 'gAAAAABatgr25Fc6xhWv_U64ntoNmu3Hu_MiYh6yecBWzmBLKrgU_LOmp2Gclat5evgZ5H5iGw_kerzs4YVZOWAHUUo3mWN2u7LC7ObA_-q96hr61VTYljcXIblU7UNQpDDlqBfp2muxds4Krje6YXL29-iH-w0icuDdK4jsO7KwLvbXhVgZHKI'}, cookies=None, auth=None, timeout=None, proxies=None, verify=False, debug=0
Create Session: create a HTTP session to a server
ODLSession
http://${ODL_SYSTEM_IP}:${PORT}
headers=${HEADERS}
auth=${AUTH}
Creating Session using : alias=ODLSession, url=http://192.30.9.6:8081, headers={u'Content-Type': u'application/json'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7fd1f8193f10>, timeout=None, proxies=None, verify=False, debug=0
${NETID}
Send a GET request on the session object found using the
ODLSession
${NEUTRON_NETWORKS_API}/${netid}
${resp}
Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/3160e049-f721-446d-a338-83eb37ae21cf, headers=None json=None
${resp} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
200
Argument types are:
<type 'int'>
<type 'unicode'>
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
OSSession
${OSREST}
${resp}
Delete Request using : alias=OSSession, uri=/v2.0/networks/3160e049-f721-446d-a338-83eb37ae21cf, data=(), headers=None, allow_redirects=True
${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
Send a GET request on the session object found using the
ODLSession
${NEUTRON_NETWORKS_API}
${resp}
Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks, headers=None json=None
${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}
To JSON using : content={
"networks" : [ {
"id" : "e62d7bd1-aae1-40c7-a269-efd63c88fe26",
"tenant_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"project_id" : "5c2a9a30b4e046839dbad7ce3f065363",
"revision_number" : 3,
"name" : "external",
"admin_state_up" : true,
"status" : "ACTIVE",
"shared" : false,
"router:external" : true,
"provider:network_type" : "flat",
"provider:physical_network" : "datacentre",
"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" : [ ]
} ]
}
To JSON using : pretty_print=False
${ODLResult} = {u'networks': [{u'status': u'ACTIVE', u'router:external': True, u'name': u'external', u'provider:physical_network': u'datacentre', u'admin_state_up': True, u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f06...
Logs the given message with the given level.
${ODLResult}
{u'networks': [{u'status': u'ACTIVE', u'router:external': True, u'name': u'external', u'provider:physical_network': u'datacentre', u'admin_state_up': True, u'tenant_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 3, u'shared': False, u'project_id': u'5c2a9a30b4e046839dbad7ce3f065363', u'id': u'e62d7bd1-aae1-40c7-a269-efd63c88fe26'}, {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'}]}
Send a GET request on the session object found using the
ODLSession
${NEUTRON_NETWORKS_API}/${NETID}
${resp}
Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/3160e049-f721-446d-a338-83eb37ae21cf, headers=None json=None
${resp} = <Response [404]>
Fails if objects are unequal after converting them to strings.
${resp.status_code}
404
Argument types are:
<type 'int'>
<type 'unicode'>
Check network deleted in OpenDaylight
Check Network OpenDaylight
Removes all the session objects
Delete All Sessions
Checking Network deleted in OpenStack are deleted also in OpenDaylight
Removes all the session objects
Delete All Sessions
Test suite for Neutron Plugin
Critical Tests
All Tests
Check
Check Network OpenDaylight
Check port deleted OpenDaylight
Check port OpenDaylight
Check subnet deleted 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
reachability
subnet OpenDaylight
Subnets Neutron OpenDaylight
Subnets Neutron OpenStack
Basic & Neutron
Basic & Neutron.Basic
Basic & Neutron.Basic.Restconf Modules
Basic & Neutron.Neutron
Basic & Neutron.Neutron.Reachability
Basic & Neutron.Neutron.Networks
Basic & Neutron.Neutron.Subnets
Basic & Neutron.Neutron.Ports
Basic & Neutron.Neutron.Delete Ports
Basic & Neutron.Neutron.Delete Subnets
Basic & Neutron.Neutron.Delete Networks
Deprecation Warning: Use Post Request in the future