server_cmds = CommandTree('server', 'Cyclades/Compute API server commands')
flavor_cmds = CommandTree('flavor', 'Cyclades/Compute API flavor commands')
-network_cmds = CommandTree('network', 'Cyclades/Compute API network commands')
-ip_cmds = CommandTree('ip', 'Cyclades/Compute API floating ip commands')
-_commands = [server_cmds, flavor_cmds, network_cmds]
+_commands = [server_cmds, flavor_cmds]
about_authentication = '\nUser Authentication:\
@errors.generic.all
@errors.cyclades.connection
def _run(self, ip_id):
- self._print(self.client.get_floatingip_details(ip_id))
+ self._print(
+ self.client.get_floatingip_details(ip_id), self.print_dict)
def main(self, ip_id):
super(self.__class__, self)._run()
"""Unreserve an IP (also delete the port, if attached)"""
def _run(self, ip_id):
- self._optional_output(self.client.floatingip_delete(ip_id))
+ self._optional_output(self.client.delete_floatingip(ip_id))
def main(self, ip_id):
super(self.__class__, self)._run()