dbgeek / terraform-provider-ovm

Terraform provider to manage Oracle OVM resources
MIT License
12 stars 7 forks source link

Add vnic to vm #4

Closed dbgeek closed 6 years ago

dbgeek commented 6 years ago

When creating fresh empty VM no vnic get added.

dbgeek commented 6 years ago

Hmm getting 400 Bad request when trying create vnic on a vm

2018/01/07 00:22:19 [DEBUG] req: &{POST https://10.64.78.100:7002/ovm/core/wsapi/rest/Vm/0004fb00000600006113e5a9085ffe4d/VirtualNic HTTP/1.1 1 1 map[Authorization:[Basic YWRtaW46V2VsY29tZTE=] Content-Type:[application/json] Accept:[application/json]] {{"macAddress":"00:21:f6:71:77:ab","interfaceName":"0","VmId":null,"NetworkId":{"type":"com.oracle.ovm.mgr.ws.model.Network","value":"c0a80100"},"Name":"
00:21:f6:71:77:ab","Description":"","Locked":false,"ReadOnly":false,"Generation":0,"ResourceGroupIds":null}} 0x5fa900 259 [] false 10.64.78.100:7002 map[] map[] <nil> map[]   <nil> <nil> <nil> <nil>}                                                                       
2018/01/07 00:22:19 [Info] Response code: 400 Bad Request
dbgeek commented 6 years ago

Can specify networkid and then a vnic on that network will be created