I am trying to add/move vmnic0 from a standard switch to an already existing vDS that has vmnic1 attached. Everything is good until it tries to add vmnic0 (see attached code screenshot). I believe it has something do with the highlighted section. It is creating an array, but for some reason the second pnicSpec is not defined and throws the error below. I am able to do one vmnic at a time so it seems like I have to define that array for 2 pnicSpec's and I'm unsure how to go about it. @iiliev any ideas?
TypeError: Cannot set property "pnicDevice" of undefined to "vmnic0"