def get_fc_wwnns():
 hbas = get_fc_hbas()
 wwnns = []
 if hbas:
  for hba in hbas:
   if (hba['port_state'] == 'Online'):
    wwnn = hba['node_name'].replace('0x', '')
    wwnns.append(wwnn)
 return wwnns

def get_fc_wwnns ( ) : hbas = get_fc_hbas ( ) wwnns = [ ] if hbas : for hba in hbas : if ( hba [ 'port_state' ] == 'Online' ) : wwnn = hba [ 'node_name' ] . replace ( '0x' , '' ) wwnns . append ( wwnn ) return wwnns
get fibre channel wwnns from the system .