Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add switches tab to inventory page #2556

Open
david-crespo opened this issue Nov 14, 2024 · 1 comment · Fixed by #2620
Open

Add switches tab to inventory page #2556

david-crespo opened this issue Nov 14, 2024 · 1 comment · Fixed by #2620
Assignees

Comments

@david-crespo
Copy link
Collaborator

Some design in #1451 but it's just a table with columns for whatever is on the switch response.

https://docs.oxide.computer/api/switch_list

export type Switch = {
baseboard: Baseboard
/** unique, immutable, system-controlled identifier for each resource */
id: string
/** The rack to which this Switch is currently attached */
rackId: string
/** timestamp when this resource was created */
timeCreated: Date
/** timestamp when this resource was last modified */
timeModified: Date
}

/**
* Properties that uniquely identify an Oxide hardware component
*/
export type Baseboard = { part: string; revision: number; serial: string }

@charliepark charliepark added this to the 13 milestone Dec 12, 2024
@charliepark charliepark self-assigned this Dec 13, 2024
@david-crespo david-crespo modified the milestones: 13, 12 Dec 13, 2024
@charliepark
Copy link
Contributor

This had to get taken back out in c1ebd8d9, as the DB for switches is empty. So at some point down the line, we'll need to revisit this.

@charliepark charliepark reopened this Dec 14, 2024
@david-crespo david-crespo removed this from the 12 milestone Dec 14, 2024
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 a pull request may close this issue.

2 participants