Revision 5d5d8f19 snf-cyclades-app/synnefo/logic/management/commands/floating-ip-detach.py
b/snf-cyclades-app/synnefo/logic/management/commands/floating-ip-detach.py | ||
---|---|---|
39 | 39 |
|
40 | 40 |
|
41 | 41 |
class Command(BaseCommand): |
42 |
help = "Dettach a floating IP from a VM or router"
|
|
42 |
help = "Detach a floating IP from a VM or router" |
|
43 | 43 |
|
44 | 44 |
@common.convert_api_faults |
45 | 45 |
def handle(self, *args, **options): |
... | ... | |
58 | 58 |
nic = floating_ip.nic |
59 | 59 |
vm = nic.machine |
60 | 60 |
servers.delete_port(nic) |
61 |
self.stdout.write("Dettached floating IP %s from %s.\n"
|
|
61 |
self.stdout.write("Detached floating IP %s from %s.\n" |
|
62 | 62 |
% (floating_ip_id, vm)) |
Also available in: Unified diff