Skip to content

Commit dc92dd7

Browse files
BajuMcBitesstgraber
authored andcommitted
incusd/device/device_load.go: Added gendoc for nicType
signed-off-by: Avi Patel <[email protected]>
1 parent 7c749f7 commit dc92dd7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/server/device/device_load.go

+6
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ func newByType(state *state.State, projectName string, conf deviceConfig.Device)
4646
}
4747

4848
case "infiniband":
49+
// gendoc:generate(entity=infiniband, group=common, key=nictype)
50+
//
51+
// ---
52+
// type: string
53+
// required: yes
54+
// shortdesc: The device type (one of `physical` or `sriov`)
4955
switch nicType {
5056
case "physical":
5157
dev = &infinibandPhysical{}

0 commit comments

Comments
 (0)