Patrick Talbert
2c10459b66
clients: Fix typo in _dump_team_link_watcher output
...
This makes the output of a 'con show' for a team device look suspect.
Signed-off-by: Patrick Talbert <ptalbert@redhat.com>
Fixes: 4657390d45
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/53
(cherry picked from commit 25a0739658 )
(cherry picked from commit e28bfa41a0 )
(cherry picked from commit 3444c1145d )
2018-11-23 17:42:28 +01:00
Beniamino Galvani
b59d155b4e
libnm-core: fix documentation for connection.mdns
...
After an update of the connection.mdns property, a reactivation is
needed to apply the new value.
Also, the ifcfg-rh variable name was wrong.
Fixes: 2e2ff6f27a
(cherry picked from commit 8e6ad2853c )
(cherry picked from commit b5468828f4 )
2018-11-22 11:53:08 +01:00
Beniamino Galvani
107c7f27af
libnm-core: document dns priority
...
(cherry picked from commit 1fbadecdbc )
2018-10-19 18:39:34 +02:00
Beniamino Galvani
3422988c2a
dns: introduce routing domains
...
Similarly to what systemd-resolved does, introduce the concept of
"routing" domain, which is a domain in the search list that is used
only to decide the interface over which a query must be forwarded, but
is not used to complete unqualified host names. Routing domains are
those starting with a tilde ('~') before the actual domain name.
Domains without the initial tilde are used both for completing
unqualified names and for the routing decision.
(cherry picked from commit e91f1a7d2a )
2018-10-19 18:39:33 +02:00
Ismo Puustinen
19d7e66099
mdns: add new connection property.
...
Add support for mDNS as a connection-level property. Update ifcfg-rh and
keyfile plugins to support it.
(cherry picked from commit 2e2ff6f27a )
2018-10-19 18:39:31 +02:00
Beniamino Galvani
12e2d62673
wifi: support hidden ssid in AP mode
...
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/48
(cherry picked from commit 5d97e76c7d )
(cherry picked from commit f235d57a3a )
(cherry picked from commit 6f6a810189 )
2018-09-27 14:21:14 +02:00
Thomas Haller
b02000a2f3
libnm/doc: explicitly point out privacy issue of setting wifi.hidden
...
(cherry picked from commit bca28c8c0c )
2018-09-27 14:21:10 +02:00
Benjamin Berg
e1b99d9201
Add calls to g_simple_async_result_set_check_cancellable
...
If an operation is cancelled through the GCancellable, then the idiom is
that the operation is always cancelled, even if it has finished
successfully. To ensure this is the case, add calls to
g_simple_async_result_set_check_cancellable everywhere.
Without this, e.g. gnome-control-center will crash when switching away
from the power panel quickly, as the NMClient creation finishes
asynchronously and g-c-c assume that G_IO_ERROR_CANCELLED is returned to
ensure it doesn't access the now invalid user_data parameter.
https://bugzilla.gnome.org/show_bug.cgi?id=794088
(cherry picked from commit 26c215e22d )
2018-03-08 15:02:40 +01:00
Francesco Giudici
11f0ca1f23
nmcli: team: do strict checking on runner-tx-hashes
...
Substrings matching the heading of valid values were allowed if not
ambiguous (e.g.: "et" for "eth"). Moreover, upper case variants were
accepted too.
Do a plain string comparison check against the valid values.
Improve also the error message: give a list of valid tx-hashes.
(cherry picked from commit fd5b3f802e )
2018-02-12 12:16:10 +01:00
Francesco Giudici
01d1f64ad4
nmcli: team: clear runner-tx-hash before adding new hashes
...
https://bugzilla.redhat.com/show_bug.cgi?id=1541922
(cherry picked from commit 350dbb55ab )
2018-02-12 11:46:46 +01:00
Francesco Giudici
10760b100c
libnm-core: team: add support to runner "random"
...
https://bugzilla.redhat.com/show_bug.cgi?id=1538699
(cherry picked from commit 31d9a9de14 )
2018-02-06 12:45:18 +01:00
Francesco Giudici
4f76b01f10
doc: fix describe message for team link watchers
...
(cherry picked from commit d7f3c79881 )
2018-01-22 19:31:29 +01:00
Francesco Giudici
97d153d9e3
nmcli: clear link-watchers before adding the new ones we want to set
...
(cherry picked from commit ff16252a71 )
2018-01-22 19:31:04 +01:00
Francesco Giudici
f219090fdd
cli: get team defaults from setting header files
...
this allows centralizing default values definition and allows quicker
and safer update of default values.
(cherry picked from commit c6448f724b )
2018-01-18 18:49:28 +01:00
Francesco Giudici
bcababf612
libnm-core: docs update requires also settings-docs.c.in update
...
Fixes: c6e1b3abc0
2018-01-12 15:20:23 +01:00
Beniamino Galvani
207eb3266f
all: add more meaningful error code for unsupported IP method
...
Add a new device state reason code for unsupported IP method. It is
returned, for example, when users select manual IP configuration for
WWAN connections:
# nmcli connection mod Gsm ipv4.method manual ipv4.address 1.2.3.4/32
# nmcli connection up Gsm
Error: Connection activation failed: The selected IP method is not
supported
compared to the old:
Error: Connection activation failed: IP configuration could not be
reserved (no available address, timeout, etc.)
Note that we could instead fail the connection validation if the
method is not supported by the connection type, but adding such
limitation now could make existing connections invalid.
https://bugzilla.redhat.com/show_bug.cgi?id=1459529
(cherry picked from commit aa820e9386 )
2017-12-21 10:07:12 +01:00
Beniamino Galvani
8a570a41cf
device: add a new state-reason for DAD failures
...
(cherry picked from commit 12a49cbdc7 )
2017-12-21 10:07:07 +01:00
Lubomir Rintel
81967af3fc
clients: add tc tfilter support
...
What works:
nmcli c add con-name dum0 ifname dum0 type dummy \
tc.tfilters 'parent 1234: matchall action drop, parent ffff: matchall action drop'
nmcli c modify dum0 -tc.tfilters 'parent ffff: matchall action drop'
nmcli c modify dum0 +tc.tfilters 'parent ffff: matchall action simple sdata Hello'
(cherry picked from commit 3261820004 )
2017-12-11 19:43:40 +01:00
Lubomir Rintel
457a17ae83
libnm-core: add traffic filter support to NMSettingTCConfig
...
(cherry picked from commit e035cb7be0 )
2017-12-11 19:38:37 +01:00
Lubomir Rintel
47e5e3ba7d
clients: add tc qdisc support
...
What works:
nmcli c add con-name dum0 ifname dum0 type dummy \
tc.qdiscs 'ingress, root pfifo_fast'
nmcli c modify dum0 -tc.qdiscs 'root pfifo_fast'
nmcli c modify dum0 +tc.qdiscs 'root handle 666: fq_codel'
(cherry picked from commit 92f8f30d47 )
2017-12-11 19:06:31 +01:00
Lubomir Rintel
93b3fc8c57
libnm-core: add NMSettingTCConfig with qdisc support
...
Currently is only able to hold the queueing disciplines.
(cherry picked from commit da13c7a1a4 )
2017-12-11 19:04:02 +01:00
Thomas Haller
fae720edc4
cli: fix integer types in get-functions to match libnm origin
...
The num/i variables are initialized from libnm API and used
back at them. The integer types should match.
(cherry picked from commit e7d18548b9 )
2017-12-08 16:52:35 +01:00
Francesco Giudici
07b1e80803
cli: add support to TeamPort link watchers
...
(cherry picked from commit c5228b8a83 )
2017-12-08 04:00:08 +01:00
Francesco Giudici
704f0acb77
libnm-core: team-port: expose the new link-watchers property
...
It will allow explicit configuration of link-watchers in the team port
configuration.
(cherry picked from commit f094837d73 )
2017-12-08 04:00:08 +01:00
Francesco Giudici
2eacf89f38
cli: add support to Team link watchers
...
(cherry picked from commit 4657390d45 )
2017-12-08 04:00:07 +01:00
Francesco Giudici
466f8e0dd5
libnm-core: team: expose the new link-watchers property
...
It will allow explicit configuration of link-watchers in the team
configuration.
(cherry picked from commit ca816ae10e )
2017-12-08 04:00:07 +01:00
Francesco Giudici
5b9f4202d6
cli: add team-port properties
...
(cherry picked from commit 81527f1a09 )
2017-12-08 02:10:27 +01:00
Francesco Giudici
7d9553da50
libnm-core: add explicit team properties to NMSettingTeamPort
...
(cherry picked from commit 1c99d379eb )
2017-12-08 02:10:22 +01:00
Francesco Giudici
316a6ea3be
cli: add team properties
...
(cherry picked from commit e1220c933f )
2017-12-08 02:08:57 +01:00
Francesco Giudici
b42ad17e2d
libnm-core: add explicit team properties to NMSettingTeam
...
(cherry picked from commit 9715969b77 )
2017-12-08 02:08:49 +01:00
Beniamino Galvani
967d5d4059
clients: fix display value for dns-options
...
We must show the default value "(default)" when the list of
dns-options is initialized but empty.
(cherry picked from commit ca06f82371 )
2017-12-01 00:02:30 +01:00
Beniamino Galvani
604c7de1c7
cli: fix connection type completion
...
Don't show completion for all setting types but only for base ones.
Before:
$ nmcli connection add type <TAB>
802-11-olpc-mesh ethernet ppp
802-11-wireless generic pppoe
802-11-wireless-security gsm proxy
802-1x infiniband serial
802-3-ethernet ip-tunnel team
adsl ipv4 team-port
bluetooth ipv6 tun
bond macsec user
bridge macvlan vlan
bridge-port olpc-mesh vpn
cdma ovs-bridge vxlan
connection ovs-interface wifi
dcb ovs-patch wifi-sec
dummy ovs-port wimax
After:
$ nmcli connection add type <TAB>
802-11-olpc-mesh cdma macsec team
802-11-wireless dummy macvlan tun
802-3-ethernet ethernet olpc-mesh vlan
adsl generic ovs-bridge vpn
bluetooth gsm ovs-interface vxlan
bond infiniband ovs-port wifi
bridge ip-tunnel pppoe wimax
(cherry picked from commit 60f57ebe4a )
2017-11-20 22:19:51 +01:00
Thomas Haller
ee77657727
clients: avoid crash in _complete_fcn_connection_master()
...
Found by coverity, but not a practical issue, because we
wouldn't actually call the function with text NULL.
(cherry picked from commit 8cb86d947c )
2017-11-15 18:13:34 +01:00
Thomas Haller
e2e4cdd2c1
doc: fix type on documentation for NMSettingOvsPort:bond-updelay
...
Fixes: 8a1ae40a80
https://bugzilla.gnome.org/show_bug.cgi?id=789880
(cherry picked from commit 5986d92053 )
2017-11-06 12:27:21 +01:00
Beniamino Galvani
a25db64f7c
clients: implement CancelGetSecrets() secret-agent API
2017-11-02 15:25:59 +01:00
Thomas Haller
2730dc60de
all: move setting 802-1x.auth-retries to connection.auth-retries
...
The number of authentication retires is useful also for passwords aside
802-1x settings. For example, src/devices/wifi/nm-device-wifi.c also has
a retry counter and uses a hard-coded value of 3.
Move the setting, so that it can be used in general. Although it is still
not implemented for other settings.
This is an API and ABI break.
2017-11-02 11:41:01 +01:00
Thomas Haller
89e518db5a
libnm,cli,ifcfg-rh: add NMSetting8021x:auth-retries property
2017-10-31 19:35:33 +01:00
Thomas Haller
ef60cf890f
docs: clearify documentation of connection.autoconnect-retries
2017-10-31 19:35:33 +01:00
Thomas Haller
d7d9759d56
docs: fix typo in NMSettingBridge:group-forward-mask doc
...
Fixes: 17ec3aef2f
https://bugzilla.gnome.org/show_bug.cgi?id=789662
2017-10-30 21:49:50 +01:00
Lubomir Rintel
d0cb2050f3
all: add OVSDB connection failure device state reason
2017-10-30 17:40:09 +01:00
Lubomir Rintel
aec8d36b3e
clients: add support for ovs-bridge setting
2017-10-30 17:40:09 +01:00
Lubomir Rintel
6f73b4608a
clients: add support for ovs-port setting
2017-10-30 17:40:09 +01:00
Lubomir Rintel
6dcd54b0de
clients: add support for ovs-interface setting
2017-10-30 17:40:09 +01:00
Lubomir Rintel
e7ab81098a
clients: add support for ovs-patch setting
2017-10-30 17:40:09 +01:00
Lubomir Rintel
cb9b024ddb
libnm-core: add ovs-bridge setting
2017-10-30 17:40:08 +01:00
Lubomir Rintel
8a1ae40a80
libnm-core: add ovs-port setting
2017-10-30 17:40:08 +01:00
Lubomir Rintel
27790fa976
libnm-core: add ovs-interface setting
2017-10-30 17:40:08 +01:00
Lubomir Rintel
d4a7fe4679
libnm-core: add ovs-patch setting
2017-10-30 17:40:08 +01:00
Lubomir Rintel
4391ba82dd
cli/trivial: drop default branch from some cases
...
This way not handling a known enum value will be caught by a compiler
warning.
2017-10-30 17:38:37 +01:00
Lubomir Rintel
c3080c79dc
ip-tunnel: fix a typo
2017-10-30 17:38:37 +01:00