Skip to content

serviceability: require Activated status for UnlinkDeviceInterface#2871

Open
martinsander00 wants to merge 1 commit intomainfrom
ms/2230
Open

serviceability: require Activated status for UnlinkDeviceInterface#2871
martinsander00 wants to merge 1 commit intomainfrom
ms/2230

Conversation

@martinsander00
Copy link
Contributor

Resolves: #2230

Summary

  • UnlinkDeviceInterface previously only rejected interfaces in Deleting status, allowing unlinking from any other status including Pending
  • Now requires iface.status == Activated before unlinking, returning InvalidStatus otherwise
  • All existing tests updated to activate interfaces before unlinking them

Testing Verification

  • New dedicated integration test test_unlink_device_interface_requires_activated that verifies unlinking a Pending interface fails with InvalidStatus (0x7) and succeeds after activation
  • Updated existing integration tests (global, interface, link_dzx, link_wan, telemetry) to activate interfaces before unlinking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In UnlinkDeviceInterface, verify that iface.status == Activated

1 participant