Revision 11cc86af

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

  
366 366

  
367 367
@command(port_cmds)
368
class port_info(_init_network, _optional_json):
369
    """Get details about a port"""
368
class port_list(_init_network, _optional_json):
369
    """List all ports"""
370 370

  
371 371
    @errors.generic.all
372 372
    @errors.cyclades.connection
373
    def _run(self, port_id):
374
        net = self.client.get_port_details(port_id)
373
    def _run(self):
374
        net = self.client.list_ports()
375 375
        self._print(net, self.print_dict)
376 376

  
377
    def main(self, port_id):
377
    def main(self):
378 378
        super(self.__class__, self)._run()
379
        self._run(port_id=port_id)
379
        self._run()
380 380

  
381 381

  
382 382
@command(port_cmds)

Also available in: Unified diff