~ubuntu-branches/ubuntu/vivid/ceilometer/vivid

« back to all changes in this revision

Viewing changes to ceilometer/network/statistics/opendaylight/client.py

  • Committer: Package Import Robot
  • Author(s): James Page, Corey Bryant, James Page
  • Date: 2015-02-19 14:59:07 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20150219145907-9jojybdsl64zcn14
Tags: 2015.1~b2-0ubuntu1
[ Corey Bryant ]
* New upstream release.
  - d/control: Align requirements with upstream.
  - d/p/skip-test.patch: Rebased.

[ James Page ]
* d/rules,d/p/skip-gabbi.patch: Skip tests that rely on python-gabbi until
  packaging and MIR is complete.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
import abc
17
17
 
18
 
from oslo.config import cfg
 
18
from oslo_config import cfg
19
19
import requests
20
20
from requests import auth
21
21
import six
32
32
 
33
33
 
34
34
@six.add_metaclass(abc.ABCMeta)
35
 
class _Base():
 
35
class _Base(object):
36
36
    """Base class of OpenDaylight REST APIs Clients."""
37
37
 
38
38
    @abc.abstractproperty
154
154
        return self.request('/hosts/inactive', container_name)
155
155
 
156
156
 
157
 
class Client():
 
157
class Client(object):
158
158
 
159
159
    def __init__(self, endpoint, params):
160
160
        self.statistics = StatisticsAPIClient(self)