[Bug 397016] New: CLI doesn't work in YaST2 lan
https://bugzilla.novell.com/show_bug.cgi?id=397016 Summary: CLI doesn't work in YaST2 lan Product: openSUSE 11.0 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Blocker Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mzugec@novell.com QAContact: jsrain@novell.com Found By: --- Command line interface doesn't work in lan module. Problem is that configuration name is empty (ifcfg-). It should contains device name (ifcfg-eth0) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=397016 User mzugec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=397016#c1 Michal Zugec <mzugec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |mzugec@novell.com Status|NEW |ASSIGNED --- Comment #1 from Michal Zugec <mzugec@novell.com> 2008-06-04 04:39:38 MDT --- Patch to fix that: Index: src/lan/cmdline.ycp =================================================================== --- src/lan/cmdline.ycp (revision 48047) +++ src/lan/cmdline.ycp (working copy) @@ -181,10 +181,11 @@ LanItems::current = getItem(options, config); LanItems::SetItem(); - if (!(size(LanItems::getCurrentItem()["ifcfg"]:"")>0)){ + if (size(LanItems::getCurrentItem()["ifcfg"]:"")==0){ NetworkInterfaces::Add(); LanItems::operation = `edit; LanItems::interfacename=LanItems::getCurrentItem()["hwinfo", "dev_name"]:""; + LanItems::Items[LanItems::current, "ifcfg"] = LanItems::interfacename; } /* @@ -216,6 +217,7 @@ } } */ +if (contains(Map::Keys(options), "ip")) options["bootproto"] = "static"; LanItems::bootproto = options["bootproto"]:"none"; if (!contains(["none", "static", "dhcp"], LanItems::bootproto)){ @@ -224,7 +226,7 @@ } if (LanItems::bootproto=="static"){ LanItems::ipaddr = options["ip"]:""; - LanItems::netmask = options["netmask"]:""; + LanItems::netmask = options["netmask"]:"255.255.255.0"; } else{ LanItems::ipaddr = ""; LanItems::netmask = ""; -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=397016 User coolo@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=397016#c2 --- Comment #2 from Stephan Kulow <coolo@novell.com> 2008-06-04 04:43:21 MDT --- not really blocker, but looks safe. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=397016 User mzugec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=397016#c3 Michal Zugec <mzugec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cihlarov@novell.com Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #3 from Michal Zugec <mzugec@novell.com> 2008-06-04 04:51:33 MDT --- fixed in yast2-network-2.16.48 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=397016 User locilka@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=397016#c4 Lukas Ocilka <locilka@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |locilka@novell.com --- Comment #4 from Lukas Ocilka <locilka@novell.com> 2008-06-04 04:58:59 MDT --- Yes, I was also afraid that fixing this bug might break second stage installation (AC/Manual) but it seems it really only changes the behavior of commandline. Miso, please, next time, add some comments to the source code! :) ;) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com