| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
NetworkManager spawns dhclient, but provides nm-dhcp-client.action
as the dhclient-script process, which means we never get the hostname
set unless that program does it. NetworkManager retains all of the
information from dhclient, so we need to ask it for the hostname
and domain.
|
|
|
|
|
| |
Try to find what the default hostname should be if it's also
currently set to just 'localhost'.
|
|
|
|
|
|
| |
getDefaultHostname() returns a string to the caller (either the
iw or textw interface that contains the default hostname to
populate the UI with.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A number of changes:
* Make gateway and nameserver settings be per device
rather than global.
* Allow for both GATEWAY and IPV6_DEFAULTGW per device.
* Store nameservers as DNSx where x is an int starting
at 1 and incrementing. For functions that need to
write out nameserver information (kickstart files or
resolv.conf), read the nameservers from the device
settings hash table.
* Add a bringDeviceUp() function which will call the
write() method (with no instPath specified) to give us
a new ifcfg-DEVICE file with the latest settings so
nm-system-settings will see it and bring the device
up. This function may (actually, probably will) need
expansion to communicate/wait_for NetworkManager.
The bringDeviceUp() function replaces the old isys
dhcpNetDevice() and configNetDevice() functions.
|
|
|
|
|
|
|
|
|
| |
We always want to write:
NM_CONTROLLED=
to the ifcfg-DEVICE files regardless of the setting it has
during installation.
|
|
|
|
|
| |
Make sure we carry over the settings from the ifcfg-DEVICE
files and current device states from NetworkManager.
|
|
|
|
|
|
|
| |
Going with 255 for now even though this seems to be loosely
defined on Linux. POSIX specifies 255 as the max length, but
Linux doesn't seem to have a maximum. But LSB likes the POSIX
specification, so we'll stick with that.
|
| |
|
| |
|
|
|
|
|
| |
Wrap it all in try/except so we fail gracefully for now. This
should make CD & DVD installs work.
|
|
|
|
|
|
| |
Now using this variable anymore since we have NM. For now,
just calling hasActiveNetDev() since that checks to see we
are in NM_STATE_CONNECTED.
|
|
|
|
|
|
|
|
|
| |
The NetworkDevice class does not have has_key(), just call
get() and check to see if it's empty.
The NM_ and DBUS_ constants are currently in isys, so
reference them there. Ideally NetworkManager would be
offering a Python module that provides this sort of info.
|
|
|
|
|
|
| |
It's:
def anyUsingDHCP():
def anyUsingStatic():
|
|
|
|
|
|
| |
Rewrite network.py to read network settings from NetworkManager
and then ifcfg files. We still need these classes to support
network configuration settings via kickstart.
|
|
|
|
|
|
|
| |
Rewrote the hasActiveNetDev() and _anyUsing() function in
network.py to talk to NetworkManager via dbus. Modified
the calls in iw/network_gui.py and textw/network_text.py
that use these functions.
|
| |
|
|
|
|
| |
* po/sk.po: Typo fix.
|
|
|
|
|
|
|
|
|
|
|
| |
NetworkManager needs to know DNS information on a per interface
basis. Right now, we only prompt for global DNS information in
anaconda. Write those settings to each ifcfg file on the
target system. Will be updating the UI post-F-9 to better
gather the network information since we are using NM now (or at
least trying to get people to use it).
Also write NM_CONTROLLED= to each ifcfg line.
|
|
|
|
|
|
|
|
| |
Hostnames can start with digits. Removed inStrRange() since
it seemed a little redundant. Left hostname length check at
64 characters, but put a comment reminding me that POSIX
sets this limit to 255, so we should examine this in the
future again.
|
|
|
|
|
|
|
|
|
|
| |
Better fix for #408921. Using network.overrideDHCPhostname to set
the default behavior of requiring users to set a hostname. If the
user changed that to 'use DHCP', clicked Next, then clicked Back,
the network configuration screen would be back at manual for the
hostname. Fixed that by honoring overrideDHCPhostname. Also took
the opportunity to make overrideDHCPhostname a boolean since that's
how we are using it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Handle cases where the default gateway is an IPv6 address,
which has to be written as IPV6_DEFAULTGW rather than just
GATEWAY. The UI still needs work as it is possible to have
a default gateway for IPv4 and IPv6 concurrently, but we
are only prompting for one address.
This patch also removes the duplicate anyUsingDHCP() from
iw/network_gui.py and uses the one in network.py. It also
adds an anyUsingStatic() function. Some functions in
network.py have been changed to return True/False rather
than 1/0.
The network configuration screen in anaconda (not stage 1,
but in stage 2) will activate the gateway and DNS entry
fields now if any interface is set to have any static
configuration. Previously, it would only activate if all
devices were set to manual configuration for everything.
In addition, you can currently leave the fields blank,
which works well for situations such as IPv4 being DHCP
and IPv6 being static with no IPv6 gateway. The system
will get a default gateway for IPv4 using DHCP in that
case.
|
|
|
|
| |
Include KERNEL== in the udev rules anaconda writes out to fix things on PS3
|
|
|
|
|
|
|
|
| |
On the first run of the chooseNetworkInterface() function in
rescue mode, all network interfaces are shown as UNCONFIGURED
regardless of their current configuration. This also affects
text mode installations in the post-install configuration
steps.
|
|
|
|
| |
This reverts commit 062a1e5ebbf6dab03524a125c1ce34d3cea43fcb.
|
| |
|
|
|
|
|
|
|
|
| |
This patch adds support for a new network bootproto. The point of this is
to work around our basic assumption that no network line in the kickstart
file means you get dhcp. Some environments may want the assumption that
no network line means you get prompted for network configuration. That's
what this patch adds.
|
|
|
|
|
|
| |
Don't build new NetworkDevice objects when checking available() unless we
actually have a new device. Otherwise, we end up with no devices active
on the netconfig screen
|
|
|
|
|
|
|
| |
Shorten 'Red Hat Author(s)' to just 'Author(s)'. Perhaps eventually
we'll get an AUTHORS file and will just remove author names from the
individual files. Also fixed a type in scripts/dumphdrlist.py where
Author was listed twice.
|
|
|
|
|
|
| |
Updated all *.py files to have a uniform GPL boilerplate. Expanded copyright
year ranges and listed authors (if they were in the comment section) under
the Red Hat Author(s) section.
|
| |
|
|
|
|
|
| |
* network.py (Network._sysfsDeviceIsUsable): Don't show bridge
devices (#354561)
|
| |
|
|
|
|
|
| |
ifcfg files correctly, avoid IPV6ADDR=dhcp and other invalid settings
(#328931).
|
| |
|
| |
|
|
|
|
|
| |
* network.py: write persistent udev network device name rules (#264901)
* packages.py: restore SELinux context on rules file
|
|
|
|
| |
* network.py (Network.write): Fix spaces between host names
|
|
|
|
|
| |
* network.py (NetworkDevice.__str__): Don't traceback with
unconfigured nics (#325071)
|
|
|
|
|
|
| |
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).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
isys to match new parameter list.
|
|
|
|
|
|
|
| |
in /etc/modprobe.d if the user has disabled IPv6 during
install (#237642).
* packages.py (setFileCons): Remove /etc/modprobe.d from the
list (#237642).
|
|
|
|
| |
the /etc/modprobe.d directory as the setting is global (#237642).
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
only probe for devices with modules currently loaded (#233507).
|
| |
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
yes or no depending on whether the user enabled or disabled IPv6
during installation (#222147).
|