Revision f261965c

b/kamaki/cli/commands/network.py
407 407

  
408 408

  
409 409
@command(port_cmds)
410
class port_delete(_init_network, _optional_output_cmd):
410
class port_delete(_init_network, _optional_output_cmd, _port_wait):
411 411
    """Delete a port (== disconnect server from network)"""
412 412

  
413
    arguments = dict(
414
        wait=FlagArgument('Wait port to be established', ('-w', '--wait'))
415
    )
416

  
413 417
    @errors.generic.all
414 418
    @errors.cyclades.connection
415 419
    def _run(self, port_id):
416 420
        r = self.client.delete_port(port_id)
421
        if self['wait']:
422
            self._wait(r['id'], r['status'])
417 423
        self._optional_output(r)
418 424

  
419 425
    def main(self, port_id):

Also available in: Unified diff