Commit 182a1fd2 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

cyclades: Fix str representation for pool objects

parent 33fe9eb8
......@@ -764,19 +764,22 @@ class BridgePoolTable(PoolTable):
manager = pools.BridgePool
def __unicode__(self):
return u"<Bridge Pool id:%s>" % self.id
return u"<BridgePool id:%s>" % self.id
class MacPrefixPoolTable(PoolTable):
manager = pools.MacPrefixPool
def __unicode__(self):
return u"<MAC Prefix Pool id:%s>" % self.id
return u"<MACPrefixPool id:%s>" % self.id
class IPPoolTable(PoolTable):
manager = pools.IPPool
def __unicode__(self):
return u"<IPv4AdressPool, network: %s>" % self.network
@contextmanager
def pooled_rapi_client(obj):
......
......@@ -172,6 +172,9 @@ class PoolManager(object):
def value_to_index(self, value):
raise NotImplementedError
def __repr__(self):
return repr(self.pool_table)
class EmptyPool(Exception):
pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment