-
-
Notifications
You must be signed in to change notification settings - Fork 231
feat(vm): add hotplug parameter to vm #2356
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -219,6 +219,7 @@ const ( | |||||||||||||||||||||||||
| mkHostPCIDeviceROMBAR = "rombar" | ||||||||||||||||||||||||||
| mkHostPCIDeviceROMFile = "rom_file" | ||||||||||||||||||||||||||
| mkHostPCIDeviceXVGA = "xvga" | ||||||||||||||||||||||||||
| mkHotplug = "hotplug" | ||||||||||||||||||||||||||
| mkInitialization = "initialization" | ||||||||||||||||||||||||||
| mkInitializationDatastoreID = "datastore_id" | ||||||||||||||||||||||||||
| mkInitializationInterface = "interface" | ||||||||||||||||||||||||||
|
|
@@ -1073,6 +1074,12 @@ func VM() *schema.Resource { | |||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||
| mkHotplug: { | ||||||||||||||||||||||||||
| Type: schema.TypeString, | ||||||||||||||||||||||||||
| Description: "Selectively enable hotplug features", | ||||||||||||||||||||||||||
| Optional: true, | ||||||||||||||||||||||||||
| Default: "network,disk,usb", | ||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||
|
Comment on lines
+1077
to
+1082
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This new
Suggested change
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey @elsoa-invitech 👋🏼 thanks for contributing! Yeah, 🤖 is right, there are few more things that need to be added for this to work. |
||||||||||||||||||||||||||
| mkKeyboardLayout: { | ||||||||||||||||||||||||||
| Type: schema.TypeString, | ||||||||||||||||||||||||||
| Description: "The keyboard layout", | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description for
hotplugis a bit vague. It would be helpful to list the possible values and their meaning. Also, note that the Proxmox API expectsnetfor network hotplug.