parameters: (self, ports, info)
docstring: Print port info if the transceiver doesn't have any
docstring_summary: Print port info if the transceiver doesn't have any
docstring_tokens: Print port info if the transceiver doesn t have any
function: def _print_transceiver_ports(self, ports, info):
          """Print port info if the transceiver doesn't have any"""
  
          present = info.present if info else None
  
          for port in ports:
              attrs = utils.get_status_strs(self._status_resp[port], present)
              print(
                  "Port: {:>2}  Status: {:<8}  Link: {:<4}  Transceiver: {}".format(
                      port, attrs["admin_status"], attrs["link_status"], attrs["present"]
                  )
              )
function_tokens: def _print_transceiver_ports ( self , ports , info ) : present = info . present if info else None for port in ports : attrs = utils . get_status_strs ( self . _status_resp [ port ] , present ) print ( "Port: {:>2}  Status: {:<8}  Link: {:<4}  Transceiver: {}" . format ( port , attrs [ "admin_status" ] , attrs [ "link_status" ] , attrs [ "present" ] ) )