The ceilometer.network.statistics.opendaylight.driver Module

The ceilometer.network.statistics.opendaylight.driver Module

class ceilometer.network.statistics.opendaylight.driver.OpenDayLightDriver(conf)[source]

Bases: ceilometer.network.statistics.driver.Driver

Driver of network info collector from OpenDaylight.

This driver uses resources in “pipeline.yaml”. Resource requires below conditions:

  • resource is url
  • scheme is “opendaylight”

This driver can be configured via query parameters. Supported parameters:

  • scheme: The scheme of request url to OpenDaylight REST API endpoint. (default http)
  • auth: Auth strategy of http. This parameter can be set basic and digest.(default None)
  • user: This is username that is used by auth.(default None)
  • password: This is password that is used by auth.(default None)
  • container_name: Name of container of OpenDaylight.(default “default”) This parameter allows multi values.

e.g.:

opendaylight://127.0.0.1:8080/controller/nb/v2?container_name=default&
container_name=egg&auth=basic&user=admin&password=admin&scheme=http

In this case, the driver send request to below URLs:

dict_to_keyval(value, key_base=None)[source]

Expand a given dict to its corresponding key-value pairs.

Generated keys are fully qualified, delimited using dot notation. ie. key = ‘key.child_key.grandchild_key[0]’

get_sample_data(meter_name, parse_url, params, cache)[source]
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.