summaryrefslogtreecommitdiffstats
path: root/textw/netconfig_text.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2008-09-23 16:12:23 -1000
committerDavid Cantrell <dcantrell@redhat.com>2008-09-24 16:09:22 -1000
commite150ff01131c49c9b1876d21aaf508c0876f2722 (patch)
tree3e7ea4443a1476d7c40ac0740825cbb694191ff3 /textw/netconfig_text.py
parent4d01f8375a8ce64a9363f0cf24546fe5eb9e1168 (diff)
downloadanaconda-e150ff01131c49c9b1876d21aaf508c0876f2722.tar.gz
anaconda-e150ff01131c49c9b1876d21aaf508c0876f2722.tar.xz
anaconda-e150ff01131c49c9b1876d21aaf508c0876f2722.zip
Fix problems with bringDeviceUp() calls (#463512)
Changed bringDeviceUp() in network.py to bringUp() since it really just writes out all new network configuration information and lets NetworkManager take over from there. Correct the calls to this method so we don't get tracebacks anymore.
Diffstat (limited to 'textw/netconfig_text.py')
-rw-r--r--textw/netconfig_text.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/textw/netconfig_text.py b/textw/netconfig_text.py
index 71b06c93e..43c929ddb 100644
--- a/textw/netconfig_text.py
+++ b/textw/netconfig_text.py
@@ -175,11 +175,12 @@ class NetworkConfiguratorText:
netdev = self.anaconda.id.network.available()[cur]
if self.dhcpCheckbox.selected():
- netdev.set(("bootproto", "dhcp"))
+ netdev.set(("BOOTPROTO", "dhcp"))
+ netdev.set(("ONBOOT", "yes"))
w = self.anaconda.intf.waitWindow(_("Dynamic IP"),
_("Sending request for IP information "
"for %s...") % netdev.get("device"))
- netdev.bringDeviceUp()
+ self.network.bringUp()
w.pop()
break
else:
@@ -241,7 +242,7 @@ class NetworkConfiguratorText:
continue
try:
- netdev.bringDeviceUp()
+ self.network.bringUp()
except Exception, e:
import logging
log = logging.getLogger("anaconda")