Commit Graph

7740 Commits

Author SHA1 Message Date
Dan Williams
f46e1f6a43 logging: fix default log level and tweak info/warn output 2010-04-06 15:45:49 -07:00
Dan Williams
8e1ad97056 core: options help text cleanup 2010-04-06 15:28:33 -07:00
Dan Williams
e19bac4cd0 core: use fprintf before logging is set up 2010-04-06 15:27:35 -07:00
Dan Williams
32128b04ca logging: add basic logging capabilities 2010-04-06 15:23:08 -07:00
Dan Williams
043ce2c655 core: clear secrets on successful connection too
This ensures that the next time secrets are required, they will
be requested from the settings service.  Internally, NM shouldn't
be caching secrets; it should always request them from the settings
service so that the settings service can enforce policy about
password lifetime, if it wants to.
2010-04-06 12:48:53 -07:00
Jiří Klimeš
87bf00b3d7 cli: multiline mode is default for 'dev list' and 'con list id|uuid'
Option '--multiline' was replaced with '--mode tabular|multiline'.
It was neccessary to be able to switch to tabular output mode for
'dev list' and 'con list id|uuid' commands as they now print out
in multiline mode by default. All other commands are in tabular
mode by default.
2010-04-06 16:22:01 +02:00
Dan Williams
e9b7ecef53 doc: fix default value retrieval for settings specification generator 2010-04-06 00:45:45 -07:00
Dan Williams
a7e3d2acc2 olpc-mesh: fix companion device detection crash
The original OLPC mesh patch confused g_source_remove() with
g_signal_handler_disconnect(), so the signal handler that the
mesh device creates for the managers 'device-added' signal was
getting called after that mesh device instance was freed, which
is of course bad.
2010-04-06 02:02:06 -07:00
Amanpreet Singh Alam
d4c5930c0f po: updated Punjabi translation (bgo #614718) 2010-04-04 09:23:49 -07:00
Dan Williams
84f69ad65a po: fix Spanish translation
Missing \n on one item.
2010-04-02 10:34:11 -07:00
Francisco Javier F. Serrador
7940f8c42a po: update Spanish translation (bgo #614187) 2010-04-02 10:29:53 -07:00
Dan Williams
3ccd948f3a Merge remote branch 'origin/master' into cli-output 2010-04-01 07:46:19 -07:00
Jiří Klimeš
c8bfe2fcf4 cli: use own code to output connection details (settings)
nmcli uses its own code to dump connections' details instead of
libnm-util's nm_connection_dump(). It allows to structure output
and present values of the settings according to nmcli needs.
2010-03-31 17:14:35 +02:00
Jiří Klimeš
5225949974 libnm-util: fix dump of routes in 'ipv4' setting 2010-03-29 15:10:25 +02:00
Jiří Klimeš
c24d89ef80 libnm-util: fix a typo 2010-03-29 10:26:57 +02:00
Jiří Klimeš
07abcb60e7 libnm-util: add nm_setting_gsm_get_allowed_bands() to exported symbols 2010-03-29 10:06:51 +02:00
Dan Williams
fb5987df76 cli: fix uninitialized variable usage and clean up a bit 2010-03-25 13:39:49 -07:00
Dan Williams
f032e478d8 modem: consolidate common modem code into NMDeviceModem 2010-03-25 13:15:03 -07:00
Dan Williams
c45064ba36 modem: remove debugging printf 2010-03-25 12:21:01 -07:00
Dan Williams
9a1143b337 modem: fix modem type checking for various operations
After the DUN branch merge (I think?) a number of NM_IS_MODEM
calls were left around which now always return FALSE since
NMDeviceCdma and NMDeviceGsm aren't subclasses of NMModem anymore.
But we still need generic "is this a modem subclass" checks in
a few places, so add a modem base class that both the GSM and
CDMA device classes inherit from and use that.

Plus, we want to consolidate a ton of the common code in
nm-device-gsm.c and nm-device-cdma.c into the base class in the
future anyway.
2010-03-25 12:18:26 -07:00
Dan Williams
89af61f73c core: better matching of rfkill types
This also fixes a bug where WWAN devices were not correctly
recognized for enable/disable operations.
2010-03-25 11:36:19 -07:00
Jiří Klimeš
8b0b9c29c1 cli: Remove obsolete print_table_* functions 2010-03-24 23:36:50 +01:00
Jiří Klimeš
1e329c5c0c cli: Convert SSID to a printable form
If SSID is a UTF-8 string, it is printed as it is, but enclosed in quotes.
Otherwise the bytes are converted to hex string (in uppercase).
The added quotes for UTF-8 string allow to disambiguate the two forms.
2010-03-24 23:28:00 +01:00
Dan Williams
6773cc6a63 api: clarify Connection.Updated arguments 2010-03-24 14:10:34 -07:00
Jiří Klimeš
a91da03b65 cli: 'dev list' adjustments
Modifications are mainly for multiline mode to ease parsing - each
field name is prefixed with a section name.
'dev list' now also supports printing particular sections specifed via
'--fields' option.
2010-03-24 19:05:35 +01:00
Jiří Klimeš
31970798bc cli: add NMC_RESULT_ERROR_USER_INPUT code for bad invocation of nmcli 2010-03-24 13:42:47 +01:00
Jiří Klimeš
8846bd83ad cli: print_fields(): don't segfault when a value is not set 2010-03-24 12:47:53 +01:00
Ani Peter
88f68c10ff po: add Malayalam translation (bgo #613680) 2010-03-24 01:24:45 -07:00
Manoj Kumar Giri
cd52f2ea5a po: updated Oriya translation (bgo #610332) 2010-03-24 01:22:58 -07:00
Shankar Prasad
e5a66e2882 po: updated Kannada translation (bgo #609510) 2010-03-24 01:21:56 -07:00
Dan Williams
c8e23d36e3 core: add numeric reason codes for easier maintenance
Also makes it easier to keep the introspection and the C in sync.
2010-03-23 23:13:49 -07:00
Dan Williams
b95c390015 bluetooth: add timeout for bluetooth connection request 2010-03-23 23:07:17 -07:00
Dan Williams
35e5656e65 bluetooth: fix race condition causing NAP connections to fail (rh #572340)
The race would start DHCP before we had the BNEP interface from
bluez, causing the wrong interface name to be used.
2010-03-23 22:51:57 -07:00
Dan Williams
b7d21eba69 dhcp: print out DHCP client command strings 2010-03-23 18:50:32 -07:00
Dan Williams
c471bb4a03 po: add new translatable 2010-03-23 18:32:32 -07:00
Dan Williams
3012848759 rfkill: remove unused ignore_udev switch 2010-03-23 17:54:16 -07:00
Dan Williams
78dd4fc9f2 dhcp: make client selection more forgiving
If your distributor forgot to set up the client path for you, this
makes NM look in the right places and allows you to use either client
if it's installed, no matter what NM was configured with.
2010-03-23 14:22:10 -07:00
Dan Williams
55728349a1 core: properly clear non-fatal errors from state file parsing 2010-03-23 14:12:32 -07:00
Dan Williams
111ff83493 dhcp: tell dhcpcd to send hostname to server too if requested 2010-03-23 13:25:15 -07:00
Jiří Klimeš
eedde7283f libnm-util: add functions to output ip6 settings of connections 2010-03-22 18:59:40 +01:00
Jiří Klimeš
21638ff470 cli: convert 'dev list' to new format; checking options validity for terse 2010-03-22 18:43:28 +01:00
Jiří Klimeš
6ab52b33ee cli: print_fields() adjustments; error messages fixes 2010-03-20 14:08:06 +01:00
Tomasz Dominikowski
869a1dc6c9 po: updated Polish translation (bgo #612167) 2010-03-19 12:16:19 -07:00
Daniel Nylander
48ea547d7a po: updated Swedish translation (bgo #611638) 2010-03-19 12:15:23 -07:00
Christian Kirbach
edbc28daa3 po: updated German translation (bgo #612670) 2010-03-19 12:14:11 -07:00
Jorge González
e7eaacf426 po: update Spanish translation (bgo #612079) 2010-03-19 12:12:01 -07:00
Iñaki Larrañaga Murgoitio
4fe2acbef3 po: update Basque translation (bgo #613055) 2010-03-19 12:10:25 -07:00
Jiří Klimeš
3f92bb3c2e cli: fix a memory leak 2010-03-19 15:46:25 +01:00
Jiří Klimeš
8f5192ab49 cli: converting 'nmcli nm ...' outputs to new format 2010-03-19 14:53:08 +01:00
Jiří Klimeš
55949277bd cli: changing nmcli output to better fit both computer and human needs
The output is basically tabular with fields (columns) presenting specific pieces of info.
Each line represents a single object. It's possible to switch to multiline output using
'--multiline' option. In that mode single object is presented on more lines - each field
on its line.
Terse mode now uses ':' as field separator. It also escapes all occurences of ':' and '\'
inside field values to ease parsing. The escaping behaviour can be controlled through
'--escape' option. By default, escaping is switched on in tabular mode. When using terse
mode ('--terse'), '--fields' option is mandatory for specifying required fields. That helps
for flexibility and backwards compatibility.
Not all output is converted yet.
2010-03-18 15:39:15 +01:00