Revert "Add delays and retry logic for SetOption verification"

This reverts commit 794eb4319b.
This commit is contained in:
Mike Geppert 2026-01-07 19:57:47 -06:00
parent 794eb4319b
commit c1eb707519

View File

@ -180,18 +180,8 @@ class ConsoleSettingsManager:
self.logger.error(f"{device_name}: Failed to set {param_name} after 3 attempts")
return False
# Wait for device to process the command before verifying
time.sleep(0.5)
# Verify the command was applied (if possible)
verified = self._verify_command(device_ip, device_name, param_name, param_value)
if not verified:
# Wait a bit longer and try verification again
time.sleep(0.5)
verified = self._verify_command(device_ip, device_name, param_name, param_value)
if not verified:
if not self._verify_command(device_ip, device_name, param_name, param_value):
self.logger.warning(f"{device_name}: Verification failed for {param_name}")
# Don't return False here - some commands can't be verified
@ -213,9 +203,7 @@ class ConsoleSettingsManager:
if not success:
self.logger.warning(f"{device_name}: Failed to enable rule{rule_number}")
time.sleep(0.5) # Wait after enabling rule
time.sleep(0.5) # Delay between commands to avoid overwhelming device
time.sleep(0.3) # Brief delay between commands
return True
def _verify_command(self, device_ip: str, device_name: str,