// ExportSabakanData exports configuration files for sabakan
ExportSabakanData exports configuration files for sabakan
// ExportSabakanData exports configuration files for sabakan
func ExportSabakanData(dir string, m *Menu, ta *TemplateArgs) error {
	err := copyIPAMConfig(m.Network.IPAMConfigFile, filepath.Join(dir, "ipam.json"))
	if err != nil {
		return err
	}
	err = exportDHCPConfig(filepath.Join(dir, "dhcp.json"))
	if err != nil {
		return err
	}
	return exportMachinesJSON(filepath.Join(dir, "machines.json"), ta)
}
func ExportSabakanData ( dir string , m * Menu , ta * TemplateArgs ) error { err := copyIPAMConfig ( m . Network . IPAMConfigFile , filepath . Join ( dir , " " ) ) if err != nil { return err } err = exportDHCPConfig ( filepath . Join ( dir , " " ) ) if err != nil { return err } return exportMachinesJSON ( filepath . Join ( dir , " " ) , ta ) }
ExportSabakanData exports configuration files for sabakan
ExportSabakanData exports configuration files for sabakan