Commit graph

5010 commits

Author SHA1 Message Date
Jiří Klimeš
3a32e5c31d man: add a manpage for nm-online 2010-08-08 01:41:12 -05:00
Dan Williams
efb5bd5379 core: better debugging for IPv4LL and avahi-autoipd 2010-08-08 01:40:25 -05:00
Dan Williams
df35a08828 logging: add accessor for log level 2010-08-08 01:40:18 -05:00
Jiří Klimeš
39f7535e04 doc: trivial fix in documentation of 's390-subchannels' property 2010-08-06 11:53:30 +02:00
Dan Williams
1dec3e917b dhcp: make sure disabled DHCP clients aren't used (gentoo #330319)
If the client was disabled with --with-dhclient=no or
--with-dhcpcd=no, then it's corresponding _PATH will be an empty
string.  In that case we want to ignore that client completely
since it was disabled at build time.
2010-08-05 15:30:12 -05:00
Mike Auty
b550b11f4f build: fix dhcpcd client detection 2010-08-05 15:25:12 -05:00
Dan Williams
e7ca7d84d5 ifcfg-rh: clarify comment about unmanaged connections 2010-08-04 16:58:56 -05:00
Dan Williams
18fdf0c0a9 ifcfg-rh: ensure BRIDGE and VLAN connections get completely ignored
Unlike NM_CONTROLLED=no connections we don't even want to both with
these when their devices aren't supposed to be managed.
2010-08-04 16:55:07 -05:00
Dan Williams
250aaa2deb Revert "ifcfg-rh: testcases for unmanaged BRIDGE and VLAN"
This reverts commit 1acc978db4.
2010-08-04 16:52:41 -05:00
Dan Williams
1acc978db4 ifcfg-rh: testcases for unmanaged BRIDGE and VLAN 2010-08-04 16:42:13 -05:00
Dan Williams
71679f585a ifcfg-rh: use IFCFG_PLUGIN_ERROR instead of ifcfg_plugin_error_quark ()
Trivial cleanup.
2010-08-04 16:28:19 -05:00
Dan Williams
734b649dc7 ifcfg-rh: be more careful about rewriting ifcfg files
Kind of a hack for now, would be better to push down a flag about
whether the update request came in from D-Bus, internally, or from
inotify, but that's a lot more invasive.
2010-08-04 16:24:52 -05:00
Dan Williams
2ad1d06374 ifcfg-rh: require fewer parameters to connection_from_file() 2010-08-04 16:24:46 -05:00
Dan Williams
7f85ba04a3 ifcfg-rh: treat BRIDGE and VLAN connections as unmanaged (rh #619863)
Treat them as unmanaged for now so that they dont' need NM_CONTROLLEd=no
which would require further configuration when NM does start to support
these configs.
2010-08-04 16:24:40 -05:00
Daniel Gnoutcheff
006377f9d2 ifupdown: fix connection class inheritance
NMIfupdownConnection really is a subclass of NMSysconfigConnection (as
declared via the G_DEFINE_TYPE macro in nm-ifconfig-connection.c), but
the header incorrectly used NMExportedConnection* in the class and
instance structs. We got away with it because NMSysconfigConnection*
didn't contain anything other than the stuff inherited from
NMExportedConnection*, but it would have caused much trouble if we did
add something.
2010-08-04 01:54:34 -05:00
Jiří Klimeš
d471a58a97 cli: wait a bit even when '--nowait' is specified; for permissions check (rh #614866)
NetworkManager checks clients' permissions on requests, so nmcli mustn't quit too early
to give NM a chance to reach it on D-Bus.
2010-08-03 17:21:31 -07:00
Dan Williams
3f5348ebf4 core: quiet annoying libnl error about route deletion (rh #612991) 2010-08-03 17:08:43 -07:00
Dan Williams
d21a4fc608 libnm-glib: fix retrieval of IPv6 addresses 2010-08-03 16:50:44 -07:00
Dan Williams
ed1d84b9cc libnm-glib: fix retrieval of DHCP4 and DHCP6 options (rh #611141)
Busted since 2008 apparently.  Oops.
2010-08-03 16:41:26 -07:00
Dan Williams
afca445d16 nm-tool: silence annoying settings service warning
User settings service isn't always running.
2010-08-03 16:26:07 -07:00
Dan Williams
a1c3408d05 ifcfg-rh: ignore BRIDGE and VLAN configs until we support them (rh #619863) 2010-08-03 16:18:09 -07:00
Dan Williams
efc5c7e1e5 libnm-util: bump soname for s390 updates 2010-08-03 15:55:31 -07:00
Dan Williams
18ad2a0383 Merge remote branch 'origin/zvm' into NM_0_8 2010-08-03 15:52:43 -07:00
Pablo Castellano
9706cfa2a2 build: enable AM_SILENT_RULES (bgo #625263) 2010-08-03 12:59:12 -07:00
Dan Williams
7e87d79de6 debian: don't require ifup for enabling loopback (bgo #625427)
But use it if it's installed.
2010-08-03 11:37:50 -07:00
Jorge González
6585e338f4 po: updated Spanish translation (bgo #625711) 2010-08-02 11:22:18 -07:00
Dan Williams
3050d14a2b Merge remote branch 'origin/NM_0_8_1' into NM_0_8 2010-07-28 12:33:37 -07:00
Dan Williams
f257c98193 libnm-util: register transform func for G_TYPE_STRV to GPtrArray
Needed for S390 subchannels property of the wired setting.
2010-07-28 10:05:22 -07:00
Dan Williams
3dcf858c04 Merge remote branch 'origin/master' into zvm 2010-07-28 08:59:47 -07:00
Daniel Gnoutcheff
1db8ba379f keyfile: correctly send the 'update' signal
For exported connections, nm_settings_connection_interface_update() is
supposed to cause the emission of a
NM_SETTINGS_CONNECTION_INTERFACE_UPDATED signal.  This is usually done
by chaining up to the NMExportedConnection implementation of this
method, which actually emits the signal.  However, the
NMKeyfileConnection implementation usually forgot to do this.  Rewrite
so that we always chain up after successfully saving settings.
2010-07-28 02:31:02 -07:00
Daniel Gnoutcheff
2ffa6a830e keyfile: correctly send the 'update' signal
For exported connections, nm_settings_connection_interface_update() is
supposed to cause the emission of a
NM_SETTINGS_CONNECTION_INTERFACE_UPDATED signal.  This is usually done
by chaining up to the NMExportedConnection implementation of this
method, which actually emits the signal.  However, the
NMKeyfileConnection implementation usually forgot to do this.  Rewrite
so that we always chain up after successfully saving settings.
2010-07-28 02:28:45 -07:00
Daniel Drake
1e67303dad wifi: ensure scanning property is updated on supplicant interface state changes
The wifi device is considered to be 'scanning' if the supplicant emits
the scanning signal or if it's in the scanning state; but the code
didn't correctly handle notifications when the supplicant was in the
scanning state.
2010-07-28 02:12:09 -07:00
Daniel Drake
64182e27d7 wifi: ensure scanning property is updated on supplicant interface state changes
The wifi device is considered to be 'scanning' if the supplicant emits
the scanning signal or if it's in the scanning state; but the code
didn't correctly handle notifications when the supplicant was in the
scanning state.
2010-07-28 02:09:26 -07:00
Dan Williams
4d43ce8fa0 Merge remote branch 'origin/master' into zvm 2010-07-27 23:24:10 -07:00
Dan Williams
4c7426e750 Revert "ip6: remove standalone DHCP method since DHCPv6 can't provide gateways" (rh #612445)
This reverts commit a729d2f649.

Turns out this is a valid IP config method that some sites use.
2010-07-27 21:59:16 -07:00
Dan Williams
bebf8d48b0 Revert "ip6: remove standalone DHCP method since DHCPv6 can't provide gateways" (rh #612445)
This reverts commit a729d2f649.

Turns out this is a valid IP config method that some sites use.
2010-07-27 21:43:42 -07:00
Dan Williams
eadaa1f2c1 Revert "core: fail connections if IP configuration expires" (rh #616084) (rh #590874)
This reverts commit b172519045.

When something like NTP updates the system clock, that can cause
dhclient to expire the lease, and at that point we just want NM
to let dhclient re-aquire the lease instead of failing the
whole connection.
2010-07-27 20:38:29 -07:00
Dan Williams
af2be00b8c Revert "core: fail connections if IP configuration expires" (rh #616084) (rh #590874)
This reverts commit b172519045.

When something like NTP updates the system clock, that can cause
dhclient to expire the lease, and at that point we just want NM
to let dhclient re-aquire the lease instead of failing the
whole connection.
2010-07-27 20:31:27 -07:00
shankar
2273e32446 po: update Kannada translation (bgo #625283) 2010-07-27 15:26:21 -07:00
shankar
ba3dcc2b08 po: update Kannada translation (bgo #625283) 2010-07-27 15:25:56 -07:00
Sandeep Shedmake
fe2cfe3053 po: update Marathi translation (bgo #625312) 2010-07-27 14:47:24 -07:00
Sandeep Shedmake
ead5ed849a po: update Marathi translation (bgo #625312) 2010-07-27 14:44:24 -07:00
Dan Williams
d403ecc281 ifcfg-rh: fix testcase format string
From Andrey Borzenkov <arvidjaar@gmail.com>
2010-07-22 16:27:30 -07:00
Dan Williams
fbdb963f04 ifcfg-rh: fix testcase format string
From Andrey Borzenkov <arvidjaar@gmail.com>
2010-07-22 16:26:34 -07:00
Dan Williams
80c16a1973 release: bump version to 0.8.1 2010-07-21 17:01:59 -07:00
Dan Williams
8f3337ad80 core: read nm-system-settings.conf first (rh #606160)
Even though we prefer NetworkManager.conf, we need to check the
old nm-system-settings.conf first to preserve compat with older
setups.  In package managed systems dropping a NetworkManager.conf
onto the system would make NM use it instead of nm-system-settings.conf,
changing behavior during an upgrade.  We don't want that.
2010-07-21 16:48:39 -07:00
Dan Williams
0a700de047 core: read nm-system-settings.conf first (rh #606160)
Even though we prefer NetworkManager.conf, we need to check the
old nm-system-settings.conf first to preserve compat with older
setups.  In package managed systems dropping a NetworkManager.conf
onto the system would make NM use it instead of nm-system-settings.conf,
changing behavior during an upgrade.  We don't want that.
2010-07-21 16:47:31 -07:00
Dan Williams
21da2b4a54 core: don't require PPP setting for PPPoE connections (bgo #623744)
The PPP setting will usually be all defaults anyway, so lets just
created it when needed if it doesn't yet exist.  Fixes an error
where the connection editor couldn't edit system DSL connections
because it tried to request secrets for the PPP setting that didn't
actually exist in the connection because the 'keyfile' plugin
wouldn't save all-default settings, thus that setting wouldn't
exist when read back in.
2010-07-21 16:01:13 -07:00
Dan Williams
d51e36f72d system-settings: return InvalidSetting when secrets setting doesn't exist (bgo #623744)
So that clients can handle the error intelligently; it's not
really a fatal error.
2010-07-21 16:01:08 -07:00
Dan Williams
e58ca7af4b libnm-glib: ensure invalids secrets hash isn't used on error condition
Apparently dbus-glib just sends through a random address for the
hash table even if 'error' is set.  Make sure we don't pass that down
to subclasses.
2010-07-21 16:01:03 -07:00