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.3:8081, headers={u'Content-Type': u'application/xml'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7f24c5219350>, 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.27: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} = gAAAAABauT_afGhbRpTAfqNmR2m2DbPM6sNdOwd9M80xvMlzXa4K1dkOWsky0SNYMIAaO_OfptpAI2i2cmdoDEtgk9YMqQwH-7PwO2ObK1vkzhXMxFbd8K8s596U5Z89sCwhkX_BmohCNC0SKYsGskmpIOhV9ITvYMqUWAKdC5uASQEqkqAjiyE
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': 'gAAAAABauT_afGhbRpTAfqNmR2m2DbPM6sNdOwd9M80xvMlzXa4K1dkOWsky0SNYMIAaO_OfptpAI2i2cmdoDEtgk9YMqQwH-7PwO2ObK1vkzhXMxFbd8K8s596U5Z89sCwhkX_BmohCNC0SKYsGskmpIOhV9ITvYMqUWAKdC5uASQEqkqAji...
Creates and returns a dictionary based on the given ``items``.
X-Auth-Token=${TOKEN}
${X-AUTH-NOCONTENT}
${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABauT_afGhbRpTAfqNmR2m2DbPM6sNdOwd9M80xvMlzXa4K1dkOWsky0SNYMIAaO_OfptpAI2i2cmdoDEtgk9YMqQwH-7PwO2ObK1vkzhXMxFbd8K8s596U5Z89sCwhkX_BmohCNC0SKYsGskmpIOhV9ITvYMqUWAKdC5uASQEqkqAji...
Makes a variable available globally in all tests and suites.
${X-AUTH}
${X-AUTH} = {u'X-Auth-Token': 'gAAAAABauT_afGhbRpTAfqNmR2m2DbPM6sNdOwd9M80xvMlzXa4K1dkOWsky0SNYMIAaO_OfptpAI2i2cmdoDEtgk9YMqQwH-7PwO2ObK1vkzhXMxFbd8K8s596U5Z89sCwhkX_BmohCNC0SKYsGskmpIOhV9ITvYMqUWAKdC5uASQEqkqAji...
Makes a variable available globally in all tests and suites.
${X-AUTH-NOCONTENT}
${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABauT_afGhbRpTAfqNmR2m2DbPM6sNdOwd9M80xvMlzXa4K1dkOWsky0SNYMIAaO_OfptpAI2i2cmdoDEtgk9YMqQwH-7PwO2ObK1vkzhXMxFbd8K8s596U5Z89sCwhkX_BmohCNC0SKYsGskmpIOhV9ITvYMqUWAKdC5uASQEqkqAji...
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.3:8081, headers={u'Content-Type': u'application/json'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7f24c50e5750>, 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.27:9696, headers={u'X-Auth-Token': 'gAAAAABauT_afGhbRpTAfqNmR2m2DbPM6sNdOwd9M80xvMlzXa4K1dkOWsky0SNYMIAaO_OfptpAI2i2cmdoDEtgk9YMqQwH-7PwO2ObK1vkzhXMxFbd8K8s596U5Z89sCwhkX_BmohCNC0SKYsGskmpIOhV9ITvYMqUWAKdC5uASQEqkqAjiyE', 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': 'gAAAAABauT_afGhbRpTAfqNmR2m2DbPM6sNdOwd9M80xvMlzXa4K1dkOWsky0SNYMIAaO_OfptpAI2i2cmdoDEtgk9YMqQwH-7PwO2ObK1vkzhXMxFbd8K8s596U5Z89sCwhkX_BmohCNC0SKYsGskmpIOhV9ITvYMqUWAKdC5uASQEqkqAjiyE', 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":"98e27980-991f-4061-a30c-ade7efb24da8","router:external":true,"availability_zone_hints":[],"availability_zones":["nova"],"ipv4_address_scope":null,"shared":false,"project_id":"586b8c1ffdd74f268392d5ed00e63a59","status":"ACTIVE","subnets":["e702b79a-a80b-42b2-b646-ac63903f0358"],"description":"","tags":[],"updated_at":"2018-03-26T17:40:28Z","is_default":false,"provider:segmentation_id":null,"name":"external","admin_state_up":true,"tenant_id":"586b8c1ffdd74f268392d5ed00e63a59","created_at":"2018-03-26T17:40:21Z","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'98e27980-99...
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'98e27980-991f-4061-a30c-ade7efb24da8', 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'586b8c1ffdd74f268392d5ed00e63a59', u'status': u'ACTIVE', u'subnets': [u'e702b79a-a80b-42b2-b646-ac63903f0358'], u'description': u'', u'tags': [], u'updated_at': u'2018-03-26T17:40:28Z', u'is_default': False, u'provider:segmentation_id': None, u'name': u'external', u'admin_state_up': True, u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'created_at': u'2018-03-26T17:40:21Z', 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.3:8081, headers={u'Content-Type': u'application/json'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7f24c51ff7d0>, 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" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
"tenant_id" : "bd8db3a82b304083a8b3b3fd46401142",
"project_id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
"name" : "Sync Canary Network",
"admin_state_up" : false,
"status" : "ACTIVE",
"shared" : false,
"router:external" : false,
"provider:network_type" : "flat",
"segments" : [ ]
}, {
"id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"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" : [ ]
} ]
}
To JSON using : pretty_print=False
${ODLResult} = {u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'name': u'Sync Canary Network', u'admin_state_up': False, u'tenant_id': u'bd8db3a82b304083a8b3b3fd46401142', u'segments': [], u'provid...
Logs the given message with the given level.
${ODLResult}
{u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'name': u'Sync Canary Network', u'admin_state_up': False, u'tenant_id': u'bd8db3a82b304083a8b3b3fd46401142', u'segments': [], u'provider:network_type': u'flat', u'shared': False, u'project_id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142', u'id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142'}, {u'status': u'ACTIVE', u'router:external': True, u'name': u'external', u'provider:physical_network': u'datacentre', u'admin_state_up': True, u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 3, u'shared': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'id': u'98e27980-991f-4061-a30c-ade7efb24da8'}]}
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":"bda5db05-eb9b-4e61-b5f2-c97e15eaca4d","router:external":false,"availability_zone_hints":[],"availability_zones":[],"ipv4_address_scope":null,"shared":false,"project_id":"5a9be3295f0d4c8ba4cbb5e7628249c4","status":"ACTIVE","subnets":[],"description":"","tags":[],"updated_at":"2018-03-26T18:45:47Z","is_default":false,"provider:segmentation_id":88,"name":"odl_network","admin_state_up":true,"tenant_id":"5a9be3295f0d4c8ba4cbb5e7628249c4","created_at":"2018-03-26T18:45:47Z","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'bda5db05-eb9b-4e61-b5f2-c97e15eaca4d', 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'bda5db05-eb9b-4e61-b5f2-c97e15eaca4d', u'router:external...
Returns a value from the given ``dictionary`` based on the given ``key``.
${result}
id
${NETID}
${NETID} = bda5db05-eb9b-4e61-b5f2-c97e15eaca4d
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'bda5db05-eb9b-4e61-b5f2-c97e15eaca4d', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'5a9be3295f0d4c8ba4cbb5e7628249c4', u'status': u'ACTIVE', u'subnets': [], u'description': u'', u'tags': [], u'updated_at': u'2018-03-26T18:45:47Z', u'is_default': False, u'provider:segmentation_id': 88, u'name': u'odl_network', u'admin_state_up': True, u'tenant_id': u'5a9be3295f0d4c8ba4cbb5e7628249c4', u'created_at': u'2018-03-26T18:45:47Z', u'provider:network_type': u'vxlan'}
Logs the given message with the given level.
${NETID}
bda5db05-eb9b-4e61-b5f2-c97e15eaca4d
Makes a variable available globally in all tests and suites.
${NETID}
${NETID} = bda5db05-eb9b-4e61-b5f2-c97e15eaca4d
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/bda5db05-eb9b-4e61-b5f2-c97e15eaca4d, 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.27:9696, headers={u'X-Auth-Token': 'gAAAAABauT_afGhbRpTAfqNmR2m2DbPM6sNdOwd9M80xvMlzXa4K1dkOWsky0SNYMIAaO_OfptpAI2i2cmdoDEtgk9YMqQwH-7PwO2ObK1vkzhXMxFbd8K8s596U5Z89sCwhkX_BmohCNC0SKYsGskmpIOhV9ITvYMqUWAKdC5uASQEqkqAjiyE', 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': 'gAAAAABauT_afGhbRpTAfqNmR2m2DbPM6sNdOwd9M80xvMlzXa4K1dkOWsky0SNYMIAaO_OfptpAI2i2cmdoDEtgk9YMqQwH-7PwO2ObK1vkzhXMxFbd8K8s596U5Z89sCwhkX_BmohCNC0SKYsGskmpIOhV9ITvYMqUWAKdC5uASQEqkqAjiyE', 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":"98e27980-991f-4061-a30c-ade7efb24da8","tenant_id":"586b8c1ffdd74f268392d5ed00e63a59","created_at":"2018-03-26T17:40:28Z","dns_nameservers":[],"updated_at":"2018-03-26T17:40:28Z","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":"586b8c1ffdd74f268392d5ed00e63a59","id":"e702b79a-a80b-42b2-b646-ac63903f0358","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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f...
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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'created_at': u'2018-03-26T17:40:28Z', u'dns_nameservers': [], u'updated_at': u'2018-03-26T17:40:28Z', 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'586b8c1ffdd74f268392d5ed00e63a59', u'id': u'e702b79a-a80b-42b2-b646-ac63903f0358', 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.3:8081, headers={u'Content-Type': u'application/json'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7f24c51e9890>, 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" : "e702b79a-a80b-42b2-b646-ac63903f0358",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"revision_number" : 0,
"name" : "external-subnet",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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'586b8c1ffdd74f268392d5ed00e63a59', u'id': u'e702b79a-a80b-42b2-b646-ac63903f0358'}]}
Checking OpenDaylight Neutron API for known subnets
Subnets Neutron OpenDaylight
Logs the given message with the given level.
${data}
{"subnet":{"network_id":"bda5db05-eb9b-4e61-b5f2-c97e15eaca4d","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":"bda5db05-eb9b-4e61-b5f2-c97e15eaca4d","tenant_id":"5a9be3295f0d4c8ba4cbb5e7628249c4","created_at":"2018-03-26T18:45:50Z","dns_nameservers":[],"updated_at":"2018-03-26T18:45:50Z","gateway_ip":"172.16.64.1","ipv6_ra_mode":null,"allocation_pools":[{"start":"172.16.64.20","end":"172.16.64.120"}],"host_routes":[],"revision_number":0,"ip_version":4,"ipv6_address_mode":null,"cidr":"172.16.64.0/24","project_id":"5a9be3295f0d4c8ba4cbb5e7628249c4","id":"5238d4c4-95b3-40fa-8e5d-7a1abe878cb1","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'bda5db05-eb9b-4e61-b5f2-c97e15eaca4d', u'tenant_id': u'5a9be3295f0d4c8ba4cbb5e7628249c4', 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'bda5db05-eb9b-4e61-b5f2-c97e15eaca4d', u'tenant_id': u'5a9be3295f0d4c8ba4cbb5e7628249c4', u'created_at':...
Returns a value from the given ``dictionary`` based on the given ``key``.
${result}
id
${SUBNETID}
${SUBNETID} = 5238d4c4-95b3-40fa-8e5d-7a1abe878cb1
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'bda5db05-eb9b-4e61-b5f2-c97e15eaca4d', u'tenant_id': u'5a9be3295f0d4c8ba4cbb5e7628249c4', u'created_at': u'2018-03-26T18:45:50Z', u'dns_nameservers': [], u'updated_at': u'2018-03-26T18:45:50Z', u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'172.16.64.20', u'end': u'172.16.64.120'}], u'gateway_ip': u'172.16.64.1', u'revision_number': 0, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'172.16.64.0/24', u'project_id': u'5a9be3295f0d4c8ba4cbb5e7628249c4', u'id': u'5238d4c4-95b3-40fa-8e5d-7a1abe878cb1', u'subnetpool_id': None, u'name': u''}
Logs the given message with the given level.
${SUBNETID}
5238d4c4-95b3-40fa-8e5d-7a1abe878cb1
Makes a variable available globally in all tests and suites.
${SUBNETID}
${SUBNETID} = 5238d4c4-95b3-40fa-8e5d-7a1abe878cb1
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/5238d4c4-95b3-40fa-8e5d-7a1abe878cb1, 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.27:9696, headers={u'X-Auth-Token': 'gAAAAABauT_afGhbRpTAfqNmR2m2DbPM6sNdOwd9M80xvMlzXa4K1dkOWsky0SNYMIAaO_OfptpAI2i2cmdoDEtgk9YMqQwH-7PwO2ObK1vkzhXMxFbd8K8s596U5Z89sCwhkX_BmohCNC0SKYsGskmpIOhV9ITvYMqUWAKdC5uASQEqkqAjiyE', 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': 'gAAAAABauT_afGhbRpTAfqNmR2m2DbPM6sNdOwd9M80xvMlzXa4K1dkOWsky0SNYMIAaO_OfptpAI2i2cmdoDEtgk9YMqQwH-7PwO2ObK1vkzhXMxFbd8K8s596U5Z89sCwhkX_BmohCNC0SKYsGskmpIOhV9ITvYMqUWAKdC5uASQEqkqAjiyE', 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-26T18:45:52Z","device_owner":"network:dhcp","revision_number":4,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"5238d4c4-95b3-40fa-8e5d-7a1abe878cb1","ip_address":"172.16.64.22"}],"id":"05adc3e0-dc50-4d94-a97a-479cf37a88ca","security_groups":[],"binding:vif_details":{},"binding:vif_type":"ovs","mac_address":"fa:16:3e:80:b5:a1","project_id":"5a9be3295f0d4c8ba4cbb5e7628249c4","status":"ACTIVE","binding:host_id":"overcloud-controller-2.opnfvlf.org","description":"","tags":[],"device_id":"dhcpc69a0073-335e-55e4-8ed9-d962a64f06e6-bda5db05-eb9b-4e61-b5f2-c97e15eaca4d","name":"","admin_state_up":true,"network_id":"bda5db05-eb9b-4e61-b5f2-c97e15eaca4d","tenant_id":"5a9be3295f0d4c8ba4cbb5e7628249c4","created_at":"2018-03-26T18:45:51Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-26T18:27:51Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"e702b79a-a80b-42b2-b646-ac63903f0358","ip_address":"172.30.9.202"}],"id":"08a64ac6-a35a-44c4-94fd-f4d2faca7f6f","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:d4:87:b7","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"d17c35f7-7512-4f6f-a4f2-772ecc2e66bb","name":"","admin_state_up":true,"network_id":"98e27980-991f-4061-a30c-ade7efb24da8","tenant_id":"","created_at":"2018-03-26T18:27:50Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-26T18:45:51Z","device_owner":"network:dhcp","revision_number":4,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"5238d4c4-95b3-40fa-8e5d-7a1abe878cb1","ip_address":"172.16.64.21"}],"id":"19c416e3-d1a3-44a9-8a26-2de890121198","security_groups":[],"binding:vif_details":{},"binding:vif_type":"ovs","mac_address":"fa:16:3e:1c:79:cd","project_id":"5a9be3295f0d4c8ba4cbb5e7628249c4","status":"ACTIVE","binding:host_id":"overcloud-controller-0.opnfvlf.org","description":"","tags":[],"device_id":"dhcp827da361-9c56-50f7-913f-5a01f7bfed2c-bda5db05-eb9b-4e61-b5f2-c97e15eaca4d","name":"","admin_state_up":true,"network_id":"bda5db05-eb9b-4e61-b5f2-c97e15eaca4d","tenant_id":"5a9be3295f0d4c8ba4cbb5e7628249c4","created_at":"2018-03-26T18:45:51Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-26T18:27:46Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"e702b79a-a80b-42b2-b646-ac63903f0358","ip_address":"172.30.9.203"}],"id":"314056e1-7d5b-4bc3-b71b-236d6c901dd9","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:04:ac:46","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"3724ced3-e6e9-4ba2-a984-1229df620ab2","name":"","admin_state_up":true,"network_id":"98e27980-991f-4061-a30c-ade7efb24da8","tenant_id":"","created_at":"2018-03-26T18:27:46Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-26T17:45:16Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"e702b79a-a80b-42b2-b646-ac63903f0358","ip_address":"172.30.9.205"}],"id":"4d7b9773-eb3c-4267-92a5-9fff14e6cc8e","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:4f:d2:fc","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"836a0b3c-6ed4-4670-a9d3-64f5afef308c","name":"","admin_state_up":true,"network_id":"98e27980-991f-4061-a30c-ade7efb24da8","tenant_id":"","created_at":"2018-03-26T17:45:16Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-26T18:11:42Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"e702b79a-a80b-42b2-b646-ac63903f0358","ip_address":"172.30.9.211"}],"id":"54408082-e8f9-4818-bcf6-91544314862a","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:ff:48:49","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"d6583270-b264-4112-9630-c60358bfeb46","name":"","admin_state_up":true,"network_id":"98e27980-991f-4061-a30c-ade7efb24da8","tenant_id":"","created_at":"2018-03-26T18:11:42Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-26T18:27:45Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"e702b79a-a80b-42b2-b646-ac63903f0358","ip_address":"172.30.9.217"}],"id":"553f26c2-73e6-49a6-8a45-61b011b92fe8","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:77:4f:48","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"2a83af0d-31eb-4e5b-8253-e1df137223b2","name":"","admin_state_up":true,"network_id":"98e27980-991f-4061-a30c-ade7efb24da8","tenant_id":"","created_at":"2018-03-26T18:27:45Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-26T18:27:55Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"e702b79a-a80b-42b2-b646-ac63903f0358","ip_address":"172.30.9.218"}],"id":"560e6b8b-b2fc-4ba9-bed0-1e6235cd7453","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:2b:6c:71","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"2833a656-1189-40c5-8e05-35abb168034c","name":"","admin_state_up":true,"network_id":"98e27980-991f-4061-a30c-ade7efb24da8","tenant_id":"","created_at":"2018-03-26T18:27:55Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-26T17:45:14Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"e702b79a-a80b-42b2-b646-ac63903f0358","ip_address":"172.30.9.200"}],"id":"708c5567-24ce-40cd-8d87-12f39b000c1a","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:ca:a8:d8","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"a6adda11-fe11-486c-869e-a448a561c63b","name":"","admin_state_up":true,"network_id":"98e27980-991f-4061-a30c-ade7efb24da8","tenant_id":"","created_at":"2018-03-26T17:45:14Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-26T18:04:53Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"e702b79a-a80b-42b2-b646-ac63903f0358","ip_address":"172.30.9.209"}],"id":"96ee06dd-5846-437e-a762-9c0108c0e64b","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:72:04:f4","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"f2fe780d-888e-4a79-ab6d-51b7cca83398","name":"","admin_state_up":true,"network_id":"98e27980-991f-4061-a30c-ade7efb24da8","tenant_id":"","created_at":"2018-03-26T18:04:53Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-26T17:45:18Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"e702b79a-a80b-42b2-b646-ac63903f0358","ip_address":"172.30.9.213"}],"id":"a3aab80e-e36c-4b84-b9e7-033543e1b42b","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:73:30:90","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"63f3ea98-4624-41c9-9cc5-b15f49339ebf","name":"","admin_state_up":true,"network_id":"98e27980-991f-4061-a30c-ade7efb24da8","tenant_id":"","created_at":"2018-03-26T17:45:18Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-26T18:27:44Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"e702b79a-a80b-42b2-b646-ac63903f0358","ip_address":"172.30.9.215"}],"id":"a6e9354c-be67-4c74-a76b-589acb585bf7","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:1e:72:1c","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"37d687f5-6d82-41b2-a4c6-71d9eb9d8a5c","name":"","admin_state_up":true,"network_id":"98e27980-991f-4061-a30c-ade7efb24da8","tenant_id":"","created_at":"2018-03-26T18:27:44Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-26T17:57:01Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"e702b79a-a80b-42b2-b646-ac63903f0358","ip_address":"172.30.9.206"}],"id":"a78c9d54-cdc5-4e2c-a3f5-348f73e8d7c1","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:97:80:32","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"7c0e0f9d-285a-41aa-93b2-72b930dd35b2","name":"","admin_state_up":true,"network_id":"98e27980-991f-4061-a30c-ade7efb24da8","tenant_id":"","created_at":"2018-03-26T17:57:01Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-26T18:04:53Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"e702b79a-a80b-42b2-b646-ac63903f0358","ip_address":"172.30.9.204"}],"id":"d417e61a-1529-4935-95e9-ed3ac2dc31e7","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:4c:22:6a","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"1534eb3a-7244-48c7-a108-5dc97577e203","name":"","admin_state_up":true,"network_id":"98e27980-991f-4061-a30c-ade7efb24da8","tenant_id":"","created_at":"2018-03-26T18:04:52Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-26T17:45:15Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"e702b79a-a80b-42b2-b646-ac63903f0358","ip_address":"172.30.9.208"}],"id":"d5d46d49-2b6b-4c75-b013-b12bd4636159","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:e3:c9:95","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"c503b372-71a0-4e81-a757-e708ce2031ee","name":"","admin_state_up":true,"network_id":"98e27980-991f-4061-a30c-ade7efb24da8","tenant_id":"","created_at":"2018-03-26T17:45:15Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-26T18:45:51Z","device_owner":"network:dhcp","revision_number":4,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"5238d4c4-95b3-40fa-8e5d-7a1abe878cb1","ip_address":"172.16.64.20"}],"id":"dee10c3e-5838-435f-8239-566f3b8a0ea6","security_groups":[],"binding:vif_details":{},"binding:vif_type":"ovs","mac_address":"fa:16:3e:60:88:70","project_id":"5a9be3295f0d4c8ba4cbb5e7628249c4","status":"ACTIVE","binding:host_id":"overcloud-controller-1.opnfvlf.org","description":"","tags":[],"device_id":"dhcp17e94b90-b2ce-5539-8324-a5c0ec508ba1-bda5db05-eb9b-4e61-b5f2-c97e15eaca4d","name":"","admin_state_up":true,"network_id":"bda5db05-eb9b-4e61-b5f2-c97e15eaca4d","tenant_id":"5a9be3295f0d4c8ba4cbb5e7628249c4","created_at":"2018-03-26T18:45:50Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-26T18:27:48Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"e702b79a-a80b-42b2-b646-ac63903f0358","ip_address":"172.30.9.201"}],"id":"f252a50b-7c2e-43dc-bbe6-ce0523c1883a","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:f3:83:7d","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"df3f047f-5869-4b99-9ac0-be6db3605216","name":"","admin_state_up":true,"network_id":"98e27980-991f-4061-a30c-ade7efb24da8","tenant_id":"","created_at":"2018-03-26T18:27:48Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-26T18:27:43Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"e702b79a-a80b-42b2-b646-ac63903f0358","ip_address":"172.30.9.212"}],"id":"fa242c6d-61e4-4bbc-bf5e-9facf962ba6b","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:ee:ea:60","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"60727b75-62d4-4a24-b085-59466474e23d","name":"","admin_state_up":true,"network_id":"98e27980-991f-4061-a30c-ade7efb24da8","tenant_id":"","created_at":"2018-03-26T18:27:43Z","binding:vnic_type":"normal"},{"allowed_address_pairs":[],"extra_dhcp_opts":[],"updated_at":"2018-03-26T17:45:13Z","device_owner":"network:router_gateway","revision_number":3,"port_security_enabled":false,"binding:profile":{},"fixed_ips":[{"subnet_id":"e702b79a-a80b-42b2-b646-ac63903f0358","ip_address":"172.30.9.207"}],"id":"fed1f51d-9541-498a-8c41-c7131f6b3d10","security_groups":[],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:b8:ed:83","project_id":"","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"5e5e2e0a-a550-435f-97a1-03e402f44438","name":"","admin_state_up":true,"network_id":"98e27980-991f-4061-a30c-ade7efb24da8","tenant_id":"","created_at":"2018-03-26T17:45:13Z","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-26T18:45:52Z', 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-26T18:45:52Z', 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'5238d4c4-95b3-40fa-8e5d-7a1abe878cb1', u'ip_address': u'172.16.64.22'}], u'id': u'05adc3e0-dc50-4d94-a97a-479cf37a88ca', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:80:b5:a1', u'project_id': u'5a9be3295f0d4c8ba4cbb5e7628249c4', 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-bda5db05-eb9b-4e61-b5f2-c97e15eaca4d', u'name': u'', u'admin_state_up': True, u'network_id': u'bda5db05-eb9b-4e61-b5f2-c97e15eaca4d', u'tenant_id': u'5a9be3295f0d4c8ba4cbb5e7628249c4', u'created_at': u'2018-03-26T18:45:51Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-26T18:27:51Z', 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'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.202'}], u'id': u'08a64ac6-a35a-44c4-94fd-f4d2faca7f6f', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:d4:87:b7', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'd17c35f7-7512-4f6f-a4f2-772ecc2e66bb', u'name': u'', u'admin_state_up': True, u'network_id': u'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'', u'created_at': u'2018-03-26T18:27:50Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-26T18:45:51Z', 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'5238d4c4-95b3-40fa-8e5d-7a1abe878cb1', u'ip_address': u'172.16.64.21'}], u'id': u'19c416e3-d1a3-44a9-8a26-2de890121198', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:1c:79:cd', u'project_id': u'5a9be3295f0d4c8ba4cbb5e7628249c4', 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-bda5db05-eb9b-4e61-b5f2-c97e15eaca4d', u'name': u'', u'admin_state_up': True, u'network_id': u'bda5db05-eb9b-4e61-b5f2-c97e15eaca4d', u'tenant_id': u'5a9be3295f0d4c8ba4cbb5e7628249c4', u'created_at': u'2018-03-26T18:45:51Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-26T18:27:46Z', 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'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.203'}], u'id': u'314056e1-7d5b-4bc3-b71b-236d6c901dd9', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:04:ac:46', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'3724ced3-e6e9-4ba2-a984-1229df620ab2', u'name': u'', u'admin_state_up': True, u'network_id': u'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'', u'created_at': u'2018-03-26T18:27:46Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-26T17:45:16Z', 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'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.205'}], u'id': u'4d7b9773-eb3c-4267-92a5-9fff14e6cc8e', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:4f:d2:fc', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'836a0b3c-6ed4-4670-a9d3-64f5afef308c', u'name': u'', u'admin_state_up': True, u'network_id': u'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'', u'created_at': u'2018-03-26T17:45:16Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-26T18:11:42Z', 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'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.211'}], u'id': u'54408082-e8f9-4818-bcf6-91544314862a', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:ff:48:49', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'd6583270-b264-4112-9630-c60358bfeb46', u'name': u'', u'admin_state_up': True, u'network_id': u'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'', u'created_at': u'2018-03-26T18:11:42Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-26T18:27:45Z', 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'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.217'}], u'id': u'553f26c2-73e6-49a6-8a45-61b011b92fe8', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:77:4f:48', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'2a83af0d-31eb-4e5b-8253-e1df137223b2', u'name': u'', u'admin_state_up': True, u'network_id': u'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'', u'created_at': u'2018-03-26T18:27:45Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-26T18:27:55Z', 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'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.218'}], u'id': u'560e6b8b-b2fc-4ba9-bed0-1e6235cd7453', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:2b:6c:71', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'2833a656-1189-40c5-8e05-35abb168034c', u'name': u'', u'admin_state_up': True, u'network_id': u'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'', u'created_at': u'2018-03-26T18:27:55Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-26T17:45:14Z', 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'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.200'}], u'id': u'708c5567-24ce-40cd-8d87-12f39b000c1a', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:ca:a8:d8', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'a6adda11-fe11-486c-869e-a448a561c63b', u'name': u'', u'admin_state_up': True, u'network_id': u'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'', u'created_at': u'2018-03-26T17:45:14Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-26T18:04:53Z', 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'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.209'}], u'id': u'96ee06dd-5846-437e-a762-9c0108c0e64b', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:72:04:f4', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'f2fe780d-888e-4a79-ab6d-51b7cca83398', u'name': u'', u'admin_state_up': True, u'network_id': u'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'', u'created_at': u'2018-03-26T18:04:53Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-26T17:45:18Z', 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'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.213'}], u'id': u'a3aab80e-e36c-4b84-b9e7-033543e1b42b', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:73:30:90', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'63f3ea98-4624-41c9-9cc5-b15f49339ebf', u'name': u'', u'admin_state_up': True, u'network_id': u'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'', u'created_at': u'2018-03-26T17:45:18Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-26T18:27:44Z', 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'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.215'}], u'id': u'a6e9354c-be67-4c74-a76b-589acb585bf7', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:1e:72:1c', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'37d687f5-6d82-41b2-a4c6-71d9eb9d8a5c', u'name': u'', u'admin_state_up': True, u'network_id': u'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'', u'created_at': u'2018-03-26T18:27:44Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-26T17:57: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'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.206'}], u'id': u'a78c9d54-cdc5-4e2c-a3f5-348f73e8d7c1', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:97:80:32', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'7c0e0f9d-285a-41aa-93b2-72b930dd35b2', u'name': u'', u'admin_state_up': True, u'network_id': u'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'', u'created_at': u'2018-03-26T17:57:01Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-26T18:04:53Z', 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'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.204'}], u'id': u'd417e61a-1529-4935-95e9-ed3ac2dc31e7', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:4c:22:6a', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'1534eb3a-7244-48c7-a108-5dc97577e203', u'name': u'', u'admin_state_up': True, u'network_id': u'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'', u'created_at': u'2018-03-26T18:04:52Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-26T17:45: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'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.208'}], u'id': u'd5d46d49-2b6b-4c75-b013-b12bd4636159', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:e3:c9:95', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'c503b372-71a0-4e81-a757-e708ce2031ee', u'name': u'', u'admin_state_up': True, u'network_id': u'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'', u'created_at': u'2018-03-26T17:45:15Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-26T18:45:51Z', 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'5238d4c4-95b3-40fa-8e5d-7a1abe878cb1', u'ip_address': u'172.16.64.20'}], u'id': u'dee10c3e-5838-435f-8239-566f3b8a0ea6', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:60:88:70', u'project_id': u'5a9be3295f0d4c8ba4cbb5e7628249c4', 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-bda5db05-eb9b-4e61-b5f2-c97e15eaca4d', u'name': u'', u'admin_state_up': True, u'network_id': u'bda5db05-eb9b-4e61-b5f2-c97e15eaca4d', u'tenant_id': u'5a9be3295f0d4c8ba4cbb5e7628249c4', u'created_at': u'2018-03-26T18:45:50Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-26T18:27:48Z', 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'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.201'}], u'id': u'f252a50b-7c2e-43dc-bbe6-ce0523c1883a', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:f3:83:7d', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'df3f047f-5869-4b99-9ac0-be6db3605216', u'name': u'', u'admin_state_up': True, u'network_id': u'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'', u'created_at': u'2018-03-26T18:27:48Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-26T18:27:43Z', 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'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.212'}], u'id': u'fa242c6d-61e4-4bbc-bf5e-9facf962ba6b', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:ee:ea:60', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'60727b75-62d4-4a24-b085-59466474e23d', u'name': u'', u'admin_state_up': True, u'network_id': u'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'', u'created_at': u'2018-03-26T18:27:43Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-26T17:45:13Z', 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'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.207'}], u'id': u'fed1f51d-9541-498a-8c41-c7131f6b3d10', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:b8:ed:83', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'5e5e2e0a-a550-435f-97a1-03e402f44438', u'name': u'', u'admin_state_up': True, u'network_id': u'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'', u'created_at': u'2018-03-26T17:45:13Z', 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.3:8081, headers={u'Content-Type': u'application/json'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7f24c51b45d0>, 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" : "19c416e3-d1a3-44a9-8a26-2de890121198",
"tenant_id" : "5a9be3295f0d4c8ba4cbb5e7628249c4",
"revision_number" : 3,
"name" : "",
"admin_state_up" : true,
"network_id" : "bda5db05-eb9b-4e61-b5f2-c97e15eaca4d",
"mac_address" : "fa:16:3e:1c:79:cd",
"fixed_ips" : [ {
"ip_address" : "172.16.64.21",
"subnet_id" : "5238d4c4-95b3-40fa-8e5d-7a1abe878cb1"
} ],
"device_id" : "dhcp827da361-9c56-50f7-913f-5a01f7bfed2c-bda5db05-eb9b-4e61-b5f2-c97e15eaca4d",
"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" : "a3aab80e-e36c-4b84-b9e7-033543e1b42b",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:73:30:90",
"fixed_ips" : [ {
"ip_address" : "172.30.9.213",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "63f3ea98-4624-41c9-9cc5-b15f49339ebf",
"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" : "d5d46d49-2b6b-4c75-b013-b12bd4636159",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:e3:c9:95",
"fixed_ips" : [ {
"ip_address" : "172.30.9.208",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "c503b372-71a0-4e81-a757-e708ce2031ee",
"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" : "314056e1-7d5b-4bc3-b71b-236d6c901dd9",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:04:ac:46",
"fixed_ips" : [ {
"ip_address" : "172.30.9.203",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "3724ced3-e6e9-4ba2-a984-1229df620ab2",
"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" : "560e6b8b-b2fc-4ba9-bed0-1e6235cd7453",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:2b:6c:71",
"fixed_ips" : [ {
"ip_address" : "172.30.9.218",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "2833a656-1189-40c5-8e05-35abb168034c",
"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" : "fa242c6d-61e4-4bbc-bf5e-9facf962ba6b",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:ee:ea:60",
"fixed_ips" : [ {
"ip_address" : "172.30.9.212",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "60727b75-62d4-4a24-b085-59466474e23d",
"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" : "54408082-e8f9-4818-bcf6-91544314862a",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:ff:48:49",
"fixed_ips" : [ {
"ip_address" : "172.30.9.211",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "d6583270-b264-4112-9630-c60358bfeb46",
"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" : "553f26c2-73e6-49a6-8a45-61b011b92fe8",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:77:4f:48",
"fixed_ips" : [ {
"ip_address" : "172.30.9.217",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "2a83af0d-31eb-4e5b-8253-e1df137223b2",
"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" : "d417e61a-1529-4935-95e9-ed3ac2dc31e7",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:4c:22:6a",
"fixed_ips" : [ {
"ip_address" : "172.30.9.204",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "1534eb3a-7244-48c7-a108-5dc97577e203",
"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" : "dee10c3e-5838-435f-8239-566f3b8a0ea6",
"tenant_id" : "5a9be3295f0d4c8ba4cbb5e7628249c4",
"revision_number" : 3,
"name" : "",
"admin_state_up" : true,
"network_id" : "bda5db05-eb9b-4e61-b5f2-c97e15eaca4d",
"mac_address" : "fa:16:3e:60:88:70",
"fixed_ips" : [ {
"ip_address" : "172.16.64.20",
"subnet_id" : "5238d4c4-95b3-40fa-8e5d-7a1abe878cb1"
} ],
"device_id" : "dhcp17e94b90-b2ce-5539-8324-a5c0ec508ba1-bda5db05-eb9b-4e61-b5f2-c97e15eaca4d",
"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" : "05adc3e0-dc50-4d94-a97a-479cf37a88ca",
"tenant_id" : "5a9be3295f0d4c8ba4cbb5e7628249c4",
"project_id" : "5a9be3295f0d4c8ba4cbb5e7628249c4",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "bda5db05-eb9b-4e61-b5f2-c97e15eaca4d",
"mac_address" : "fa:16:3e:80:b5:a1",
"fixed_ips" : [ {
"ip_address" : "172.16.64.22",
"subnet_id" : "5238d4c4-95b3-40fa-8e5d-7a1abe878cb1"
} ],
"device_id" : "dhcpc69a0073-335e-55e4-8ed9-d962a64f06e6-bda5db05-eb9b-4e61-b5f2-c97e15eaca4d",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "overcloud-controller-2.opnfvlf.org",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "4d7b9773-eb3c-4267-92a5-9fff14e6cc8e",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:4f:d2:fc",
"fixed_ips" : [ {
"ip_address" : "172.30.9.205",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "836a0b3c-6ed4-4670-a9d3-64f5afef308c",
"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" : "a78c9d54-cdc5-4e2c-a3f5-348f73e8d7c1",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:97:80:32",
"fixed_ips" : [ {
"ip_address" : "172.30.9.206",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "7c0e0f9d-285a-41aa-93b2-72b930dd35b2",
"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" : "a6e9354c-be67-4c74-a76b-589acb585bf7",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:1e:72:1c",
"fixed_ips" : [ {
"ip_address" : "172.30.9.215",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "37d687f5-6d82-41b2-a4c6-71d9eb9d8a5c",
"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" : "08a64ac6-a35a-44c4-94fd-f4d2faca7f6f",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:d4:87:b7",
"fixed_ips" : [ {
"ip_address" : "172.30.9.202",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "d17c35f7-7512-4f6f-a4f2-772ecc2e66bb",
"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" : "f252a50b-7c2e-43dc-bbe6-ce0523c1883a",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:f3:83:7d",
"fixed_ips" : [ {
"ip_address" : "172.30.9.201",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "df3f047f-5869-4b99-9ac0-be6db3605216",
"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" : "708c5567-24ce-40cd-8d87-12f39b000c1a",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:ca:a8:d8",
"fixed_ips" : [ {
"ip_address" : "172.30.9.200",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "a6adda11-fe11-486c-869e-a448a561c63b",
"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" : "fed1f51d-9541-498a-8c41-c7131f6b3d10",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:b8:ed:83",
"fixed_ips" : [ {
"ip_address" : "172.30.9.207",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "5e5e2e0a-a550-435f-97a1-03e402f44438",
"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" : "96ee06dd-5846-437e-a762-9c0108c0e64b",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:72:04:f4",
"fixed_ips" : [ {
"ip_address" : "172.30.9.209",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "f2fe780d-888e-4a79-ab6d-51b7cca83398",
"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'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'bda5db05-eb9b-4e61-b5f2-c97e15...
Logs the given message with the given level.
${ODLResult}
{u'ports': [{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'bda5db05-eb9b-4e61-b5f2-c97e15eaca4d', u'tenant_id': u'5a9be3295f0d4c8ba4cbb5e7628249c4', 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:1c:79:cd', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'5238d4c4-95b3-40fa-8e5d-7a1abe878cb1', u'ip_address': u'172.16.64.21'}], u'id': u'19c416e3-d1a3-44a9-8a26-2de890121198', u'security_groups': [], u'device_id': u'dhcp827da361-9c56-50f7-913f-5a01f7bfed2c-bda5db05-eb9b-4e61-b5f2-c97e15eaca4d'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:73:30:90', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.213'}], u'id': u'a3aab80e-e36c-4b84-b9e7-033543e1b42b', u'security_groups': [], u'device_id': u'63f3ea98-4624-41c9-9cc5-b15f49339ebf'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:e3:c9:95', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.208'}], u'id': u'd5d46d49-2b6b-4c75-b013-b12bd4636159', u'security_groups': [], u'device_id': u'c503b372-71a0-4e81-a757-e708ce2031ee'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:04:ac:46', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.203'}], u'id': u'314056e1-7d5b-4bc3-b71b-236d6c901dd9', u'security_groups': [], u'device_id': u'3724ced3-e6e9-4ba2-a984-1229df620ab2'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:6c:71', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.218'}], u'id': u'560e6b8b-b2fc-4ba9-bed0-1e6235cd7453', u'security_groups': [], u'device_id': u'2833a656-1189-40c5-8e05-35abb168034c'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:ee:ea:60', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.212'}], u'id': u'fa242c6d-61e4-4bbc-bf5e-9facf962ba6b', u'security_groups': [], u'device_id': u'60727b75-62d4-4a24-b085-59466474e23d'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:48:49', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.211'}], u'id': u'54408082-e8f9-4818-bcf6-91544314862a', u'security_groups': [], u'device_id': u'd6583270-b264-4112-9630-c60358bfeb46'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:77:4f:48', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.217'}], u'id': u'553f26c2-73e6-49a6-8a45-61b011b92fe8', u'security_groups': [], u'device_id': u'2a83af0d-31eb-4e5b-8253-e1df137223b2'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:4c:22:6a', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.204'}], u'id': u'd417e61a-1529-4935-95e9-ed3ac2dc31e7', u'security_groups': [], u'device_id': u'1534eb3a-7244-48c7-a108-5dc97577e203'}, {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'bda5db05-eb9b-4e61-b5f2-c97e15eaca4d', u'tenant_id': u'5a9be3295f0d4c8ba4cbb5e7628249c4', 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:60:88:70', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'5238d4c4-95b3-40fa-8e5d-7a1abe878cb1', u'ip_address': u'172.16.64.20'}], u'id': u'dee10c3e-5838-435f-8239-566f3b8a0ea6', u'security_groups': [], u'device_id': u'dhcp17e94b90-b2ce-5539-8324-a5c0ec508ba1-bda5db05-eb9b-4e61-b5f2-c97e15eaca4d'}, {u'status': u'ACTIVE', 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'bda5db05-eb9b-4e61-b5f2-c97e15eaca4d', u'tenant_id': u'5a9be3295f0d4c8ba4cbb5e7628249c4', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:dhcp', u'mac_address': u'fa:16:3e:80:b5:a1', u'port_security_enabled': False, u'project_id': u'5a9be3295f0d4c8ba4cbb5e7628249c4', u'fixed_ips': [{u'subnet_id': u'5238d4c4-95b3-40fa-8e5d-7a1abe878cb1', u'ip_address': u'172.16.64.22'}], u'id': u'05adc3e0-dc50-4d94-a97a-479cf37a88ca', u'security_groups': [], u'device_id': u'dhcpc69a0073-335e-55e4-8ed9-d962a64f06e6-bda5db05-eb9b-4e61-b5f2-c97e15eaca4d'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:4f:d2:fc', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.205'}], u'id': u'4d7b9773-eb3c-4267-92a5-9fff14e6cc8e', u'security_groups': [], u'device_id': u'836a0b3c-6ed4-4670-a9d3-64f5afef308c'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:97:80:32', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.206'}], u'id': u'a78c9d54-cdc5-4e2c-a3f5-348f73e8d7c1', u'security_groups': [], u'device_id': u'7c0e0f9d-285a-41aa-93b2-72b930dd35b2'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:1e:72:1c', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.215'}], u'id': u'a6e9354c-be67-4c74-a76b-589acb585bf7', u'security_groups': [], u'device_id': u'37d687f5-6d82-41b2-a4c6-71d9eb9d8a5c'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:d4:87:b7', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.202'}], u'id': u'08a64ac6-a35a-44c4-94fd-f4d2faca7f6f', u'security_groups': [], u'device_id': u'd17c35f7-7512-4f6f-a4f2-772ecc2e66bb'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:f3:83:7d', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.201'}], u'id': u'f252a50b-7c2e-43dc-bbe6-ce0523c1883a', u'security_groups': [], u'device_id': u'df3f047f-5869-4b99-9ac0-be6db3605216'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:ca:a8:d8', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.200'}], u'id': u'708c5567-24ce-40cd-8d87-12f39b000c1a', u'security_groups': [], u'device_id': u'a6adda11-fe11-486c-869e-a448a561c63b'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:b8:ed:83', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.207'}], u'id': u'fed1f51d-9541-498a-8c41-c7131f6b3d10', u'security_groups': [], u'device_id': u'5e5e2e0a-a550-435f-97a1-03e402f44438'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:72:04:f4', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.209'}], u'id': u'96ee06dd-5846-437e-a762-9c0108c0e64b', u'security_groups': [], u'device_id': u'f2fe780d-888e-4a79-ab6d-51b7cca83398'}]}
Checking OpenDaylight Neutron API for known ports
Ports Neutron OpenDaylight
Logs the given message with the given level.
${data}
{"port":{"network_id":"bda5db05-eb9b-4e61-b5f2-c97e15eaca4d","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-26T18:45:53Z","device_owner":"","revision_number":3,"binding:profile":{},"port_security_enabled":true,"fixed_ips":[{"subnet_id":"5238d4c4-95b3-40fa-8e5d-7a1abe878cb1","ip_address":"172.16.64.32"}],"id":"d9f65f6b-d796-4186-9665-c925c03cda1a","security_groups":["5fd07c72-fc63-4c1e-9460-18fa634b2583"],"binding:vif_details":{},"binding:vif_type":"unbound","mac_address":"fa:16:3e:f4:0d:0f","project_id":"5a9be3295f0d4c8ba4cbb5e7628249c4","status":"DOWN","binding:host_id":"","description":"","tags":[],"device_id":"","name":"","admin_state_up":true,"network_id":"bda5db05-eb9b-4e61-b5f2-c97e15eaca4d","tenant_id":"5a9be3295f0d4c8ba4cbb5e7628249c4","created_at":"2018-03-26T18:45:53Z","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-26T18:45:53Z', 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-26T18:45:53Z', 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} = d9f65f6b-d796-4186-9665-c925c03cda1a
Logs the given message with the given level.
${result}
{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-03-26T18:45:53Z', u'device_owner': u'', u'revision_number': 3, u'binding:profile': {}, u'port_security_enabled': True, u'fixed_ips': [{u'subnet_id': u'5238d4c4-95b3-40fa-8e5d-7a1abe878cb1', u'ip_address': u'172.16.64.32'}], u'id': u'd9f65f6b-d796-4186-9665-c925c03cda1a', u'security_groups': [u'5fd07c72-fc63-4c1e-9460-18fa634b2583'], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:f4:0d:0f', u'project_id': u'5a9be3295f0d4c8ba4cbb5e7628249c4', 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'bda5db05-eb9b-4e61-b5f2-c97e15eaca4d', u'tenant_id': u'5a9be3295f0d4c8ba4cbb5e7628249c4', u'created_at': u'2018-03-26T18:45:53Z', u'binding:vnic_type': u'normal'}
Logs the given message with the given level.
${PORTID}
d9f65f6b-d796-4186-9665-c925c03cda1a
Makes a variable available globally in all tests and suites.
${PORTID}
${PORTID} = d9f65f6b-d796-4186-9665-c925c03cda1a
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/d9f65f6b-d796-4186-9665-c925c03cda1a, 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.27:9696, headers={u'X-Auth-Token': 'gAAAAABauT_afGhbRpTAfqNmR2m2DbPM6sNdOwd9M80xvMlzXa4K1dkOWsky0SNYMIAaO_OfptpAI2i2cmdoDEtgk9YMqQwH-7PwO2ObK1vkzhXMxFbd8K8s596U5Z89sCwhkX_BmohCNC0SKYsGskmpIOhV9ITvYMqUWAKdC5uASQEqkqAjiyE'}, 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.3:8081, headers={u'Content-Type': u'application/json'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7f24c5084650>, 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/d9f65f6b-d796-4186-9665-c925c03cda1a, 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":"bda5db05-eb9b-4e61-b5f2-c97e15eaca4d","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/d9f65f6b-d796-4186-9665-c925c03cda1a, 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" : "d5d46d49-2b6b-4c75-b013-b12bd4636159",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:e3:c9:95",
"fixed_ips" : [ {
"ip_address" : "172.30.9.208",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "c503b372-71a0-4e81-a757-e708ce2031ee",
"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" : "a78c9d54-cdc5-4e2c-a3f5-348f73e8d7c1",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:97:80:32",
"fixed_ips" : [ {
"ip_address" : "172.30.9.206",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "7c0e0f9d-285a-41aa-93b2-72b930dd35b2",
"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" : "dee10c3e-5838-435f-8239-566f3b8a0ea6",
"tenant_id" : "5a9be3295f0d4c8ba4cbb5e7628249c4",
"revision_number" : 3,
"name" : "",
"admin_state_up" : true,
"network_id" : "bda5db05-eb9b-4e61-b5f2-c97e15eaca4d",
"mac_address" : "fa:16:3e:60:88:70",
"fixed_ips" : [ {
"ip_address" : "172.16.64.20",
"subnet_id" : "5238d4c4-95b3-40fa-8e5d-7a1abe878cb1"
} ],
"device_id" : "dhcp17e94b90-b2ce-5539-8324-a5c0ec508ba1-bda5db05-eb9b-4e61-b5f2-c97e15eaca4d",
"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" : "54408082-e8f9-4818-bcf6-91544314862a",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:ff:48:49",
"fixed_ips" : [ {
"ip_address" : "172.30.9.211",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "d6583270-b264-4112-9630-c60358bfeb46",
"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" : "a6e9354c-be67-4c74-a76b-589acb585bf7",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:1e:72:1c",
"fixed_ips" : [ {
"ip_address" : "172.30.9.215",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "37d687f5-6d82-41b2-a4c6-71d9eb9d8a5c",
"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" : "19c416e3-d1a3-44a9-8a26-2de890121198",
"tenant_id" : "5a9be3295f0d4c8ba4cbb5e7628249c4",
"revision_number" : 3,
"name" : "",
"admin_state_up" : true,
"network_id" : "bda5db05-eb9b-4e61-b5f2-c97e15eaca4d",
"mac_address" : "fa:16:3e:1c:79:cd",
"fixed_ips" : [ {
"ip_address" : "172.16.64.21",
"subnet_id" : "5238d4c4-95b3-40fa-8e5d-7a1abe878cb1"
} ],
"device_id" : "dhcp827da361-9c56-50f7-913f-5a01f7bfed2c-bda5db05-eb9b-4e61-b5f2-c97e15eaca4d",
"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" : "708c5567-24ce-40cd-8d87-12f39b000c1a",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:ca:a8:d8",
"fixed_ips" : [ {
"ip_address" : "172.30.9.200",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "a6adda11-fe11-486c-869e-a448a561c63b",
"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" : "4d7b9773-eb3c-4267-92a5-9fff14e6cc8e",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:4f:d2:fc",
"fixed_ips" : [ {
"ip_address" : "172.30.9.205",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "836a0b3c-6ed4-4670-a9d3-64f5afef308c",
"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" : "553f26c2-73e6-49a6-8a45-61b011b92fe8",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:77:4f:48",
"fixed_ips" : [ {
"ip_address" : "172.30.9.217",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "2a83af0d-31eb-4e5b-8253-e1df137223b2",
"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" : "08a64ac6-a35a-44c4-94fd-f4d2faca7f6f",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:d4:87:b7",
"fixed_ips" : [ {
"ip_address" : "172.30.9.202",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "d17c35f7-7512-4f6f-a4f2-772ecc2e66bb",
"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" : "fed1f51d-9541-498a-8c41-c7131f6b3d10",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:b8:ed:83",
"fixed_ips" : [ {
"ip_address" : "172.30.9.207",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "5e5e2e0a-a550-435f-97a1-03e402f44438",
"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" : "f252a50b-7c2e-43dc-bbe6-ce0523c1883a",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:f3:83:7d",
"fixed_ips" : [ {
"ip_address" : "172.30.9.201",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "df3f047f-5869-4b99-9ac0-be6db3605216",
"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" : "fa242c6d-61e4-4bbc-bf5e-9facf962ba6b",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:ee:ea:60",
"fixed_ips" : [ {
"ip_address" : "172.30.9.212",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "60727b75-62d4-4a24-b085-59466474e23d",
"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" : "314056e1-7d5b-4bc3-b71b-236d6c901dd9",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:04:ac:46",
"fixed_ips" : [ {
"ip_address" : "172.30.9.203",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "3724ced3-e6e9-4ba2-a984-1229df620ab2",
"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" : "05adc3e0-dc50-4d94-a97a-479cf37a88ca",
"tenant_id" : "5a9be3295f0d4c8ba4cbb5e7628249c4",
"revision_number" : 3,
"name" : "",
"admin_state_up" : true,
"network_id" : "bda5db05-eb9b-4e61-b5f2-c97e15eaca4d",
"mac_address" : "fa:16:3e:80:b5:a1",
"fixed_ips" : [ {
"ip_address" : "172.16.64.22",
"subnet_id" : "5238d4c4-95b3-40fa-8e5d-7a1abe878cb1"
} ],
"device_id" : "dhcpc69a0073-335e-55e4-8ed9-d962a64f06e6-bda5db05-eb9b-4e61-b5f2-c97e15eaca4d",
"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" : "96ee06dd-5846-437e-a762-9c0108c0e64b",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:72:04:f4",
"fixed_ips" : [ {
"ip_address" : "172.30.9.209",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "f2fe780d-888e-4a79-ab6d-51b7cca83398",
"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" : "d417e61a-1529-4935-95e9-ed3ac2dc31e7",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:4c:22:6a",
"fixed_ips" : [ {
"ip_address" : "172.30.9.204",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "1534eb3a-7244-48c7-a108-5dc97577e203",
"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" : "560e6b8b-b2fc-4ba9-bed0-1e6235cd7453",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:2b:6c:71",
"fixed_ips" : [ {
"ip_address" : "172.30.9.218",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "2833a656-1189-40c5-8e05-35abb168034c",
"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" : "a3aab80e-e36c-4b84-b9e7-033543e1b42b",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"mac_address" : "fa:16:3e:73:30:90",
"fixed_ips" : [ {
"ip_address" : "172.30.9.213",
"subnet_id" : "e702b79a-a80b-42b2-b646-ac63903f0358"
} ],
"device_id" : "63f3ea98-4624-41c9-9cc5-b15f49339ebf",
"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'98e27980-991f-4061-a30c-ade7efb24da8', 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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:e3:c9:95', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.208'}], u'id': u'd5d46d49-2b6b-4c75-b013-b12bd4636159', u'security_groups': [], u'device_id': u'c503b372-71a0-4e81-a757-e708ce2031ee'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:97:80:32', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.206'}], u'id': u'a78c9d54-cdc5-4e2c-a3f5-348f73e8d7c1', u'security_groups': [], u'device_id': u'7c0e0f9d-285a-41aa-93b2-72b930dd35b2'}, {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'bda5db05-eb9b-4e61-b5f2-c97e15eaca4d', u'tenant_id': u'5a9be3295f0d4c8ba4cbb5e7628249c4', 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:60:88:70', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'5238d4c4-95b3-40fa-8e5d-7a1abe878cb1', u'ip_address': u'172.16.64.20'}], u'id': u'dee10c3e-5838-435f-8239-566f3b8a0ea6', u'security_groups': [], u'device_id': u'dhcp17e94b90-b2ce-5539-8324-a5c0ec508ba1-bda5db05-eb9b-4e61-b5f2-c97e15eaca4d'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:48:49', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.211'}], u'id': u'54408082-e8f9-4818-bcf6-91544314862a', u'security_groups': [], u'device_id': u'd6583270-b264-4112-9630-c60358bfeb46'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:1e:72:1c', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.215'}], u'id': u'a6e9354c-be67-4c74-a76b-589acb585bf7', u'security_groups': [], u'device_id': u'37d687f5-6d82-41b2-a4c6-71d9eb9d8a5c'}, {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'bda5db05-eb9b-4e61-b5f2-c97e15eaca4d', u'tenant_id': u'5a9be3295f0d4c8ba4cbb5e7628249c4', 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:1c:79:cd', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'5238d4c4-95b3-40fa-8e5d-7a1abe878cb1', u'ip_address': u'172.16.64.21'}], u'id': u'19c416e3-d1a3-44a9-8a26-2de890121198', u'security_groups': [], u'device_id': u'dhcp827da361-9c56-50f7-913f-5a01f7bfed2c-bda5db05-eb9b-4e61-b5f2-c97e15eaca4d'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:ca:a8:d8', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.200'}], u'id': u'708c5567-24ce-40cd-8d87-12f39b000c1a', u'security_groups': [], u'device_id': u'a6adda11-fe11-486c-869e-a448a561c63b'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:4f:d2:fc', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.205'}], u'id': u'4d7b9773-eb3c-4267-92a5-9fff14e6cc8e', u'security_groups': [], u'device_id': u'836a0b3c-6ed4-4670-a9d3-64f5afef308c'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:77:4f:48', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.217'}], u'id': u'553f26c2-73e6-49a6-8a45-61b011b92fe8', u'security_groups': [], u'device_id': u'2a83af0d-31eb-4e5b-8253-e1df137223b2'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:d4:87:b7', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.202'}], u'id': u'08a64ac6-a35a-44c4-94fd-f4d2faca7f6f', u'security_groups': [], u'device_id': u'd17c35f7-7512-4f6f-a4f2-772ecc2e66bb'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:b8:ed:83', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.207'}], u'id': u'fed1f51d-9541-498a-8c41-c7131f6b3d10', u'security_groups': [], u'device_id': u'5e5e2e0a-a550-435f-97a1-03e402f44438'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:f3:83:7d', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.201'}], u'id': u'f252a50b-7c2e-43dc-bbe6-ce0523c1883a', u'security_groups': [], u'device_id': u'df3f047f-5869-4b99-9ac0-be6db3605216'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:ee:ea:60', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.212'}], u'id': u'fa242c6d-61e4-4bbc-bf5e-9facf962ba6b', u'security_groups': [], u'device_id': u'60727b75-62d4-4a24-b085-59466474e23d'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:04:ac:46', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.203'}], u'id': u'314056e1-7d5b-4bc3-b71b-236d6c901dd9', u'security_groups': [], u'device_id': u'3724ced3-e6e9-4ba2-a984-1229df620ab2'}, {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'bda5db05-eb9b-4e61-b5f2-c97e15eaca4d', u'tenant_id': u'5a9be3295f0d4c8ba4cbb5e7628249c4', 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:80:b5:a1', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'5238d4c4-95b3-40fa-8e5d-7a1abe878cb1', u'ip_address': u'172.16.64.22'}], u'id': u'05adc3e0-dc50-4d94-a97a-479cf37a88ca', u'security_groups': [], u'device_id': u'dhcpc69a0073-335e-55e4-8ed9-d962a64f06e6-bda5db05-eb9b-4e61-b5f2-c97e15eaca4d'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:72:04:f4', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.209'}], u'id': u'96ee06dd-5846-437e-a762-9c0108c0e64b', u'security_groups': [], u'device_id': u'f2fe780d-888e-4a79-ab6d-51b7cca83398'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:4c:22:6a', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.204'}], u'id': u'd417e61a-1529-4935-95e9-ed3ac2dc31e7', u'security_groups': [], u'device_id': u'1534eb3a-7244-48c7-a108-5dc97577e203'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:6c:71', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.218'}], u'id': u'560e6b8b-b2fc-4ba9-bed0-1e6235cd7453', u'security_groups': [], u'device_id': u'2833a656-1189-40c5-8e05-35abb168034c'}, {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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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:73:30:90', u'port_security_enabled': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'fixed_ips': [{u'subnet_id': u'e702b79a-a80b-42b2-b646-ac63903f0358', u'ip_address': u'172.30.9.213'}], u'id': u'a3aab80e-e36c-4b84-b9e7-033543e1b42b', u'security_groups': [], u'device_id': u'63f3ea98-4624-41c9-9cc5-b15f49339ebf'}]}
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/d9f65f6b-d796-4186-9665-c925c03cda1a, 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.27:9696, headers={u'X-Auth-Token': 'gAAAAABauT_afGhbRpTAfqNmR2m2DbPM6sNdOwd9M80xvMlzXa4K1dkOWsky0SNYMIAaO_OfptpAI2i2cmdoDEtgk9YMqQwH-7PwO2ObK1vkzhXMxFbd8K8s596U5Z89sCwhkX_BmohCNC0SKYsGskmpIOhV9ITvYMqUWAKdC5uASQEqkqAjiyE'}, 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.3:8081, headers={u'Content-Type': u'application/json'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7f24c502f9d0>, 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/5238d4c4-95b3-40fa-8e5d-7a1abe878cb1, 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":"bda5db05-eb9b-4e61-b5f2-c97e15eaca4d","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/5238d4c4-95b3-40fa-8e5d-7a1abe878cb1, 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" : "e702b79a-a80b-42b2-b646-ac63903f0358",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"revision_number" : 0,
"name" : "external-subnet",
"network_id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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'98e27980-991f-4061-a30c-ade7efb24da8', u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', 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'586b8c1ffdd74f268392d5ed00e63a59', u'id': u'e702b79a-a80b-42b2-b646-ac63903f0358'}]}
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/5238d4c4-95b3-40fa-8e5d-7a1abe878cb1, 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.27:9696, headers={u'X-Auth-Token': 'gAAAAABauT_afGhbRpTAfqNmR2m2DbPM6sNdOwd9M80xvMlzXa4K1dkOWsky0SNYMIAaO_OfptpAI2i2cmdoDEtgk9YMqQwH-7PwO2ObK1vkzhXMxFbd8K8s596U5Z89sCwhkX_BmohCNC0SKYsGskmpIOhV9ITvYMqUWAKdC5uASQEqkqAjiyE'}, 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.3:8081, headers={u'Content-Type': u'application/json'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7f24c5084d90>, 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/bda5db05-eb9b-4e61-b5f2-c97e15eaca4d, 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/bda5db05-eb9b-4e61-b5f2-c97e15eaca4d, 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" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
"tenant_id" : "bd8db3a82b304083a8b3b3fd46401142",
"project_id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
"name" : "Sync Canary Network",
"admin_state_up" : false,
"status" : "ACTIVE",
"shared" : false,
"router:external" : false,
"provider:network_type" : "flat",
"segments" : [ ]
}, {
"id" : "98e27980-991f-4061-a30c-ade7efb24da8",
"tenant_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"project_id" : "586b8c1ffdd74f268392d5ed00e63a59",
"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" : [ ]
} ]
}
To JSON using : pretty_print=False
${ODLResult} = {u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'name': u'Sync Canary Network', u'admin_state_up': False, u'tenant_id': u'bd8db3a82b304083a8b3b3fd46401142', u'segments': [], u'provid...
Logs the given message with the given level.
${ODLResult}
{u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'name': u'Sync Canary Network', u'admin_state_up': False, u'tenant_id': u'bd8db3a82b304083a8b3b3fd46401142', u'segments': [], u'provider:network_type': u'flat', u'shared': False, u'project_id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142', u'id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142'}, {u'status': u'ACTIVE', u'router:external': True, u'name': u'external', u'provider:physical_network': u'datacentre', u'admin_state_up': True, u'tenant_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 3, u'shared': False, u'project_id': u'586b8c1ffdd74f268392d5ed00e63a59', u'id': u'98e27980-991f-4061-a30c-ade7efb24da8'}]}
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/bda5db05-eb9b-4e61-b5f2-c97e15eaca4d, 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