summaryrefslogtreecommitdiffstats
path: root/network.py
Commit message (Collapse)AuthorAgeFilesLines
* 2007-10-28 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-10-281-0/+2
| | | | | * network.py (Network._sysfsDeviceIsUsable): Don't show bridge devices (#354561)
* * network.py (Network.write): Set IPV6INIT for all cases (#328931).f8-baseDavid Cantrell2007-10-231-2/+7
|
* * network.py (Network.write): Write out the IPV6* variables to theDavid Cantrell2007-10-231-0/+15
| | | | | ifcfg files correctly, avoid IPV6ADDR=dhcp and other invalid settings (#328931).
* Filter available network devices by checking their type in sysfs (#338461).Chris Lumens2007-10-191-1/+11
|
* * network.py: add ATTR{type}=="1" to rule to avoid matching wmaster*Bill Nottingham2007-10-181-1/+1
|
* 2007-10-11 Bill Nottingham <notting@redhat.com>Bill Nottingham2007-10-111-0/+25
| | | | | * network.py: write persistent udev network device name rules (#264901) * packages.py: restore SELinux context on rules file
* 2007-10-11 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-10-111-2/+2
| | | | * network.py (Network.write): Fix spaces between host names
* 2007-10-10 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-10-101-1/+2
| | | | | * network.py (NetworkDevice.__str__): Don't traceback with unconfigured nics (#325071)
* * network.py (Network.write): Add the short hostname to theDavid Cantrell2007-09-041-5/+9
| | | | | | 127.0.0.1 entry in /etc/hosts in addition to a real hostname line if we can do it. Helps laptop users boot more quickly when the network is disconnected (#253979).
* (merges from f7-branch)Jeremy Katz2007-05-301-0/+8
| | | | | | | | | | | | | | | | | | | | | 2007-05-30 Jeremy Katz <katzj@aglarond.local> * isys/isys.py (_stopRaid): Fix raidstop. I have no clue how things were working here... * isys/isys.py (_getRaidInfo): raise ValueError when we don't find a valid raid superblock (#151653). * upgrade.py: More blacklist * isys/isys.h (EARLY_SWAP_RAM): Let's bump RAM needs a little (#232862) * iw/netconfig_dialog.py (NetworkConfigurator._handleIPError): Add a frame so things look right (NetworkConfigurator._ok): Set useipv4 to true, call netconfig methods with the right args (#240804) * network.py (hasActiveNetDev): Ensure we have an IP as otherwise, the network device isn't really all that active.
* * network.py: Update calls to configNetDevice() and dhcpNetDevice() inDavid Cantrell2007-05-071-5/+2
| | | | isys to match new parameter list.
* * network.py (Network.write): Do not write out a disable-ipv6 fileDavid Cantrell2007-04-261-16/+0
| | | | | | | in /etc/modprobe.d if the user has disabled IPv6 during install (#237642). * packages.py (setFileCons): Remove /etc/modprobe.d from the list (#237642).
* * network.py (Network.write): Only write out one disable-ipv6 file toDavid Cantrell2007-04-241-10/+5
| | | | the /etc/modprobe.d directory as the setting is global (#237642).
* * isys/nl.c (netlink_init_interfaces_list): Fix RTM_GETLINK messageDavid Cantrell2007-04-171-20/+28
| | | | | | | | reassembly. Also, make sure we read the entire interface name rather than just the first four characters. Use BUFSZ macro throughout code. Fixes numerous problems, including the missing HWADDR line (#234764) * isys/nl.h: Define BUFSZ. * isys/isys.c: Looks like I fixed some whitespace.
* * network.py (Network.write): Do not write out NETWORKING_IPV6 lineDavid Cantrell2007-04-171-34/+40
| | | | | | | to /etc/sysconfig/network anymore, initscripts does not use it. Instead, write a file to /etc/modprobe.d containing 'install ipv6 /bin/true' in the cases where users want the IPv6 stack completely disabled.
* * gui.py (releaseNotesButtonClicked): Spaces vs. tabs, tonight at 11.David Cantrell2007-03-271-9/+2
| | | | | | | | | * network.py (hasActiveDev): Use isys.getLinkStatus() rather than isys.getIPAddress() (#232512). * isys/isys.c (doGetIPAddress): Do not clear netlink cache. * isys/nl.c: Netlink cache searching cleanups.
* * network.py: When gathering network device description from kudzu,David Cantrell2007-03-261-1/+1
| | | | only probe for devices with modules currently loaded (#233507).
* Don't write out an extraneous "yes" (#227250).Chris Lumens2007-02-231-3/+3
|
* 2007-01-10 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-01-101-2/+8
| | | | | | * network.py (NetworkDevice.__str__): Don't try to write out USEIPV4/USEIPV6 on a per-device basis (Network.write): Fix NETWORK_IPV6 for current code.
* * network.py: Set NETWORKING_IPV6 in /etc/sysconfig/network toDavid Cantrell2007-01-101-3/+3
| | | | | yes or no depending on whether the user enabled or disabled IPv6 during installation (#222147).
* This new UI change is meant to match (as much as possible) what users seeDavid Cantrell2006-12-121-5/+7
| | | | | | | | | | | | | | | | | | | | | in stage 1 and what users can see in the text mode version of stage 2. These changes are meant for RHEL-5 as well. * ui/netpostconfig.glade: Defines the Edit Network Device window used in the stage 2 part of anaconda. * loader2/net.c (writeNetInfo): Write out IPv6 settings. * network.py (Network): Move the useIPv4 and useIPv6 flags to be per device rather than per system. * iw/network_gui.py: Removed old code in editDevice(), replaced with NetworkDeviceEditWindow class. Removed the awful mess of input validation code I had since the new dialog box handles all of that. Support independent IPv4 and IPv6 stack configuration per device and offer IPv6 automatic neighbor discovery in addition to DHCPv6 and static configuration (#213110, #213112).
* * network.py (Network): Add missing \n to localhost6 line (#210050)David Cantrell2006-10-291-1/+1
|
* * network.py (Network): Write out ::1 in /etc/hosts as localhost6David Cantrell2006-10-231-1/+1
| | | | rather than localhost (#211800).
* * anaconda (parseOptions): Add the --noipv4 and --noipv6 opts (#208334).David Cantrell2006-10-181-2/+2
| | | | | | | | | | | | | | | | | | | | | * anaconda (__main__): Set flags.useIPv4 and flags.useIPv6 to false if we receive one of the --noipv{4,6} options (#208334). * flags.py (Flags): Add useIPv4 and useIPv6 flags, default to True (#208334). * network.py (Network): Initialize self.useIPv4 and self.useIPv6 to flags.useIPv4 and flags.useIPv6 (#208334). * loader2/loader.c (doLoaderMain): After readNetConfig() call, set the noipv4 and noipv6 flags in loaderData (#208334). * loader2/loader.c (main): If noipv4 or noipv6 flag is set in the loaderData, add option to pass to anaconda (#208334). * loader2/net.c (readNetConfig): Set noipv4 and noipv6 flags in newCfg after configureTCPIP() call (#208334). * loader2/net.c (readNetConfig): After dialog window closes, copy the noipv4 and noipv6 flags from newCfg to cfg (#208334).
* * network.py (Network): If not has key BOOTPROTO, s'il vous plaƮt.David Cantrell2006-10-121-1/+1
| | | | I like double negatives. I'm not not licking toads.
* 2006-10-09 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-10-091-10/+6
| | | | | | * network.py (Network.__init__): Default ipv4 and ipv6 to being enabled so that we get network devices enabled postinstall on CD installs
* Fix traceback on looking up hostnames (#209672).Chris Lumens2006-10-091-2/+2
|
* * network.py (sanityCheckIPString): Change two >1 to >0 so that IPDavid Cantrell2006-10-061-2/+2
| | | | addresses that look like 9.3.117.236 are validated (#209654).
* * network.py (sanityCheckIPString): Test IP more accurately toDavid Cantrell2006-10-041-4/+6
| | | | | | | | | | | | | | | | | | determine address family. Clean up error messages to make things more clear. Have a catch-all else case that returns the given IP address in an invalid message in the form of an IPError exception. * iw/network_gui.py (NetworkWindow.handleIPError): Display the field description in the title bar rather than the field name. Call __str__() on the msg parameter since msg could be an IPError exception or a string. * iw/network_gui.py (NetworkWindow): Set the IPv6 address entry field to just the address portion of the value that's written out to the ifcfg-ethX file (remove the /prefix part). Make sure we set the ipv6prefix in the entrys hash and write out a new ipv6addr with the new prefix in case the user changed it.
* * network.py (Network): UI isn't using it, so removed references toDavid Cantrell2006-09-261-6/+1
| | | | | a third nameserver setting (which should be called tertiary NS, not ternary NS).
* * network.py: Make sure we compare the lowercase version of bootprotoDavid Cantrell2006-09-191-6/+6
| | | | because 'dhcp' does not equal 'DHCP'.
* * network.py: Added the useIPv4 and useIPv6 flags to the Network class.David Cantrell2006-09-181-2/+13
| | | | | | | | | | | | | | These are used in the network configuration dialog boxes. Set based on existing network configuration, or initialize to true. * network.py: Read in IPV6_AUTOCONF variable from the network-script if it exists. We need this for the RFC 2462 auto configuration setting. * iw/network_gui.py: Set the IPv4 and IPv6 enable check boxes based on the useIPv4 and useIPv6 flags in the Network class. * iw/network_gui.py: Add column labels so users have an idea of what goes in the _____ / _____ entry boxes.
* * network.py (Network.lookupHostname): Use socket.getaddrinfo() soDavid Cantrell2006-08-111-3/+10
| | | | we can support IPv4 and IPv6.
* Don't clobber /etc/resolv.conf during VNC installs (#201874).Chris Lumens2006-08-111-7/+7
|
* 2006-06-21 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-06-211-7/+0
| | | | | | | | * loader2/net.c (setupNetworkDeviceConfig): Remove s390 hack * network.py (sanityCheckIPString): Remove s390 hack * isys/isys.py (sync): Remove s390 hack
* 2006-06-15 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-06-161-0/+7
| | | | * network.py (sanityCheckIPString): More s390 inet_pton breakage
* Filter out sitX devices from the list.David Cantrell2006-06-131-7/+9
|
* A better validation check that takes IPv6 into account.Chris Lumens2006-06-081-6/+12
|
* Move from IPEditors to gtk.Entrys. This will help when people can enterChris Lumens2006-06-071-16/+12
| | | | IPv6 addresses so we don't have a thousand little boxes on the screen.
* Write out IPv6 localhost (#44984).Chris Lumens2006-06-021-5/+6
|
* ipv6: The choice of a new generationPaul Nasrat2006-05-181-0/+1
|
* Allow MTU to be specified in a kickstart file as well as on the commandChris Lumens2006-05-151-0/+7
| | | | line (#191328).
* Finish making non-UI steps pass around the anaconda object.Chris Lumens2006-05-041-3/+3
|
* 2006-04-26 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-04-261-0/+3
| | | | | * network.py (Network.__init__): Don't reconfig network if using rootpath mode
* 2006-04-26 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-04-261-5/+6
| | | | | * network.py (Network.lookupHostname): Don't change network config in rootpath mode (#185930)
* Get ready for a surprise...David Cantrell2006-03-241-1/+2
| | | | not really. It's just iutil.getArch() -> rhpl.getArch() updates.
* Create a dictionary in flags.py for storing /proc/cmdline. Nuke allChris Lumens2006-03-221-5/+3
| | | | references to /proc/cmdline from everywhere else in favor of this dict.
* Move hasActiveNetDev frmo vnc to network.Chris Lumens2006-02-141-0/+15
|
* Put quotes around ethtool arguments (#176918).Chris Lumens2006-01-041-1/+1
|
* Check for ff:ff:ff:ff:ff:ff as well.Chris Lumens2005-11-291-3/+2
|