diff options
author | David Cantrell <dcantrell@redhat.com> | 2008-09-23 16:12:23 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2008-09-24 16:09:22 -1000 |
commit | e150ff01131c49c9b1876d21aaf508c0876f2722 (patch) | |
tree | 3e7ea4443a1476d7c40ac0740825cbb694191ff3 /iw | |
parent | 4d01f8375a8ce64a9363f0cf24546fe5eb9e1168 (diff) | |
download | anaconda-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 'iw')
-rw-r--r-- | iw/netconfig_dialog.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/iw/netconfig_dialog.py b/iw/netconfig_dialog.py index 8e32076d0..3cacd1d18 100644 --- a/iw/netconfig_dialog.py +++ b/iw/netconfig_dialog.py @@ -184,11 +184,12 @@ class NetworkConfigurator: # FIXME: need to do input validation if self.xml.get_widget("dhcpCheckbutton").get_active(): netdev.set(('BOOTPROTO', 'dhcp')) + netdev.set(('ONBOOT', 'yes')) self.window.hide() w = gui.WaitWindow(_("Dynamic IP"), _("Sending request for IP information " "for %s...") %(netdev.get("device"))) - netdev.bringDeviceUp() + self.network.bringUp() w.pop() self.rc = gtk.RESPONSE_OK else: @@ -251,7 +252,7 @@ class NetworkConfigurator: try: - netdev.bringDeviceUp() + self.network.bringUp() except Exception, e: import logging log = logging.getLogger("anaconda") |