Simplify network workflows to use a single IOM IP address
Either IOM can reach the other via Redfish, so there's no need to collect separate IOM1/IOM2 addresses. Firmware update and system check now prompt for one IP per shelf with a note that either IOM's address works. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -158,26 +158,9 @@ def _check_via_network():
|
||||
print()
|
||||
password = prompt_password()
|
||||
print()
|
||||
ip = prompt_ip(" IOM IP address (either IOM1 or IOM2)")
|
||||
|
||||
print(" Which IOM(s) do you want to check?")
|
||||
print(f" {_c(C.BOLD, '1')} IOM1 only")
|
||||
print(f" {_c(C.BOLD, '2')} IOM2 only")
|
||||
print(f" {_c(C.BOLD, '3')} Both IOM1 and IOM2")
|
||||
print()
|
||||
|
||||
while True:
|
||||
choice = prompt("Select [1/2/3]")
|
||||
if choice in ("1", "2", "3"):
|
||||
break
|
||||
warn("Please enter 1, 2, or 3.")
|
||||
|
||||
iom_list = []
|
||||
if choice in ("1", "3"):
|
||||
ip1 = prompt_ip(" IOM1 IP address")
|
||||
iom_list.append(("IOM1", ip1))
|
||||
if choice in ("2", "3"):
|
||||
ip2 = prompt_ip(" IOM2 IP address")
|
||||
iom_list.append(("IOM2", ip2))
|
||||
iom_list = [("IOM1", ip), ("IOM2", ip)]
|
||||
|
||||
rule("Querying IOM Status")
|
||||
info("Querying network settings and firmware versions over the network...")
|
||||
|
||||
Reference in New Issue
Block a user