Revision 8be50626 kamaki/cli/commands/cyclades.py
b/kamaki/cli/commands/cyclades.py | ||
---|---|---|
48 | 48 |
server_cmds = CommandTree('server', 'Cyclades/Compute API server commands') |
49 | 49 |
flavor_cmds = CommandTree('flavor', 'Cyclades/Compute API flavor commands') |
50 | 50 |
network_cmds = CommandTree('network', 'Cyclades/Compute API network commands') |
51 |
floatingip_cmds = CommandTree( |
|
52 |
'floatingip', 'Cyclades/Compute API floating ip commands') |
|
53 |
_commands = [server_cmds, flavor_cmds, network_cmds, floatingip_cmds] |
|
51 |
_commands = [server_cmds, flavor_cmds, network_cmds] |
|
54 | 52 |
|
55 | 53 |
|
56 | 54 |
about_authentication = '\nUser Authentication:\ |
... | ... | |
861 | 859 |
self._run(network_id=network_id, currect_status=currect_status) |
862 | 860 |
|
863 | 861 |
|
864 |
@command(floatingip_cmds) |
|
865 |
class floatingip_pools(_init_cyclades, _optional_json): |
|
862 |
@command(server_cmds) |
|
863 |
class server_ip(_init_cyclades): |
|
864 |
"""Manage floating IPs for the servers""" |
|
865 |
|
|
866 |
|
|
867 |
@command(server_cmds) |
|
868 |
class server_ip_pools(_init_cyclades, _optional_json): |
|
866 | 869 |
"""List all floating pools of floating ips""" |
867 | 870 |
|
868 | 871 |
@errors.generic.all |
... | ... | |
876 | 879 |
self._run() |
877 | 880 |
|
878 | 881 |
|
879 |
@command(floatingip_cmds)
|
|
880 |
class floatingip_list(_init_cyclades, _optional_json):
|
|
882 |
@command(server_cmds)
|
|
883 |
class server_ip_list(_init_cyclades, _optional_json):
|
|
881 | 884 |
"""List all floating ips""" |
882 | 885 |
|
883 | 886 |
@errors.generic.all |
... | ... | |
891 | 894 |
self._run() |
892 | 895 |
|
893 | 896 |
|
894 |
@command(floatingip_cmds)
|
|
895 |
class floatingip_info(_init_cyclades, _optional_json):
|
|
897 |
@command(server_cmds)
|
|
898 |
class server_ip_info(_init_cyclades, _optional_json):
|
|
896 | 899 |
"""A floating IPs' details""" |
897 | 900 |
|
898 | 901 |
@errors.generic.all |
... | ... | |
905 | 908 |
self._run(ip=ip) |
906 | 909 |
|
907 | 910 |
|
908 |
@command(floatingip_cmds)
|
|
909 |
class floatingip_create(_init_cyclades, _optional_json):
|
|
911 |
@command(server_cmds)
|
|
912 |
class server_ip_create(_init_cyclades, _optional_json):
|
|
910 | 913 |
"""Create a new floating IP""" |
911 | 914 |
|
912 | 915 |
arguments = dict( |
... | ... | |
924 | 927 |
self._run(ip=requested_address) |
925 | 928 |
|
926 | 929 |
|
927 |
@command(floatingip_cmds)
|
|
928 |
class floatingip_delete(_init_cyclades, _optional_output_cmd):
|
|
930 |
@command(server_cmds)
|
|
931 |
class server_ip_delete(_init_cyclades, _optional_output_cmd):
|
|
929 | 932 |
"""Delete a floating ip""" |
930 | 933 |
|
931 | 934 |
@errors.generic.all |
... | ... | |
956 | 959 |
|
957 | 960 |
@command(server_cmds) |
958 | 961 |
class server_ip_detach(_init_cyclades): |
959 |
"""detach_floating_ip_to_server
|
|
962 |
"""Detach floating IP from server
|
|
960 | 963 |
""" |
961 | 964 |
|
962 | 965 |
@errors.generic.all |
Also available in: Unified diff