Comment 1 for bug 1469846

Revision history for this message
David Britton (dpb) wrote :

in ucsm.py, adding the following method:

def lan_boot_options(api, server):
    """..."""
    service_profile = get_service_profile(api, server)
    boot_profile_dn = service_profile.get('operBootPolicyName')
    response = api.config_resolve_children(boot_profile_dn)
    return response.xpath('//outConfigs/lsbootLan')

and changing 'probe_servers' to:

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

Works around the issue.