addChild(SysctlSetting.build("net.ipv6.conf.all.forwarding", "1"));
addChild(SysctlSetting.build("net.ipv6.conf.all.proxy_ndp", "1"));
{
File scriptPath = new File("/etc/network/if-up.d/nat-for-bridge");
TemplatedFile nat = addChild(TemplatedFile.build(template, scriptPath));
nat.setFileMode("0755");
// Simulate an ifup run
Command command = Command.build(scriptPath);
CommandEnvironment env = new CommandEnvironment();
env.put("IFACE", template.getPublicInterface());
env.put("MODE", "start");
env.put("ADDRFAM", "inet");
command.setEnvironment(env);
nat.setUpdateAction(command);
}
}