Has anyone worked on automating Apple's DEP enrollment on both mac clients and iOS devices?

You can create a DEP machine in VMware but as far as I know you have to snapshot it before going through the setup assistant, so network won’t be configured at that moment and in that case we wouldn’t be able to connect from Eggplant over VNC.
Is it possible to pre-configure the network on the VM and still go through the setup assistant so we can VNC into it and automate the enrollment process or is there another way someone is successfully utilizing to automate this process?
How about physical iOS devices connected to the iOS GateWay, Has anyone automated DEP enrollments on them? Are iOS virtual devices a possibility at all?

I realize this post is almost a year old at this point. This isn’t something that we in support have any experience with. Sorry.