def list_slotnames(host=None, admin_username=None, admin_password=None):
 slotraw = __execute_ret('getslotname', host=host, admin_username=admin_username, admin_password=admin_password)
 if (slotraw['retcode'] != 0):
  return slotraw
 slots = {}
 stripheader = True
 for l in slotraw['stdout'].splitlines():
  if l.startswith('<'):
   stripheader = False
   continue
  if stripheader:
   continue
  fields = l.split()
  slots[fields[0]] = {}
  slots[fields[0]]['slot'] = fields[0]
  if (len(fields) > 1):
   slots[fields[0]]['slotname'] = fields[1]
  else:
   slots[fields[0]]['slotname'] = ''
  if (len(fields) > 2):
   slots[fields[0]]['hostname'] = fields[2]
  else:
   slots[fields[0]]['hostname'] = ''
 return slots

def list_slotnames ( host = None , admin_username = None , admin_password = None ) : slotraw = __execute_ret ( 'getslotname' , host = host , admin_username = admin_username , admin_password = admin_password ) if ( slotraw [ 'retcode' ] != 0 ) : return slotraw slots = { } stripheader = True for l in slotraw [ 'stdout' ] . splitlines ( ) : if l . startswith ( '<' ) : stripheader = False continue if stripheader : continue fields = l . split ( ) slots [ fields [ 0 ] ] = { } slots [ fields [ 0 ] ] [ 'slot' ] = fields [ 0 ] if ( len ( fields ) > 1 ) : slots [ fields [ 0 ] ] [ 'slotname' ] = fields [ 1 ] else : slots [ fields [ 0 ] ] [ 'slotname' ] = '' if ( len ( fields ) > 2 ) : slots [ fields [ 0 ] ] [ 'hostname' ] = fields [ 2 ] else : slots [ fields [ 0 ] ] [ 'hostname' ] = '' return slots
list the names of all slots in the chassis .