title: Add VM to VLAN through pyvmomi / vSphere
body: <p>I've scoured the docs (<a href="http://pubs.vmware.com/vsphere-55/index.jsp" rel="nofollow">http://pubs.vmware.com/vsphere-55/index.jsp</a>) and can't find anything about adding virtual machines to vlans. There's plenty of info on creating and configuring them, but not how to add virtual machines to them through pyvmomi (or esxcli if necessary). I'm pretty sure it can be done, as you can do it easily through the vSphere client, but I'm looking to do it in an automated fashion.</p>