Revision 6176e251 snf-cyclades-app/synnefo/logic/networks.py

b/snf-cyclades-app/synnefo/logic/networks.py
147 147
    network.action = "DESTROY"
148 148
    # Mark network as drained to prevent automatic allocation of
149 149
    # public/floating IPs while the network is being deleted
150
    network.drained = True
150
    if network.public:
151
        network.drained = True
151 152
    network.save()
152 153

  
153 154
    # Delete network to all backends that exists

Also available in: Unified diff