Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ def required_bios_settings(pxe_interface: str) -> dict:
return {
"PxeDev1EnDis": "Enabled",
"PxeDev1Interface": pxe_interface,
"HttpDev1Interface": pxe_interface,
"TimeZone": "UTC",
}

Expand Down
8 changes: 6 additions & 2 deletions python/understack-workflows/understack_workflows/discover.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,15 @@ def discover_chassis_info(bmc: Bmc) -> ChassisInfo:

attempts_remaining = LLDP_DISCOVERY_ATTEMPTS
while len(device_info.neighbors) < MIN_REQUIRED_NEIGHBOR_COUNT:
lldp_table = {
i.name: f"{i.remote_switch_mac_address}/{i.remote_switch_port_name}"
for i in device_info.interfaces
}
logger.info(
"%s does not have enough LLDP neighbors (saw %d), need at least %d. ",
"%s does not have enough LLDP neighbors, need %d or more, got %s",
bmc,
len(device_info.neighbors),
MIN_REQUIRED_NEIGHBOR_COUNT,
lldp_table,
)
if not attempts_remaining:
raise Exception(
Expand Down