Skip to content

Commit

Permalink
Merge pull request Telmate#97 from gentoo9ball/feature/ipconfig2
Browse files Browse the repository at this point in the history
Added ipconfig2 everywhere ipconfig1 is listed, should enable 3 netwo…
  • Loading branch information
ggongaware committed Oct 4, 2019
2 parents 48d6718 + 3c274cd commit c05ce12
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions proxmox/resource_vm_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,10 @@ func resourceVmQemu() *schema.Resource {
Type: schema.TypeString,
Optional: true,
},
"ipconfig2": {
Type: schema.TypeString,
Optional: true,
},
"preprovision": {
Type: schema.TypeBool,
Optional: true,
Expand Down Expand Up @@ -441,6 +445,7 @@ func resourceVmQemuCreate(d *schema.ResourceData, meta interface{}) error {
Sshkeys: d.Get("sshkeys").(string),
Ipconfig0: d.Get("ipconfig0").(string),
Ipconfig1: d.Get("ipconfig1").(string),
Ipconfig2: d.Get("ipconfig2").(string),
// Deprecated single disk config.
Storage: d.Get("storage").(string),
DiskSize: d.Get("disk_gb").(float64),
Expand Down Expand Up @@ -612,6 +617,7 @@ func resourceVmQemuUpdate(d *schema.ResourceData, meta interface{}) error {
Sshkeys: d.Get("sshkeys").(string),
Ipconfig0: d.Get("ipconfig0").(string),
Ipconfig1: d.Get("ipconfig1").(string),
Ipconfig2: d.Get("ipconfig2").(string),
// Deprecated single disk config.
Storage: d.Get("storage").(string),
DiskSize: d.Get("disk_gb").(float64),
Expand Down Expand Up @@ -704,6 +710,7 @@ func resourceVmQemuRead(d *schema.ResourceData, meta interface{}) error {
d.Set("sshkeys", config.Sshkeys)
d.Set("ipconfig0", config.Ipconfig0)
d.Set("ipconfig1", config.Ipconfig1)
d.Set("ipconfig2", config.Ipconfig2)
// Disks.
configDisksSet := d.Get("disk").(*schema.Set)
activeDisksSet := UpdateDevicesSet(configDisksSet, config.QemuDisks)
Expand Down

0 comments on commit c05ce12

Please sign in to comment.