Revision d793786b snf-cyclades-app/synnefo/db/models.py
b/snf-cyclades-app/synnefo/db/models.py | ||
---|---|---|
764 | 764 |
manager = pools.BridgePool |
765 | 765 |
|
766 | 766 |
def __unicode__(self): |
767 |
return u"<Bridge Pool id:%s>" % self.id
|
|
767 |
return u"<BridgePool id:%s>" % self.id |
|
768 | 768 |
|
769 | 769 |
|
770 | 770 |
class MacPrefixPoolTable(PoolTable): |
771 | 771 |
manager = pools.MacPrefixPool |
772 | 772 |
|
773 | 773 |
def __unicode__(self): |
774 |
return u"<MAC Prefix Pool id:%s>" % self.id
|
|
774 |
return u"<MACPrefixPool id:%s>" % self.id
|
|
775 | 775 |
|
776 | 776 |
|
777 | 777 |
class IPPoolTable(PoolTable): |
778 | 778 |
manager = pools.IPPool |
779 | 779 |
|
780 |
def __unicode__(self): |
|
781 |
return u"<IPv4AdressPool, network: %s>" % self.network |
|
782 |
|
|
780 | 783 |
|
781 | 784 |
@contextmanager |
782 | 785 |
def pooled_rapi_client(obj): |
Also available in: Unified diff