Trying to attach device template which has some basic feature configuration like vpn0 interface configuration and ospf... when attaching the template it is giving a failure message saying that
"Error Message - /vpn/vpn-instance: Cannot delete eth0 interface from management vpn (512)"
I tried creating a device template without vpn512 but not able to since the option is there always....
I ran into this thread while testing some templates, so here is what works:
While you can't remove the eth0, you just need to add another feature template of type "VPN Interface Ethernet" for eth0. Just keep all values in the template as default and fill in the mandatory ones, like Template Name, Description and Interface Name which should be exactly "eth0".
Then in the Device Template you have to add a VPN interface under the "Transport & Management VPN" section and VPN512. You can keep the VPN template default and set the VPN Interface to the newly created Feature Template for eth0.
I hope this helps others running into this thread, as I suppose you have already solved your issue.