[yast-devel] changes in yast2 lan
Hi all, I want to make some changes with internal data structures in lan module (maybe later in other modules). Status now: - there are about 4 lists/maps (hwinfo, network configuration, hwcfg configuration, table items description) + some informations read from /sys filesystem - there are more places when these items are "matched" and there was some bugs that sometimes with different results ;-) Idea: - create one list of maps and match them just once - also I want to put there information from udev rules Example: list<map> lan_configuration = [ $[ "id":0, "hwcfg" : ... "ifcfg" : ... "hwinfo" : ... "table_descr" : ... "udev" : ... ], $[ "id":1, ... ] ] Not detected devices will have "nil" for hwcfg and not configured will have nil for ifcfg ... What do you think? Michal -- Best Regards, Michal Zugec Software developer --------------------------------------------------------------------- SuSE CR, s.r.o. e-mail: mzugec@suse.cz Lihovarska 1060/12 tel: +420 284 028 960 190 00 Praha 9 fax: +420 296 542 374 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Dňa Ut 5. Jún 2007 10:08 Michal Zugec napísal:
Hi all,
I want to make some changes with internal data structures in lan module (maybe later in other modules).
Status now: - there are about 4 lists/maps (hwinfo, network configuration, hwcfg configuration, table items description) + some informations read from /sys filesystem - there are more places when these items are "matched" and there was some bugs that sometimes with different results ;-)
Idea: - create one list of maps and match them just once - also I want to put there information from udev rules
Example:
list<map> lan_configuration = [ $[ "id":0, "hwcfg" : ... "ifcfg" : ... "hwinfo" : ... "table_descr" : ... "udev" : ... ], $[ "id":1, ... ] ]
Not detected devices will have "nil" for hwcfg and not configured will have nil for ifcfg ...
What do you think?
I think Michal had reasons why there were 4 lists. Michal? Stano -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Tue, Jun 05, 2007 at 10:08:44AM +0200, Michal Zugec wrote:
Idea: - create one list of maps and match them just once - also I want to put there information from udev rules
Example:
list<map> lan_configuration = [ $[ "id":0, "hwcfg" : ... "ifcfg" : ... "hwinfo" : ... "table_descr" : ... "udev" : ... ], $[ "id":1, ... ] ]
OK, so the items are maps of maps. When we were discussing it in person I first thought that you were going to mix the information in one single map. This is better. -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Tuesday 05 June 2007 10:08, Michal Zugec wrote:
What do you think?
does that affect autoyast? -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Uwe Gansert wrote / napísal(a):
On Tuesday 05 June 2007 10:08, Michal Zugec wrote:
What do you think?
does that affect autoyast?
Autoyast is external API, my changes internal - I will "remap" it in Export/Import to don't affect backward compatibility. M. -- Best Regards, Michal Zugec Software developer --------------------------------------------------------------------- SuSE CR, s.r.o. e-mail: mzugec@suse.cz Lihovarska 1060/12 tel: +420 284 028 960 190 00 Praha 9 fax: +420 296 542 374 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
As we discussed with msvec personnally: - we need to keep separated modules, because of backward compatibility - in cached map should be only reference to data stored in modules because in proposal several modules need "fresh" data Bye, Michal Michal Zugec wrote / napísal(a):
Hi all,
I want to make some changes with internal data structures in lan module (maybe later in other modules).
Status now: - there are about 4 lists/maps (hwinfo, network configuration, hwcfg configuration, table items description) + some informations read from /sys filesystem - there are more places when these items are "matched" and there was some bugs that sometimes with different results ;-)
Idea: - create one list of maps and match them just once - also I want to put there information from udev rules
Example:
list<map> lan_configuration = [ $[ "id":0, "hwcfg" : ... "ifcfg" : ... "hwinfo" : ... "table_descr" : ... "udev" : ... ], $[ "id":1, ... ] ]
Not detected devices will have "nil" for hwcfg and not configured will have nil for ifcfg ...
What do you think? Michal
-- Best Regards, Michal Zugec Software developer --------------------------------------------------------------------- SuSE CR, s.r.o. e-mail: mzugec@suse.cz Lihovarska 1060/12 tel: +420 284 028 960 190 00 Praha 9 fax: +420 296 542 374 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (4)
-
Martin Vidner
-
Michal Zugec
-
Stanislav Visnovsky
-
Uwe Gansert