When creating a zone we can set sysidcfg to a template that generates the sysidcfg file. In the documentation there is a example.
When configuring a zone with 2 interface the 'network_interface' is not 'primary' but the interface name. The problem i have is that the interface name i set in the puppet file is not the interface name needed in the sysidcfg.erb file. In the sysidcfg file the interface is extend with a number, which depends on the global zone.
Below example has the networkinterface in the sysidcfg.erb hardcoded to get it to work.
How do i define a sysidcfg.erb that can handle multiple interfaces ?
zone def :