If EAPOL/DHCP state machine fails cancel to validation loop
Change-Id: I88910658d896d2a2e8e7c3d8dc8ffe19d4555ab4
diff --git a/internal/bbsim/devices/services.go b/internal/bbsim/devices/services.go
index 95661c8..8c6641a 100644
--- a/internal/bbsim/devices/services.go
+++ b/internal/bbsim/devices/services.go
@@ -176,6 +176,7 @@
"EapolState": service.EapolState.Current(),
}).Warn("EAPOL failed, resetting EAPOL State")
_ = service.EapolState.Event("auth_failed")
+ break loop
}
}
@@ -225,6 +226,7 @@
"DHCPState": service.DHCPState.Current(),
}).Warn("DHCP failed, resetting DHCP State")
_ = service.DHCPState.Event("dhcp_failed")
+ break loop
}
}