Revision 98cc8237 snf-cyclades-app/synnefo/db/models.py
b/snf-cyclades-app/synnefo/db/models.py | ||
---|---|---|
508 | 508 |
if self.operstate == 'DELETED': |
509 | 509 |
self.deleted = True |
510 | 510 |
|
511 |
if self.mac_prefix: |
|
512 |
MacPrefixPool.set_available(self.mac_prefix) |
|
513 |
|
|
514 |
if self.link and self.type == 'PRIVATE_VLAN': |
|
515 |
BridgePool.set_available(self.link) |
|
516 |
|
|
511 | 517 |
self.save() |
512 | 518 |
|
513 | 519 |
def save(self, *args, **kwargs): |
Also available in: Unified diff