Skip to content

Add switch connected-machines endpoint#93

Open
iljarotar wants to merge 8 commits intomainfrom
switch-connected-machines
Open

Add switch connected-machines endpoint#93
iljarotar wants to merge 8 commits intomainfrom
switch-connected-machines

Conversation

@iljarotar
Copy link
Contributor

Description

None

@iljarotar iljarotar requested a review from a team as a code owner February 2, 2026 10:22
@metal-robot metal-robot bot added this to Development Feb 2, 2026
Comment on lines +172 to +197
message SwitchNicWithMachine {
// Nic is the switch nic the machine is connected to.
SwitchNic nic = 1;
// Uuid of the machine.
string uuid = 2;
// Size of the machine.
string size = 3;
// AllocationHostname if machine is allocated.
string allocation_hostname = 4;
// VpnConnected indicated whether the machine is connected to a VPN.
bool vpn_connected = 5;
// FruProductSerial of the machine.
string fru_product_serial = 6;
// FruChassisPartSerial of the machine.
string fru_chassis_part_serial = 7;
// Liveliness of the machine.
metalstack.api.v2.MachineLiveliness liveliness = 8;
// State of the machine.
metalstack.api.v2.MachineState state = 9;
// FailedReclaim is true if the machine failed to return to the waiting machines pool after deletion.
bool failed_reclaim = 10;
// Crashloop is true if there was an unexpected event in the provisioning cycle.
bool crashloop = 11;
// LastErrorEventTime in case some error happened in the past.
google.protobuf.Timestamp last_error_event_time = 12;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am unsure, feels ugly, maybe we find another way to provide whats required, but does not randomly put data together which also require to fetch a lot of entities in the backend.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like it either. In the metal-api, the SwitchIPMIResponse contains Machine and IPMI, which would be BMC in this case. But the message would be huge while we only need a tiny subset of the fields. I don't have a good idea how to solve this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In any case we will have to fetch those entities, no matter what the message looks like.

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

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants