Skip to content

Allow port toggle for unconnected ports - #305

Merged
Gerrit91 merged 7 commits into
masterfrom
allow-port-toggle-for-unconnected-ports
Jul 17, 2026
Merged

Allow port toggle for unconnected ports#305
Gerrit91 merged 7 commits into
masterfrom
allow-port-toggle-for-unconnected-ports

Conversation

@iljarotar

@iljarotar iljarotar commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Description

depends on metal-stack/metal-go#228

Restricting port toggle to the connected ports doesn't make sense. If a new machine is to be added and the port was down previously it should be possible to take it up. Otherwise the machine cannot register and hence the machine connection will not be known to the metal-api.

TODO

  • fix actual and desired state of output. Currently machine connection is used to get actual status which is nil if there is no machine connected.

@iljarotar
iljarotar requested a review from a team as a code owner July 3, 2026 09:10
@metal-robot metal-robot Bot added this to Development Jul 3, 2026
@iljarotar
iljarotar marked this pull request as draft July 3, 2026 14:53
@iljarotar iljarotar moved this to In Progress in Development Jul 13, 2026
@iljarotar
iljarotar marked this pull request as ready for review July 15, 2026 13:53
@iljarotar

Copy link
Copy Markdown
Contributor Author

The tests are weird. On a switch update a mocked response is returned and the want is also the same switch as used for the response. Adding a wrong RoomID should break the test but it doesn't. Not sure what's being tested here.

@Gerrit91
Gerrit91 merged commit 5765fc1 into master Jul 17, 2026
5 checks passed
@Gerrit91
Gerrit91 deleted the allow-port-toggle-for-unconnected-ports branch July 17, 2026 11:17
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Development Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants