def get_fc_hbas_info():
 hbas = get_fc_hbas()
 hbas_info = []
 for hba in hbas:
  wwpn = hba['port_name'].replace('0x', '')
  wwnn = hba['node_name'].replace('0x', '')
  device_path = hba['ClassDevicepath']
  device = hba['ClassDevice']
  hbas_info.append({'port_name': wwpn, 'node_name': wwnn, 'host_device': device, 'device_path': device_path})
 return hbas_info

def get_fc_hbas_info ( ) : hbas = get_fc_hbas ( ) hbas_info = [ ] for hba in hbas : wwpn = hba [ 'port_name' ] . replace ( '0x' , '' ) wwnn = hba [ 'node_name' ] . replace ( '0x' , '' ) device_path = hba [ 'ClassDevicepath' ] device = hba [ 'ClassDevice' ] hbas_info . append ( { 'port_name' : wwpn , 'node_name' : wwnn , 'host_device' : device , 'device_path' : device_path } ) return hbas_info
get fibre channel wwns and device paths from the system .