Revision c82f57ad snf-cyclades-app/synnefo/api/management/commands/network-modify.py

b/snf-cyclades-app/synnefo/api/management/commands/network-modify.py
176 176
                msg = "Can not remove. There are still connected VMs to this"\
177 177
                      " network"
178 178
                raise CommandError(msg)
179
            network.action = "DESTROY"
180
            network.save()
181 179
            backend_mod.delete_network(network, backend, disconnect=True)
182 180
            msg = "Sent job to delete network '%s' from backend '%s'\n"
183 181
            self.stdout.write(msg % (network, backend))

Also available in: Unified diff