24 lines
498 B
Python
24 lines
498 B
Python
run("Diagnostics/WSCdata")
|
|
run("Devices/Elements")
|
|
|
|
ws = "SINDI01-DWSC090"
|
|
|
|
|
|
current_state = {}
|
|
blms = WSC_data.get(ws, {})["BLM"]
|
|
|
|
for blm in blms:
|
|
current_state[blm] = is_blm_enabled(blm)
|
|
|
|
|
|
for blm, state in current_state.items():
|
|
if state != (False, False):
|
|
#set_blm_enabled(False, name)
|
|
print "Disable: ", blm
|
|
|
|
for blm, state in current_state.items():
|
|
if state != (False, False):
|
|
#set_blm_enabled(state, blm)
|
|
print "Restore: ", blm, state
|
|
|