Revision 5d5d8f19
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)) |
b/snf-cyclades-app/synnefo/ui/templates/partials/ips.html | ||
---|---|---|
64 | 64 |
data-rv-class-isactive="model.can_disconnect" |
65 | 65 |
data-rv-class-selected="model.actions.disconnect|intEq 1" |
66 | 66 |
data-rv-on-click="view.set_disconnect_confirm"> |
67 |
<a>Dettach</a>
|
|
67 |
<a>Detach</a> |
|
68 | 68 |
<div class="confirm-single clearfix"> |
69 | 69 |
<span class="yes" data-rv-on-click="view.disconnect"> |
70 | 70 |
{% trans "Confirm" %} |
Also available in: Unified diff