Skip to content

Commit

Permalink
add enum for switch os vendor
Browse files Browse the repository at this point in the history
Co-authored-by: Stefan Majer <[email protected]>
  • Loading branch information
iljarotar and majst01 authored Oct 17, 2024
1 parent 1ecbb23 commit 3d6301e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/metal-api/internal/service/v1/switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type SwitchBase struct {
}

type SwitchOS struct {
Vendor metal.SwitchOSVendor `json:"vendor" description:"the operating system vendor the switch currently has" optional:"true"`
Vendor metal.SwitchOSVendor `json:"vendor" description:"the operating system vendor the switch currently has" optional:"true" enum:"SONiC|Cumulus"`
Version string `json:"version" description:"the operating system version the switch currently has" optional:"true"`
MetalCoreVersion string `json:"metal_core_version" description:"the version of metal-core running" optional:"true"`
}
Expand Down

0 comments on commit 3d6301e

Please sign in to comment.