Revision 3e5675f0 snf-cyclades-app/synnefo/db/models.py
b/snf-cyclades-app/synnefo/db/models.py | ||
---|---|---|
498 | 498 |
log.info("Network %r deleted. Releasing link %r mac_prefix %r", |
499 | 499 |
self.id, self.mac_prefix, self.link) |
500 | 500 |
self.deleted = True |
501 |
if self.mac_prefix: |
|
501 |
if self.mac_prefix and self.type == 'PRIVATE_MAC_FILTERED':
|
|
502 | 502 |
mac_pool = MacPrefixPoolTable.get_pool() |
503 | 503 |
mac_pool.put(self.mac_prefix) |
504 | 504 |
mac_pool.save() |
Also available in: Unified diff