- config.network = ConfigSubsection();
- config.network.ip = configElement("config.network.ip", configSequence, [192,168,1,45], (".") );
- config.network.gateway = configElement("config.network.gateway", configSequence, [192,168,1,3], (".") );
- config.network.dns = configElement("config.network.dns", configSequence, [192,168,1,3], (".") );
+ config.network = ConfigSubsection()
+ config.network.dhcp = configElement("config.network.dhcp", configSelection, 0, ("no", "yes"))
+ config.network.ip = configElement("config.network.ip", configSequence, [192,168,1,45], (("."), (1,255)))
+ config.network.netmask = configElement("config.network.netmask", configSequence, [255,255,255,0], (("."), (1,255)))
+ config.network.gateway = configElement("config.network.gateway", configSequence, [192,168,1,3], (("."), (1,255)))
+ config.network.dns = configElement("config.network.dns", configSequence, [192,168,1,3], (("."), (1,255)))
+ config.network.mac = configElement("config.network.mac", configSequence, [00,11,22,33,44,55], ((":"), (1,255)))
+
+ #FIXME using this till other concept for this is implemented
+ #config.network.activate = configElement("config.network.activate", configSelection, 0, ("yes, sir", "you are my hero"))
+ config.network.activate = configElement("config.network.activate", configSelection, 0, ("yes", "you are my hero"))