def probe_servers(api):
"""Retrieve the UUID and MAC addresses for servers from the UCS Manager."""
servers = get_servers(api)
server_list = []
for s in servers:
if not get_macs(api, s): continue
if not lan_boot_options(api, s): continue server_list.append((s,get_macs(api,s)))
return server_list
in ucsm.py, adding the following method:
def lan_boot_ options( api, server): profile( api, server) profile. get('operBootPo licyName' ) resolve_ children( boot_profile_ dn) xpath(' //outConfigs/ lsbootLan' )
"""..."""
service_profile = get_service_
boot_profile_dn = service_
response = api.config_
return response.
and changing 'probe_servers' to:
def probe_servers(api):
continue options( api, s):
continue
server_ list.append( (s,get_ macs(api, s)))
"""Retrieve the UUID and MAC addresses for servers from the UCS Manager."""
servers = get_servers(api)
server_list = []
for s in servers:
if not get_macs(api, s):
if not lan_boot_
return server_list
Works around the issue.