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.16.1.222:8080, headers={'Content-Type': 'application/xml'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7f5594c07a50>, 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":"netty-event-executor","revision":"2013-11-12","namespace":"urn:opendaylight:params:xml:ns:yang:controller:netty:eventexecutor"},{"name":"shutdown-impl","revision":"2013-12-18","namespace":"urn:opendaylight:params:xml:ns:yang:controller:shutdown:impl"},{"name":"vpn-rpc","revision":"2016-02-01","namespace":"urn:opendaylight:netvirt:vpn:rpc"},{"name":"sal-experimenter-mp-message","revision":"2015-10-20","namespace":"urn:opendaylight:experimenter-mp-message:service"},{"name":"neighbor-discovery","revision":"2016-06-20","namespace":"urn:opendaylight:netvirt:ipv6service:nd:packet"},{"name":"opendaylight-sal-binding-broker-impl","revision":"2013-10-28","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl"},{"name":"sfc-ioam-nb-pot","revision":"2016-11-22","namespace":"urn:cisco:params:xml:ns:yang:sfc-ioam-nb-pot"},{"name":"inter-vpn-link","revision":"2016-03-11","namespace":"urn:opendaylight:params:xml:ns:yang:netvirt:inter-vpn-link"},{"name":"rendered-service-path-manager","revision":"2016-04-21","namespace":"urn.cisco.params:xml:ns:rsp-manager"},{"name":"ted","revision":"2013-07-12","namespace":"urn:TBD:params:xml:ns:yang:network:ted"},{"name":"itm-config","revision":"2016-04-06","namespace":"urn:opendaylight:genius:itm:config"},{"name":"opendaylight-l2-types","revision":"2013-08-27","namespace":"urn:opendaylight:l2:types"},{"name":"packet-processing","revision":"2013-07-09","namespace":"urn:opendaylight:packet:service"},{"name":"aaa-cert","revision":"2015-11-26","namespace":"urn:opendaylight:yang:aaa:cert"},{"name":"opendaylight-md-sal-binding","revision":"2013-10-28","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding"},{"name":"sal-role","revision":"2015-07-27","namespace":"urn:opendaylight:role:service"},{"name":"ietf-ip","revision":"2014-06-16","namespace":"urn:ietf:params:xml:ns:yang:ietf-ip","feature":["ipv4-non-contiguous-netmasks","ipv6-privacy-autoconf"]},{"name":"opendaylight-topology-view","revision":"2013-10-30","namespace":"urn:opendaylight:model:topology:view"},{"name":"neutronvpn","revision":"2015-06-02","namespace":"urn:opendaylight:netvirt:neutronvpn"},{"name":"odl-concurrent-data-broker-cfg","revision":"2014-11-24","namespace":"urn:opendaylight:params:xml:ns:yang:controller:config:concurrent-data-broker"},{"name":"neutron-fwaas","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-fwaas"},{"name":"statistics-config","revision":"2017-03-26","namespace":"urn:opendaylight:netvirt:statistics:config"},{"name":"l3nexthop","revision":"2015-04-09","namespace":"urn:opendaylight:netvirt:l3nexthop"},{"name":"neutron-extensions","revision":"2016-06-17","namespace":"urn:opendaylight:neutron-extensions"},{"name":"netvirt-sfc-acl","revision":"2015-01-05","namespace":"urn:opendaylight:netvirt:sfc:acl"},{"name":"opendaylight-md-sal-dom","revision":"2013-10-28","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom"},{"name":"opendaylight-topology-inventory","revision":"2013-10-30","namespace":"urn:opendaylight:model:topology:inventory"},{"name":"neutronvpn-config","revision":"2016-08-06","namespace":"urn:opendaylight:netvirt:neutronvpn:config"},{"name":"neutron","revision":"2015-07-12","namespace":"urn:opendaylight:neutron"},{"name":"neutron-hostconfig","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-hostconfig"},{"name":"flow-topology-discovery","revision":"2013-08-19","namespace":"urn:opendaylight:flow:topology:discovery"},{"name":"sfc-of-renderer","revision":"2015-11-23","namespace":"urn:ericsson:params:xml:ns:yang:sfc-of-renderer"},{"name":"netvirt-sfc-classifier","revision":"2015-01-05","namespace":"urn:opendaylight:netvirt:sfc:classifier"},{"name":"vpnservice-dhcp","revision":"2016-04-28","namespace":"urn:opendaylight:netvirt:dhcp"},{"name":"neutron-L3","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-L3"},{"name":"service-function-proxy","revision":"2016-01-25","namespace":"urn:intel:params:xml:ns:yang:sfc-sf-proxy"},{"name":"itm","revision":"2016-04-06","namespace":"urn:opendaylight:genius:itm"},{"name":"ietf-access-control-list","revision":"2016-02-18","namespace":"urn:ietf:params:xml:ns:yang:ietf-access-control-list"},{"name":"sal-group","revision":"2013-09-18","namespace":"urn:opendaylight:group:service"},{"name":"sal-meter","revision":"2013-09-18","namespace":"urn:opendaylight:meter:service"},{"name":"openflowplugin-extension-nicira-match","revision":"2014-07-14","namespace":"urn:opendaylight:openflowplugin:extension:nicira:match"},{"name":"aaa-app-config","revision":"2017-06-19","namespace":"urn:opendaylight:aaa:app:config"},{"name":"sfc-common","revision":"2015-10-17","namespace":"urn:cisco:params:xml:ns:yang:sfc-common"},{"name":"hwvtep","revision":"2015-09-01","namespace":"urn:opendaylight:params:xml:ns:yang:ovsdb:hwvtep"},{"name":"neutron-sfc-flow-classifier","revision":"2016-05-11","namespace":"urn:opendaylight:neutron-sfc-flow-classifier"},{"name":"opendaylight-group-types","revision":"2013-10-18","namespace":"urn:opendaylight:group:types"},{"name":"service-function-classifier","revision":"2014-07-01","namespace":"urn:cisco:params:xml:ns:yang:sfc-scf"},{"name":"nicira-match","revision":"2014-04-21","namespace":"urn:opendaylight:openflowjava:nx:match"},{"name":"network-topology","revision":"2013-07-12","namespace":"urn:TBD:params:xml:ns:yang:network-topology"},{"name":"opendaylight-flow-types","revision":"2013-10-26","namespace":"urn:opendaylight:flow:types"},{"name":"cluster-singleton-service-impl","revision":"2016-07-18","namespace":"urn:opendaylight:params:xml:ns:yang:md:sal:config:impl:cluster-singleton-service"},{"name":"nicira-action","revision":"2014-04-21","namespace":"urn:opendaylight:openflowjava:nx:action"},{"name":"neutron-qos","revision":"2016-06-13","namespace":"urn:opendaylight:neutron-qos"},{"name":"opendaylight-queue-types","revision":"2013-09-25","namespace":"urn:opendaylight:flow:types:queue"},{"name":"service-path-id","revision":"2015-08-04","namespace":"urn:cisco:params:xml:ns:yang:service-path-id"},{"name":"service-function-group","revision":"2015-02-14","namespace":"urn:cisco:params:xml:ns:yang:sfc-sfg"},{"name":"odl-mdsalutil","revision":"2016-04-06","namespace":"urn:opendaylight:genius:mdsalutil"},{"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":"ietf-interfaces","revision":"2014-05-08","namespace":"urn:ietf:params:xml:ns:yang:ietf-interfaces","feature":["if-mib","arbitrary-names","pre-provisioning"]},{"name":"service-function-path-metadata","revision":"2014-07-01","namespace":"urn:cisco:params:xml:ns:yang:sfc-md"},{"name":"vpp-classifier","revision":"2016-12-14","namespace":"urn:opendaylight:params:xml:ns:yang:vpp:classifier"},{"name":"lldp-speaker","revision":"2014-10-23","namespace":"urn:opendaylight:params:xml:ns:yang:openflow:applications:lldp-speaker"},{"name":"opendaylight-arbitrary-bitmask-fields","revision":"2016-01-30","namespace":"urn:opendaylight:arbitrary:bitmask:fields"},{"name":"id-manager","revision":"2016-04-06","namespace":"urn:opendaylight:genius:idmanager"},{"name":"ietf-yang-library","revision":"2016-06-21","namespace":"urn:ietf:params:xml:ns:yang:ietf-yang-library"},{"name":"service-function-forwarder-logical","revision":"2016-06-20","namespace":"urn:ericsson:params:xml:ns:yang:sfc-sff-logical"},{"name":"openflow-configuration","revision":"2014-06-30","namespace":"urn:opendaylight:openflow:config"},{"name":"opendaylight-statistics-types","revision":"2013-09-25","namespace":"urn:opendaylight:model:statistics:types"},{"name":"service-function","revision":"2014-07-01","namespace":"urn:cisco:params:xml:ns:yang:sfc-sf"},{"name":"general-entity","revision":"2015-08-20","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity"},{"name":"netvirt-sfc","revision":"2015-01-05","namespace":"urn:opendaylight:params:xml:ns:yang:netvirt:sfc"},{"name":"odl-general-entity","revision":"2015-09-30","namespace":"urn:opendaylight:params:xml:ns:yang:mdsal:core:general-entity"},{"name":"ietf-yang-types","revision":"2013-07-15","namespace":"urn:ietf:params:xml:ns:yang:ietf-yang-types"},{"name":"opendaylight-topology","revision":"2013-10-30","namespace":"urn:opendaylight:model:topology:general"},{"name":"opendaylight-port-statistics","revision":"2013-12-14","namespace":"urn:opendaylight:port:statistics"},{"name":"shutdown","revision":"2013-12-18","namespace":"urn:opendaylight:params:xml:ns:yang:controller:shutdown"},{"name":"openflow-approved-extensions","revision":"2016-08-02","namespace":"urn:opendaylight:openflow:approved:extensions"},{"name":"actor-system-provider-impl","revision":"2015-10-05","namespace":"urn:opendaylight:params:xml:ns:yang:controller:config:actor-system-provider:impl"},{"name":"forwarding-rules-manager-config","revision":"2016-05-11","namespace":"urn:opendaylight:params:xml:ns:yang:openflowplugin:app:forwardingrules-manager:config"},{"name":"neutron-provider","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-provider"},{"name":"ospf-topology","revision":"2013-10-21","namespace":"urn:TBD:params:xml:ns:yang:ospf-topology"},{"name":"flow-node-inventory","revision":"2013-08-19","namespace":"urn:opendaylight:flow:inventory"},{"name":"aliveness-monitor","revision":"2016-04-11","namespace":"urn:opendaylight:genius:alivenessmonitor"},{"name":"opendaylight-meter-types","revision":"2013-09-18","namespace":"urn:opendaylight:meter:types"},{"name":"opendaylight-table-types","revision":"2013-10-26","namespace":"urn:opendaylight:table:types"},{"name":"ietf-restconf","revision":"2017-01-26","namespace":"urn:ietf:params:xml:ns:yang:ietf-restconf"},{"name":"node-config","revision":"2014-10-15","namespace":"urn:opendaylight:module:config"},{"name":"opendaylight-pingpong-broker","revision":"2014-11-07","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:pingpong"},{"name":"opendaylight-direct-statistics","revision":"2016-05-11","namespace":"urn:opendaylight:direct:statistics"},{"name":"sal-groups-batch","revision":"2016-03-15","namespace":"urn:opendaylight:groups:service"},{"name":"l3-unicast-igp-topology","revision":"2013-07-12","namespace":"urn:TBD:params:xml:ns:yang:nt:l3-unicast-igp-topology"},{"name":"opendaylight-inmemory-datastore-provider","revision":"2014-06-17","namespace":"urn:opendaylight:params:xml:ns:yang:controller:inmemory-datastore-provider"},{"name":"batch-common","revision":"2016-03-22","namespace":"urn:opendaylight:service:batch:common"},{"name":"service-function-acl","revision":"2015-10-01","namespace":"urn:cisco:params:xml:ns:yang:sfc-acl"},{"name":"overlay","revision":"2015-01-05","namespace":"urn:opendaylight:params:xml:ns:yang:overlay"},{"name":"service-function-forwarder-vpp","revision":"2016-07-06","namespace":"urn:cisco:params:xml:ns:yang:sfc-sff-vpp"},{"name":"odl-nat","revision":"2016-01-11","namespace":"urn:opendaylight:netvirt:natservice"},{"name":"actor-system-provider-service","revision":"2015-10-05","namespace":"urn:opendaylight:params:xml:ns:yang:controller:config:actor-system-provider:service"},{"name":"bgp","revision":"2013-07-15","namespace":"urn:cisco:params:xml:ns:yang:bgp"},{"name":"netconf-node-inventory","revision":"2014-01-08","namespace":"urn:opendaylight:netconf-node-inventory"},{"name":"neutron-ports","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-ports"},{"name":"ietf-lisp-address-types","revision":"2015-11-05","namespace":"urn:ietf:params:xml:ns:yang:ietf-lisp-address-types"},{"name":"neutron-vpnaas","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-vpnaas"},{"name":"lock-manager","revision":"2016-04-13","namespace":"urn:opendaylight:genius:lockmanager"},{"name":"opendaylight-ipv6-arbitrary-bitmask-fields","revision":"2016-02-24","namespace":"urn:opendaylight:opendaylight-ipv6-arbitrary-bitmask-fields"},{"name":"openflowplugin-extension-nicira-action","revision":"2014-07-14","namespace":"urn:opendaylight:openflowplugin:extension:nicira:action"},{"name":"ietf-restconf-monitoring","revision":"2017-01-26","namespace":"urn:ietf:params:xml:ns:yang:ietf-restconf-monitoring"},{"name":"l3vpn","revision":"2014-08-15","namespace":"urn:huawei:params:xml:ns:yang:l3vpn"},{"name":"statistics","revision":"2017-01-20","namespace":"urn:opendaylight:netvirt:statistics"},{"name":"opendaylight-flow-table-statistics","revision":"2013-12-15","namespace":"urn:opendaylight:flow:table:statistics"},{"name":"vpp-classfier-acl","revision":"2016-12-14","namespace":"urn:opendaylight:params:xml:ns:yang:vpp:classfier:acl"},{"name":"ietf-packet-fields","revision":"2016-02-18","namespace":"urn:ietf:params:xml:ns:yang:ietf-packet-fields"},{"name":"ietf-inet-types","revision":"2013-07-15","namespace":"urn:ietf:params:xml:ns:yang:ietf-inet-types"},{"name":"service-function-forwarder-ovs","revision":"2014-07-01","namespace":"urn:cisco:params:xml:ns:yang:sfc-sff-ovs"},{"name":"neutron-trunks","revision":"2017-01-18","namespace":"urn:opendaylight:neutron-trunks"},{"name":"service-function-chain","revision":"2014-07-01","namespace":"urn:cisco:params:xml:ns:yang:sfc-sfc"},{"name":"neutron-portsecurity","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-portsecurity"},{"name":"sal-flow","revision":"2013-08-19","namespace":"urn:opendaylight:flow:service"},{"name":"elan-config","revision":"2015-07-10","namespace":"urn:opendaylight:netvirt:elan:config"},{"name":"odl-nat-rpc","revision":"2017-02-09","namespace":"urn:opendaylight:netvirt:natservice:rpc"},{"name":"cluster-admin","revision":"2015-10-13","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:cluster:admin"},{"name":"ipfix-application-information","revision":"2015-04-10","namespace":"urn:ietf:params:xml:ns:yang:ipfix-application-information"},{"name":"ietf-network","revision":"2015-06-08","namespace":"urn:ietf:params:xml:ns:yang:ietf-network"},{"name":"lldp-speaker-config","revision":"2016-05-12","namespace":"urn:opendaylight:params:xml:ns:yang:openflow:applications:lldp-speaker:config"},{"name":"neutron-L3-ext","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-L3-ext"},{"name":"iana-if-type","revision":"2014-05-08","namespace":"urn:ietf:params:xml:ns:yang:iana-if-type"},{"name":"ovsdb","revision":"2015-01-05","namespace":"urn:opendaylight:params:xml:ns:yang:ovsdb"},{"name":"odl-interface-meta","revision":"2016-04-06","namespace":"urn:opendaylight:genius:interfacemanager:meta"},{"name":"yang-ext","revision":"2013-07-09","namespace":"urn:opendaylight:yang:extension:yang-ext"},{"name":"reconciliation-result-state","revision":"2017-07-13","namespace":"urn:opendaylight:params:xml:ns:yang:openflowplugin:rf:state"},{"name":"service-function-forwarder","revision":"2014-07-01","namespace":"urn:cisco:params:xml:ns:yang:sfc-sff"},{"name":"neutron-qos-ext","revision":"2016-06-13","namespace":"urn:opendaylight:neutron-qos-ext"},{"name":"openflow-action","revision":"2015-02-03","namespace":"urn:opendaylight:openflow:common:action"},{"name":"l3-unicast-igp-topology","revision":"2013-10-21","namespace":"urn:TBD:params:xml:ns:yang:nt:l3-unicast-igp-topology"},{"name":"instance-identifier-patch-module","revision":"2015-11-21","namespace":"instance:identifier:patch:module"},{"name":"natservice-config","revision":"2017-02-06","namespace":"urn:opendaylight:netvirt:natservice:config"},{"name":"flow-errors","revision":"2013-11-16","namespace":"urn:opendaylight:flow:errors"},{"name":"neutron-bgpvpns","revision":"2015-09-03","namespace":"urn:opendaylight:neutron-bgpvpns"},{"name":"aclservice","revision":"2016-06-08","namespace":"urn:opendaylight:netvirt:aclservice"},{"name":"opendaylight-md-sal-common","revision":"2013-10-28","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:common"},{"name":"ietf-yang-types","revision":"2010-09-24","namespace":"urn:ietf:params:xml:ns:yang:ietf-yang-types"},{"name":"service-locator","revision":"2014-07-01","namespace":"urn:cisco:params:xml:ns:yang:sfc-sl"},{"name":"service-function-group-algorithm","revision":"2015-02-14","namespace":"urn:cisco:params:xml:ns:yang:sfc-sfg-alg"},{"name":"service-function-type","revision":"2014-07-01","namespace":"urn:cisco:params:xml:ns:yang:sfc-sft"},{"name":"aaa-encrypt-service-config","revision":"2016-09-15","namespace":"config:aaa:authn:encrypt:service:config"},{"name":"openflow-provider-config","revision":"2016-05-10","namespace":"urn:opendaylight:params:xml:ns:yang:openflow:provider:config"},{"name":"elan","revision":"2015-06-02","namespace":"urn:opendaylight:netvirt:elan"},{"name":"neutron-sfc","revision":"2016-05-11","namespace":"urn:opendaylight:neutron-sfc"},{"name":"neutron-lbaasv2","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-lbaasv2"},{"name":"etree","revision":"2016-06-14","namespace":"urn:opendaylight:netvirt:elan:etree"},{"name":"aclservice-config","revision":"2016-08-06","namespace":"urn:opendaylight:netvirt:aclservice-config"},{"name":"ospf-topology","revision":"2013-07-12","namespace":"urn:ietf:params:xml:ns:yang:ospf-topology"},{"name":"opendaylight-multipart-types","revision":"2017-01-12","namespace":"urn:opendaylight:multipart:types"},{"name":"service-function-mapping","revision":"2014-07-01","namespace":"urn:ericsson:params:xml:ns:yang:sfc-sf-map"},{"name":"isis-topology","revision":"2013-10-21","namespace":"urn:TBD:params:xml:ns:yang:network:isis-topology"},{"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":"iana-afn-safi","revision":"2013-07-04","namespace":"urn:ietf:params:xml:ns:yang:iana-afn-safi"},{"name":"vpn-config","revision":"2016-11-30","namespace":"urn:opendaylight:netvirt:vpn:config"},{"name":"sal-experimenter-message","revision":"2015-10-20","namespace":"urn:opendaylight:experimenter-message:service"},{"name":"neutron-attrs","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-attrs"},{"name":"node-error","revision":"2014-04-10","namespace":"urn:opendaylight:node:error:service"},{"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":"opendaylight-sal-dom-broker-impl","revision":"2013-10-28","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl"},{"name":"openflow-augments","revision":"2015-02-25","namespace":"urn:opendaylight:openflow:augments"},{"name":"openflowplugin-extension-general","revision":"2014-07-14","namespace":"urn:opendaylight:openflowplugin:extension:general"},{"name":"rpc-context","revision":"2013-06-17","namespace":"urn:ietf:params:xml:ns:yang:rpc-context"},{"name":"ipv6-ndutil","revision":"2017-02-10","namespace":"urn:opendaylight:netvirt:ipv6service:ipv6util"},{"name":"odl-arputil","revision":"2016-04-06","namespace":"urn:opendaylight:genius:arputil"},{"name":"service-function-scheduler-type","revision":"2015-03-12","namespace":"urn:intel:params:xml:ns:yang:sfc-sfst"},{"name":"rendered-service-path","revision":"2014-07-01","namespace":"urn:cisco:params:xml:ns:yang:sfc-rsp"},{"name":"sal-echo","revision":"2015-03-05","namespace":"urn:opendaylight:echo:service"},{"name":"odl-l3vpn","revision":"2013-09-11","namespace":"urn:opendaylight:netvirt:l3vpn"},{"name":"openflow-protocol","revision":"2013-07-31","namespace":"urn:opendaylight:openflow:protocol"},{"name":"barrier-common","revision":"2016-03-15","namespace":"urn:opendaylight:service:barrier:common"},{"name":"neutron-constants","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-constants"},{"name":"service-node","revision":"2014-07-01","namespace":"urn:cisco:params:xml:ns:yang:sfc-sn"},{"name":"service-function-description-monitor-report","revision":"2014-11-05","namespace":"urn.intel.params:xml:ns:sf-desc-mon-rpt"},{"name":"resource-manager","revision":"2016-06-22","namespace":"urn:opendaylight:genius:resourcemanager"},{"name":"sal-remote","revision":"2014-01-14","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:remote"},{"name":"sal-queue","revision":"2015-03-05","namespace":"urn:opendaylight:queue:service"},{"name":"neutron-secgroups","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-secgroups"},{"name":"openflowplugin-experimenter-types","revision":"2015-10-20","namespace":"urn:opendaylight:openflowplugin:experimenter:types"},{"name":"distributed-datastore-provider","revision":"2014-06-12","namespace":"urn:opendaylight:params:xml:ns:yang:controller:config:distributed-datastore-provider"},{"name":"itm-state","revision":"2016-04-06","namespace":"urn:opendaylight:genius:itm:op"},{"name":"opendaylight-inventory","revision":"2013-08-19","namespace":"urn:opendaylight:inventory"},{"name":"neutron-metering","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-metering"},{"name":"subscribe-to-notification","revision":"2016-10-28","namespace":"subscribe:to:notification"},{"name":"onf-extensions","revision":"2017-01-24","namespace":"urn:opendaylight:openflowplugin:extension:onf"},{"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-match-types","revision":"2013-10-26","namespace":"urn:opendaylight:model:match:types"},{"name":"sfc-ioam-sb-pot-params","revision":"2016-12-05","namespace":"urn:cisco:params:xml:ns:yang:sfc-ioam-sb-pot-params"},{"name":"dhcp_allocation_pool","revision":"2016-12-14","namespace":"urn:opendaylight:netvirt:dhcp_allocation_pool"},{"name":"threadgroup","revision":"2013-11-07","namespace":"urn:opendaylight:params:xml:ns:yang:controller:netty:threadgroup"},{"name":"ietf-network-topology","revision":"2015-06-08","namespace":"urn:ietf:params:xml:ns:yang:ietf-network-topology"},{"name":"config","revision":"2013-04-05","namespace":"urn:opendaylight:params:xml:ns:yang:controller:config"},{"name":"topology-lldp-discovery-config","revision":"2016-05-11","namespace":"urn:opendaylight:params:xml:ns:yang:topology-lldp-discovery:config"},{"name":"sal-remote-augment","revision":"2014-07-08","namespace":"urn:sal:restconf:event:subscription"},{"name":"odl-interface-rpc","revision":"2016-04-06","namespace":"urn:opendaylight:genius:interfacemanager:rpcs"},{"name":"service-function-path","revision":"2014-07-01","namespace":"urn:cisco:params:xml:ns:yang:sfc-sfp"},{"name":"interface-statistics","revision":"2015-08-24","namespace":"urn:opendaylight:genius:interface:statistics"},{"name":"openflow-extensible-match","revision":"2015-02-25","namespace":"urn:opendaylight:openflow:oxm"},{"name":"service-statistics","revision":"2014-07-01","namespace":"urn:cisco:params:xml:ns:yang:sfc-ss"},{"name":"neutron-types","revision":"2016-05-17","namespace":"urn:opendaylight:neutron-types"},{"name":"cloud-service-chain-state","revision":"2017-05-11","namespace":"urn:opendaylight:netvirt:cloud-servicechain:state"},{"name":"service-function-forwarder-termination","revision":"2017-01-11","namespace":"urn:hpe:params:xml:ns:yang:sfc-sff-termination"},{"name":"aaa-cert-mdsal","revision":"2016-03-21","namespace":"urn:opendaylight:yang:aaa:cert:mdsal"},{"name":"opendaylight-action-types","revision":"2013-11-12","namespace":"urn:opendaylight:action:types"},{"name":"v3po","revision":"2016-12-14","namespace":"urn:opendaylight:params:xml:ns:yang:v3po"},{"name":"ted","revision":"2013-10-21","namespace":"urn:TBD:params:xml:ns:yang:network:ted"},{"name":"sal-table","revision":"2013-10-26","namespace":"urn:opendaylight:table:service"},{"name":"odl-fib","revision":"2015-03-30","namespace":"urn:opendaylight:netvirt:fibmanager"},{"name":"vpp-nsh","revision":"2016-12-14","namespace":"urn:opendaylight:params:xml:ns:yang:vpp:nsh"},{"name":"openflowplugin-extension-registry","revision":"2015-04-25","namespace":"urn:opendaylight:params:xml:ns:yang:openflowplugin:extension:api"},{"name":"fib-rpc","revision":"2016-01-21","namespace":"urn:opendaylight:netvirt:fib:rpc"},{"name":"ietf-restconf","revision":"2013-10-19","namespace":"urn:ietf:params:xml:ns:yang:ietf-restconf"},{"name":"interface-service-bindings","revision":"2016-04-06","namespace":"urn:opendaylight:genius:interfacemanager:servicebinding"},{"name":"opendaylight-flow-statistics","revision":"2013-08-19","namespace":"urn:opendaylight:flow:statistics"},{"name":"aaa-cert-rpc","revision":"2015-12-15","namespace":"urn:opendaylight:yang:aaa:cert:rpc"},{"name":"odl-interface","revision":"2016-04-06","namespace":"urn:opendaylight:genius:interfacemanager"},{"name":"itm-rpc","revision":"2016-04-06","namespace":"urn:opendaylight:genius:itm:rpcs"},{"name":"openflow-types","revision":"2013-07-31","namespace":"urn:opendaylight:openflow:common:types"},{"name":"service-function-forwarder-metadata-features","revision":"2015-10-10","namespace":"urn:cisco:params:xml:ns:yang:sfc-sff-md-features","feature":["dc-allocation-type-1","mobility-allocation-type-1","vxlan-classifier-type-1"]},{"name":"prefix-shard-configuration","revision":"2017-01-10","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:clustering:prefix-shard-configuration"},{"name":"openflow-switch-connection-config","revision":"2016-05-06","namespace":"urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:config"},{"name":"isis-topology","revision":"2013-07-12","namespace":"urn:TBD:params:xml:ns:yang:network:isis-topology"},{"name":"service-function-forwarder-ofs","revision":"2015-04-08","namespace":"urn:ericsson:params:xml:ns:yang:sfc-sff-ofs"},{"name":"opendaylight-port-types","revision":"2013-09-25","namespace":"urn:opendaylight:flow:types:port"},{"name":"ebgp","revision":"2015-09-01","namespace":"urn:ericsson:params:xml:ns:yang:ebgp"},{"name":"sal-meters-batch","revision":"2016-03-16","namespace":"urn:opendaylight:meters:service"},{"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":"service-function-ovs","revision":"2016-01-07","namespace":"urn:ericsson:params:xml:ns:yang:sfc-sf-ovs"},{"name":"netty","revision":"2013-11-19","namespace":"urn:opendaylight:params:xml:ns:yang:controller:netty"},{"name":"aaa","revision":"2016-12-14","namespace":"urn:opendaylight:params:xml:ns:yang:aaa"},{"name":"ietf-inet-types","revision":"2010-09-24","namespace":"urn:ietf:params:xml:ns:yang:ietf-inet-types"},{"name":"service-function-description-monitor","revision":"2014-12-01","namespace":"urn.intel.params:xml:ns:sf-desc-mon"},{"name":"sal-flat-batch","revision":"2016-03-21","namespace":"urn:opendaylight:flat-batch:service"},{"name":"neutron-subnets","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-subnets"},{"name":"dhcpservice-config","revision":"2015-07-10","namespace":"urn:opendaylight:params:xml:ns:yang:dhcpservice:config"},{"name":"openflow-provider","revision":"2015-03-31","namespace":"urn:opendaylight:params:xml:ns:yang:openflow:api"},{"name":"neutron-binding","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-binding"},{"name":"cluster-singleton-service-spi","revision":"2016-07-18","namespace":"urn:opendaylight:params:xml:ns:yang:md:sal:config:spi:cluster-singleton-service"},{"name":"openflow-instruction","revision":"2013-07-31","namespace":"urn:opendaylight:openflow:common:instruction"},{"name":"policy-service","revision":"2017-02-07","namespace":"urn:opendaylight:netvirt:policy"},{"name":"sfc-ioam-sb-pot","revision":"2017-01-12","namespace":"urn:cisco:params:xml:ns:yang:sfc-ioam-sb-pot"},{"name":"dot1q-types","revision":"2015-06-26","namespace":"urn:ieee:params:xml:ns:yang:dot1q-types"},{"name":"neutron-networks","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-networks"},{"name":"sal-flows-batch","revision":"2016-03-14","namespace":"urn:opendaylight:flows:service"},{"name":"network-topology","revision":"2013-10-21","namespace":"urn:TBD:params:xml:ns:yang:network-topology"},{"name":"dhcpservice-api","revision":"2015-07-10","namespace":"urn:opendaylight:params:xml:ns:yang:dhcpservice:api"},{"name":"acl-live-statistics","revision":"2016-11-29","namespace":"urn:opendaylight:netvirt:acl:live:statistics"},{"name":"opendaylight-queue-statistics","revision":"2013-12-16","namespace":"urn:opendaylight:queue:statistics"},{"name":"entity-owners","revision":"2015-08-04","namespace":"urn:opendaylight:params:xml:ns:yang:controller:md:sal:clustering:entity-owners"},{"name":"neutron-provider-ext","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-provider-ext"},{"name":"sal-port","revision":"2013-11-07","namespace":"urn:opendaylight:port:service"},{"name":"neutron-l2gateways","revision":"2015-07-12","namespace":"urn:opendaylight:neutron-l2gateways"},{"name":"qosalert-config","revision":"2017-03-01","namespace":"urn:opendaylight:netvirt:qosalert:config"},{"name":"elan-statistics","revision":"2015-08-24","namespace":"urn:opendaylight:netvirt:elan:statistics"},{"name":"opendaylight-meter-statistics","revision":"2013-11-11","namespace":"urn:opendaylight:meter:statistics"},{"name":"flow-capable-transaction","revision":"2015-03-04","namespace":"urn:opendaylight:flow:transaction"},{"name":"sfc-ioam-sb-pot-hop-params","revision":"2016-12-05","namespace":"urn:cisco:params:xml:ns:yang:sfc-ioam-sb-pot-hop-params"},{"name":"statistics-manager-control","revision":"2015-08-12","namespace":"urn:opendaylight:params:xml:ns:yang:openflowplugin:sm:control"},{"name":"sal-bundle","revision":"2017-01-24","namespace":"urn:opendaylight:openflowplugin:extension:onf:bundle:service"},{"name":"system-notifications","revision":"2013-09-27","namespace":"urn:opendaylight:openflow:system"},{"name":"netty-timer","revision":"2013-11-19","namespace":"urn:opendaylight:params:xml:ns:yang:controller:netty:timer"},{"name":"opendaylight-group-statistics","revision":"2013-11-11","namespace":"urn:opendaylight:group:statistics"}]}}
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=https://192.16.1.222:5000, headers={u'Content-Type': u'application/json'}, cookies=None, auth=None, timeout=None, proxies=None, verify=False, debug=0
**Deprecated- See Post Request now**
KeyStoneSession
/v3/auth/tokens
${UserInfo}
${resp}
Deprecation Warning: Use Post Request in the future
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
${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} = gAAAAABaaS7Kqh_vNflHtQtS_gA2o67k_6aGDcHH9H5uilH5K3nFUuuCgd6WElYszToNjOdrgdP01oumeellwt8_bj99NKCtov2fW0PxMQaAEE-Z5YIZyf9k5LDnK2fm8Lg4GKFVMOwj0VGaCNilX_f31MKkDjZqDmvpHzH8VDWNc3ifeP-WGak
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': 'gAAAAABaaS7Kqh_vNflHtQtS_gA2o67k_6aGDcHH9H5uilH5K3nFUuuCgd6WElYszToNjOdrgdP01oumeellwt8_bj99NKCtov2fW0PxMQaAEE-Z5YIZyf9k5LDnK2fm8Lg4GKFVMOwj0VGaCNilX_f31MKkDjZqDmvpHzH8VDWNc3ifeP-WG...
Creates and returns a dictionary based on the given ``items``.
X-Auth-Token=${TOKEN}
${X-AUTH-NOCONTENT}
${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABaaS7Kqh_vNflHtQtS_gA2o67k_6aGDcHH9H5uilH5K3nFUuuCgd6WElYszToNjOdrgdP01oumeellwt8_bj99NKCtov2fW0PxMQaAEE-Z5YIZyf9k5LDnK2fm8Lg4GKFVMOwj0VGaCNilX_f31MKkDjZqDmvpHzH8VDWNc3ifeP-WG...
Makes a variable available globally in all tests and suites.
${X-AUTH}
${X-AUTH} = {u'X-Auth-Token': 'gAAAAABaaS7Kqh_vNflHtQtS_gA2o67k_6aGDcHH9H5uilH5K3nFUuuCgd6WElYszToNjOdrgdP01oumeellwt8_bj99NKCtov2fW0PxMQaAEE-Z5YIZyf9k5LDnK2fm8Lg4GKFVMOwj0VGaCNilX_f31MKkDjZqDmvpHzH8VDWNc3ifeP-WG...
Makes a variable available globally in all tests and suites.
${X-AUTH-NOCONTENT}
${X-AUTH-NOCONTENT} = {u'X-Auth-Token': 'gAAAAABaaS7Kqh_vNflHtQtS_gA2o67k_6aGDcHH9H5uilH5K3nFUuuCgd6WElYszToNjOdrgdP01oumeellwt8_bj99NKCtov2fW0PxMQaAEE-Z5YIZyf9k5LDnK2fm8Lg4GKFVMOwj0VGaCNilX_f31MKkDjZqDmvpHzH8VDWNc3ifeP-WG...
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.16.1.222:8080, headers={u'Content-Type': u'application/json'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7f5594a80e50>, 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=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABaaS7Kqh_vNflHtQtS_gA2o67k_6aGDcHH9H5uilH5K3nFUuuCgd6WElYszToNjOdrgdP01oumeellwt8_bj99NKCtov2fW0PxMQaAEE-Z5YIZyf9k5LDnK2fm8Lg4GKFVMOwj0VGaCNilX_f31MKkDjZqDmvpHzH8VDWNc3ifeP-WGak', 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': 'gAAAAABaaS7Kqh_vNflHtQtS_gA2o67k_6aGDcHH9H5uilH5K3nFUuuCgd6WElYszToNjOdrgdP01oumeellwt8_bj99NKCtov2fW0PxMQaAEE-Z5YIZyf9k5LDnK2fm8Lg4GKFVMOwj0VGaCNilX_f31MKkDjZqDmvpHzH8VDWNc3ifeP-WGak', u'Content-Type': u'application/json'}
Send a GET request on the session object found using the
OSSession
${OSREST}
${resp}
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
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": null, "ipv6_address_scope": null, "revision_number": 5, "port_security_enabled": true, "mtu": 1450, "id": "4822e0fd-bf26-4755-aab5-470ffe022d1a", "router:external": false, "availability_zone_hints": [], "availability_zones": ["nova"], "ipv4_address_scope": null, "shared": false, "project_id": "aab09451e4964303a290d3e373586a28", "status": "ACTIVE", "subnets": ["f1464b56-9696-4543-97b6-6865f1a105d4"], "description": "", "tags": [], "updated_at": "2018-01-25T00:15:42Z", "provider:segmentation_id": 15, "name": "tempest-net-92023b3f-e70c-496f-8249-2e910175dc8c", "admin_state_up": true, "tenant_id": "aab09451e4964303a290d3e373586a28", "created_at": "2018-01-25T00:15:42Z", "provider:network_type": "vxlan"}, {"provider:physical_network": null, "ipv6_address_scope": null, "revision_number": 5, "port_security_enabled": true, "mtu": 1450, "id": "6541dfde-cfe2-4adb-a18f-43cbfc318002", "router:external": false, "availability_zone_hints": [], "availability_zones": ["nova"], "ipv4_address_scope": null, "shared": false, "project_id": "1cd47a7443f8496f8f7637027aae4f1f", "status": "ACTIVE", "subnets": ["7c00a13a-b3c8-4870-8836-6c6bb6f5db94"], "description": "", "tags": [], "updated_at": "2018-01-25T00:29:54Z", "provider:segmentation_id": 33, "name": "tempest-TestServerMultinode-1321786727-network", "admin_state_up": true, "tenant_id": "1cd47a7443f8496f8f7637027aae4f1f", "created_at": "2018-01-25T00:29:53Z", "provider:network_type": "vxlan"}, {"provider:physical_network": null, "ipv6_address_scope": null, "revision_number": 5, "port_security_enabled": true, "mtu": 1450, "id": "8785c2b5-3260-4a17-8b76-b2a3150e2afa", "router:external": false, "availability_zone_hints": [], "availability_zones": ["nova"], "ipv4_address_scope": null, "shared": false, "project_id": "d43f99f22ccf4b8c934316e97db16d30", "status": "ACTIVE", "subnets": ["75131007-64e7-4716-8d53-d852b54b1c05"], "description": "", "tags": [], "updated_at": "2018-01-25T00:30:31Z", "provider:segmentation_id": 22, "name": "tempest-TestVolumeBootPattern-1173746198-network", "admin_state_up": true, "tenant_id": "d43f99f22ccf4b8c934316e97db16d30", "created_at": "2018-01-25T00:30:30Z", "provider:network_type": "vxlan"}, {"provider:physical_network": null, "ipv6_address_scope": null, "revision_number": 5, "port_security_enabled": true, "mtu": 1450, "id": "b2088f2d-70b9-4c4e-ab91-76005e2f1ce2", "router:external": false, "availability_zone_hints": [], "availability_zones": ["nova"], "ipv4_address_scope": null, "shared": false, "project_id": "6a99ed6b0f50496fa1de7553a636a39d", "status": "ACTIVE", "subnets": ["8f05606b-120e-4ae5-af6a-e7f1f05e6d4a"], "description": "", "tags": [], "updated_at": "2018-01-25T00:30:40Z", "provider:segmentation_id": 83, "name": "tempest-TestVolumeBootPatternV2-1130054844-network", "admin_state_up": true, "tenant_id": "6a99ed6b0f50496fa1de7553a636a39d", "created_at": "2018-01-25T00:30:40Z", "provider:network_type": "vxlan"}, {"provider:physical_network": "physnet", "ipv6_address_scope": null, "revision_number": 6, "port_security_enabled": true, "mtu": 1500, "id": "bfa60317-afac-4510-9801-f97cb08057b6", "router:external": true, "availability_zone_hints": [], "availability_zones": ["nova"], "ipv4_address_scope": null, "shared": false, "project_id": "aab09451e4964303a290d3e373586a28", "status": "ACTIVE", "subnets": ["3be6d87b-f359-4219-9097-d97bd1bc6ca7"], "description": "", "tags": [], "updated_at": "2018-01-25T00:06:47Z", "is_default": false, "provider:segmentation_id": null, "name": "ext-net", "admin_state_up": true, "tenant_id": "aab09451e4964303a290d3e373586a28", "created_at": "2018-01-25T00:06:44Z", "provider:network_type": "flat"}, {"provider:physical_network": null, "ipv6_address_scope": null, "revision_number": 5, "port_security_enabled": true, "mtu": 1450, "id": "d5f32d2d-da1e-4cd7-986a-9e2c9ee88043", "router:external": false, "availability_zone_hints": [], "availability_zones": ["nova"], "ipv4_address_scope": null, "shared": false, "project_id": "73cd786da110496bb187ab49f3e98a36", "status": "ACTIVE", "subnets": ["681d622c-7c92-4000-920e-f08d9ee7d3f8"], "description": "", "tags": [], "updated_at": "2018-01-25T00:30:00Z", "provider:segmentation_id": 47, "name": "tempest-TestServerMultinode-1995699591-network", "admin_state_up": true, "tenant_id": "73cd786da110496bb187ab49f3e98a36", "created_at": "2018-01-25T00:29:59Z", "provider:network_type": "vxlan"}]}
To JSON using : pretty_print=False
${OSResult} = {u'networks': [{u'provider:physical_network': None, u'ipv6_address_scope': None, u'revision_number': 5, u'port_security_enabled': True, u'provider:network_type': u'vxlan', u'id': u'4822e0fd-bf26-4755-...
Logs the given message with the given level.
${OSResult}
{u'networks': [{u'provider:physical_network': None, u'ipv6_address_scope': None, u'revision_number': 5, u'port_security_enabled': True, u'provider:network_type': u'vxlan', u'id': u'4822e0fd-bf26-4755-aab5-470ffe022d1a', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [u'nova'], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'aab09451e4964303a290d3e373586a28', u'status': u'ACTIVE', u'subnets': [u'f1464b56-9696-4543-97b6-6865f1a105d4'], u'description': u'', u'tags': [], u'updated_at': u'2018-01-25T00:15:42Z', u'provider:segmentation_id': 15, u'name': u'tempest-net-92023b3f-e70c-496f-8249-2e910175dc8c', u'admin_state_up': True, u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'created_at': u'2018-01-25T00:15:42Z', u'mtu': 1450}, {u'provider:physical_network': None, u'ipv6_address_scope': None, u'revision_number': 5, u'port_security_enabled': True, u'provider:network_type': u'vxlan', u'id': u'6541dfde-cfe2-4adb-a18f-43cbfc318002', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [u'nova'], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'1cd47a7443f8496f8f7637027aae4f1f', u'status': u'ACTIVE', u'subnets': [u'7c00a13a-b3c8-4870-8836-6c6bb6f5db94'], u'description': u'', u'tags': [], u'updated_at': u'2018-01-25T00:29:54Z', u'provider:segmentation_id': 33, u'name': u'tempest-TestServerMultinode-1321786727-network', u'admin_state_up': True, u'tenant_id': u'1cd47a7443f8496f8f7637027aae4f1f', u'created_at': u'2018-01-25T00:29:53Z', u'mtu': 1450}, {u'provider:physical_network': None, u'ipv6_address_scope': None, u'revision_number': 5, u'port_security_enabled': True, u'provider:network_type': u'vxlan', u'id': u'8785c2b5-3260-4a17-8b76-b2a3150e2afa', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [u'nova'], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'd43f99f22ccf4b8c934316e97db16d30', u'status': u'ACTIVE', u'subnets': [u'75131007-64e7-4716-8d53-d852b54b1c05'], u'description': u'', u'tags': [], u'updated_at': u'2018-01-25T00:30:31Z', u'provider:segmentation_id': 22, u'name': u'tempest-TestVolumeBootPattern-1173746198-network', u'admin_state_up': True, u'tenant_id': u'd43f99f22ccf4b8c934316e97db16d30', u'created_at': u'2018-01-25T00:30:30Z', u'mtu': 1450}, {u'provider:physical_network': None, u'ipv6_address_scope': None, u'revision_number': 5, u'port_security_enabled': True, u'provider:network_type': u'vxlan', u'id': u'b2088f2d-70b9-4c4e-ab91-76005e2f1ce2', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [u'nova'], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'status': u'ACTIVE', u'subnets': [u'8f05606b-120e-4ae5-af6a-e7f1f05e6d4a'], u'description': u'', u'tags': [], u'updated_at': u'2018-01-25T00:30:40Z', u'provider:segmentation_id': 83, u'name': u'tempest-TestVolumeBootPatternV2-1130054844-network', u'admin_state_up': True, u'tenant_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'created_at': u'2018-01-25T00:30:40Z', u'mtu': 1450}, {u'provider:physical_network': u'physnet', u'ipv6_address_scope': None, u'revision_number': 6, u'port_security_enabled': True, u'provider:network_type': u'flat', u'id': u'bfa60317-afac-4510-9801-f97cb08057b6', 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'aab09451e4964303a290d3e373586a28', u'status': u'ACTIVE', u'subnets': [u'3be6d87b-f359-4219-9097-d97bd1bc6ca7'], u'description': u'', u'tags': [], u'updated_at': u'2018-01-25T00:06:47Z', u'is_default': False, u'provider:segmentation_id': None, u'name': u'ext-net', u'admin_state_up': True, u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'created_at': u'2018-01-25T00:06:44Z', u'mtu': 1500}, {u'provider:physical_network': None, u'ipv6_address_scope': None, u'revision_number': 5, u'port_security_enabled': True, u'provider:network_type': u'vxlan', u'id': u'd5f32d2d-da1e-4cd7-986a-9e2c9ee88043', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [u'nova'], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'73cd786da110496bb187ab49f3e98a36', u'status': u'ACTIVE', u'subnets': [u'681d622c-7c92-4000-920e-f08d9ee7d3f8'], u'description': u'', u'tags': [], u'updated_at': u'2018-01-25T00:30:00Z', u'provider:segmentation_id': 47, u'name': u'tempest-TestServerMultinode-1995699591-network', u'admin_state_up': True, u'tenant_id': u'73cd786da110496bb187ab49f3e98a36', u'created_at': u'2018-01-25T00:29:59Z', u'mtu': 1450}]}
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.16.1.222:8080, headers={u'Content-Type': u'application/json'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7f5594a36750>, 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" : "d5f32d2d-da1e-4cd7-986a-9e2c9ee88043",
"tenant_id" : "73cd786da110496bb187ab49f3e98a36",
"project_id" : "73cd786da110496bb187ab49f3e98a36",
"name" : "tempest-TestServerMultinode-1995699591-network",
"admin_state_up" : true,
"status" : "ACTIVE",
"shared" : false,
"router:external" : false,
"provider:network_type" : "vxlan",
"provider:segmentation_id" : "47",
"segments" : [ ]
}, {
"id" : "bfa60317-afac-4510-9801-f97cb08057b6",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"revision_number" : 6,
"name" : "ext-net",
"admin_state_up" : true,
"status" : "ACTIVE",
"shared" : false,
"router:external" : true,
"provider:network_type" : "flat",
"provider:physical_network" : "physnet",
"segments" : [ ]
}, {
"id" : "b2088f2d-70b9-4c4e-ab91-76005e2f1ce2",
"tenant_id" : "6a99ed6b0f50496fa1de7553a636a39d",
"project_id" : "6a99ed6b0f50496fa1de7553a636a39d",
"name" : "tempest-TestVolumeBootPatternV2-1130054844-network",
"admin_state_up" : true,
"status" : "ACTIVE",
"shared" : false,
"router:external" : false,
"provider:network_type" : "vxlan",
"provider:segmentation_id" : "83",
"segments" : [ ]
}, {
"id" : "8785c2b5-3260-4a17-8b76-b2a3150e2afa",
"tenant_id" : "d43f99f22ccf4b8c934316e97db16d30",
"project_id" : "d43f99f22ccf4b8c934316e97db16d30",
"name" : "tempest-TestVolumeBootPattern-1173746198-network",
"admin_state_up" : true,
"status" : "ACTIVE",
"shared" : false,
"router:external" : false,
"provider:network_type" : "vxlan",
"provider:segmentation_id" : "22",
"segments" : [ ]
}, {
"id" : "6541dfde-cfe2-4adb-a18f-43cbfc318002",
"tenant_id" : "1cd47a7443f8496f8f7637027aae4f1f",
"project_id" : "1cd47a7443f8496f8f7637027aae4f1f",
"name" : "tempest-TestServerMultinode-1321786727-network",
"admin_state_up" : true,
"status" : "ACTIVE",
"shared" : false,
"router:external" : false,
"provider:network_type" : "vxlan",
"provider:segmentation_id" : "33",
"segments" : [ ]
}, {
"id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
"tenant_id" : "bd8db3a82b304083a8b3b3fd46401142",
"project_id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
"name" : "Sync Canary Network",
"admin_state_up" : false,
"status" : "ACTIVE",
"shared" : false,
"router:external" : false,
"provider:network_type" : "flat",
"segments" : [ ]
}, {
"id" : "4822e0fd-bf26-4755-aab5-470ffe022d1a",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"name" : "tempest-net-92023b3f-e70c-496f-8249-2e910175dc8c",
"admin_state_up" : true,
"status" : "ACTIVE",
"shared" : false,
"router:external" : false,
"provider:network_type" : "vxlan",
"provider:segmentation_id" : "15",
"segments" : [ ]
} ]
}
To JSON using : pretty_print=False
${ODLResult} = {u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'name': u'tempest-TestServerMultinode-1995699591-network', u'admin_state_up': True, u'tenant_id': u'73cd786da110496bb187ab49f3e98a36',...
Logs the given message with the given level.
${ODLResult}
{u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'name': u'tempest-TestServerMultinode-1995699591-network', u'admin_state_up': True, u'tenant_id': u'73cd786da110496bb187ab49f3e98a36', u'segments': [], u'provider:network_type': u'vxlan', u'shared': False, u'project_id': u'73cd786da110496bb187ab49f3e98a36', u'id': u'd5f32d2d-da1e-4cd7-986a-9e2c9ee88043', u'provider:segmentation_id': u'47'}, {u'status': u'ACTIVE', u'router:external': True, u'name': u'ext-net', u'provider:physical_network': u'physnet', u'admin_state_up': True, u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 6, u'shared': False, u'project_id': u'aab09451e4964303a290d3e373586a28', u'id': u'bfa60317-afac-4510-9801-f97cb08057b6'}, {u'status': u'ACTIVE', u'router:external': False, u'name': u'tempest-TestVolumeBootPatternV2-1130054844-network', u'admin_state_up': True, u'tenant_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'segments': [], u'provider:network_type': u'vxlan', u'shared': False, u'project_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'id': u'b2088f2d-70b9-4c4e-ab91-76005e2f1ce2', u'provider:segmentation_id': u'83'}, {u'status': u'ACTIVE', u'router:external': False, u'name': u'tempest-TestVolumeBootPattern-1173746198-network', u'admin_state_up': True, u'tenant_id': u'd43f99f22ccf4b8c934316e97db16d30', u'segments': [], u'provider:network_type': u'vxlan', u'shared': False, u'project_id': u'd43f99f22ccf4b8c934316e97db16d30', u'id': u'8785c2b5-3260-4a17-8b76-b2a3150e2afa', u'provider:segmentation_id': u'22'}, {u'status': u'ACTIVE', u'router:external': False, u'name': u'tempest-TestServerMultinode-1321786727-network', u'admin_state_up': True, u'tenant_id': u'1cd47a7443f8496f8f7637027aae4f1f', u'segments': [], u'provider:network_type': u'vxlan', u'shared': False, u'project_id': u'1cd47a7443f8496f8f7637027aae4f1f', u'id': u'6541dfde-cfe2-4adb-a18f-43cbfc318002', u'provider:segmentation_id': u'33'}, {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': False, u'name': u'tempest-net-92023b3f-e70c-496f-8249-2e910175dc8c', u'admin_state_up': True, u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'segments': [], u'provider:network_type': u'vxlan', u'shared': False, u'project_id': u'aab09451e4964303a290d3e373586a28', u'id': u'4822e0fd-bf26-4755-aab5-470ffe022d1a', u'provider:segmentation_id': u'15'}]}
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}
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
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, "updated_at": "2018-01-25T01:11:39Z", "revision_number": 3, "port_security_enabled": true, "mtu": 1450, "id": "6bb84780-2848-4bf9-bcd1-49f549a408ca", "router:external": false, "availability_zone_hints": [], "availability_zones": [], "ipv4_address_scope": null, "shared": false, "project_id": "aab09451e4964303a290d3e373586a28", "status": "ACTIVE", "subnets": [], "description": "", "tags": [], "ipv6_address_scope": null, "provider:segmentation_id": 99, "name": "odl_network", "admin_state_up": true, "tenant_id": "aab09451e4964303a290d3e373586a28", "created_at": "2018-01-25T01:11:39Z", "provider:network_type": "vxlan"}}
To JSON using : pretty_print=False
${result} = {u'network': {u'provider:physical_network': None, u'updated_at': u'2018-01-25T01:11:39Z', u'revision_number': 3, u'port_security_enabled': True, u'provider:network_type': u'vxlan', u'id': u'6bb84780-2...
Returns a value from the given ``dictionary`` based on the given ``key``.
${result}
network
${result}
${result} = {u'provider:physical_network': None, u'updated_at': u'2018-01-25T01:11:39Z', u'revision_number': 3, u'port_security_enabled': True, u'provider:network_type': u'vxlan', u'id': u'6bb84780-2848-4bf9-bcd1...
Returns a value from the given ``dictionary`` based on the given ``key``.
${result}
id
${NETID}
${NETID} = 6bb84780-2848-4bf9-bcd1-49f549a408ca
Logs the given message with the given level.
${result}
{u'provider:physical_network': None, u'updated_at': u'2018-01-25T01:11:39Z', u'revision_number': 3, u'port_security_enabled': True, u'provider:network_type': u'vxlan', u'id': u'6bb84780-2848-4bf9-bcd1-49f549a408ca', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [], u'ipv4_address_scope': None, u'shared': False, u'project_id': u'aab09451e4964303a290d3e373586a28', u'status': u'ACTIVE', u'subnets': [], u'description': u'', u'tags': [], u'ipv6_address_scope': None, u'provider:segmentation_id': 99, u'name': u'odl_network', u'admin_state_up': True, u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'created_at': u'2018-01-25T01:11:39Z', u'mtu': 1450}
Logs the given message with the given level.
${NETID}
6bb84780-2848-4bf9-bcd1-49f549a408ca
Makes a variable available globally in all tests and suites.
${NETID}
${NETID} = 6bb84780-2848-4bf9-bcd1-49f549a408ca
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/6bb84780-2848-4bf9-bcd1-49f549a408ca, 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=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABaaS7Kqh_vNflHtQtS_gA2o67k_6aGDcHH9H5uilH5K3nFUuuCgd6WElYszToNjOdrgdP01oumeellwt8_bj99NKCtov2fW0PxMQaAEE-Z5YIZyf9k5LDnK2fm8Lg4GKFVMOwj0VGaCNilX_f31MKkDjZqDmvpHzH8VDWNc3ifeP-WGak', 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': 'gAAAAABaaS7Kqh_vNflHtQtS_gA2o67k_6aGDcHH9H5uilH5K3nFUuuCgd6WElYszToNjOdrgdP01oumeellwt8_bj99NKCtov2fW0PxMQaAEE-Z5YIZyf9k5LDnK2fm8Lg4GKFVMOwj0VGaCNilX_f31MKkDjZqDmvpHzH8VDWNc3ifeP-WGak', u'Content-Type': u'application/json'}
Send a GET request on the session object found using the
OSSession
${OSREST}
${resp}
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
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": true, "tags": [], "network_id": "bfa60317-afac-4510-9801-f97cb08057b6", "tenant_id": "aab09451e4964303a290d3e373586a28", "created_at": "2018-01-25T00:06:47Z", "dns_nameservers": [], "updated_at": "2018-01-25T00:06:47Z", "gateway_ip": "192.16.1.1", "ipv6_ra_mode": null, "allocation_pools": [{"start": "192.16.1.101", "end": "192.16.1.199"}], "host_routes": [], "revision_number": 2, "ip_version": 4, "ipv6_address_mode": null, "cidr": "192.16.1.0/24", "project_id": "aab09451e4964303a290d3e373586a28", "id": "3be6d87b-f359-4219-9097-d97bd1bc6ca7", "subnetpool_id": null, "name": "ext-subnet"}, {"service_types": [], "description": "", "enable_dhcp": true, "tags": [], "network_id": "d5f32d2d-da1e-4cd7-986a-9e2c9ee88043", "tenant_id": "73cd786da110496bb187ab49f3e98a36", "created_at": "2018-01-25T00:30:00Z", "dns_nameservers": [], "updated_at": "2018-01-25T00:30:00Z", "gateway_ip": "10.100.0.1", "ipv6_ra_mode": null, "allocation_pools": [{"start": "10.100.0.2", "end": "10.100.0.14"}], "host_routes": [], "revision_number": 2, "ip_version": 4, "ipv6_address_mode": null, "cidr": "10.100.0.0/28", "project_id": "73cd786da110496bb187ab49f3e98a36", "id": "681d622c-7c92-4000-920e-f08d9ee7d3f8", "subnetpool_id": null, "name": "tempest-TestServerMultinode-1995699591-subnet"}, {"service_types": [], "description": "", "enable_dhcp": true, "tags": [], "network_id": "8785c2b5-3260-4a17-8b76-b2a3150e2afa", "tenant_id": "d43f99f22ccf4b8c934316e97db16d30", "created_at": "2018-01-25T00:30:31Z", "dns_nameservers": [], "updated_at": "2018-01-25T00:30:31Z", "gateway_ip": "10.100.0.1", "ipv6_ra_mode": null, "allocation_pools": [{"start": "10.100.0.2", "end": "10.100.0.14"}], "host_routes": [], "revision_number": 2, "ip_version": 4, "ipv6_address_mode": null, "cidr": "10.100.0.0/28", "project_id": "d43f99f22ccf4b8c934316e97db16d30", "id": "75131007-64e7-4716-8d53-d852b54b1c05", "subnetpool_id": null, "name": "tempest-TestVolumeBootPattern-1173746198-subnet"}, {"service_types": [], "description": "", "enable_dhcp": true, "tags": [], "network_id": "6541dfde-cfe2-4adb-a18f-43cbfc318002", "tenant_id": "1cd47a7443f8496f8f7637027aae4f1f", "created_at": "2018-01-25T00:29:53Z", "dns_nameservers": [], "updated_at": "2018-01-25T00:29:53Z", "gateway_ip": "10.100.0.1", "ipv6_ra_mode": null, "allocation_pools": [{"start": "10.100.0.2", "end": "10.100.0.14"}], "host_routes": [], "revision_number": 2, "ip_version": 4, "ipv6_address_mode": null, "cidr": "10.100.0.0/28", "project_id": "1cd47a7443f8496f8f7637027aae4f1f", "id": "7c00a13a-b3c8-4870-8836-6c6bb6f5db94", "subnetpool_id": null, "name": "tempest-TestServerMultinode-1321786727-subnet"}, {"service_types": [], "description": "", "enable_dhcp": true, "tags": [], "network_id": "b2088f2d-70b9-4c4e-ab91-76005e2f1ce2", "tenant_id": "6a99ed6b0f50496fa1de7553a636a39d", "created_at": "2018-01-25T00:30:40Z", "dns_nameservers": [], "updated_at": "2018-01-25T00:30:40Z", "gateway_ip": "10.100.0.1", "ipv6_ra_mode": null, "allocation_pools": [{"start": "10.100.0.2", "end": "10.100.0.14"}], "host_routes": [], "revision_number": 2, "ip_version": 4, "ipv6_address_mode": null, "cidr": "10.100.0.0/28", "project_id": "6a99ed6b0f50496fa1de7553a636a39d", "id": "8f05606b-120e-4ae5-af6a-e7f1f05e6d4a", "subnetpool_id": null, "name": "tempest-TestVolumeBootPatternV2-1130054844-subnet"}, {"service_types": [], "description": "", "enable_dhcp": true, "tags": [], "network_id": "4822e0fd-bf26-4755-aab5-470ffe022d1a", "tenant_id": "aab09451e4964303a290d3e373586a28", "created_at": "2018-01-25T00:15:42Z", "dns_nameservers": ["8.8.8.8"], "updated_at": "2018-01-25T00:15:42Z", "gateway_ip": "192.168.150.1", "ipv6_ra_mode": null, "allocation_pools": [{"start": "192.168.150.2", "end": "192.168.150.254"}], "host_routes": [], "revision_number": 2, "ip_version": 4, "ipv6_address_mode": null, "cidr": "192.168.150.0/24", "project_id": "aab09451e4964303a290d3e373586a28", "id": "f1464b56-9696-4543-97b6-6865f1a105d4", "subnetpool_id": null, "name": "tempest-subnet-92023b3f-e70c-496f-8249-2e910175dc8c"}]}
To JSON using : pretty_print=False
${OSResult} = {u'subnets': [{u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'aab09451e4964303a290d3e373586a28', ...
Logs the given message with the given level.
${OSResult}
{u'subnets': [{u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'created_at': u'2018-01-25T00:06:47Z', u'dns_nameservers': [], u'updated_at': u'2018-01-25T00:06:47Z', u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'192.16.1.101', u'end': u'192.16.1.199'}], u'gateway_ip': u'192.16.1.1', u'revision_number': 2, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'192.16.1.0/24', u'project_id': u'aab09451e4964303a290d3e373586a28', u'id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7', u'subnetpool_id': None, u'name': u'ext-subnet'}, {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'd5f32d2d-da1e-4cd7-986a-9e2c9ee88043', u'tenant_id': u'73cd786da110496bb187ab49f3e98a36', u'created_at': u'2018-01-25T00:30:00Z', u'dns_nameservers': [], u'updated_at': u'2018-01-25T00:30:00Z', u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'10.100.0.2', u'end': u'10.100.0.14'}], u'gateway_ip': u'10.100.0.1', u'revision_number': 2, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'10.100.0.0/28', u'project_id': u'73cd786da110496bb187ab49f3e98a36', u'id': u'681d622c-7c92-4000-920e-f08d9ee7d3f8', u'subnetpool_id': None, u'name': u'tempest-TestServerMultinode-1995699591-subnet'}, {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'8785c2b5-3260-4a17-8b76-b2a3150e2afa', u'tenant_id': u'd43f99f22ccf4b8c934316e97db16d30', u'created_at': u'2018-01-25T00:30:31Z', u'dns_nameservers': [], u'updated_at': u'2018-01-25T00:30:31Z', u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'10.100.0.2', u'end': u'10.100.0.14'}], u'gateway_ip': u'10.100.0.1', u'revision_number': 2, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'10.100.0.0/28', u'project_id': u'd43f99f22ccf4b8c934316e97db16d30', u'id': u'75131007-64e7-4716-8d53-d852b54b1c05', u'subnetpool_id': None, u'name': u'tempest-TestVolumeBootPattern-1173746198-subnet'}, {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'6541dfde-cfe2-4adb-a18f-43cbfc318002', u'tenant_id': u'1cd47a7443f8496f8f7637027aae4f1f', u'created_at': u'2018-01-25T00:29:53Z', u'dns_nameservers': [], u'updated_at': u'2018-01-25T00:29:53Z', u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'10.100.0.2', u'end': u'10.100.0.14'}], u'gateway_ip': u'10.100.0.1', u'revision_number': 2, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'10.100.0.0/28', u'project_id': u'1cd47a7443f8496f8f7637027aae4f1f', u'id': u'7c00a13a-b3c8-4870-8836-6c6bb6f5db94', u'subnetpool_id': None, u'name': u'tempest-TestServerMultinode-1321786727-subnet'}, {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'b2088f2d-70b9-4c4e-ab91-76005e2f1ce2', u'tenant_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'created_at': u'2018-01-25T00:30:40Z', u'dns_nameservers': [], u'updated_at': u'2018-01-25T00:30:40Z', u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'10.100.0.2', u'end': u'10.100.0.14'}], u'gateway_ip': u'10.100.0.1', u'revision_number': 2, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'10.100.0.0/28', u'project_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'id': u'8f05606b-120e-4ae5-af6a-e7f1f05e6d4a', u'subnetpool_id': None, u'name': u'tempest-TestVolumeBootPatternV2-1130054844-subnet'}, {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'4822e0fd-bf26-4755-aab5-470ffe022d1a', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'created_at': u'2018-01-25T00:15:42Z', u'dns_nameservers': [u'8.8.8.8'], u'updated_at': u'2018-01-25T00:15:42Z', u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'192.168.150.2', u'end': u'192.168.150.254'}], u'gateway_ip': u'192.168.150.1', u'revision_number': 2, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'192.168.150.0/24', u'project_id': u'aab09451e4964303a290d3e373586a28', u'id': u'f1464b56-9696-4543-97b6-6865f1a105d4', u'subnetpool_id': None, u'name': u'tempest-subnet-92023b3f-e70c-496f-8249-2e910175dc8c'}]}
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.16.1.222:8080, headers={u'Content-Type': u'application/json'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7f5594ab2490>, 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" : "681d622c-7c92-4000-920e-f08d9ee7d3f8",
"tenant_id" : "73cd786da110496bb187ab49f3e98a36",
"project_id" : "73cd786da110496bb187ab49f3e98a36",
"revision_number" : 2,
"name" : "tempest-TestServerMultinode-1995699591-subnet",
"network_id" : "d5f32d2d-da1e-4cd7-986a-9e2c9ee88043",
"ip_version" : 4,
"cidr" : "10.100.0.0/28",
"gateway_ip" : "10.100.0.1",
"dns_nameservers" : [ ],
"allocation_pools" : [ {
"start" : "10.100.0.2",
"end" : "10.100.0.14"
} ],
"host_routes" : [ ],
"enable_dhcp" : true,
"ipv6_address_mode" : null,
"ipv6_ra_mode" : null
}, {
"id" : "7c00a13a-b3c8-4870-8836-6c6bb6f5db94",
"tenant_id" : "1cd47a7443f8496f8f7637027aae4f1f",
"project_id" : "1cd47a7443f8496f8f7637027aae4f1f",
"revision_number" : 2,
"name" : "tempest-TestServerMultinode-1321786727-subnet",
"network_id" : "6541dfde-cfe2-4adb-a18f-43cbfc318002",
"ip_version" : 4,
"cidr" : "10.100.0.0/28",
"gateway_ip" : "10.100.0.1",
"dns_nameservers" : [ ],
"allocation_pools" : [ {
"start" : "10.100.0.2",
"end" : "10.100.0.14"
} ],
"host_routes" : [ ],
"enable_dhcp" : true,
"ipv6_address_mode" : null,
"ipv6_ra_mode" : null
}, {
"id" : "75131007-64e7-4716-8d53-d852b54b1c05",
"tenant_id" : "d43f99f22ccf4b8c934316e97db16d30",
"project_id" : "d43f99f22ccf4b8c934316e97db16d30",
"revision_number" : 2,
"name" : "tempest-TestVolumeBootPattern-1173746198-subnet",
"network_id" : "8785c2b5-3260-4a17-8b76-b2a3150e2afa",
"ip_version" : 4,
"cidr" : "10.100.0.0/28",
"gateway_ip" : "10.100.0.1",
"dns_nameservers" : [ ],
"allocation_pools" : [ {
"start" : "10.100.0.2",
"end" : "10.100.0.14"
} ],
"host_routes" : [ ],
"enable_dhcp" : true,
"ipv6_address_mode" : null,
"ipv6_ra_mode" : null
}, {
"id" : "f1464b56-9696-4543-97b6-6865f1a105d4",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"revision_number" : 2,
"name" : "tempest-subnet-92023b3f-e70c-496f-8249-2e910175dc8c",
"network_id" : "4822e0fd-bf26-4755-aab5-470ffe022d1a",
"ip_version" : 4,
"cidr" : "192.168.150.0/24",
"gateway_ip" : "192.168.150.1",
"dns_nameservers" : [ "8.8.8.8" ],
"allocation_pools" : [ {
"start" : "192.168.150.2",
"end" : "192.168.150.254"
} ],
"host_routes" : [ ],
"enable_dhcp" : true,
"ipv6_address_mode" : null,
"ipv6_ra_mode" : null
}, {
"id" : "3be6d87b-f359-4219-9097-d97bd1bc6ca7",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"revision_number" : 2,
"name" : "ext-subnet",
"network_id" : "bfa60317-afac-4510-9801-f97cb08057b6",
"ip_version" : 4,
"cidr" : "192.16.1.0/24",
"gateway_ip" : "192.16.1.1",
"dns_nameservers" : [ ],
"allocation_pools" : [ {
"start" : "192.16.1.101",
"end" : "192.16.1.199"
} ],
"host_routes" : [ ],
"enable_dhcp" : true,
"ipv6_address_mode" : null,
"ipv6_ra_mode" : null
}, {
"id" : "8f05606b-120e-4ae5-af6a-e7f1f05e6d4a",
"tenant_id" : "6a99ed6b0f50496fa1de7553a636a39d",
"project_id" : "6a99ed6b0f50496fa1de7553a636a39d",
"revision_number" : 2,
"name" : "tempest-TestVolumeBootPatternV2-1130054844-subnet",
"network_id" : "b2088f2d-70b9-4c4e-ab91-76005e2f1ce2",
"ip_version" : 4,
"cidr" : "10.100.0.0/28",
"gateway_ip" : "10.100.0.1",
"dns_nameservers" : [ ],
"allocation_pools" : [ {
"start" : "10.100.0.2",
"end" : "10.100.0.14"
} ],
"host_routes" : [ ],
"enable_dhcp" : true,
"ipv6_address_mode" : null,
"ipv6_ra_mode" : null
} ]
}
To JSON using : pretty_print=False
${ODLResult} = {u'subnets': [{u'name': u'tempest-TestServerMultinode-1995699591-subnet', u'enable_dhcp': True, u'network_id': u'd5f32d2d-da1e-4cd7-986a-9e2c9ee88043', u'tenant_id': u'73cd786da110496bb187ab49f3e98a36...
Logs the given message with the given level.
${ODLResult}
{u'subnets': [{u'name': u'tempest-TestServerMultinode-1995699591-subnet', u'enable_dhcp': True, u'network_id': u'd5f32d2d-da1e-4cd7-986a-9e2c9ee88043', u'tenant_id': u'73cd786da110496bb187ab49f3e98a36', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'10.100.0.2', u'end': u'10.100.0.14'}], u'gateway_ip': u'10.100.0.1', u'revision_number': 2, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'10.100.0.0/28', u'project_id': u'73cd786da110496bb187ab49f3e98a36', u'id': u'681d622c-7c92-4000-920e-f08d9ee7d3f8'}, {u'name': u'tempest-TestServerMultinode-1321786727-subnet', u'enable_dhcp': True, u'network_id': u'6541dfde-cfe2-4adb-a18f-43cbfc318002', u'tenant_id': u'1cd47a7443f8496f8f7637027aae4f1f', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'10.100.0.2', u'end': u'10.100.0.14'}], u'gateway_ip': u'10.100.0.1', u'revision_number': 2, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'10.100.0.0/28', u'project_id': u'1cd47a7443f8496f8f7637027aae4f1f', u'id': u'7c00a13a-b3c8-4870-8836-6c6bb6f5db94'}, {u'name': u'tempest-TestVolumeBootPattern-1173746198-subnet', u'enable_dhcp': True, u'network_id': u'8785c2b5-3260-4a17-8b76-b2a3150e2afa', u'tenant_id': u'd43f99f22ccf4b8c934316e97db16d30', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'10.100.0.2', u'end': u'10.100.0.14'}], u'gateway_ip': u'10.100.0.1', u'revision_number': 2, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'10.100.0.0/28', u'project_id': u'd43f99f22ccf4b8c934316e97db16d30', u'id': u'75131007-64e7-4716-8d53-d852b54b1c05'}, {u'name': u'tempest-subnet-92023b3f-e70c-496f-8249-2e910175dc8c', u'enable_dhcp': True, u'network_id': u'4822e0fd-bf26-4755-aab5-470ffe022d1a', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'dns_nameservers': [u'8.8.8.8'], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'192.168.150.2', u'end': u'192.168.150.254'}], u'gateway_ip': u'192.168.150.1', u'revision_number': 2, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'192.168.150.0/24', u'project_id': u'aab09451e4964303a290d3e373586a28', u'id': u'f1464b56-9696-4543-97b6-6865f1a105d4'}, {u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'192.16.1.101', u'end': u'192.16.1.199'}], u'gateway_ip': u'192.16.1.1', u'revision_number': 2, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'192.16.1.0/24', u'project_id': u'aab09451e4964303a290d3e373586a28', u'id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7'}, {u'name': u'tempest-TestVolumeBootPatternV2-1130054844-subnet', u'enable_dhcp': True, u'network_id': u'b2088f2d-70b9-4c4e-ab91-76005e2f1ce2', u'tenant_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'10.100.0.2', u'end': u'10.100.0.14'}], u'gateway_ip': u'10.100.0.1', u'revision_number': 2, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'10.100.0.0/28', u'project_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'id': u'8f05606b-120e-4ae5-af6a-e7f1f05e6d4a'}]}
Checking OpenDaylight Neutron API for known subnets
Subnets Neutron OpenDaylight
Logs the given message with the given level.
${data}
{"subnet":{"network_id":"6bb84780-2848-4bf9-bcd1-49f549a408ca","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}
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
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": "6bb84780-2848-4bf9-bcd1-49f549a408ca", "tenant_id": "aab09451e4964303a290d3e373586a28", "created_at": "2018-01-25T01:11:41Z", "dns_nameservers": [], "updated_at": "2018-01-25T01:11:41Z", "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": 2, "ip_version": 4, "ipv6_address_mode": null, "cidr": "172.16.64.0/24", "project_id": "aab09451e4964303a290d3e373586a28", "id": "87db5eb2-45fd-4d2f-83bf-9e8ce439354e", "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'6bb84780-2848-4bf9-bcd1-49f549a408ca', u'tenant_id': u'aab09451e4964303a290d3e373586a28', 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'6bb84780-2848-4bf9-bcd1-49f549a408ca', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'created_at':...
Returns a value from the given ``dictionary`` based on the given ``key``.
${result}
id
${SUBNETID}
${SUBNETID} = 87db5eb2-45fd-4d2f-83bf-9e8ce439354e
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'6bb84780-2848-4bf9-bcd1-49f549a408ca', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'created_at': u'2018-01-25T01:11:41Z', u'dns_nameservers': [], u'updated_at': u'2018-01-25T01:11:41Z', 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': 2, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'172.16.64.0/24', u'project_id': u'aab09451e4964303a290d3e373586a28', u'id': u'87db5eb2-45fd-4d2f-83bf-9e8ce439354e', u'subnetpool_id': None, u'name': u''}
Logs the given message with the given level.
${SUBNETID}
87db5eb2-45fd-4d2f-83bf-9e8ce439354e
Makes a variable available globally in all tests and suites.
${SUBNETID}
${SUBNETID} = 87db5eb2-45fd-4d2f-83bf-9e8ce439354e
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/87db5eb2-45fd-4d2f-83bf-9e8ce439354e, 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=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABaaS7Kqh_vNflHtQtS_gA2o67k_6aGDcHH9H5uilH5K3nFUuuCgd6WElYszToNjOdrgdP01oumeellwt8_bj99NKCtov2fW0PxMQaAEE-Z5YIZyf9k5LDnK2fm8Lg4GKFVMOwj0VGaCNilX_f31MKkDjZqDmvpHzH8VDWNc3ifeP-WGak', 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': 'gAAAAABaaS7Kqh_vNflHtQtS_gA2o67k_6aGDcHH9H5uilH5K3nFUuuCgd6WElYszToNjOdrgdP01oumeellwt8_bj99NKCtov2fW0PxMQaAEE-Z5YIZyf9k5LDnK2fm8Lg4GKFVMOwj0VGaCNilX_f31MKkDjZqDmvpHzH8VDWNc3ifeP-WGak', u'Content-Type': u'application/json'}
Send a GET request on the session object found using the
OSSession
${OSREST}
${resp}
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
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": [{"status": "DOWN", "binding:host_id": "host2-neutron-agents-container-e709dd0e", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:30:42Z", "device_owner": "network:dhcp", "revision_number": 5, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "8f05606b-120e-4ae5-af6a-e7f1f05e6d4a", "ip_address": "10.100.0.3"}], "id": "0109eeb6-7ceb-4f38-92b3-cb17cf9db0b7", "security_groups": [], "device_id": "dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-b2088f2d-70b9-4c4e-ab91-76005e2f1ce2", "name": "", "admin_state_up": true, "network_id": "b2088f2d-70b9-4c4e-ab91-76005e2f1ce2", "tenant_id": "6a99ed6b0f50496fa1de7553a636a39d", "binding:vif_details": {}, "binding:vnic_type": "normal", "binding:vif_type": "unbound", "mac_address": "fa:16:3e:1b:79:22", "project_id": "6a99ed6b0f50496fa1de7553a636a39d", "created_at": "2018-01-25T00:30:42Z"}, {"status": "DOWN", "binding:host_id": "host3-neutron-agents-container-68ad1c6b", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:30:32Z", "device_owner": "network:dhcp", "revision_number": 5, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "75131007-64e7-4716-8d53-d852b54b1c05", "ip_address": "10.100.0.2"}], "id": "1120d525-a9b1-4469-9cf9-c90afa6b85c5", "security_groups": [], "device_id": "dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-8785c2b5-3260-4a17-8b76-b2a3150e2afa", "name": "", "admin_state_up": true, "network_id": "8785c2b5-3260-4a17-8b76-b2a3150e2afa", "tenant_id": "d43f99f22ccf4b8c934316e97db16d30", "binding:vif_details": {}, "binding:vnic_type": "normal", "binding:vif_type": "unbound", "mac_address": "fa:16:3e:fc:d3:aa", "project_id": "d43f99f22ccf4b8c934316e97db16d30", "created_at": "2018-01-25T00:30:31Z"}, {"status": "ACTIVE", "binding:host_id": "host2-neutron-agents-container-e709dd0e", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:30:02Z", "device_owner": "network:dhcp", "revision_number": 6, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "681d622c-7c92-4000-920e-f08d9ee7d3f8", "ip_address": "10.100.0.2"}], "id": "1966092c-68d8-4493-b830-51ccc072cc96", "security_groups": [], "device_id": "dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-d5f32d2d-da1e-4cd7-986a-9e2c9ee88043", "name": "", "admin_state_up": true, "network_id": "d5f32d2d-da1e-4cd7-986a-9e2c9ee88043", "tenant_id": "73cd786da110496bb187ab49f3e98a36", "binding:vif_details": {"support_vhost_user": false, "has_datapath_type_netdev": false, "uuid": "3ae585d7-e895-45d3-b386-3be2ad318607", "host_addresses": ["host2-neutron-agents-container-e709dd0e"]}, "binding:vnic_type": "normal", "binding:vif_type": "ovs", "mac_address": "fa:16:3e:91:f1:61", "project_id": "73cd786da110496bb187ab49f3e98a36", "created_at": "2018-01-25T00:30:00Z"}, {"status": "DOWN", "binding:host_id": "host2-neutron-agents-container-e709dd0e", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T01:11:44Z", "device_owner": "network:dhcp", "revision_number": 5, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "87db5eb2-45fd-4d2f-83bf-9e8ce439354e", "ip_address": "172.16.64.21"}], "id": "24306936-b807-4890-9240-e275bcd9d721", "security_groups": [], "device_id": "dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-6bb84780-2848-4bf9-bcd1-49f549a408ca", "name": "", "admin_state_up": true, "network_id": "6bb84780-2848-4bf9-bcd1-49f549a408ca", "tenant_id": "aab09451e4964303a290d3e373586a28", "binding:vif_details": {}, "binding:vnic_type": "normal", "binding:vif_type": "unbound", "mac_address": "fa:16:3e:5e:3e:98", "project_id": "aab09451e4964303a290d3e373586a28", "created_at": "2018-01-25T01:11:43Z"}, {"status": "ACTIVE", "binding:host_id": "host1-neutron-agents-container-0fb0cf37", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:29:56Z", "device_owner": "network:dhcp", "revision_number": 6, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "7c00a13a-b3c8-4870-8836-6c6bb6f5db94", "ip_address": "10.100.0.3"}], "id": "53971674-cd0c-480f-9d7c-258eb5f22f29", "security_groups": [], "device_id": "dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-6541dfde-cfe2-4adb-a18f-43cbfc318002", "name": "", "admin_state_up": true, "network_id": "6541dfde-cfe2-4adb-a18f-43cbfc318002", "tenant_id": "1cd47a7443f8496f8f7637027aae4f1f", "binding:vif_details": {"support_vhost_user": false, "has_datapath_type_netdev": false, "uuid": "bff5a2c6-752c-4de1-bef4-a9fa4aa8d6c5", "host_addresses": ["host1-neutron-agents-container-0fb0cf37"]}, "binding:vnic_type": "normal", "binding:vif_type": "ovs", "mac_address": "fa:16:3e:f6:0a:25", "project_id": "1cd47a7443f8496f8f7637027aae4f1f", "created_at": "2018-01-25T00:29:55Z"}, {"status": "DOWN", "binding:host_id": "host1-neutron-agents-container-0fb0cf37", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:30:43Z", "device_owner": "network:dhcp", "revision_number": 5, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "8f05606b-120e-4ae5-af6a-e7f1f05e6d4a", "ip_address": "10.100.0.4"}], "id": "5a53661a-a294-4d55-a5ac-30d033575985", "security_groups": [], "device_id": "dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-b2088f2d-70b9-4c4e-ab91-76005e2f1ce2", "name": "", "admin_state_up": true, "network_id": "b2088f2d-70b9-4c4e-ab91-76005e2f1ce2", "tenant_id": "6a99ed6b0f50496fa1de7553a636a39d", "binding:vif_details": {}, "binding:vnic_type": "normal", "binding:vif_type": "unbound", "mac_address": "fa:16:3e:56:6e:3b", "project_id": "6a99ed6b0f50496fa1de7553a636a39d", "created_at": "2018-01-25T00:30:43Z"}, {"status": "DOWN", "binding:host_id": "host2-neutron-agents-container-e709dd0e", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:30:33Z", "device_owner": "network:dhcp", "revision_number": 5, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "75131007-64e7-4716-8d53-d852b54b1c05", "ip_address": "10.100.0.3"}], "id": "6ecfa273-34ba-4c44-91f2-6366c4147f55", "security_groups": [], "device_id": "dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-8785c2b5-3260-4a17-8b76-b2a3150e2afa", "name": "", "admin_state_up": true, "network_id": "8785c2b5-3260-4a17-8b76-b2a3150e2afa", "tenant_id": "d43f99f22ccf4b8c934316e97db16d30", "binding:vif_details": {}, "binding:vnic_type": "normal", "binding:vif_type": "unbound", "mac_address": "fa:16:3e:4f:8e:88", "project_id": "d43f99f22ccf4b8c934316e97db16d30", "created_at": "2018-01-25T00:30:32Z"}, {"status": "ACTIVE", "binding:host_id": "host3-neutron-agents-container-68ad1c6b", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:29:55Z", "device_owner": "network:dhcp", "revision_number": 6, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "7c00a13a-b3c8-4870-8836-6c6bb6f5db94", "ip_address": "10.100.0.2"}], "id": "71563e93-3a40-4d52-b5aa-d4c7f158f860", "security_groups": [], "device_id": "dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-6541dfde-cfe2-4adb-a18f-43cbfc318002", "name": "", "admin_state_up": true, "network_id": "6541dfde-cfe2-4adb-a18f-43cbfc318002", "tenant_id": "1cd47a7443f8496f8f7637027aae4f1f", "binding:vif_details": {"support_vhost_user": false, "has_datapath_type_netdev": false, "uuid": "4d9f54fd-58cf-477c-bff0-f17235ca20ab", "host_addresses": ["host3-neutron-agents-container-68ad1c6b"]}, "binding:vnic_type": "normal", "binding:vif_type": "ovs", "mac_address": "fa:16:3e:76:cc:5f", "project_id": "1cd47a7443f8496f8f7637027aae4f1f", "created_at": "2018-01-25T00:29:54Z"}, {"status": "DOWN", "binding:host_id": "", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:30:42Z", "device_owner": "network:router_gateway", "revision_number": 4, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "3be6d87b-f359-4219-9097-d97bd1bc6ca7", "ip_address": "192.16.1.110"}], "id": "862ab2ca-b72e-45ff-98e0-f153cd1f03bf", "security_groups": [], "device_id": "cc858c05-6073-4f2d-a902-d05367be370b", "name": "", "admin_state_up": true, "network_id": "bfa60317-afac-4510-9801-f97cb08057b6", "tenant_id": "", "binding:vif_details": {}, "binding:vnic_type": "normal", "binding:vif_type": "unbound", "mac_address": "fa:16:3e:5a:c0:35", "project_id": "", "created_at": "2018-01-25T00:30:42Z"}, {"status": "ACTIVE", "binding:host_id": "host2-neutron-agents-container-e709dd0e", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:29:57Z", "device_owner": "network:dhcp", "revision_number": 6, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "7c00a13a-b3c8-4870-8836-6c6bb6f5db94", "ip_address": "10.100.0.4"}], "id": "8644ec21-0e53-4ed3-acef-49a2e05848ee", "security_groups": [], "device_id": "dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-6541dfde-cfe2-4adb-a18f-43cbfc318002", "name": "", "admin_state_up": true, "network_id": "6541dfde-cfe2-4adb-a18f-43cbfc318002", "tenant_id": "1cd47a7443f8496f8f7637027aae4f1f", "binding:vif_details": {"support_vhost_user": false, "has_datapath_type_netdev": false, "uuid": "3ae585d7-e895-45d3-b386-3be2ad318607", "host_addresses": ["host2-neutron-agents-container-e709dd0e"]}, "binding:vnic_type": "normal", "binding:vif_type": "ovs", "mac_address": "fa:16:3e:21:4a:64", "project_id": "1cd47a7443f8496f8f7637027aae4f1f", "created_at": "2018-01-25T00:29:56Z"}, {"status": "DOWN", "binding:host_id": "host1-neutron-agents-container-0fb0cf37", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:06:49Z", "device_owner": "network:dhcp", "revision_number": 5, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "3be6d87b-f359-4219-9097-d97bd1bc6ca7", "ip_address": "192.16.1.101"}], "id": "8927de36-1b89-4d64-a3fd-555e1bfba2b5", "security_groups": [], "device_id": "dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-bfa60317-afac-4510-9801-f97cb08057b6", "name": "", "admin_state_up": true, "network_id": "bfa60317-afac-4510-9801-f97cb08057b6", "tenant_id": "aab09451e4964303a290d3e373586a28", "binding:vif_details": {}, "binding:vnic_type": "normal", "binding:vif_type": "binding_failed", "mac_address": "fa:16:3e:27:cb:da", "project_id": "aab09451e4964303a290d3e373586a28", "created_at": "2018-01-25T00:06:48Z"}, {"status": "DOWN", "binding:host_id": "host3-neutron-agents-container-68ad1c6b", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:06:49Z", "device_owner": "network:dhcp", "revision_number": 5, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "3be6d87b-f359-4219-9097-d97bd1bc6ca7", "ip_address": "192.16.1.102"}], "id": "a4eb0947-f2b4-4219-bb50-a8ccdce66130", "security_groups": [], "device_id": "dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-bfa60317-afac-4510-9801-f97cb08057b6", "name": "", "admin_state_up": true, "network_id": "bfa60317-afac-4510-9801-f97cb08057b6", "tenant_id": "aab09451e4964303a290d3e373586a28", "binding:vif_details": {}, "binding:vnic_type": "normal", "binding:vif_type": "binding_failed", "mac_address": "fa:16:3e:ee:fa:4d", "project_id": "aab09451e4964303a290d3e373586a28", "created_at": "2018-01-25T00:06:49Z"}, {"status": "DOWN", "binding:host_id": "", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:30:32Z", "device_owner": "network:router_gateway", "revision_number": 4, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "3be6d87b-f359-4219-9097-d97bd1bc6ca7", "ip_address": "192.16.1.114"}], "id": "a7b425a9-efc1-4255-ae2f-e3fe7e07b3c5", "security_groups": [], "device_id": "2f212170-6eed-4ddd-8575-e33b7d8146fa", "name": "", "admin_state_up": true, "network_id": "bfa60317-afac-4510-9801-f97cb08057b6", "tenant_id": "", "binding:vif_details": {}, "binding:vnic_type": "normal", "binding:vif_type": "unbound", "mac_address": "fa:16:3e:bc:f0:7c", "project_id": "", "created_at": "2018-01-25T00:30:32Z"}, {"status": "ACTIVE", "binding:host_id": "host3-neutron-agents-container-68ad1c6b", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T01:11:43Z", "device_owner": "network:dhcp", "revision_number": 6, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "87db5eb2-45fd-4d2f-83bf-9e8ce439354e", "ip_address": "172.16.64.20"}], "id": "aa0d23d5-ac5c-4fda-acd1-839cf28c0e8b", "security_groups": [], "device_id": "dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-6bb84780-2848-4bf9-bcd1-49f549a408ca", "name": "", "admin_state_up": true, "network_id": "6bb84780-2848-4bf9-bcd1-49f549a408ca", "tenant_id": "aab09451e4964303a290d3e373586a28", "binding:vif_details": {"support_vhost_user": false, "has_datapath_type_netdev": false, "uuid": "4d9f54fd-58cf-477c-bff0-f17235ca20ab", "host_addresses": ["host3-neutron-agents-container-68ad1c6b"]}, "binding:vnic_type": "normal", "binding:vif_type": "ovs", "mac_address": "fa:16:3e:70:72:aa", "project_id": "aab09451e4964303a290d3e373586a28", "created_at": "2018-01-25T01:11:42Z"}, {"status": "DOWN", "binding:host_id": "host2-neutron-agents-container-e709dd0e", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:06:50Z", "device_owner": "network:dhcp", "revision_number": 5, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "3be6d87b-f359-4219-9097-d97bd1bc6ca7", "ip_address": "192.16.1.103"}], "id": "b364d365-af32-4942-b5c0-0289fdaf3262", "security_groups": [], "device_id": "dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-bfa60317-afac-4510-9801-f97cb08057b6", "name": "", "admin_state_up": true, "network_id": "bfa60317-afac-4510-9801-f97cb08057b6", "tenant_id": "aab09451e4964303a290d3e373586a28", "binding:vif_details": {}, "binding:vnic_type": "normal", "binding:vif_type": "binding_failed", "mac_address": "fa:16:3e:e1:25:d5", "project_id": "aab09451e4964303a290d3e373586a28", "created_at": "2018-01-25T00:06:50Z"}, {"status": "DOWN", "binding:host_id": "", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:29:55Z", "device_owner": "network:router_gateway", "revision_number": 4, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "3be6d87b-f359-4219-9097-d97bd1bc6ca7", "ip_address": "192.16.1.113"}], "id": "b4e45a6d-836c-4c3f-ad17-177f96a58b63", "security_groups": [], "device_id": "8e935f28-62c8-47e7-8bb5-e9de96fc1eb3", "name": "", "admin_state_up": true, "network_id": "bfa60317-afac-4510-9801-f97cb08057b6", "tenant_id": "", "binding:vif_details": {}, "binding:vnic_type": "normal", "binding:vif_type": "unbound", "mac_address": "fa:16:3e:be:60:a6", "project_id": "", "created_at": "2018-01-25T00:29:55Z"}, {"status": "ACTIVE", "binding:host_id": "host3-neutron-agents-container-68ad1c6b", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:15:45Z", "device_owner": "network:dhcp", "revision_number": 6, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "f1464b56-9696-4543-97b6-6865f1a105d4", "ip_address": "192.168.150.4"}], "id": "bc46d0a9-8e7f-4505-ada3-f4621795850c", "security_groups": [], "device_id": "dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-4822e0fd-bf26-4755-aab5-470ffe022d1a", "name": "", "admin_state_up": true, "network_id": "4822e0fd-bf26-4755-aab5-470ffe022d1a", "tenant_id": "aab09451e4964303a290d3e373586a28", "binding:vif_details": {"support_vhost_user": false, "has_datapath_type_netdev": false, "uuid": "4d9f54fd-58cf-477c-bff0-f17235ca20ab", "host_addresses": ["host3-neutron-agents-container-68ad1c6b"]}, "binding:vnic_type": "normal", "binding:vif_type": "ovs", "mac_address": "fa:16:3e:4d:8c:bd", "project_id": "aab09451e4964303a290d3e373586a28", "created_at": "2018-01-25T00:15:44Z"}, {"status": "DOWN", "binding:host_id": "", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:30:01Z", "device_owner": "network:router_gateway", "revision_number": 4, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "3be6d87b-f359-4219-9097-d97bd1bc6ca7", "ip_address": "192.16.1.108"}], "id": "c3534fc0-912c-44bc-8462-2d2faea61497", "security_groups": [], "device_id": "3f963305-14c5-4ad1-bc4a-3eaf6a3b720a", "name": "", "admin_state_up": true, "network_id": "bfa60317-afac-4510-9801-f97cb08057b6", "tenant_id": "", "binding:vif_details": {}, "binding:vnic_type": "normal", "binding:vif_type": "unbound", "mac_address": "fa:16:3e:b4:9f:97", "project_id": "", "created_at": "2018-01-25T00:30:01Z"}, {"status": "ACTIVE", "binding:host_id": "host1-neutron-agents-container-0fb0cf37", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:30:03Z", "device_owner": "network:dhcp", "revision_number": 6, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "681d622c-7c92-4000-920e-f08d9ee7d3f8", "ip_address": "10.100.0.4"}], "id": "e6e96036-c8e4-4601-86aa-78056abbc110", "security_groups": [], "device_id": "dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-d5f32d2d-da1e-4cd7-986a-9e2c9ee88043", "name": "", "admin_state_up": true, "network_id": "d5f32d2d-da1e-4cd7-986a-9e2c9ee88043", "tenant_id": "73cd786da110496bb187ab49f3e98a36", "binding:vif_details": {"support_vhost_user": false, "has_datapath_type_netdev": false, "uuid": "bff5a2c6-752c-4de1-bef4-a9fa4aa8d6c5", "host_addresses": ["host1-neutron-agents-container-0fb0cf37"]}, "binding:vnic_type": "normal", "binding:vif_type": "ovs", "mac_address": "fa:16:3e:0a:e4:3a", "project_id": "73cd786da110496bb187ab49f3e98a36", "created_at": "2018-01-25T00:30:02Z"}, {"status": "ACTIVE", "binding:host_id": "host1-neutron-agents-container-0fb0cf37", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:15:44Z", "device_owner": "network:dhcp", "revision_number": 6, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "f1464b56-9696-4543-97b6-6865f1a105d4", "ip_address": "192.168.150.3"}], "id": "e75a2b6e-13d6-4336-804a-bacaa503bcd0", "security_groups": [], "device_id": "dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-4822e0fd-bf26-4755-aab5-470ffe022d1a", "name": "", "admin_state_up": true, "network_id": "4822e0fd-bf26-4755-aab5-470ffe022d1a", "tenant_id": "aab09451e4964303a290d3e373586a28", "binding:vif_details": {"support_vhost_user": false, "has_datapath_type_netdev": false, "uuid": "bff5a2c6-752c-4de1-bef4-a9fa4aa8d6c5", "host_addresses": ["host1-neutron-agents-container-0fb0cf37"]}, "binding:vnic_type": "normal", "binding:vif_type": "ovs", "mac_address": "fa:16:3e:59:e3:57", "project_id": "aab09451e4964303a290d3e373586a28", "created_at": "2018-01-25T00:15:43Z"}, {"status": "DOWN", "binding:host_id": "host3-neutron-agents-container-68ad1c6b", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:30:42Z", "device_owner": "network:dhcp", "revision_number": 5, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "8f05606b-120e-4ae5-af6a-e7f1f05e6d4a", "ip_address": "10.100.0.2"}], "id": "e99a7da7-4b46-4f7a-b4d2-99603d313d9f", "security_groups": [], "device_id": "dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-b2088f2d-70b9-4c4e-ab91-76005e2f1ce2", "name": "", "admin_state_up": true, "network_id": "b2088f2d-70b9-4c4e-ab91-76005e2f1ce2", "tenant_id": "6a99ed6b0f50496fa1de7553a636a39d", "binding:vif_details": {}, "binding:vnic_type": "normal", "binding:vif_type": "unbound", "mac_address": "fa:16:3e:73:0b:47", "project_id": "6a99ed6b0f50496fa1de7553a636a39d", "created_at": "2018-01-25T00:30:41Z"}, {"status": "DOWN", "binding:host_id": "", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:29:57Z", "device_owner": "network:router_interface", "revision_number": 5, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "7c00a13a-b3c8-4870-8836-6c6bb6f5db94", "ip_address": "10.100.0.1"}], "id": "f30778fd-e4bb-4b91-82d9-c8d74b644337", "security_groups": [], "device_id": "8e935f28-62c8-47e7-8bb5-e9de96fc1eb3", "name": "", "admin_state_up": true, "network_id": "6541dfde-cfe2-4adb-a18f-43cbfc318002", "tenant_id": "1cd47a7443f8496f8f7637027aae4f1f", "binding:vif_details": {}, "binding:vnic_type": "normal", "binding:vif_type": "unbound", "mac_address": "fa:16:3e:17:58:80", "project_id": "1cd47a7443f8496f8f7637027aae4f1f", "created_at": "2018-01-25T00:29:57Z"}, {"status": "ACTIVE", "binding:host_id": "host2-neutron-agents-container-e709dd0e", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:30:57Z", "device_owner": "network:dhcp", "revision_number": 9, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "f1464b56-9696-4543-97b6-6865f1a105d4", "ip_address": "192.168.150.2"}], "id": "f9f6fda1-23e0-418a-9bb2-a291e78a4209", "security_groups": [], "device_id": "dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-4822e0fd-bf26-4755-aab5-470ffe022d1a", "name": "", "admin_state_up": true, "network_id": "4822e0fd-bf26-4755-aab5-470ffe022d1a", "tenant_id": "aab09451e4964303a290d3e373586a28", "binding:vif_details": {"support_vhost_user": false, "has_datapath_type_netdev": false, "uuid": "3ae585d7-e895-45d3-b386-3be2ad318607", "host_addresses": ["host2-neutron-agents-container-e709dd0e"]}, "binding:vnic_type": "normal", "binding:vif_type": "ovs", "mac_address": "fa:16:3e:ad:4b:a6", "project_id": "aab09451e4964303a290d3e373586a28", "created_at": "2018-01-25T00:15:43Z"}, {"status": "ACTIVE", "binding:host_id": "host3-neutron-agents-container-68ad1c6b", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:30:02Z", "device_owner": "network:dhcp", "revision_number": 6, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "681d622c-7c92-4000-920e-f08d9ee7d3f8", "ip_address": "10.100.0.3"}], "id": "fb4175f4-06c6-48e1-9e03-962fb526798d", "security_groups": [], "device_id": "dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-d5f32d2d-da1e-4cd7-986a-9e2c9ee88043", "name": "", "admin_state_up": true, "network_id": "d5f32d2d-da1e-4cd7-986a-9e2c9ee88043", "tenant_id": "73cd786da110496bb187ab49f3e98a36", "binding:vif_details": {"support_vhost_user": false, "has_datapath_type_netdev": false, "uuid": "4d9f54fd-58cf-477c-bff0-f17235ca20ab", "host_addresses": ["host3-neutron-agents-container-68ad1c6b"]}, "binding:vnic_type": "normal", "binding:vif_type": "ovs", "mac_address": "fa:16:3e:45:7a:df", "project_id": "73cd786da110496bb187ab49f3e98a36", "created_at": "2018-01-25T00:30:01Z"}, {"status": "DOWN", "binding:host_id": "host1-neutron-agents-container-0fb0cf37", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T00:30:33Z", "device_owner": "network:dhcp", "revision_number": 5, "port_security_enabled": false, "binding:profile": {}, "fixed_ips": [{"subnet_id": "75131007-64e7-4716-8d53-d852b54b1c05", "ip_address": "10.100.0.4"}], "id": "ffeaa0f9-4370-4177-8857-507898ddcc70", "security_groups": [], "device_id": "dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-8785c2b5-3260-4a17-8b76-b2a3150e2afa", "name": "", "admin_state_up": true, "network_id": "8785c2b5-3260-4a17-8b76-b2a3150e2afa", "tenant_id": "d43f99f22ccf4b8c934316e97db16d30", "binding:vif_details": {}, "binding:vnic_type": "normal", "binding:vif_type": "unbound", "mac_address": "fa:16:3e:b5:8f:a0", "project_id": "d43f99f22ccf4b8c934316e97db16d30", "created_at": "2018-01-25T00:30:33Z"}]}
To JSON using : pretty_print=False
${OSResult} = {u'ports': [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:30:42Z', u'device_owner': u'network:dhcp', u'revision_number': 5, 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-01-25T00:30:42Z', u'device_owner': u'network:dhcp', u'revision_number': 5, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'8f05606b-120e-4ae5-af6a-e7f1f05e6d4a', u'ip_address': u'10.100.0.3'}], u'id': u'0109eeb6-7ceb-4f38-92b3-cb17cf9db0b7', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:1b:79:22', u'project_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'status': u'DOWN', u'binding:host_id': u'host2-neutron-agents-container-e709dd0e', u'description': u'', u'tags': [], u'device_id': u'dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-b2088f2d-70b9-4c4e-ab91-76005e2f1ce2', u'name': u'', u'admin_state_up': True, u'network_id': u'b2088f2d-70b9-4c4e-ab91-76005e2f1ce2', u'tenant_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'created_at': u'2018-01-25T00:30:42Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:30:32Z', u'device_owner': u'network:dhcp', u'revision_number': 5, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'75131007-64e7-4716-8d53-d852b54b1c05', u'ip_address': u'10.100.0.2'}], u'id': u'1120d525-a9b1-4469-9cf9-c90afa6b85c5', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:fc:d3:aa', u'project_id': u'd43f99f22ccf4b8c934316e97db16d30', u'status': u'DOWN', u'binding:host_id': u'host3-neutron-agents-container-68ad1c6b', u'description': u'', u'tags': [], u'device_id': u'dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-8785c2b5-3260-4a17-8b76-b2a3150e2afa', u'name': u'', u'admin_state_up': True, u'network_id': u'8785c2b5-3260-4a17-8b76-b2a3150e2afa', u'tenant_id': u'd43f99f22ccf4b8c934316e97db16d30', u'created_at': u'2018-01-25T00:30:31Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:30:02Z', u'device_owner': u'network:dhcp', u'revision_number': 6, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'681d622c-7c92-4000-920e-f08d9ee7d3f8', u'ip_address': u'10.100.0.2'}], u'id': u'1966092c-68d8-4493-b830-51ccc072cc96', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'3ae585d7-e895-45d3-b386-3be2ad318607', u'host_addresses': [u'host2-neutron-agents-container-e709dd0e']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:91:f1:61', u'project_id': u'73cd786da110496bb187ab49f3e98a36', u'status': u'ACTIVE', u'binding:host_id': u'host2-neutron-agents-container-e709dd0e', u'description': u'', u'tags': [], u'device_id': u'dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-d5f32d2d-da1e-4cd7-986a-9e2c9ee88043', u'name': u'', u'admin_state_up': True, u'network_id': u'd5f32d2d-da1e-4cd7-986a-9e2c9ee88043', u'tenant_id': u'73cd786da110496bb187ab49f3e98a36', u'created_at': u'2018-01-25T00:30:00Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T01:11:44Z', u'device_owner': u'network:dhcp', u'revision_number': 5, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'87db5eb2-45fd-4d2f-83bf-9e8ce439354e', u'ip_address': u'172.16.64.21'}], u'id': u'24306936-b807-4890-9240-e275bcd9d721', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:5e:3e:98', u'project_id': u'aab09451e4964303a290d3e373586a28', u'status': u'DOWN', u'binding:host_id': u'host2-neutron-agents-container-e709dd0e', u'description': u'', u'tags': [], u'device_id': u'dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-6bb84780-2848-4bf9-bcd1-49f549a408ca', u'name': u'', u'admin_state_up': True, u'network_id': u'6bb84780-2848-4bf9-bcd1-49f549a408ca', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'created_at': u'2018-01-25T01:11:43Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:29:56Z', u'device_owner': u'network:dhcp', u'revision_number': 6, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'7c00a13a-b3c8-4870-8836-6c6bb6f5db94', u'ip_address': u'10.100.0.3'}], u'id': u'53971674-cd0c-480f-9d7c-258eb5f22f29', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'bff5a2c6-752c-4de1-bef4-a9fa4aa8d6c5', u'host_addresses': [u'host1-neutron-agents-container-0fb0cf37']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:f6:0a:25', u'project_id': u'1cd47a7443f8496f8f7637027aae4f1f', u'status': u'ACTIVE', u'binding:host_id': u'host1-neutron-agents-container-0fb0cf37', u'description': u'', u'tags': [], u'device_id': u'dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-6541dfde-cfe2-4adb-a18f-43cbfc318002', u'name': u'', u'admin_state_up': True, u'network_id': u'6541dfde-cfe2-4adb-a18f-43cbfc318002', u'tenant_id': u'1cd47a7443f8496f8f7637027aae4f1f', u'created_at': u'2018-01-25T00:29:55Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:30:43Z', u'device_owner': u'network:dhcp', u'revision_number': 5, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'8f05606b-120e-4ae5-af6a-e7f1f05e6d4a', u'ip_address': u'10.100.0.4'}], u'id': u'5a53661a-a294-4d55-a5ac-30d033575985', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:56:6e:3b', u'project_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'status': u'DOWN', u'binding:host_id': u'host1-neutron-agents-container-0fb0cf37', u'description': u'', u'tags': [], u'device_id': u'dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-b2088f2d-70b9-4c4e-ab91-76005e2f1ce2', u'name': u'', u'admin_state_up': True, u'network_id': u'b2088f2d-70b9-4c4e-ab91-76005e2f1ce2', u'tenant_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'created_at': u'2018-01-25T00:30:43Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:30:33Z', u'device_owner': u'network:dhcp', u'revision_number': 5, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'75131007-64e7-4716-8d53-d852b54b1c05', u'ip_address': u'10.100.0.3'}], u'id': u'6ecfa273-34ba-4c44-91f2-6366c4147f55', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:4f:8e:88', u'project_id': u'd43f99f22ccf4b8c934316e97db16d30', u'status': u'DOWN', u'binding:host_id': u'host2-neutron-agents-container-e709dd0e', u'description': u'', u'tags': [], u'device_id': u'dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-8785c2b5-3260-4a17-8b76-b2a3150e2afa', u'name': u'', u'admin_state_up': True, u'network_id': u'8785c2b5-3260-4a17-8b76-b2a3150e2afa', u'tenant_id': u'd43f99f22ccf4b8c934316e97db16d30', u'created_at': u'2018-01-25T00:30:32Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:29:55Z', u'device_owner': u'network:dhcp', u'revision_number': 6, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'7c00a13a-b3c8-4870-8836-6c6bb6f5db94', u'ip_address': u'10.100.0.2'}], u'id': u'71563e93-3a40-4d52-b5aa-d4c7f158f860', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'4d9f54fd-58cf-477c-bff0-f17235ca20ab', u'host_addresses': [u'host3-neutron-agents-container-68ad1c6b']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:76:cc:5f', u'project_id': u'1cd47a7443f8496f8f7637027aae4f1f', u'status': u'ACTIVE', u'binding:host_id': u'host3-neutron-agents-container-68ad1c6b', u'description': u'', u'tags': [], u'device_id': u'dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-6541dfde-cfe2-4adb-a18f-43cbfc318002', u'name': u'', u'admin_state_up': True, u'network_id': u'6541dfde-cfe2-4adb-a18f-43cbfc318002', u'tenant_id': u'1cd47a7443f8496f8f7637027aae4f1f', u'created_at': u'2018-01-25T00:29:54Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:30:42Z', u'device_owner': u'network:router_gateway', u'revision_number': 4, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7', u'ip_address': u'192.16.1.110'}], u'id': u'862ab2ca-b72e-45ff-98e0-f153cd1f03bf', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:5a:c0:35', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'cc858c05-6073-4f2d-a902-d05367be370b', u'name': u'', u'admin_state_up': True, u'network_id': u'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'', u'created_at': u'2018-01-25T00:30:42Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:29:57Z', u'device_owner': u'network:dhcp', u'revision_number': 6, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'7c00a13a-b3c8-4870-8836-6c6bb6f5db94', u'ip_address': u'10.100.0.4'}], u'id': u'8644ec21-0e53-4ed3-acef-49a2e05848ee', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'3ae585d7-e895-45d3-b386-3be2ad318607', u'host_addresses': [u'host2-neutron-agents-container-e709dd0e']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:21:4a:64', u'project_id': u'1cd47a7443f8496f8f7637027aae4f1f', u'status': u'ACTIVE', u'binding:host_id': u'host2-neutron-agents-container-e709dd0e', u'description': u'', u'tags': [], u'device_id': u'dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-6541dfde-cfe2-4adb-a18f-43cbfc318002', u'name': u'', u'admin_state_up': True, u'network_id': u'6541dfde-cfe2-4adb-a18f-43cbfc318002', u'tenant_id': u'1cd47a7443f8496f8f7637027aae4f1f', u'created_at': u'2018-01-25T00:29:56Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:06:49Z', u'device_owner': u'network:dhcp', u'revision_number': 5, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7', u'ip_address': u'192.16.1.101'}], u'id': u'8927de36-1b89-4d64-a3fd-555e1bfba2b5', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'binding_failed', u'mac_address': u'fa:16:3e:27:cb:da', u'project_id': u'aab09451e4964303a290d3e373586a28', u'status': u'DOWN', u'binding:host_id': u'host1-neutron-agents-container-0fb0cf37', u'description': u'', u'tags': [], u'device_id': u'dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-bfa60317-afac-4510-9801-f97cb08057b6', u'name': u'', u'admin_state_up': True, u'network_id': u'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'created_at': u'2018-01-25T00:06:48Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:06:49Z', u'device_owner': u'network:dhcp', u'revision_number': 5, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7', u'ip_address': u'192.16.1.102'}], u'id': u'a4eb0947-f2b4-4219-bb50-a8ccdce66130', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'binding_failed', u'mac_address': u'fa:16:3e:ee:fa:4d', u'project_id': u'aab09451e4964303a290d3e373586a28', u'status': u'DOWN', u'binding:host_id': u'host3-neutron-agents-container-68ad1c6b', u'description': u'', u'tags': [], u'device_id': u'dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-bfa60317-afac-4510-9801-f97cb08057b6', u'name': u'', u'admin_state_up': True, u'network_id': u'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'created_at': u'2018-01-25T00:06:49Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:30:32Z', u'device_owner': u'network:router_gateway', u'revision_number': 4, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7', u'ip_address': u'192.16.1.114'}], u'id': u'a7b425a9-efc1-4255-ae2f-e3fe7e07b3c5', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:bc:f0:7c', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'2f212170-6eed-4ddd-8575-e33b7d8146fa', u'name': u'', u'admin_state_up': True, u'network_id': u'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'', u'created_at': u'2018-01-25T00:30:32Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T01:11:43Z', u'device_owner': u'network:dhcp', u'revision_number': 6, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'87db5eb2-45fd-4d2f-83bf-9e8ce439354e', u'ip_address': u'172.16.64.20'}], u'id': u'aa0d23d5-ac5c-4fda-acd1-839cf28c0e8b', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'4d9f54fd-58cf-477c-bff0-f17235ca20ab', u'host_addresses': [u'host3-neutron-agents-container-68ad1c6b']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:70:72:aa', u'project_id': u'aab09451e4964303a290d3e373586a28', u'status': u'ACTIVE', u'binding:host_id': u'host3-neutron-agents-container-68ad1c6b', u'description': u'', u'tags': [], u'device_id': u'dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-6bb84780-2848-4bf9-bcd1-49f549a408ca', u'name': u'', u'admin_state_up': True, u'network_id': u'6bb84780-2848-4bf9-bcd1-49f549a408ca', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'created_at': u'2018-01-25T01:11:42Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:06:50Z', u'device_owner': u'network:dhcp', u'revision_number': 5, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7', u'ip_address': u'192.16.1.103'}], u'id': u'b364d365-af32-4942-b5c0-0289fdaf3262', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'binding_failed', u'mac_address': u'fa:16:3e:e1:25:d5', u'project_id': u'aab09451e4964303a290d3e373586a28', u'status': u'DOWN', u'binding:host_id': u'host2-neutron-agents-container-e709dd0e', u'description': u'', u'tags': [], u'device_id': u'dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-bfa60317-afac-4510-9801-f97cb08057b6', u'name': u'', u'admin_state_up': True, u'network_id': u'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'created_at': u'2018-01-25T00:06:50Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:29:55Z', u'device_owner': u'network:router_gateway', u'revision_number': 4, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7', u'ip_address': u'192.16.1.113'}], u'id': u'b4e45a6d-836c-4c3f-ad17-177f96a58b63', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:be:60:a6', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'8e935f28-62c8-47e7-8bb5-e9de96fc1eb3', u'name': u'', u'admin_state_up': True, u'network_id': u'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'', u'created_at': u'2018-01-25T00:29:55Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:15:45Z', u'device_owner': u'network:dhcp', u'revision_number': 6, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'f1464b56-9696-4543-97b6-6865f1a105d4', u'ip_address': u'192.168.150.4'}], u'id': u'bc46d0a9-8e7f-4505-ada3-f4621795850c', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'4d9f54fd-58cf-477c-bff0-f17235ca20ab', u'host_addresses': [u'host3-neutron-agents-container-68ad1c6b']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:4d:8c:bd', u'project_id': u'aab09451e4964303a290d3e373586a28', u'status': u'ACTIVE', u'binding:host_id': u'host3-neutron-agents-container-68ad1c6b', u'description': u'', u'tags': [], u'device_id': u'dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-4822e0fd-bf26-4755-aab5-470ffe022d1a', u'name': u'', u'admin_state_up': True, u'network_id': u'4822e0fd-bf26-4755-aab5-470ffe022d1a', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'created_at': u'2018-01-25T00:15:44Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:30:01Z', u'device_owner': u'network:router_gateway', u'revision_number': 4, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7', u'ip_address': u'192.16.1.108'}], u'id': u'c3534fc0-912c-44bc-8462-2d2faea61497', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:b4:9f:97', u'project_id': u'', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'3f963305-14c5-4ad1-bc4a-3eaf6a3b720a', u'name': u'', u'admin_state_up': True, u'network_id': u'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'', u'created_at': u'2018-01-25T00:30:01Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:30:03Z', u'device_owner': u'network:dhcp', u'revision_number': 6, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'681d622c-7c92-4000-920e-f08d9ee7d3f8', u'ip_address': u'10.100.0.4'}], u'id': u'e6e96036-c8e4-4601-86aa-78056abbc110', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'bff5a2c6-752c-4de1-bef4-a9fa4aa8d6c5', u'host_addresses': [u'host1-neutron-agents-container-0fb0cf37']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:0a:e4:3a', u'project_id': u'73cd786da110496bb187ab49f3e98a36', u'status': u'ACTIVE', u'binding:host_id': u'host1-neutron-agents-container-0fb0cf37', u'description': u'', u'tags': [], u'device_id': u'dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-d5f32d2d-da1e-4cd7-986a-9e2c9ee88043', u'name': u'', u'admin_state_up': True, u'network_id': u'd5f32d2d-da1e-4cd7-986a-9e2c9ee88043', u'tenant_id': u'73cd786da110496bb187ab49f3e98a36', u'created_at': u'2018-01-25T00:30:02Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:15:44Z', u'device_owner': u'network:dhcp', u'revision_number': 6, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'f1464b56-9696-4543-97b6-6865f1a105d4', u'ip_address': u'192.168.150.3'}], u'id': u'e75a2b6e-13d6-4336-804a-bacaa503bcd0', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'bff5a2c6-752c-4de1-bef4-a9fa4aa8d6c5', u'host_addresses': [u'host1-neutron-agents-container-0fb0cf37']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:59:e3:57', u'project_id': u'aab09451e4964303a290d3e373586a28', u'status': u'ACTIVE', u'binding:host_id': u'host1-neutron-agents-container-0fb0cf37', u'description': u'', u'tags': [], u'device_id': u'dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-4822e0fd-bf26-4755-aab5-470ffe022d1a', u'name': u'', u'admin_state_up': True, u'network_id': u'4822e0fd-bf26-4755-aab5-470ffe022d1a', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'created_at': u'2018-01-25T00:15:43Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:30:42Z', u'device_owner': u'network:dhcp', u'revision_number': 5, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'8f05606b-120e-4ae5-af6a-e7f1f05e6d4a', u'ip_address': u'10.100.0.2'}], u'id': u'e99a7da7-4b46-4f7a-b4d2-99603d313d9f', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:73:0b:47', u'project_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'status': u'DOWN', u'binding:host_id': u'host3-neutron-agents-container-68ad1c6b', u'description': u'', u'tags': [], u'device_id': u'dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-b2088f2d-70b9-4c4e-ab91-76005e2f1ce2', u'name': u'', u'admin_state_up': True, u'network_id': u'b2088f2d-70b9-4c4e-ab91-76005e2f1ce2', u'tenant_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'created_at': u'2018-01-25T00:30:41Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:29:57Z', u'device_owner': u'network:router_interface', u'revision_number': 5, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'7c00a13a-b3c8-4870-8836-6c6bb6f5db94', u'ip_address': u'10.100.0.1'}], u'id': u'f30778fd-e4bb-4b91-82d9-c8d74b644337', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:17:58:80', u'project_id': u'1cd47a7443f8496f8f7637027aae4f1f', u'status': u'DOWN', u'binding:host_id': u'', u'description': u'', u'tags': [], u'device_id': u'8e935f28-62c8-47e7-8bb5-e9de96fc1eb3', u'name': u'', u'admin_state_up': True, u'network_id': u'6541dfde-cfe2-4adb-a18f-43cbfc318002', u'tenant_id': u'1cd47a7443f8496f8f7637027aae4f1f', u'created_at': u'2018-01-25T00:29:57Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:30:57Z', u'device_owner': u'network:dhcp', u'revision_number': 9, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'f1464b56-9696-4543-97b6-6865f1a105d4', u'ip_address': u'192.168.150.2'}], u'id': u'f9f6fda1-23e0-418a-9bb2-a291e78a4209', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'3ae585d7-e895-45d3-b386-3be2ad318607', u'host_addresses': [u'host2-neutron-agents-container-e709dd0e']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:ad:4b:a6', u'project_id': u'aab09451e4964303a290d3e373586a28', u'status': u'ACTIVE', u'binding:host_id': u'host2-neutron-agents-container-e709dd0e', u'description': u'', u'tags': [], u'device_id': u'dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-4822e0fd-bf26-4755-aab5-470ffe022d1a', u'name': u'', u'admin_state_up': True, u'network_id': u'4822e0fd-bf26-4755-aab5-470ffe022d1a', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'created_at': u'2018-01-25T00:15:43Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:30:02Z', u'device_owner': u'network:dhcp', u'revision_number': 6, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'681d622c-7c92-4000-920e-f08d9ee7d3f8', u'ip_address': u'10.100.0.3'}], u'id': u'fb4175f4-06c6-48e1-9e03-962fb526798d', u'security_groups': [], u'binding:vif_details': {u'support_vhost_user': False, u'has_datapath_type_netdev': False, u'uuid': u'4d9f54fd-58cf-477c-bff0-f17235ca20ab', u'host_addresses': [u'host3-neutron-agents-container-68ad1c6b']}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:45:7a:df', u'project_id': u'73cd786da110496bb187ab49f3e98a36', u'status': u'ACTIVE', u'binding:host_id': u'host3-neutron-agents-container-68ad1c6b', u'description': u'', u'tags': [], u'device_id': u'dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-d5f32d2d-da1e-4cd7-986a-9e2c9ee88043', u'name': u'', u'admin_state_up': True, u'network_id': u'd5f32d2d-da1e-4cd7-986a-9e2c9ee88043', u'tenant_id': u'73cd786da110496bb187ab49f3e98a36', u'created_at': u'2018-01-25T00:30:01Z', u'binding:vnic_type': u'normal'}, {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T00:30:33Z', u'device_owner': u'network:dhcp', u'revision_number': 5, u'port_security_enabled': False, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'75131007-64e7-4716-8d53-d852b54b1c05', u'ip_address': u'10.100.0.4'}], u'id': u'ffeaa0f9-4370-4177-8857-507898ddcc70', u'security_groups': [], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:b5:8f:a0', u'project_id': u'd43f99f22ccf4b8c934316e97db16d30', u'status': u'DOWN', u'binding:host_id': u'host1-neutron-agents-container-0fb0cf37', u'description': u'', u'tags': [], u'device_id': u'dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-8785c2b5-3260-4a17-8b76-b2a3150e2afa', u'name': u'', u'admin_state_up': True, u'network_id': u'8785c2b5-3260-4a17-8b76-b2a3150e2afa', u'tenant_id': u'd43f99f22ccf4b8c934316e97db16d30', u'created_at': u'2018-01-25T00:30:33Z', 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.16.1.222:8080, headers={u'Content-Type': u'application/json'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7f5594aeb110>, 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" : "e99a7da7-4b46-4f7a-b4d2-99603d313d9f",
"tenant_id" : "6a99ed6b0f50496fa1de7553a636a39d",
"project_id" : "6a99ed6b0f50496fa1de7553a636a39d",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "b2088f2d-70b9-4c4e-ab91-76005e2f1ce2",
"mac_address" : "fa:16:3e:73:0b:47",
"fixed_ips" : [ {
"ip_address" : "10.100.0.2",
"subnet_id" : "8f05606b-120e-4ae5-af6a-e7f1f05e6d4a"
} ],
"device_id" : "dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-b2088f2d-70b9-4c4e-ab91-76005e2f1ce2",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host3-neutron-agents-container-68ad1c6b",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "ffeaa0f9-4370-4177-8857-507898ddcc70",
"tenant_id" : "d43f99f22ccf4b8c934316e97db16d30",
"project_id" : "d43f99f22ccf4b8c934316e97db16d30",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "8785c2b5-3260-4a17-8b76-b2a3150e2afa",
"mac_address" : "fa:16:3e:b5:8f:a0",
"fixed_ips" : [ {
"ip_address" : "10.100.0.4",
"subnet_id" : "75131007-64e7-4716-8d53-d852b54b1c05"
} ],
"device_id" : "dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-8785c2b5-3260-4a17-8b76-b2a3150e2afa",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host1-neutron-agents-container-0fb0cf37",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "e75a2b6e-13d6-4336-804a-bacaa503bcd0",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"network_id" : "4822e0fd-bf26-4755-aab5-470ffe022d1a",
"mac_address" : "fa:16:3e:59:e3:57",
"fixed_ips" : [ {
"ip_address" : "192.168.150.3",
"subnet_id" : "f1464b56-9696-4543-97b6-6865f1a105d4"
} ],
"device_id" : "dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-4822e0fd-bf26-4755-aab5-470ffe022d1a",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host1-neutron-agents-container-0fb0cf37",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
"uuid" : "bff5a2c6-752c-4de1-bef4-a9fa4aa8d6c5",
"support_vhost_user" : "false",
"has_datapath_type_netdev" : "false"
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "aa0d23d5-ac5c-4fda-acd1-839cf28c0e8b",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"network_id" : "6bb84780-2848-4bf9-bcd1-49f549a408ca",
"mac_address" : "fa:16:3e:70:72:aa",
"fixed_ips" : [ {
"ip_address" : "172.16.64.20",
"subnet_id" : "87db5eb2-45fd-4d2f-83bf-9e8ce439354e"
} ],
"device_id" : "dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-6bb84780-2848-4bf9-bcd1-49f549a408ca",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host3-neutron-agents-container-68ad1c6b",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
"uuid" : "4d9f54fd-58cf-477c-bff0-f17235ca20ab",
"support_vhost_user" : "false",
"has_datapath_type_netdev" : "false"
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "5a53661a-a294-4d55-a5ac-30d033575985",
"tenant_id" : "6a99ed6b0f50496fa1de7553a636a39d",
"project_id" : "6a99ed6b0f50496fa1de7553a636a39d",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "b2088f2d-70b9-4c4e-ab91-76005e2f1ce2",
"mac_address" : "fa:16:3e:56:6e:3b",
"fixed_ips" : [ {
"ip_address" : "10.100.0.4",
"subnet_id" : "8f05606b-120e-4ae5-af6a-e7f1f05e6d4a"
} ],
"device_id" : "dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-b2088f2d-70b9-4c4e-ab91-76005e2f1ce2",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host1-neutron-agents-container-0fb0cf37",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "0109eeb6-7ceb-4f38-92b3-cb17cf9db0b7",
"tenant_id" : "6a99ed6b0f50496fa1de7553a636a39d",
"project_id" : "6a99ed6b0f50496fa1de7553a636a39d",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "b2088f2d-70b9-4c4e-ab91-76005e2f1ce2",
"mac_address" : "fa:16:3e:1b:79:22",
"fixed_ips" : [ {
"ip_address" : "10.100.0.3",
"subnet_id" : "8f05606b-120e-4ae5-af6a-e7f1f05e6d4a"
} ],
"device_id" : "dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-b2088f2d-70b9-4c4e-ab91-76005e2f1ce2",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host2-neutron-agents-container-e709dd0e",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "53971674-cd0c-480f-9d7c-258eb5f22f29",
"tenant_id" : "1cd47a7443f8496f8f7637027aae4f1f",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"network_id" : "6541dfde-cfe2-4adb-a18f-43cbfc318002",
"mac_address" : "fa:16:3e:f6:0a:25",
"fixed_ips" : [ {
"ip_address" : "10.100.0.3",
"subnet_id" : "7c00a13a-b3c8-4870-8836-6c6bb6f5db94"
} ],
"device_id" : "dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-6541dfde-cfe2-4adb-a18f-43cbfc318002",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host1-neutron-agents-container-0fb0cf37",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
"uuid" : "bff5a2c6-752c-4de1-bef4-a9fa4aa8d6c5",
"support_vhost_user" : "false",
"has_datapath_type_netdev" : "false"
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "a7b425a9-efc1-4255-ae2f-e3fe7e07b3c5",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "bfa60317-afac-4510-9801-f97cb08057b6",
"mac_address" : "fa:16:3e:bc:f0:7c",
"fixed_ips" : [ {
"ip_address" : "192.16.1.114",
"subnet_id" : "3be6d87b-f359-4219-9097-d97bd1bc6ca7"
} ],
"device_id" : "2f212170-6eed-4ddd-8575-e33b7d8146fa",
"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" : "8644ec21-0e53-4ed3-acef-49a2e05848ee",
"tenant_id" : "1cd47a7443f8496f8f7637027aae4f1f",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"network_id" : "6541dfde-cfe2-4adb-a18f-43cbfc318002",
"mac_address" : "fa:16:3e:21:4a:64",
"fixed_ips" : [ {
"ip_address" : "10.100.0.4",
"subnet_id" : "7c00a13a-b3c8-4870-8836-6c6bb6f5db94"
} ],
"device_id" : "dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-6541dfde-cfe2-4adb-a18f-43cbfc318002",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host2-neutron-agents-container-e709dd0e",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
"uuid" : "3ae585d7-e895-45d3-b386-3be2ad318607",
"support_vhost_user" : "false",
"has_datapath_type_netdev" : "false"
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "f9f6fda1-23e0-418a-9bb2-a291e78a4209",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"revision_number" : 9,
"name" : "",
"admin_state_up" : true,
"network_id" : "4822e0fd-bf26-4755-aab5-470ffe022d1a",
"mac_address" : "fa:16:3e:ad:4b:a6",
"fixed_ips" : [ {
"ip_address" : "192.168.150.2",
"subnet_id" : "f1464b56-9696-4543-97b6-6865f1a105d4"
} ],
"device_id" : "dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-4822e0fd-bf26-4755-aab5-470ffe022d1a",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host2-neutron-agents-container-e709dd0e",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
"uuid" : "3ae585d7-e895-45d3-b386-3be2ad318607",
"support_vhost_user" : "false",
"has_datapath_type_netdev" : "false"
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "fb4175f4-06c6-48e1-9e03-962fb526798d",
"tenant_id" : "73cd786da110496bb187ab49f3e98a36",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"network_id" : "d5f32d2d-da1e-4cd7-986a-9e2c9ee88043",
"mac_address" : "fa:16:3e:45:7a:df",
"fixed_ips" : [ {
"ip_address" : "10.100.0.3",
"subnet_id" : "681d622c-7c92-4000-920e-f08d9ee7d3f8"
} ],
"device_id" : "dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-d5f32d2d-da1e-4cd7-986a-9e2c9ee88043",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host3-neutron-agents-container-68ad1c6b",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
"uuid" : "4d9f54fd-58cf-477c-bff0-f17235ca20ab",
"support_vhost_user" : "false",
"has_datapath_type_netdev" : "false"
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "71563e93-3a40-4d52-b5aa-d4c7f158f860",
"tenant_id" : "1cd47a7443f8496f8f7637027aae4f1f",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"network_id" : "6541dfde-cfe2-4adb-a18f-43cbfc318002",
"mac_address" : "fa:16:3e:76:cc:5f",
"fixed_ips" : [ {
"ip_address" : "10.100.0.2",
"subnet_id" : "7c00a13a-b3c8-4870-8836-6c6bb6f5db94"
} ],
"device_id" : "dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-6541dfde-cfe2-4adb-a18f-43cbfc318002",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host3-neutron-agents-container-68ad1c6b",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
"uuid" : "4d9f54fd-58cf-477c-bff0-f17235ca20ab",
"support_vhost_user" : "false",
"has_datapath_type_netdev" : "false"
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "e6e96036-c8e4-4601-86aa-78056abbc110",
"tenant_id" : "73cd786da110496bb187ab49f3e98a36",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"network_id" : "d5f32d2d-da1e-4cd7-986a-9e2c9ee88043",
"mac_address" : "fa:16:3e:0a:e4:3a",
"fixed_ips" : [ {
"ip_address" : "10.100.0.4",
"subnet_id" : "681d622c-7c92-4000-920e-f08d9ee7d3f8"
} ],
"device_id" : "dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-d5f32d2d-da1e-4cd7-986a-9e2c9ee88043",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host1-neutron-agents-container-0fb0cf37",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
"uuid" : "bff5a2c6-752c-4de1-bef4-a9fa4aa8d6c5",
"support_vhost_user" : "false",
"has_datapath_type_netdev" : "false"
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "6ecfa273-34ba-4c44-91f2-6366c4147f55",
"tenant_id" : "d43f99f22ccf4b8c934316e97db16d30",
"project_id" : "d43f99f22ccf4b8c934316e97db16d30",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "8785c2b5-3260-4a17-8b76-b2a3150e2afa",
"mac_address" : "fa:16:3e:4f:8e:88",
"fixed_ips" : [ {
"ip_address" : "10.100.0.3",
"subnet_id" : "75131007-64e7-4716-8d53-d852b54b1c05"
} ],
"device_id" : "dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-8785c2b5-3260-4a17-8b76-b2a3150e2afa",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host2-neutron-agents-container-e709dd0e",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "1966092c-68d8-4493-b830-51ccc072cc96",
"tenant_id" : "73cd786da110496bb187ab49f3e98a36",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"network_id" : "d5f32d2d-da1e-4cd7-986a-9e2c9ee88043",
"mac_address" : "fa:16:3e:91:f1:61",
"fixed_ips" : [ {
"ip_address" : "10.100.0.2",
"subnet_id" : "681d622c-7c92-4000-920e-f08d9ee7d3f8"
} ],
"device_id" : "dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-d5f32d2d-da1e-4cd7-986a-9e2c9ee88043",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host2-neutron-agents-container-e709dd0e",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
"uuid" : "3ae585d7-e895-45d3-b386-3be2ad318607",
"support_vhost_user" : "false",
"has_datapath_type_netdev" : "false"
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "b364d365-af32-4942-b5c0-0289fdaf3262",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "bfa60317-afac-4510-9801-f97cb08057b6",
"mac_address" : "fa:16:3e:e1:25:d5",
"fixed_ips" : [ {
"ip_address" : "192.16.1.103",
"subnet_id" : "3be6d87b-f359-4219-9097-d97bd1bc6ca7"
} ],
"device_id" : "dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-bfa60317-afac-4510-9801-f97cb08057b6",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host2-neutron-agents-container-e709dd0e",
"binding:vnic_type" : "normal",
"binding:vif_type" : "binding_failed",
"Map" : {
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "1120d525-a9b1-4469-9cf9-c90afa6b85c5",
"tenant_id" : "d43f99f22ccf4b8c934316e97db16d30",
"project_id" : "d43f99f22ccf4b8c934316e97db16d30",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "8785c2b5-3260-4a17-8b76-b2a3150e2afa",
"mac_address" : "fa:16:3e:fc:d3:aa",
"fixed_ips" : [ {
"ip_address" : "10.100.0.2",
"subnet_id" : "75131007-64e7-4716-8d53-d852b54b1c05"
} ],
"device_id" : "dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-8785c2b5-3260-4a17-8b76-b2a3150e2afa",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host3-neutron-agents-container-68ad1c6b",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "f30778fd-e4bb-4b91-82d9-c8d74b644337",
"tenant_id" : "1cd47a7443f8496f8f7637027aae4f1f",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"network_id" : "6541dfde-cfe2-4adb-a18f-43cbfc318002",
"mac_address" : "fa:16:3e:17:58:80",
"fixed_ips" : [ {
"ip_address" : "10.100.0.1",
"subnet_id" : "7c00a13a-b3c8-4870-8836-6c6bb6f5db94"
} ],
"device_id" : "8e935f28-62c8-47e7-8bb5-e9de96fc1eb3",
"device_owner" : "network:router_interface",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "8927de36-1b89-4d64-a3fd-555e1bfba2b5",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "bfa60317-afac-4510-9801-f97cb08057b6",
"mac_address" : "fa:16:3e:27:cb:da",
"fixed_ips" : [ {
"ip_address" : "192.16.1.101",
"subnet_id" : "3be6d87b-f359-4219-9097-d97bd1bc6ca7"
} ],
"device_id" : "dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-bfa60317-afac-4510-9801-f97cb08057b6",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host1-neutron-agents-container-0fb0cf37",
"binding:vnic_type" : "normal",
"binding:vif_type" : "binding_failed",
"Map" : {
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "a4eb0947-f2b4-4219-bb50-a8ccdce66130",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "bfa60317-afac-4510-9801-f97cb08057b6",
"mac_address" : "fa:16:3e:ee:fa:4d",
"fixed_ips" : [ {
"ip_address" : "192.16.1.102",
"subnet_id" : "3be6d87b-f359-4219-9097-d97bd1bc6ca7"
} ],
"device_id" : "dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-bfa60317-afac-4510-9801-f97cb08057b6",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host3-neutron-agents-container-68ad1c6b",
"binding:vnic_type" : "normal",
"binding:vif_type" : "binding_failed",
"Map" : {
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "b4e45a6d-836c-4c3f-ad17-177f96a58b63",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "bfa60317-afac-4510-9801-f97cb08057b6",
"mac_address" : "fa:16:3e:be:60:a6",
"fixed_ips" : [ {
"ip_address" : "192.16.1.113",
"subnet_id" : "3be6d87b-f359-4219-9097-d97bd1bc6ca7"
} ],
"device_id" : "8e935f28-62c8-47e7-8bb5-e9de96fc1eb3",
"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" : "c3534fc0-912c-44bc-8462-2d2faea61497",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "bfa60317-afac-4510-9801-f97cb08057b6",
"mac_address" : "fa:16:3e:b4:9f:97",
"fixed_ips" : [ {
"ip_address" : "192.16.1.108",
"subnet_id" : "3be6d87b-f359-4219-9097-d97bd1bc6ca7"
} ],
"device_id" : "3f963305-14c5-4ad1-bc4a-3eaf6a3b720a",
"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" : "bc46d0a9-8e7f-4505-ada3-f4621795850c",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"network_id" : "4822e0fd-bf26-4755-aab5-470ffe022d1a",
"mac_address" : "fa:16:3e:4d:8c:bd",
"fixed_ips" : [ {
"ip_address" : "192.168.150.4",
"subnet_id" : "f1464b56-9696-4543-97b6-6865f1a105d4"
} ],
"device_id" : "dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-4822e0fd-bf26-4755-aab5-470ffe022d1a",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host3-neutron-agents-container-68ad1c6b",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
"uuid" : "4d9f54fd-58cf-477c-bff0-f17235ca20ab",
"support_vhost_user" : "false",
"has_datapath_type_netdev" : "false"
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "862ab2ca-b72e-45ff-98e0-f153cd1f03bf",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "bfa60317-afac-4510-9801-f97cb08057b6",
"mac_address" : "fa:16:3e:5a:c0:35",
"fixed_ips" : [ {
"ip_address" : "192.16.1.110",
"subnet_id" : "3be6d87b-f359-4219-9097-d97bd1bc6ca7"
} ],
"device_id" : "cc858c05-6073-4f2d-a902-d05367be370b",
"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" : "24306936-b807-4890-9240-e275bcd9d721",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "6bb84780-2848-4bf9-bcd1-49f549a408ca",
"mac_address" : "fa:16:3e:5e:3e:98",
"fixed_ips" : [ {
"ip_address" : "172.16.64.21",
"subnet_id" : "87db5eb2-45fd-4d2f-83bf-9e8ce439354e"
} ],
"device_id" : "dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-6bb84780-2848-4bf9-bcd1-49f549a408ca",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host2-neutron-agents-container-e709dd0e",
"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'host3-neutron-agents-container-68ad1c6b', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'b20...
Logs the given message with the given level.
${ODLResult}
{u'ports': [{u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host3-neutron-agents-container-68ad1c6b', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'b2088f2d-70b9-4c4e-ab91-76005e2f1ce2', u'tenant_id': u'6a99ed6b0f50496fa1de7553a636a39d', 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:73:0b:47', u'port_security_enabled': False, u'project_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'fixed_ips': [{u'subnet_id': u'8f05606b-120e-4ae5-af6a-e7f1f05e6d4a', u'ip_address': u'10.100.0.2'}], u'id': u'e99a7da7-4b46-4f7a-b4d2-99603d313d9f', u'security_groups': [], u'device_id': u'dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-b2088f2d-70b9-4c4e-ab91-76005e2f1ce2'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host1-neutron-agents-container-0fb0cf37', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'8785c2b5-3260-4a17-8b76-b2a3150e2afa', u'tenant_id': u'd43f99f22ccf4b8c934316e97db16d30', 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:b5:8f:a0', u'port_security_enabled': False, u'project_id': u'd43f99f22ccf4b8c934316e97db16d30', u'fixed_ips': [{u'subnet_id': u'75131007-64e7-4716-8d53-d852b54b1c05', u'ip_address': u'10.100.0.4'}], u'id': u'ffeaa0f9-4370-4177-8857-507898ddcc70', u'security_groups': [], u'device_id': u'dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-8785c2b5-3260-4a17-8b76-b2a3150e2afa'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'bff5a2c6-752c-4de1-bef4-a9fa4aa8d6c5'}, u'binding:host_id': u'host1-neutron-agents-container-0fb0cf37', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'4822e0fd-bf26-4755-aab5-470ffe022d1a', u'tenant_id': u'aab09451e4964303a290d3e373586a28', 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': 5, u'mac_address': u'fa:16:3e:59:e3:57', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'f1464b56-9696-4543-97b6-6865f1a105d4', u'ip_address': u'192.168.150.3'}], u'id': u'e75a2b6e-13d6-4336-804a-bacaa503bcd0', u'security_groups': [], u'device_id': u'dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-4822e0fd-bf26-4755-aab5-470ffe022d1a'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'4d9f54fd-58cf-477c-bff0-f17235ca20ab'}, u'binding:host_id': u'host3-neutron-agents-container-68ad1c6b', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'6bb84780-2848-4bf9-bcd1-49f549a408ca', u'tenant_id': u'aab09451e4964303a290d3e373586a28', 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': 5, u'mac_address': u'fa:16:3e:70:72:aa', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'87db5eb2-45fd-4d2f-83bf-9e8ce439354e', u'ip_address': u'172.16.64.20'}], u'id': u'aa0d23d5-ac5c-4fda-acd1-839cf28c0e8b', u'security_groups': [], u'device_id': u'dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-6bb84780-2848-4bf9-bcd1-49f549a408ca'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host1-neutron-agents-container-0fb0cf37', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'b2088f2d-70b9-4c4e-ab91-76005e2f1ce2', u'tenant_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:dhcp', u'mac_address': u'fa:16:3e:56:6e:3b', u'port_security_enabled': False, u'project_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'fixed_ips': [{u'subnet_id': u'8f05606b-120e-4ae5-af6a-e7f1f05e6d4a', u'ip_address': u'10.100.0.4'}], u'id': u'5a53661a-a294-4d55-a5ac-30d033575985', u'security_groups': [], u'device_id': u'dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-b2088f2d-70b9-4c4e-ab91-76005e2f1ce2'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host2-neutron-agents-container-e709dd0e', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'b2088f2d-70b9-4c4e-ab91-76005e2f1ce2', u'tenant_id': u'6a99ed6b0f50496fa1de7553a636a39d', 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:1b:79:22', u'port_security_enabled': False, u'project_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'fixed_ips': [{u'subnet_id': u'8f05606b-120e-4ae5-af6a-e7f1f05e6d4a', u'ip_address': u'10.100.0.3'}], u'id': u'0109eeb6-7ceb-4f38-92b3-cb17cf9db0b7', u'security_groups': [], u'device_id': u'dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-b2088f2d-70b9-4c4e-ab91-76005e2f1ce2'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'bff5a2c6-752c-4de1-bef4-a9fa4aa8d6c5'}, u'binding:host_id': u'host1-neutron-agents-container-0fb0cf37', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'6541dfde-cfe2-4adb-a18f-43cbfc318002', u'tenant_id': u'1cd47a7443f8496f8f7637027aae4f1f', 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': 5, u'mac_address': u'fa:16:3e:f6:0a:25', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'7c00a13a-b3c8-4870-8836-6c6bb6f5db94', u'ip_address': u'10.100.0.3'}], u'id': u'53971674-cd0c-480f-9d7c-258eb5f22f29', u'security_groups': [], u'device_id': u'dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-6541dfde-cfe2-4adb-a18f-43cbfc318002'}, {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'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'aab09451e4964303a290d3e373586a28', 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:bc:f0:7c', u'port_security_enabled': False, u'project_id': u'aab09451e4964303a290d3e373586a28', u'fixed_ips': [{u'subnet_id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7', u'ip_address': u'192.16.1.114'}], u'id': u'a7b425a9-efc1-4255-ae2f-e3fe7e07b3c5', u'security_groups': [], u'device_id': u'2f212170-6eed-4ddd-8575-e33b7d8146fa'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'3ae585d7-e895-45d3-b386-3be2ad318607'}, u'binding:host_id': u'host2-neutron-agents-container-e709dd0e', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'6541dfde-cfe2-4adb-a18f-43cbfc318002', u'tenant_id': u'1cd47a7443f8496f8f7637027aae4f1f', 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': 5, u'mac_address': u'fa:16:3e:21:4a:64', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'7c00a13a-b3c8-4870-8836-6c6bb6f5db94', u'ip_address': u'10.100.0.4'}], u'id': u'8644ec21-0e53-4ed3-acef-49a2e05848ee', u'security_groups': [], u'device_id': u'dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-6541dfde-cfe2-4adb-a18f-43cbfc318002'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'3ae585d7-e895-45d3-b386-3be2ad318607'}, u'binding:host_id': u'host2-neutron-agents-container-e709dd0e', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'4822e0fd-bf26-4755-aab5-470ffe022d1a', u'tenant_id': u'aab09451e4964303a290d3e373586a28', 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': 9, u'mac_address': u'fa:16:3e:ad:4b:a6', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'f1464b56-9696-4543-97b6-6865f1a105d4', u'ip_address': u'192.168.150.2'}], u'id': u'f9f6fda1-23e0-418a-9bb2-a291e78a4209', u'security_groups': [], u'device_id': u'dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-4822e0fd-bf26-4755-aab5-470ffe022d1a'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'4d9f54fd-58cf-477c-bff0-f17235ca20ab'}, u'binding:host_id': u'host3-neutron-agents-container-68ad1c6b', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'd5f32d2d-da1e-4cd7-986a-9e2c9ee88043', u'tenant_id': u'73cd786da110496bb187ab49f3e98a36', 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': 5, u'mac_address': u'fa:16:3e:45:7a:df', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'681d622c-7c92-4000-920e-f08d9ee7d3f8', u'ip_address': u'10.100.0.3'}], u'id': u'fb4175f4-06c6-48e1-9e03-962fb526798d', u'security_groups': [], u'device_id': u'dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-d5f32d2d-da1e-4cd7-986a-9e2c9ee88043'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'4d9f54fd-58cf-477c-bff0-f17235ca20ab'}, u'binding:host_id': u'host3-neutron-agents-container-68ad1c6b', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'6541dfde-cfe2-4adb-a18f-43cbfc318002', u'tenant_id': u'1cd47a7443f8496f8f7637027aae4f1f', 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': 5, u'mac_address': u'fa:16:3e:76:cc:5f', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'7c00a13a-b3c8-4870-8836-6c6bb6f5db94', u'ip_address': u'10.100.0.2'}], u'id': u'71563e93-3a40-4d52-b5aa-d4c7f158f860', u'security_groups': [], u'device_id': u'dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-6541dfde-cfe2-4adb-a18f-43cbfc318002'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'bff5a2c6-752c-4de1-bef4-a9fa4aa8d6c5'}, u'binding:host_id': u'host1-neutron-agents-container-0fb0cf37', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'd5f32d2d-da1e-4cd7-986a-9e2c9ee88043', u'tenant_id': u'73cd786da110496bb187ab49f3e98a36', 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': 5, u'mac_address': u'fa:16:3e:0a:e4:3a', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'681d622c-7c92-4000-920e-f08d9ee7d3f8', u'ip_address': u'10.100.0.4'}], u'id': u'e6e96036-c8e4-4601-86aa-78056abbc110', u'security_groups': [], u'device_id': u'dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-d5f32d2d-da1e-4cd7-986a-9e2c9ee88043'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host2-neutron-agents-container-e709dd0e', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'8785c2b5-3260-4a17-8b76-b2a3150e2afa', u'tenant_id': u'd43f99f22ccf4b8c934316e97db16d30', 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:4f:8e:88', u'port_security_enabled': False, u'project_id': u'd43f99f22ccf4b8c934316e97db16d30', u'fixed_ips': [{u'subnet_id': u'75131007-64e7-4716-8d53-d852b54b1c05', u'ip_address': u'10.100.0.3'}], u'id': u'6ecfa273-34ba-4c44-91f2-6366c4147f55', u'security_groups': [], u'device_id': u'dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-8785c2b5-3260-4a17-8b76-b2a3150e2afa'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'3ae585d7-e895-45d3-b386-3be2ad318607'}, u'binding:host_id': u'host2-neutron-agents-container-e709dd0e', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'd5f32d2d-da1e-4cd7-986a-9e2c9ee88043', u'tenant_id': u'73cd786da110496bb187ab49f3e98a36', 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': 5, u'mac_address': u'fa:16:3e:91:f1:61', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'681d622c-7c92-4000-920e-f08d9ee7d3f8', u'ip_address': u'10.100.0.2'}], u'id': u'1966092c-68d8-4493-b830-51ccc072cc96', u'security_groups': [], u'device_id': u'dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-d5f32d2d-da1e-4cd7-986a-9e2c9ee88043'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host2-neutron-agents-container-e709dd0e', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'binding_failed', u'device_owner': u'network:dhcp', u'revision_number': 5, u'mac_address': u'fa:16:3e:e1:25:d5', u'port_security_enabled': False, u'project_id': u'aab09451e4964303a290d3e373586a28', u'fixed_ips': [{u'subnet_id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7', u'ip_address': u'192.16.1.103'}], u'id': u'b364d365-af32-4942-b5c0-0289fdaf3262', u'security_groups': [], u'device_id': u'dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-bfa60317-afac-4510-9801-f97cb08057b6'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host3-neutron-agents-container-68ad1c6b', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'8785c2b5-3260-4a17-8b76-b2a3150e2afa', u'tenant_id': u'd43f99f22ccf4b8c934316e97db16d30', 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:fc:d3:aa', u'port_security_enabled': False, u'project_id': u'd43f99f22ccf4b8c934316e97db16d30', u'fixed_ips': [{u'subnet_id': u'75131007-64e7-4716-8d53-d852b54b1c05', u'ip_address': u'10.100.0.2'}], u'id': u'1120d525-a9b1-4469-9cf9-c90afa6b85c5', u'security_groups': [], u'device_id': u'dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-8785c2b5-3260-4a17-8b76-b2a3150e2afa'}, {u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'6541dfde-cfe2-4adb-a18f-43cbfc318002', u'tenant_id': u'1cd47a7443f8496f8f7637027aae4f1f', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:router_interface', u'revision_number': 5, u'mac_address': u'fa:16:3e:17:58:80', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'7c00a13a-b3c8-4870-8836-6c6bb6f5db94', u'ip_address': u'10.100.0.1'}], u'id': u'f30778fd-e4bb-4b91-82d9-c8d74b644337', u'security_groups': [], u'device_id': u'8e935f28-62c8-47e7-8bb5-e9de96fc1eb3'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host1-neutron-agents-container-0fb0cf37', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'binding_failed', u'device_owner': u'network:dhcp', u'revision_number': 5, u'mac_address': u'fa:16:3e:27:cb:da', u'port_security_enabled': False, u'project_id': u'aab09451e4964303a290d3e373586a28', u'fixed_ips': [{u'subnet_id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7', u'ip_address': u'192.16.1.101'}], u'id': u'8927de36-1b89-4d64-a3fd-555e1bfba2b5', u'security_groups': [], u'device_id': u'dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-bfa60317-afac-4510-9801-f97cb08057b6'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host3-neutron-agents-container-68ad1c6b', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'binding_failed', u'device_owner': u'network:dhcp', u'revision_number': 5, u'mac_address': u'fa:16:3e:ee:fa:4d', u'port_security_enabled': False, u'project_id': u'aab09451e4964303a290d3e373586a28', u'fixed_ips': [{u'subnet_id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7', u'ip_address': u'192.16.1.102'}], u'id': u'a4eb0947-f2b4-4219-bb50-a8ccdce66130', u'security_groups': [], u'device_id': u'dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-bfa60317-afac-4510-9801-f97cb08057b6'}, {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'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'aab09451e4964303a290d3e373586a28', 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:be:60:a6', u'port_security_enabled': False, u'project_id': u'aab09451e4964303a290d3e373586a28', u'fixed_ips': [{u'subnet_id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7', u'ip_address': u'192.16.1.113'}], u'id': u'b4e45a6d-836c-4c3f-ad17-177f96a58b63', u'security_groups': [], u'device_id': u'8e935f28-62c8-47e7-8bb5-e9de96fc1eb3'}, {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'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'aab09451e4964303a290d3e373586a28', 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:b4:9f:97', u'port_security_enabled': False, u'project_id': u'aab09451e4964303a290d3e373586a28', u'fixed_ips': [{u'subnet_id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7', u'ip_address': u'192.16.1.108'}], u'id': u'c3534fc0-912c-44bc-8462-2d2faea61497', u'security_groups': [], u'device_id': u'3f963305-14c5-4ad1-bc4a-3eaf6a3b720a'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'4d9f54fd-58cf-477c-bff0-f17235ca20ab'}, u'binding:host_id': u'host3-neutron-agents-container-68ad1c6b', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'4822e0fd-bf26-4755-aab5-470ffe022d1a', u'tenant_id': u'aab09451e4964303a290d3e373586a28', 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': 5, u'mac_address': u'fa:16:3e:4d:8c:bd', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'f1464b56-9696-4543-97b6-6865f1a105d4', u'ip_address': u'192.168.150.4'}], u'id': u'bc46d0a9-8e7f-4505-ada3-f4621795850c', u'security_groups': [], u'device_id': u'dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-4822e0fd-bf26-4755-aab5-470ffe022d1a'}, {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'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'aab09451e4964303a290d3e373586a28', 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:5a:c0:35', u'port_security_enabled': False, u'project_id': u'aab09451e4964303a290d3e373586a28', u'fixed_ips': [{u'subnet_id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7', u'ip_address': u'192.16.1.110'}], u'id': u'862ab2ca-b72e-45ff-98e0-f153cd1f03bf', u'security_groups': [], u'device_id': u'cc858c05-6073-4f2d-a902-d05367be370b'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host2-neutron-agents-container-e709dd0e', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'6bb84780-2848-4bf9-bcd1-49f549a408ca', u'tenant_id': u'aab09451e4964303a290d3e373586a28', 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:5e:3e:98', u'port_security_enabled': False, u'project_id': u'aab09451e4964303a290d3e373586a28', u'fixed_ips': [{u'subnet_id': u'87db5eb2-45fd-4d2f-83bf-9e8ce439354e', u'ip_address': u'172.16.64.21'}], u'id': u'24306936-b807-4890-9240-e275bcd9d721', u'security_groups': [], u'device_id': u'dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-6bb84780-2848-4bf9-bcd1-49f549a408ca'}]}
Checking OpenDaylight Neutron API for known ports
Ports Neutron OpenDaylight
Logs the given message with the given level.
${data}
{"port":{"network_id":"6bb84780-2848-4bf9-bcd1-49f549a408ca","admin_state_up": true}}
Send a POST request on the session object found using the
OSSession
${OSREST}
data=${data}
${resp}
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
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": {"status": "DOWN", "binding:host_id": "", "description": "", "allowed_address_pairs": [], "tags": [], "extra_dhcp_opts": [], "updated_at": "2018-01-25T01:11:45Z", "device_owner": "", "revision_number": 5, "binding:profile": {}, "port_security_enabled": true, "fixed_ips": [{"subnet_id": "87db5eb2-45fd-4d2f-83bf-9e8ce439354e", "ip_address": "172.16.64.30"}], "id": "13ad640e-2dad-4f3e-9eb6-89d1b48f2ecb", "security_groups": ["374dbc51-4606-4639-9587-464720c04aeb"], "device_id": "", "name": "", "admin_state_up": true, "network_id": "6bb84780-2848-4bf9-bcd1-49f549a408ca", "tenant_id": "aab09451e4964303a290d3e373586a28", "binding:vif_details": {}, "binding:vnic_type": "normal", "binding:vif_type": "unbound", "mac_address": "fa:16:3e:9b:e9:37", "project_id": "aab09451e4964303a290d3e373586a28", "created_at": "2018-01-25T01:11:44Z"}}
To JSON using : pretty_print=False
${result} = {u'port': {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T01:11:45Z', u'device_owner': u'', u'revision_number': 5, 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-01-25T01:11:45Z', u'device_owner': u'', u'revision_number': 5, 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} = 13ad640e-2dad-4f3e-9eb6-89d1b48f2ecb
Logs the given message with the given level.
${result}
{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2018-01-25T01:11:45Z', u'device_owner': u'', u'revision_number': 5, u'binding:profile': {}, u'port_security_enabled': True, u'fixed_ips': [{u'subnet_id': u'87db5eb2-45fd-4d2f-83bf-9e8ce439354e', u'ip_address': u'172.16.64.30'}], u'id': u'13ad640e-2dad-4f3e-9eb6-89d1b48f2ecb', u'security_groups': [u'374dbc51-4606-4639-9587-464720c04aeb'], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:9b:e9:37', u'project_id': u'aab09451e4964303a290d3e373586a28', 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'6bb84780-2848-4bf9-bcd1-49f549a408ca', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'created_at': u'2018-01-25T01:11:44Z', u'binding:vnic_type': u'normal'}
Logs the given message with the given level.
${PORTID}
13ad640e-2dad-4f3e-9eb6-89d1b48f2ecb
Makes a variable available globally in all tests and suites.
${PORTID}
${PORTID} = 13ad640e-2dad-4f3e-9eb6-89d1b48f2ecb
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/13ad640e-2dad-4f3e-9eb6-89d1b48f2ecb, 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=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABaaS7Kqh_vNflHtQtS_gA2o67k_6aGDcHH9H5uilH5K3nFUuuCgd6WElYszToNjOdrgdP01oumeellwt8_bj99NKCtov2fW0PxMQaAEE-Z5YIZyf9k5LDnK2fm8Lg4GKFVMOwj0VGaCNilX_f31MKkDjZqDmvpHzH8VDWNc3ifeP-WGak'}, 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.16.1.222:8080, headers={u'Content-Type': u'application/json'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7f5594a5a190>, 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/13ad640e-2dad-4f3e-9eb6-89d1b48f2ecb, 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":"6bb84780-2848-4bf9-bcd1-49f549a408ca","admin_state_up": true}}
Send a DELETE request on the session object found using the
OSSession
${OSREST}
${resp}
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
Delete Request using : alias=OSSession, uri=/v2.0/ports/13ad640e-2dad-4f3e-9eb6-89d1b48f2ecb, 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" : "8927de36-1b89-4d64-a3fd-555e1bfba2b5",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "bfa60317-afac-4510-9801-f97cb08057b6",
"mac_address" : "fa:16:3e:27:cb:da",
"fixed_ips" : [ {
"ip_address" : "192.16.1.101",
"subnet_id" : "3be6d87b-f359-4219-9097-d97bd1bc6ca7"
} ],
"device_id" : "dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-bfa60317-afac-4510-9801-f97cb08057b6",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host1-neutron-agents-container-0fb0cf37",
"binding:vnic_type" : "normal",
"binding:vif_type" : "binding_failed",
"Map" : {
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "f9f6fda1-23e0-418a-9bb2-a291e78a4209",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"revision_number" : 9,
"name" : "",
"admin_state_up" : true,
"network_id" : "4822e0fd-bf26-4755-aab5-470ffe022d1a",
"mac_address" : "fa:16:3e:ad:4b:a6",
"fixed_ips" : [ {
"ip_address" : "192.168.150.2",
"subnet_id" : "f1464b56-9696-4543-97b6-6865f1a105d4"
} ],
"device_id" : "dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-4822e0fd-bf26-4755-aab5-470ffe022d1a",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host2-neutron-agents-container-e709dd0e",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
"uuid" : "3ae585d7-e895-45d3-b386-3be2ad318607",
"support_vhost_user" : "false",
"has_datapath_type_netdev" : "false"
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "a7b425a9-efc1-4255-ae2f-e3fe7e07b3c5",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "bfa60317-afac-4510-9801-f97cb08057b6",
"mac_address" : "fa:16:3e:bc:f0:7c",
"fixed_ips" : [ {
"ip_address" : "192.16.1.114",
"subnet_id" : "3be6d87b-f359-4219-9097-d97bd1bc6ca7"
} ],
"device_id" : "2f212170-6eed-4ddd-8575-e33b7d8146fa",
"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" : "0ed8593e-0902-4763-ad22-5ae138a8e9af",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"network_id" : "6bb84780-2848-4bf9-bcd1-49f549a408ca",
"mac_address" : "fa:16:3e:51:53:73",
"fixed_ips" : [ {
"ip_address" : "172.16.64.22",
"subnet_id" : "87db5eb2-45fd-4d2f-83bf-9e8ce439354e"
} ],
"device_id" : "dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-6bb84780-2848-4bf9-bcd1-49f549a408ca",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host1-neutron-agents-container-0fb0cf37",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
"uuid" : "bff5a2c6-752c-4de1-bef4-a9fa4aa8d6c5",
"support_vhost_user" : "false",
"has_datapath_type_netdev" : "false"
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "71563e93-3a40-4d52-b5aa-d4c7f158f860",
"tenant_id" : "1cd47a7443f8496f8f7637027aae4f1f",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"network_id" : "6541dfde-cfe2-4adb-a18f-43cbfc318002",
"mac_address" : "fa:16:3e:76:cc:5f",
"fixed_ips" : [ {
"ip_address" : "10.100.0.2",
"subnet_id" : "7c00a13a-b3c8-4870-8836-6c6bb6f5db94"
} ],
"device_id" : "dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-6541dfde-cfe2-4adb-a18f-43cbfc318002",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host3-neutron-agents-container-68ad1c6b",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
"uuid" : "4d9f54fd-58cf-477c-bff0-f17235ca20ab",
"support_vhost_user" : "false",
"has_datapath_type_netdev" : "false"
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "c3534fc0-912c-44bc-8462-2d2faea61497",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "bfa60317-afac-4510-9801-f97cb08057b6",
"mac_address" : "fa:16:3e:b4:9f:97",
"fixed_ips" : [ {
"ip_address" : "192.16.1.108",
"subnet_id" : "3be6d87b-f359-4219-9097-d97bd1bc6ca7"
} ],
"device_id" : "3f963305-14c5-4ad1-bc4a-3eaf6a3b720a",
"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" : "e75a2b6e-13d6-4336-804a-bacaa503bcd0",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"network_id" : "4822e0fd-bf26-4755-aab5-470ffe022d1a",
"mac_address" : "fa:16:3e:59:e3:57",
"fixed_ips" : [ {
"ip_address" : "192.168.150.3",
"subnet_id" : "f1464b56-9696-4543-97b6-6865f1a105d4"
} ],
"device_id" : "dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-4822e0fd-bf26-4755-aab5-470ffe022d1a",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host1-neutron-agents-container-0fb0cf37",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
"uuid" : "bff5a2c6-752c-4de1-bef4-a9fa4aa8d6c5",
"support_vhost_user" : "false",
"has_datapath_type_netdev" : "false"
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "a4eb0947-f2b4-4219-bb50-a8ccdce66130",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "bfa60317-afac-4510-9801-f97cb08057b6",
"mac_address" : "fa:16:3e:ee:fa:4d",
"fixed_ips" : [ {
"ip_address" : "192.16.1.102",
"subnet_id" : "3be6d87b-f359-4219-9097-d97bd1bc6ca7"
} ],
"device_id" : "dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-bfa60317-afac-4510-9801-f97cb08057b6",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host3-neutron-agents-container-68ad1c6b",
"binding:vnic_type" : "normal",
"binding:vif_type" : "binding_failed",
"Map" : {
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "6ecfa273-34ba-4c44-91f2-6366c4147f55",
"tenant_id" : "d43f99f22ccf4b8c934316e97db16d30",
"project_id" : "d43f99f22ccf4b8c934316e97db16d30",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "8785c2b5-3260-4a17-8b76-b2a3150e2afa",
"mac_address" : "fa:16:3e:4f:8e:88",
"fixed_ips" : [ {
"ip_address" : "10.100.0.3",
"subnet_id" : "75131007-64e7-4716-8d53-d852b54b1c05"
} ],
"device_id" : "dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-8785c2b5-3260-4a17-8b76-b2a3150e2afa",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host2-neutron-agents-container-e709dd0e",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "53971674-cd0c-480f-9d7c-258eb5f22f29",
"tenant_id" : "1cd47a7443f8496f8f7637027aae4f1f",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"network_id" : "6541dfde-cfe2-4adb-a18f-43cbfc318002",
"mac_address" : "fa:16:3e:f6:0a:25",
"fixed_ips" : [ {
"ip_address" : "10.100.0.3",
"subnet_id" : "7c00a13a-b3c8-4870-8836-6c6bb6f5db94"
} ],
"device_id" : "dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-6541dfde-cfe2-4adb-a18f-43cbfc318002",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host1-neutron-agents-container-0fb0cf37",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
"uuid" : "bff5a2c6-752c-4de1-bef4-a9fa4aa8d6c5",
"support_vhost_user" : "false",
"has_datapath_type_netdev" : "false"
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "fb4175f4-06c6-48e1-9e03-962fb526798d",
"tenant_id" : "73cd786da110496bb187ab49f3e98a36",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"network_id" : "d5f32d2d-da1e-4cd7-986a-9e2c9ee88043",
"mac_address" : "fa:16:3e:45:7a:df",
"fixed_ips" : [ {
"ip_address" : "10.100.0.3",
"subnet_id" : "681d622c-7c92-4000-920e-f08d9ee7d3f8"
} ],
"device_id" : "dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-d5f32d2d-da1e-4cd7-986a-9e2c9ee88043",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host3-neutron-agents-container-68ad1c6b",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
"uuid" : "4d9f54fd-58cf-477c-bff0-f17235ca20ab",
"support_vhost_user" : "false",
"has_datapath_type_netdev" : "false"
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "862ab2ca-b72e-45ff-98e0-f153cd1f03bf",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "bfa60317-afac-4510-9801-f97cb08057b6",
"mac_address" : "fa:16:3e:5a:c0:35",
"fixed_ips" : [ {
"ip_address" : "192.16.1.110",
"subnet_id" : "3be6d87b-f359-4219-9097-d97bd1bc6ca7"
} ],
"device_id" : "cc858c05-6073-4f2d-a902-d05367be370b",
"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" : "aa0d23d5-ac5c-4fda-acd1-839cf28c0e8b",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"network_id" : "6bb84780-2848-4bf9-bcd1-49f549a408ca",
"mac_address" : "fa:16:3e:70:72:aa",
"fixed_ips" : [ {
"ip_address" : "172.16.64.20",
"subnet_id" : "87db5eb2-45fd-4d2f-83bf-9e8ce439354e"
} ],
"device_id" : "dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-6bb84780-2848-4bf9-bcd1-49f549a408ca",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host3-neutron-agents-container-68ad1c6b",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
"uuid" : "4d9f54fd-58cf-477c-bff0-f17235ca20ab",
"support_vhost_user" : "false",
"has_datapath_type_netdev" : "false"
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "bc46d0a9-8e7f-4505-ada3-f4621795850c",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"network_id" : "4822e0fd-bf26-4755-aab5-470ffe022d1a",
"mac_address" : "fa:16:3e:4d:8c:bd",
"fixed_ips" : [ {
"ip_address" : "192.168.150.4",
"subnet_id" : "f1464b56-9696-4543-97b6-6865f1a105d4"
} ],
"device_id" : "dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-4822e0fd-bf26-4755-aab5-470ffe022d1a",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host3-neutron-agents-container-68ad1c6b",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
"uuid" : "4d9f54fd-58cf-477c-bff0-f17235ca20ab",
"support_vhost_user" : "false",
"has_datapath_type_netdev" : "false"
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "e6e96036-c8e4-4601-86aa-78056abbc110",
"tenant_id" : "73cd786da110496bb187ab49f3e98a36",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"network_id" : "d5f32d2d-da1e-4cd7-986a-9e2c9ee88043",
"mac_address" : "fa:16:3e:0a:e4:3a",
"fixed_ips" : [ {
"ip_address" : "10.100.0.4",
"subnet_id" : "681d622c-7c92-4000-920e-f08d9ee7d3f8"
} ],
"device_id" : "dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-d5f32d2d-da1e-4cd7-986a-9e2c9ee88043",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host1-neutron-agents-container-0fb0cf37",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
"uuid" : "bff5a2c6-752c-4de1-bef4-a9fa4aa8d6c5",
"support_vhost_user" : "false",
"has_datapath_type_netdev" : "false"
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "e99a7da7-4b46-4f7a-b4d2-99603d313d9f",
"tenant_id" : "6a99ed6b0f50496fa1de7553a636a39d",
"project_id" : "6a99ed6b0f50496fa1de7553a636a39d",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "b2088f2d-70b9-4c4e-ab91-76005e2f1ce2",
"mac_address" : "fa:16:3e:73:0b:47",
"fixed_ips" : [ {
"ip_address" : "10.100.0.2",
"subnet_id" : "8f05606b-120e-4ae5-af6a-e7f1f05e6d4a"
} ],
"device_id" : "dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-b2088f2d-70b9-4c4e-ab91-76005e2f1ce2",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host3-neutron-agents-container-68ad1c6b",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "0109eeb6-7ceb-4f38-92b3-cb17cf9db0b7",
"tenant_id" : "6a99ed6b0f50496fa1de7553a636a39d",
"project_id" : "6a99ed6b0f50496fa1de7553a636a39d",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "b2088f2d-70b9-4c4e-ab91-76005e2f1ce2",
"mac_address" : "fa:16:3e:1b:79:22",
"fixed_ips" : [ {
"ip_address" : "10.100.0.3",
"subnet_id" : "8f05606b-120e-4ae5-af6a-e7f1f05e6d4a"
} ],
"device_id" : "dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-b2088f2d-70b9-4c4e-ab91-76005e2f1ce2",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host2-neutron-agents-container-e709dd0e",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "b364d365-af32-4942-b5c0-0289fdaf3262",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "bfa60317-afac-4510-9801-f97cb08057b6",
"mac_address" : "fa:16:3e:e1:25:d5",
"fixed_ips" : [ {
"ip_address" : "192.16.1.103",
"subnet_id" : "3be6d87b-f359-4219-9097-d97bd1bc6ca7"
} ],
"device_id" : "dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-bfa60317-afac-4510-9801-f97cb08057b6",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host2-neutron-agents-container-e709dd0e",
"binding:vnic_type" : "normal",
"binding:vif_type" : "binding_failed",
"Map" : {
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "1120d525-a9b1-4469-9cf9-c90afa6b85c5",
"tenant_id" : "d43f99f22ccf4b8c934316e97db16d30",
"project_id" : "d43f99f22ccf4b8c934316e97db16d30",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "8785c2b5-3260-4a17-8b76-b2a3150e2afa",
"mac_address" : "fa:16:3e:fc:d3:aa",
"fixed_ips" : [ {
"ip_address" : "10.100.0.2",
"subnet_id" : "75131007-64e7-4716-8d53-d852b54b1c05"
} ],
"device_id" : "dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-8785c2b5-3260-4a17-8b76-b2a3150e2afa",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host3-neutron-agents-container-68ad1c6b",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "1966092c-68d8-4493-b830-51ccc072cc96",
"tenant_id" : "73cd786da110496bb187ab49f3e98a36",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"network_id" : "d5f32d2d-da1e-4cd7-986a-9e2c9ee88043",
"mac_address" : "fa:16:3e:91:f1:61",
"fixed_ips" : [ {
"ip_address" : "10.100.0.2",
"subnet_id" : "681d622c-7c92-4000-920e-f08d9ee7d3f8"
} ],
"device_id" : "dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-d5f32d2d-da1e-4cd7-986a-9e2c9ee88043",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host2-neutron-agents-container-e709dd0e",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
"uuid" : "3ae585d7-e895-45d3-b386-3be2ad318607",
"support_vhost_user" : "false",
"has_datapath_type_netdev" : "false"
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "b4e45a6d-836c-4c3f-ad17-177f96a58b63",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "bfa60317-afac-4510-9801-f97cb08057b6",
"mac_address" : "fa:16:3e:be:60:a6",
"fixed_ips" : [ {
"ip_address" : "192.16.1.113",
"subnet_id" : "3be6d87b-f359-4219-9097-d97bd1bc6ca7"
} ],
"device_id" : "8e935f28-62c8-47e7-8bb5-e9de96fc1eb3",
"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" : "5a53661a-a294-4d55-a5ac-30d033575985",
"tenant_id" : "6a99ed6b0f50496fa1de7553a636a39d",
"project_id" : "6a99ed6b0f50496fa1de7553a636a39d",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "b2088f2d-70b9-4c4e-ab91-76005e2f1ce2",
"mac_address" : "fa:16:3e:56:6e:3b",
"fixed_ips" : [ {
"ip_address" : "10.100.0.4",
"subnet_id" : "8f05606b-120e-4ae5-af6a-e7f1f05e6d4a"
} ],
"device_id" : "dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-b2088f2d-70b9-4c4e-ab91-76005e2f1ce2",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host1-neutron-agents-container-0fb0cf37",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "8644ec21-0e53-4ed3-acef-49a2e05848ee",
"tenant_id" : "1cd47a7443f8496f8f7637027aae4f1f",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"network_id" : "6541dfde-cfe2-4adb-a18f-43cbfc318002",
"mac_address" : "fa:16:3e:21:4a:64",
"fixed_ips" : [ {
"ip_address" : "10.100.0.4",
"subnet_id" : "7c00a13a-b3c8-4870-8836-6c6bb6f5db94"
} ],
"device_id" : "dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-6541dfde-cfe2-4adb-a18f-43cbfc318002",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host2-neutron-agents-container-e709dd0e",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
"uuid" : "3ae585d7-e895-45d3-b386-3be2ad318607",
"support_vhost_user" : "false",
"has_datapath_type_netdev" : "false"
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "f30778fd-e4bb-4b91-82d9-c8d74b644337",
"tenant_id" : "1cd47a7443f8496f8f7637027aae4f1f",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"network_id" : "6541dfde-cfe2-4adb-a18f-43cbfc318002",
"mac_address" : "fa:16:3e:17:58:80",
"fixed_ips" : [ {
"ip_address" : "10.100.0.1",
"subnet_id" : "7c00a13a-b3c8-4870-8836-6c6bb6f5db94"
} ],
"device_id" : "8e935f28-62c8-47e7-8bb5-e9de96fc1eb3",
"device_owner" : "network:router_interface",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
}, {
"id" : "ffeaa0f9-4370-4177-8857-507898ddcc70",
"tenant_id" : "d43f99f22ccf4b8c934316e97db16d30",
"project_id" : "d43f99f22ccf4b8c934316e97db16d30",
"name" : "",
"admin_state_up" : true,
"status" : "ACTIVE",
"network_id" : "8785c2b5-3260-4a17-8b76-b2a3150e2afa",
"mac_address" : "fa:16:3e:b5:8f:a0",
"fixed_ips" : [ {
"ip_address" : "10.100.0.4",
"subnet_id" : "75131007-64e7-4716-8d53-d852b54b1c05"
} ],
"device_id" : "dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-8785c2b5-3260-4a17-8b76-b2a3150e2afa",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host1-neutron-agents-container-0fb0cf37",
"binding:vnic_type" : "normal",
"binding:vif_type" : "unbound",
"Map" : {
},
"port_security_enabled" : false
}, {
"id" : "24306936-b807-4890-9240-e275bcd9d721",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"revision_number" : 5,
"name" : "",
"admin_state_up" : true,
"network_id" : "6bb84780-2848-4bf9-bcd1-49f549a408ca",
"mac_address" : "fa:16:3e:5e:3e:98",
"fixed_ips" : [ {
"ip_address" : "172.16.64.21",
"subnet_id" : "87db5eb2-45fd-4d2f-83bf-9e8ce439354e"
} ],
"device_id" : "dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-6bb84780-2848-4bf9-bcd1-49f549a408ca",
"device_owner" : "network:dhcp",
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"binding:host_id" : "host2-neutron-agents-container-e709dd0e",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"Map" : {
"uuid" : "3ae585d7-e895-45d3-b386-3be2ad318607",
"support_vhost_user" : "false",
"has_datapath_type_netdev" : "false"
},
"extra_dhcp_opts" : [ ],
"port_security_enabled" : false
} ]
}
To JSON using : pretty_print=False
${ODLResult} = {u'ports': [{u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host1-neutron-agents-container-0fb0cf37', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'bfa...
Logs the given message with the given level.
${ODLResult}
{u'ports': [{u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host1-neutron-agents-container-0fb0cf37', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'binding_failed', u'device_owner': u'network:dhcp', u'revision_number': 5, u'mac_address': u'fa:16:3e:27:cb:da', u'port_security_enabled': False, u'project_id': u'aab09451e4964303a290d3e373586a28', u'fixed_ips': [{u'subnet_id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7', u'ip_address': u'192.16.1.101'}], u'id': u'8927de36-1b89-4d64-a3fd-555e1bfba2b5', u'security_groups': [], u'device_id': u'dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-bfa60317-afac-4510-9801-f97cb08057b6'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'3ae585d7-e895-45d3-b386-3be2ad318607'}, u'binding:host_id': u'host2-neutron-agents-container-e709dd0e', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'4822e0fd-bf26-4755-aab5-470ffe022d1a', u'tenant_id': u'aab09451e4964303a290d3e373586a28', 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': 9, u'mac_address': u'fa:16:3e:ad:4b:a6', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'f1464b56-9696-4543-97b6-6865f1a105d4', u'ip_address': u'192.168.150.2'}], u'id': u'f9f6fda1-23e0-418a-9bb2-a291e78a4209', u'security_groups': [], u'device_id': u'dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-4822e0fd-bf26-4755-aab5-470ffe022d1a'}, {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'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'aab09451e4964303a290d3e373586a28', 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:bc:f0:7c', u'port_security_enabled': False, u'project_id': u'aab09451e4964303a290d3e373586a28', u'fixed_ips': [{u'subnet_id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7', u'ip_address': u'192.16.1.114'}], u'id': u'a7b425a9-efc1-4255-ae2f-e3fe7e07b3c5', u'security_groups': [], u'device_id': u'2f212170-6eed-4ddd-8575-e33b7d8146fa'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'bff5a2c6-752c-4de1-bef4-a9fa4aa8d6c5'}, u'binding:host_id': u'host1-neutron-agents-container-0fb0cf37', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'6bb84780-2848-4bf9-bcd1-49f549a408ca', u'tenant_id': u'aab09451e4964303a290d3e373586a28', 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': 5, u'mac_address': u'fa:16:3e:51:53:73', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'87db5eb2-45fd-4d2f-83bf-9e8ce439354e', u'ip_address': u'172.16.64.22'}], u'id': u'0ed8593e-0902-4763-ad22-5ae138a8e9af', u'security_groups': [], u'device_id': u'dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-6bb84780-2848-4bf9-bcd1-49f549a408ca'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'4d9f54fd-58cf-477c-bff0-f17235ca20ab'}, u'binding:host_id': u'host3-neutron-agents-container-68ad1c6b', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'6541dfde-cfe2-4adb-a18f-43cbfc318002', u'tenant_id': u'1cd47a7443f8496f8f7637027aae4f1f', 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': 5, u'mac_address': u'fa:16:3e:76:cc:5f', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'7c00a13a-b3c8-4870-8836-6c6bb6f5db94', u'ip_address': u'10.100.0.2'}], u'id': u'71563e93-3a40-4d52-b5aa-d4c7f158f860', u'security_groups': [], u'device_id': u'dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-6541dfde-cfe2-4adb-a18f-43cbfc318002'}, {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'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'aab09451e4964303a290d3e373586a28', 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:b4:9f:97', u'port_security_enabled': False, u'project_id': u'aab09451e4964303a290d3e373586a28', u'fixed_ips': [{u'subnet_id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7', u'ip_address': u'192.16.1.108'}], u'id': u'c3534fc0-912c-44bc-8462-2d2faea61497', u'security_groups': [], u'device_id': u'3f963305-14c5-4ad1-bc4a-3eaf6a3b720a'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'bff5a2c6-752c-4de1-bef4-a9fa4aa8d6c5'}, u'binding:host_id': u'host1-neutron-agents-container-0fb0cf37', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'4822e0fd-bf26-4755-aab5-470ffe022d1a', u'tenant_id': u'aab09451e4964303a290d3e373586a28', 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': 5, u'mac_address': u'fa:16:3e:59:e3:57', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'f1464b56-9696-4543-97b6-6865f1a105d4', u'ip_address': u'192.168.150.3'}], u'id': u'e75a2b6e-13d6-4336-804a-bacaa503bcd0', u'security_groups': [], u'device_id': u'dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-4822e0fd-bf26-4755-aab5-470ffe022d1a'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host3-neutron-agents-container-68ad1c6b', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'binding_failed', u'device_owner': u'network:dhcp', u'revision_number': 5, u'mac_address': u'fa:16:3e:ee:fa:4d', u'port_security_enabled': False, u'project_id': u'aab09451e4964303a290d3e373586a28', u'fixed_ips': [{u'subnet_id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7', u'ip_address': u'192.16.1.102'}], u'id': u'a4eb0947-f2b4-4219-bb50-a8ccdce66130', u'security_groups': [], u'device_id': u'dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-bfa60317-afac-4510-9801-f97cb08057b6'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host2-neutron-agents-container-e709dd0e', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'8785c2b5-3260-4a17-8b76-b2a3150e2afa', u'tenant_id': u'd43f99f22ccf4b8c934316e97db16d30', 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:4f:8e:88', u'port_security_enabled': False, u'project_id': u'd43f99f22ccf4b8c934316e97db16d30', u'fixed_ips': [{u'subnet_id': u'75131007-64e7-4716-8d53-d852b54b1c05', u'ip_address': u'10.100.0.3'}], u'id': u'6ecfa273-34ba-4c44-91f2-6366c4147f55', u'security_groups': [], u'device_id': u'dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-8785c2b5-3260-4a17-8b76-b2a3150e2afa'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'bff5a2c6-752c-4de1-bef4-a9fa4aa8d6c5'}, u'binding:host_id': u'host1-neutron-agents-container-0fb0cf37', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'6541dfde-cfe2-4adb-a18f-43cbfc318002', u'tenant_id': u'1cd47a7443f8496f8f7637027aae4f1f', 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': 5, u'mac_address': u'fa:16:3e:f6:0a:25', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'7c00a13a-b3c8-4870-8836-6c6bb6f5db94', u'ip_address': u'10.100.0.3'}], u'id': u'53971674-cd0c-480f-9d7c-258eb5f22f29', u'security_groups': [], u'device_id': u'dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-6541dfde-cfe2-4adb-a18f-43cbfc318002'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'4d9f54fd-58cf-477c-bff0-f17235ca20ab'}, u'binding:host_id': u'host3-neutron-agents-container-68ad1c6b', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'd5f32d2d-da1e-4cd7-986a-9e2c9ee88043', u'tenant_id': u'73cd786da110496bb187ab49f3e98a36', 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': 5, u'mac_address': u'fa:16:3e:45:7a:df', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'681d622c-7c92-4000-920e-f08d9ee7d3f8', u'ip_address': u'10.100.0.3'}], u'id': u'fb4175f4-06c6-48e1-9e03-962fb526798d', u'security_groups': [], u'device_id': u'dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-d5f32d2d-da1e-4cd7-986a-9e2c9ee88043'}, {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'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'aab09451e4964303a290d3e373586a28', 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:5a:c0:35', u'port_security_enabled': False, u'project_id': u'aab09451e4964303a290d3e373586a28', u'fixed_ips': [{u'subnet_id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7', u'ip_address': u'192.16.1.110'}], u'id': u'862ab2ca-b72e-45ff-98e0-f153cd1f03bf', u'security_groups': [], u'device_id': u'cc858c05-6073-4f2d-a902-d05367be370b'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'4d9f54fd-58cf-477c-bff0-f17235ca20ab'}, u'binding:host_id': u'host3-neutron-agents-container-68ad1c6b', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'6bb84780-2848-4bf9-bcd1-49f549a408ca', u'tenant_id': u'aab09451e4964303a290d3e373586a28', 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': 5, u'mac_address': u'fa:16:3e:70:72:aa', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'87db5eb2-45fd-4d2f-83bf-9e8ce439354e', u'ip_address': u'172.16.64.20'}], u'id': u'aa0d23d5-ac5c-4fda-acd1-839cf28c0e8b', u'security_groups': [], u'device_id': u'dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-6bb84780-2848-4bf9-bcd1-49f549a408ca'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'4d9f54fd-58cf-477c-bff0-f17235ca20ab'}, u'binding:host_id': u'host3-neutron-agents-container-68ad1c6b', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'4822e0fd-bf26-4755-aab5-470ffe022d1a', u'tenant_id': u'aab09451e4964303a290d3e373586a28', 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': 5, u'mac_address': u'fa:16:3e:4d:8c:bd', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'f1464b56-9696-4543-97b6-6865f1a105d4', u'ip_address': u'192.168.150.4'}], u'id': u'bc46d0a9-8e7f-4505-ada3-f4621795850c', u'security_groups': [], u'device_id': u'dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-4822e0fd-bf26-4755-aab5-470ffe022d1a'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'bff5a2c6-752c-4de1-bef4-a9fa4aa8d6c5'}, u'binding:host_id': u'host1-neutron-agents-container-0fb0cf37', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'd5f32d2d-da1e-4cd7-986a-9e2c9ee88043', u'tenant_id': u'73cd786da110496bb187ab49f3e98a36', 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': 5, u'mac_address': u'fa:16:3e:0a:e4:3a', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'681d622c-7c92-4000-920e-f08d9ee7d3f8', u'ip_address': u'10.100.0.4'}], u'id': u'e6e96036-c8e4-4601-86aa-78056abbc110', u'security_groups': [], u'device_id': u'dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-d5f32d2d-da1e-4cd7-986a-9e2c9ee88043'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host3-neutron-agents-container-68ad1c6b', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'b2088f2d-70b9-4c4e-ab91-76005e2f1ce2', u'tenant_id': u'6a99ed6b0f50496fa1de7553a636a39d', 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:73:0b:47', u'port_security_enabled': False, u'project_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'fixed_ips': [{u'subnet_id': u'8f05606b-120e-4ae5-af6a-e7f1f05e6d4a', u'ip_address': u'10.100.0.2'}], u'id': u'e99a7da7-4b46-4f7a-b4d2-99603d313d9f', u'security_groups': [], u'device_id': u'dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-b2088f2d-70b9-4c4e-ab91-76005e2f1ce2'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host2-neutron-agents-container-e709dd0e', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'b2088f2d-70b9-4c4e-ab91-76005e2f1ce2', u'tenant_id': u'6a99ed6b0f50496fa1de7553a636a39d', 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:1b:79:22', u'port_security_enabled': False, u'project_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'fixed_ips': [{u'subnet_id': u'8f05606b-120e-4ae5-af6a-e7f1f05e6d4a', u'ip_address': u'10.100.0.3'}], u'id': u'0109eeb6-7ceb-4f38-92b3-cb17cf9db0b7', u'security_groups': [], u'device_id': u'dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-b2088f2d-70b9-4c4e-ab91-76005e2f1ce2'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host2-neutron-agents-container-e709dd0e', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'binding_failed', u'device_owner': u'network:dhcp', u'revision_number': 5, u'mac_address': u'fa:16:3e:e1:25:d5', u'port_security_enabled': False, u'project_id': u'aab09451e4964303a290d3e373586a28', u'fixed_ips': [{u'subnet_id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7', u'ip_address': u'192.16.1.103'}], u'id': u'b364d365-af32-4942-b5c0-0289fdaf3262', u'security_groups': [], u'device_id': u'dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-bfa60317-afac-4510-9801-f97cb08057b6'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host3-neutron-agents-container-68ad1c6b', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'8785c2b5-3260-4a17-8b76-b2a3150e2afa', u'tenant_id': u'd43f99f22ccf4b8c934316e97db16d30', 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:fc:d3:aa', u'port_security_enabled': False, u'project_id': u'd43f99f22ccf4b8c934316e97db16d30', u'fixed_ips': [{u'subnet_id': u'75131007-64e7-4716-8d53-d852b54b1c05', u'ip_address': u'10.100.0.2'}], u'id': u'1120d525-a9b1-4469-9cf9-c90afa6b85c5', u'security_groups': [], u'device_id': u'dhcp2927a125-809e-5fa7-82ae-5a891c3b8e13-8785c2b5-3260-4a17-8b76-b2a3150e2afa'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'3ae585d7-e895-45d3-b386-3be2ad318607'}, u'binding:host_id': u'host2-neutron-agents-container-e709dd0e', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'd5f32d2d-da1e-4cd7-986a-9e2c9ee88043', u'tenant_id': u'73cd786da110496bb187ab49f3e98a36', 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': 5, u'mac_address': u'fa:16:3e:91:f1:61', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'681d622c-7c92-4000-920e-f08d9ee7d3f8', u'ip_address': u'10.100.0.2'}], u'id': u'1966092c-68d8-4493-b830-51ccc072cc96', u'security_groups': [], u'device_id': u'dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-d5f32d2d-da1e-4cd7-986a-9e2c9ee88043'}, {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'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'aab09451e4964303a290d3e373586a28', 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:be:60:a6', u'port_security_enabled': False, u'project_id': u'aab09451e4964303a290d3e373586a28', u'fixed_ips': [{u'subnet_id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7', u'ip_address': u'192.16.1.113'}], u'id': u'b4e45a6d-836c-4c3f-ad17-177f96a58b63', u'security_groups': [], u'device_id': u'8e935f28-62c8-47e7-8bb5-e9de96fc1eb3'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host1-neutron-agents-container-0fb0cf37', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'b2088f2d-70b9-4c4e-ab91-76005e2f1ce2', u'tenant_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:dhcp', u'mac_address': u'fa:16:3e:56:6e:3b', u'port_security_enabled': False, u'project_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'fixed_ips': [{u'subnet_id': u'8f05606b-120e-4ae5-af6a-e7f1f05e6d4a', u'ip_address': u'10.100.0.4'}], u'id': u'5a53661a-a294-4d55-a5ac-30d033575985', u'security_groups': [], u'device_id': u'dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-b2088f2d-70b9-4c4e-ab91-76005e2f1ce2'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'3ae585d7-e895-45d3-b386-3be2ad318607'}, u'binding:host_id': u'host2-neutron-agents-container-e709dd0e', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'6541dfde-cfe2-4adb-a18f-43cbfc318002', u'tenant_id': u'1cd47a7443f8496f8f7637027aae4f1f', 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': 5, u'mac_address': u'fa:16:3e:21:4a:64', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'7c00a13a-b3c8-4870-8836-6c6bb6f5db94', u'ip_address': u'10.100.0.4'}], u'id': u'8644ec21-0e53-4ed3-acef-49a2e05848ee', u'security_groups': [], u'device_id': u'dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-6541dfde-cfe2-4adb-a18f-43cbfc318002'}, {u'Map': {}, u'binding:host_id': u'', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'6541dfde-cfe2-4adb-a18f-43cbfc318002', u'tenant_id': u'1cd47a7443f8496f8f7637027aae4f1f', u'extra_dhcp_opts': [], u'binding:vnic_type': u'normal', u'binding:vif_type': u'unbound', u'device_owner': u'network:router_interface', u'revision_number': 5, u'mac_address': u'fa:16:3e:17:58:80', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'7c00a13a-b3c8-4870-8836-6c6bb6f5db94', u'ip_address': u'10.100.0.1'}], u'id': u'f30778fd-e4bb-4b91-82d9-c8d74b644337', u'security_groups': [], u'device_id': u'8e935f28-62c8-47e7-8bb5-e9de96fc1eb3'}, {u'status': u'ACTIVE', u'Map': {}, u'binding:host_id': u'host1-neutron-agents-container-0fb0cf37', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'8785c2b5-3260-4a17-8b76-b2a3150e2afa', u'tenant_id': u'd43f99f22ccf4b8c934316e97db16d30', 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:b5:8f:a0', u'port_security_enabled': False, u'project_id': u'd43f99f22ccf4b8c934316e97db16d30', u'fixed_ips': [{u'subnet_id': u'75131007-64e7-4716-8d53-d852b54b1c05', u'ip_address': u'10.100.0.4'}], u'id': u'ffeaa0f9-4370-4177-8857-507898ddcc70', u'security_groups': [], u'device_id': u'dhcp1deda635-dceb-5ee8-9aed-555cc2fae392-8785c2b5-3260-4a17-8b76-b2a3150e2afa'}, {u'Map': {u'support_vhost_user': u'false', u'has_datapath_type_netdev': u'false', u'uuid': u'3ae585d7-e895-45d3-b386-3be2ad318607'}, u'binding:host_id': u'host2-neutron-agents-container-e709dd0e', u'name': u'', u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'6bb84780-2848-4bf9-bcd1-49f549a408ca', u'tenant_id': u'aab09451e4964303a290d3e373586a28', 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': 5, u'mac_address': u'fa:16:3e:5e:3e:98', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'87db5eb2-45fd-4d2f-83bf-9e8ce439354e', u'ip_address': u'172.16.64.21'}], u'id': u'24306936-b807-4890-9240-e275bcd9d721', u'security_groups': [], u'device_id': u'dhcp36aea6e7-2b8b-5a6b-a499-d746fd6ab151-6bb84780-2848-4bf9-bcd1-49f549a408ca'}]}
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/13ad640e-2dad-4f3e-9eb6-89d1b48f2ecb, 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=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABaaS7Kqh_vNflHtQtS_gA2o67k_6aGDcHH9H5uilH5K3nFUuuCgd6WElYszToNjOdrgdP01oumeellwt8_bj99NKCtov2fW0PxMQaAEE-Z5YIZyf9k5LDnK2fm8Lg4GKFVMOwj0VGaCNilX_f31MKkDjZqDmvpHzH8VDWNc3ifeP-WGak'}, 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.16.1.222:8080, headers={u'Content-Type': u'application/json'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7f5594a28190>, 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/87db5eb2-45fd-4d2f-83bf-9e8ce439354e, 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":"6bb84780-2848-4bf9-bcd1-49f549a408ca","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}
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
Delete Request using : alias=OSSession, uri=/v2.0/subnets/87db5eb2-45fd-4d2f-83bf-9e8ce439354e, 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" : "75131007-64e7-4716-8d53-d852b54b1c05",
"tenant_id" : "d43f99f22ccf4b8c934316e97db16d30",
"project_id" : "d43f99f22ccf4b8c934316e97db16d30",
"revision_number" : 2,
"name" : "tempest-TestVolumeBootPattern-1173746198-subnet",
"network_id" : "8785c2b5-3260-4a17-8b76-b2a3150e2afa",
"ip_version" : 4,
"cidr" : "10.100.0.0/28",
"gateway_ip" : "10.100.0.1",
"dns_nameservers" : [ ],
"allocation_pools" : [ {
"start" : "10.100.0.2",
"end" : "10.100.0.14"
} ],
"host_routes" : [ ],
"enable_dhcp" : true,
"ipv6_address_mode" : null,
"ipv6_ra_mode" : null
}, {
"id" : "3be6d87b-f359-4219-9097-d97bd1bc6ca7",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"revision_number" : 2,
"name" : "ext-subnet",
"network_id" : "bfa60317-afac-4510-9801-f97cb08057b6",
"ip_version" : 4,
"cidr" : "192.16.1.0/24",
"gateway_ip" : "192.16.1.1",
"dns_nameservers" : [ ],
"allocation_pools" : [ {
"start" : "192.16.1.101",
"end" : "192.16.1.199"
} ],
"host_routes" : [ ],
"enable_dhcp" : true,
"ipv6_address_mode" : null,
"ipv6_ra_mode" : null
}, {
"id" : "f1464b56-9696-4543-97b6-6865f1a105d4",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"revision_number" : 2,
"name" : "tempest-subnet-92023b3f-e70c-496f-8249-2e910175dc8c",
"network_id" : "4822e0fd-bf26-4755-aab5-470ffe022d1a",
"ip_version" : 4,
"cidr" : "192.168.150.0/24",
"gateway_ip" : "192.168.150.1",
"dns_nameservers" : [ "8.8.8.8" ],
"allocation_pools" : [ {
"start" : "192.168.150.2",
"end" : "192.168.150.254"
} ],
"host_routes" : [ ],
"enable_dhcp" : true,
"ipv6_address_mode" : null,
"ipv6_ra_mode" : null
}, {
"id" : "8f05606b-120e-4ae5-af6a-e7f1f05e6d4a",
"tenant_id" : "6a99ed6b0f50496fa1de7553a636a39d",
"project_id" : "6a99ed6b0f50496fa1de7553a636a39d",
"revision_number" : 2,
"name" : "tempest-TestVolumeBootPatternV2-1130054844-subnet",
"network_id" : "b2088f2d-70b9-4c4e-ab91-76005e2f1ce2",
"ip_version" : 4,
"cidr" : "10.100.0.0/28",
"gateway_ip" : "10.100.0.1",
"dns_nameservers" : [ ],
"allocation_pools" : [ {
"start" : "10.100.0.2",
"end" : "10.100.0.14"
} ],
"host_routes" : [ ],
"enable_dhcp" : true,
"ipv6_address_mode" : null,
"ipv6_ra_mode" : null
}, {
"id" : "681d622c-7c92-4000-920e-f08d9ee7d3f8",
"tenant_id" : "73cd786da110496bb187ab49f3e98a36",
"project_id" : "73cd786da110496bb187ab49f3e98a36",
"revision_number" : 2,
"name" : "tempest-TestServerMultinode-1995699591-subnet",
"network_id" : "d5f32d2d-da1e-4cd7-986a-9e2c9ee88043",
"ip_version" : 4,
"cidr" : "10.100.0.0/28",
"gateway_ip" : "10.100.0.1",
"dns_nameservers" : [ ],
"allocation_pools" : [ {
"start" : "10.100.0.2",
"end" : "10.100.0.14"
} ],
"host_routes" : [ ],
"enable_dhcp" : true,
"ipv6_address_mode" : null,
"ipv6_ra_mode" : null
}, {
"id" : "7c00a13a-b3c8-4870-8836-6c6bb6f5db94",
"tenant_id" : "1cd47a7443f8496f8f7637027aae4f1f",
"project_id" : "1cd47a7443f8496f8f7637027aae4f1f",
"revision_number" : 2,
"name" : "tempest-TestServerMultinode-1321786727-subnet",
"network_id" : "6541dfde-cfe2-4adb-a18f-43cbfc318002",
"ip_version" : 4,
"cidr" : "10.100.0.0/28",
"gateway_ip" : "10.100.0.1",
"dns_nameservers" : [ ],
"allocation_pools" : [ {
"start" : "10.100.0.2",
"end" : "10.100.0.14"
} ],
"host_routes" : [ ],
"enable_dhcp" : true,
"ipv6_address_mode" : null,
"ipv6_ra_mode" : null
} ]
}
To JSON using : pretty_print=False
${ODLResult} = {u'subnets': [{u'name': u'tempest-TestVolumeBootPattern-1173746198-subnet', u'enable_dhcp': True, u'network_id': u'8785c2b5-3260-4a17-8b76-b2a3150e2afa', u'tenant_id': u'd43f99f22ccf4b8c934316e97db16d...
Logs the given message with the given level.
${ODLResult}
{u'subnets': [{u'name': u'tempest-TestVolumeBootPattern-1173746198-subnet', u'enable_dhcp': True, u'network_id': u'8785c2b5-3260-4a17-8b76-b2a3150e2afa', u'tenant_id': u'd43f99f22ccf4b8c934316e97db16d30', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'10.100.0.2', u'end': u'10.100.0.14'}], u'gateway_ip': u'10.100.0.1', u'revision_number': 2, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'10.100.0.0/28', u'project_id': u'd43f99f22ccf4b8c934316e97db16d30', u'id': u'75131007-64e7-4716-8d53-d852b54b1c05'}, {u'name': u'ext-subnet', u'enable_dhcp': True, u'network_id': u'bfa60317-afac-4510-9801-f97cb08057b6', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'192.16.1.101', u'end': u'192.16.1.199'}], u'gateway_ip': u'192.16.1.1', u'revision_number': 2, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'192.16.1.0/24', u'project_id': u'aab09451e4964303a290d3e373586a28', u'id': u'3be6d87b-f359-4219-9097-d97bd1bc6ca7'}, {u'name': u'tempest-subnet-92023b3f-e70c-496f-8249-2e910175dc8c', u'enable_dhcp': True, u'network_id': u'4822e0fd-bf26-4755-aab5-470ffe022d1a', u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'dns_nameservers': [u'8.8.8.8'], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'192.168.150.2', u'end': u'192.168.150.254'}], u'gateway_ip': u'192.168.150.1', u'revision_number': 2, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'192.168.150.0/24', u'project_id': u'aab09451e4964303a290d3e373586a28', u'id': u'f1464b56-9696-4543-97b6-6865f1a105d4'}, {u'name': u'tempest-TestVolumeBootPatternV2-1130054844-subnet', u'enable_dhcp': True, u'network_id': u'b2088f2d-70b9-4c4e-ab91-76005e2f1ce2', u'tenant_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'10.100.0.2', u'end': u'10.100.0.14'}], u'gateway_ip': u'10.100.0.1', u'revision_number': 2, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'10.100.0.0/28', u'project_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'id': u'8f05606b-120e-4ae5-af6a-e7f1f05e6d4a'}, {u'name': u'tempest-TestServerMultinode-1995699591-subnet', u'enable_dhcp': True, u'network_id': u'd5f32d2d-da1e-4cd7-986a-9e2c9ee88043', u'tenant_id': u'73cd786da110496bb187ab49f3e98a36', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'10.100.0.2', u'end': u'10.100.0.14'}], u'gateway_ip': u'10.100.0.1', u'revision_number': 2, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'10.100.0.0/28', u'project_id': u'73cd786da110496bb187ab49f3e98a36', u'id': u'681d622c-7c92-4000-920e-f08d9ee7d3f8'}, {u'name': u'tempest-TestServerMultinode-1321786727-subnet', u'enable_dhcp': True, u'network_id': u'6541dfde-cfe2-4adb-a18f-43cbfc318002', u'tenant_id': u'1cd47a7443f8496f8f7637027aae4f1f', u'dns_nameservers': [], u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'10.100.0.2', u'end': u'10.100.0.14'}], u'gateway_ip': u'10.100.0.1', u'revision_number': 2, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'10.100.0.0/28', u'project_id': u'1cd47a7443f8496f8f7637027aae4f1f', u'id': u'7c00a13a-b3c8-4870-8836-6c6bb6f5db94'}]}
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/87db5eb2-45fd-4d2f-83bf-9e8ce439354e, 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=https://192.16.1.222:9696, headers={u'X-Auth-Token': 'gAAAAABaaS7Kqh_vNflHtQtS_gA2o67k_6aGDcHH9H5uilH5K3nFUuuCgd6WElYszToNjOdrgdP01oumeellwt8_bj99NKCtov2fW0PxMQaAEE-Z5YIZyf9k5LDnK2fm8Lg4GKFVMOwj0VGaCNilX_f31MKkDjZqDmvpHzH8VDWNc3ifeP-WGak'}, 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.16.1.222:8080, headers={u'Content-Type': u'application/json'}, cookies=None, auth=<requests.auth.HTTPBasicAuth object at 0x7f55949b1b50>, 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/6bb84780-2848-4bf9-bcd1-49f549a408ca, 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}
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
Delete Request using : alias=OSSession, uri=/v2.0/networks/6bb84780-2848-4bf9-bcd1-49f549a408ca, 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" : "4822e0fd-bf26-4755-aab5-470ffe022d1a",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"name" : "tempest-net-92023b3f-e70c-496f-8249-2e910175dc8c",
"admin_state_up" : true,
"status" : "ACTIVE",
"shared" : false,
"router:external" : false,
"provider:network_type" : "vxlan",
"provider:segmentation_id" : "15",
"segments" : [ ]
}, {
"id" : "b2088f2d-70b9-4c4e-ab91-76005e2f1ce2",
"tenant_id" : "6a99ed6b0f50496fa1de7553a636a39d",
"project_id" : "6a99ed6b0f50496fa1de7553a636a39d",
"name" : "tempest-TestVolumeBootPatternV2-1130054844-network",
"admin_state_up" : true,
"status" : "ACTIVE",
"shared" : false,
"router:external" : false,
"provider:network_type" : "vxlan",
"provider:segmentation_id" : "83",
"segments" : [ ]
}, {
"id" : "d5f32d2d-da1e-4cd7-986a-9e2c9ee88043",
"tenant_id" : "73cd786da110496bb187ab49f3e98a36",
"project_id" : "73cd786da110496bb187ab49f3e98a36",
"name" : "tempest-TestServerMultinode-1995699591-network",
"admin_state_up" : true,
"status" : "ACTIVE",
"shared" : false,
"router:external" : false,
"provider:network_type" : "vxlan",
"provider:segmentation_id" : "47",
"segments" : [ ]
}, {
"id" : "bfa60317-afac-4510-9801-f97cb08057b6",
"tenant_id" : "aab09451e4964303a290d3e373586a28",
"project_id" : "aab09451e4964303a290d3e373586a28",
"revision_number" : 6,
"name" : "ext-net",
"admin_state_up" : true,
"status" : "ACTIVE",
"shared" : false,
"router:external" : true,
"provider:network_type" : "flat",
"provider:physical_network" : "physnet",
"segments" : [ ]
}, {
"id" : "8785c2b5-3260-4a17-8b76-b2a3150e2afa",
"tenant_id" : "d43f99f22ccf4b8c934316e97db16d30",
"project_id" : "d43f99f22ccf4b8c934316e97db16d30",
"name" : "tempest-TestVolumeBootPattern-1173746198-network",
"admin_state_up" : true,
"status" : "ACTIVE",
"shared" : false,
"router:external" : false,
"provider:network_type" : "vxlan",
"provider:segmentation_id" : "22",
"segments" : [ ]
}, {
"id" : "6541dfde-cfe2-4adb-a18f-43cbfc318002",
"tenant_id" : "1cd47a7443f8496f8f7637027aae4f1f",
"project_id" : "1cd47a7443f8496f8f7637027aae4f1f",
"name" : "tempest-TestServerMultinode-1321786727-network",
"admin_state_up" : true,
"status" : "ACTIVE",
"shared" : false,
"router:external" : false,
"provider:network_type" : "vxlan",
"provider:segmentation_id" : "33",
"segments" : [ ]
}, {
"id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
"tenant_id" : "bd8db3a82b304083a8b3b3fd46401142",
"project_id" : "bd8db3a8-2b30-4083-a8b3-b3fd46401142",
"name" : "Sync Canary Network",
"admin_state_up" : false,
"status" : "ACTIVE",
"shared" : false,
"router:external" : false,
"provider:network_type" : "flat",
"segments" : [ ]
} ]
}
To JSON using : pretty_print=False
${ODLResult} = {u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'name': u'tempest-net-92023b3f-e70c-496f-8249-2e910175dc8c', u'admin_state_up': True, u'tenant_id': u'aab09451e4964303a290d3e373586a28...
Logs the given message with the given level.
${ODLResult}
{u'networks': [{u'status': u'ACTIVE', u'router:external': False, u'name': u'tempest-net-92023b3f-e70c-496f-8249-2e910175dc8c', u'admin_state_up': True, u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'segments': [], u'provider:network_type': u'vxlan', u'shared': False, u'project_id': u'aab09451e4964303a290d3e373586a28', u'id': u'4822e0fd-bf26-4755-aab5-470ffe022d1a', u'provider:segmentation_id': u'15'}, {u'status': u'ACTIVE', u'router:external': False, u'name': u'tempest-TestVolumeBootPatternV2-1130054844-network', u'admin_state_up': True, u'tenant_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'segments': [], u'provider:network_type': u'vxlan', u'shared': False, u'project_id': u'6a99ed6b0f50496fa1de7553a636a39d', u'id': u'b2088f2d-70b9-4c4e-ab91-76005e2f1ce2', u'provider:segmentation_id': u'83'}, {u'status': u'ACTIVE', u'router:external': False, u'name': u'tempest-TestServerMultinode-1995699591-network', u'admin_state_up': True, u'tenant_id': u'73cd786da110496bb187ab49f3e98a36', u'segments': [], u'provider:network_type': u'vxlan', u'shared': False, u'project_id': u'73cd786da110496bb187ab49f3e98a36', u'id': u'd5f32d2d-da1e-4cd7-986a-9e2c9ee88043', u'provider:segmentation_id': u'47'}, {u'status': u'ACTIVE', u'router:external': True, u'name': u'ext-net', u'provider:physical_network': u'physnet', u'admin_state_up': True, u'tenant_id': u'aab09451e4964303a290d3e373586a28', u'segments': [], u'provider:network_type': u'flat', u'revision_number': 6, u'shared': False, u'project_id': u'aab09451e4964303a290d3e373586a28', u'id': u'bfa60317-afac-4510-9801-f97cb08057b6'}, {u'status': u'ACTIVE', u'router:external': False, u'name': u'tempest-TestVolumeBootPattern-1173746198-network', u'admin_state_up': True, u'tenant_id': u'd43f99f22ccf4b8c934316e97db16d30', u'segments': [], u'provider:network_type': u'vxlan', u'shared': False, u'project_id': u'd43f99f22ccf4b8c934316e97db16d30', u'id': u'8785c2b5-3260-4a17-8b76-b2a3150e2afa', u'provider:segmentation_id': u'22'}, {u'status': u'ACTIVE', u'router:external': False, u'name': u'tempest-TestServerMultinode-1321786727-network', u'admin_state_up': True, u'tenant_id': u'1cd47a7443f8496f8f7637027aae4f1f', u'segments': [], u'provider:network_type': u'vxlan', u'shared': False, u'project_id': u'1cd47a7443f8496f8f7637027aae4f1f', u'id': u'6541dfde-cfe2-4adb-a18f-43cbfc318002', u'provider:segmentation_id': u'33'}, {u'status': u'ACTIVE', u'router:external': False, u'name': u'Sync Canary Network', u'admin_state_up': False, u'tenant_id': u'bd8db3a82b304083a8b3b3fd46401142', u'segments': [], u'provider:network_type': u'flat', u'shared': False, u'project_id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142', u'id': u'bd8db3a8-2b30-4083-a8b3-b3fd46401142'}]}
Send a GET request on the session object found using the
ODLSession
${NEUTRON_NETWORKS_API}/${NETID}
${resp}
Get Request using : alias=ODLSession, uri=/controller/nb/v2/neutron/networks/6bb84780-2848-4bf9-bcd1-49f549a408ca, 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
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)