VMware {code} Community
sm91
Contributor
Contributor

Unable to assign ip to vnic device of a VM

I was working on assigning ips to virtual_nic devices. For that, I was trying to map GuestNicInfo information to the vnic device. First, I tried to map using macAddress present in both these objects, but observed that in some cases it was differing. Then, tried to map deviceConfigId present in GuestNicInfo (as it is a mandatory field) to key present in nic device. Observed that deviceConfigId is coming as -1 in some cases.

What is the expected behaviour here? Do we expect deviceConfigId to be -1?

0 Kudos
0 Replies