// RemoveVnic removed the VNIC from this machine
RemoveVnic removed the VNIC from this machine
// RemoveVnic removed the VNIC from this machine
func (v *VirtualMachine) RemoveVnic(name string) error {
	vnicDetails, err := v.GetVnic(name)
	if err != nil {
		return errors.Wrap(err, "GetVnic")
	}
	if err := utils.RemoveResourceSettings(v.mgr.svc, []string{vnicDetails.path}); err != nil {
		return errors.Wrap(err, "utils.RemoveResourceSettings")
	}
	return nil
}
func ( v * VirtualMachine ) RemoveVnic ( name string ) error { vnicDetails , err := v . GetVnic ( name ) if err != nil { return errors . Wrap ( err , " " ) } if err := utils . RemoveResourceSettings ( v . mgr . svc , [ ] string { vnicDetails . path } ) ; err != nil { return errors . Wrap ( err , " " ) } return nil }
RemoveVnic removed the VNIC from this machine
RemoveVnic removed the VNIC from this machine