clients/tests: add test for showing invisible connection in nmcli
It also shows how we handle invisible connections wrongly, when we have multiple active-connections that reference them.
This commit is contained in:
@@ -117,6 +117,28 @@ clients_tests_expected_files = \
|
|||||||
clients/tests/test-client.check-on-disk/test_003-064.expected \
|
clients/tests/test-client.check-on-disk/test_003-064.expected \
|
||||||
clients/tests/test-client.check-on-disk/test_003-065.expected \
|
clients/tests/test-client.check-on-disk/test_003-065.expected \
|
||||||
clients/tests/test-client.check-on-disk/test_003-066.expected \
|
clients/tests/test-client.check-on-disk/test_003-066.expected \
|
||||||
|
clients/tests/test-client.check-on-disk/test_003-067.expected \
|
||||||
|
clients/tests/test-client.check-on-disk/test_003-068.expected \
|
||||||
|
clients/tests/test-client.check-on-disk/test_003-069.expected \
|
||||||
|
clients/tests/test-client.check-on-disk/test_003-070.expected \
|
||||||
|
clients/tests/test-client.check-on-disk/test_003-071.expected \
|
||||||
|
clients/tests/test-client.check-on-disk/test_003-072.expected \
|
||||||
|
clients/tests/test-client.check-on-disk/test_003-073.expected \
|
||||||
|
clients/tests/test-client.check-on-disk/test_003-074.expected \
|
||||||
|
clients/tests/test-client.check-on-disk/test_003-075.expected \
|
||||||
|
clients/tests/test-client.check-on-disk/test_003-076.expected \
|
||||||
|
clients/tests/test-client.check-on-disk/test_003-077.expected \
|
||||||
|
clients/tests/test-client.check-on-disk/test_003-078.expected \
|
||||||
|
clients/tests/test-client.check-on-disk/test_003-079.expected \
|
||||||
|
clients/tests/test-client.check-on-disk/test_003-080.expected \
|
||||||
|
clients/tests/test-client.check-on-disk/test_003-081.expected \
|
||||||
|
clients/tests/test-client.check-on-disk/test_003-082.expected \
|
||||||
|
clients/tests/test-client.check-on-disk/test_003-083.expected \
|
||||||
|
clients/tests/test-client.check-on-disk/test_003-084.expected \
|
||||||
|
clients/tests/test-client.check-on-disk/test_003-085.expected \
|
||||||
|
clients/tests/test-client.check-on-disk/test_003-086.expected \
|
||||||
|
clients/tests/test-client.check-on-disk/test_003-087.expected \
|
||||||
|
clients/tests/test-client.check-on-disk/test_003-088.expected \
|
||||||
clients/tests/test-client.check-on-disk/test_004-001.expected \
|
clients/tests/test-client.check-on-disk/test_004-001.expected \
|
||||||
clients/tests/test-client.check-on-disk/test_004-002.expected \
|
clients/tests/test-client.check-on-disk/test_004-002.expected \
|
||||||
clients/tests/test-client.check-on-disk/test_004-003.expected \
|
clients/tests/test-client.check-on-disk/test_004-003.expected \
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:764:test_003()/49
|
location: clients/tests/test-client.py:769:test_003()/49
|
||||||
cmd: $NMCLI -f ALL con
|
cmd: $NMCLI -f ALL con
|
||||||
lang: C
|
lang: C
|
||||||
returncode: 0
|
returncode: 0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:764:test_003()/50
|
location: clients/tests/test-client.py:769:test_003()/50
|
||||||
cmd: $NMCLI -f ALL con
|
cmd: $NMCLI -f ALL con
|
||||||
lang: pl_PL.UTF-8
|
lang: pl_PL.UTF-8
|
||||||
returncode: 0
|
returncode: 0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:767:test_003()/51
|
location: clients/tests/test-client.py:772:test_003()/51
|
||||||
cmd: $NMCLI -f UUID,TYPE con
|
cmd: $NMCLI -f UUID,TYPE con
|
||||||
lang: C
|
lang: C
|
||||||
returncode: 0
|
returncode: 0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:767:test_003()/52
|
location: clients/tests/test-client.py:772:test_003()/52
|
||||||
cmd: $NMCLI -f UUID,TYPE con
|
cmd: $NMCLI -f UUID,TYPE con
|
||||||
lang: pl_PL.UTF-8
|
lang: pl_PL.UTF-8
|
||||||
returncode: 0
|
returncode: 0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:770:test_003()/53
|
location: clients/tests/test-client.py:775:test_003()/53
|
||||||
cmd: $NMCLI -f UUID,TYPE --mode multiline con
|
cmd: $NMCLI -f UUID,TYPE --mode multiline con
|
||||||
lang: C
|
lang: C
|
||||||
returncode: 0
|
returncode: 0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:770:test_003()/54
|
location: clients/tests/test-client.py:775:test_003()/54
|
||||||
cmd: $NMCLI -f UUID,TYPE --mode multiline con
|
cmd: $NMCLI -f UUID,TYPE --mode multiline con
|
||||||
lang: pl_PL.UTF-8
|
lang: pl_PL.UTF-8
|
||||||
returncode: 0
|
returncode: 0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:773:test_003()/55
|
location: clients/tests/test-client.py:778:test_003()/55
|
||||||
cmd: $NMCLI -f UUID,TYPE --mode multiline --terse con
|
cmd: $NMCLI -f UUID,TYPE --mode multiline --terse con
|
||||||
lang: C
|
lang: C
|
||||||
returncode: 0
|
returncode: 0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:773:test_003()/56
|
location: clients/tests/test-client.py:778:test_003()/56
|
||||||
cmd: $NMCLI -f UUID,TYPE --mode multiline --terse con
|
cmd: $NMCLI -f UUID,TYPE --mode multiline --terse con
|
||||||
lang: pl_PL.UTF-8
|
lang: pl_PL.UTF-8
|
||||||
returncode: 0
|
returncode: 0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:776:test_003()/57
|
location: clients/tests/test-client.py:781:test_003()/57
|
||||||
cmd: $NMCLI -f UUID,TYPE --mode multiline --pretty con
|
cmd: $NMCLI -f UUID,TYPE --mode multiline --pretty con
|
||||||
lang: C
|
lang: C
|
||||||
returncode: 0
|
returncode: 0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:776:test_003()/58
|
location: clients/tests/test-client.py:781:test_003()/58
|
||||||
cmd: $NMCLI -f UUID,TYPE --mode multiline --pretty con
|
cmd: $NMCLI -f UUID,TYPE --mode multiline --pretty con
|
||||||
lang: pl_PL.UTF-8
|
lang: pl_PL.UTF-8
|
||||||
returncode: 0
|
returncode: 0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:779:test_003()/59
|
location: clients/tests/test-client.py:784:test_003()/59
|
||||||
cmd: $NMCLI -f UUID,TYPE --mode tabular con
|
cmd: $NMCLI -f UUID,TYPE --mode tabular con
|
||||||
lang: C
|
lang: C
|
||||||
returncode: 0
|
returncode: 0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:779:test_003()/60
|
location: clients/tests/test-client.py:784:test_003()/60
|
||||||
cmd: $NMCLI -f UUID,TYPE --mode tabular con
|
cmd: $NMCLI -f UUID,TYPE --mode tabular con
|
||||||
lang: pl_PL.UTF-8
|
lang: pl_PL.UTF-8
|
||||||
returncode: 0
|
returncode: 0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:782:test_003()/61
|
location: clients/tests/test-client.py:787:test_003()/61
|
||||||
cmd: $NMCLI -f UUID,TYPE --mode tabular --terse con
|
cmd: $NMCLI -f UUID,TYPE --mode tabular --terse con
|
||||||
lang: C
|
lang: C
|
||||||
returncode: 0
|
returncode: 0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:782:test_003()/62
|
location: clients/tests/test-client.py:787:test_003()/62
|
||||||
cmd: $NMCLI -f UUID,TYPE --mode tabular --terse con
|
cmd: $NMCLI -f UUID,TYPE --mode tabular --terse con
|
||||||
lang: pl_PL.UTF-8
|
lang: pl_PL.UTF-8
|
||||||
returncode: 0
|
returncode: 0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:785:test_003()/63
|
location: clients/tests/test-client.py:790:test_003()/63
|
||||||
cmd: $NMCLI -f UUID,TYPE --mode tabular --pretty con
|
cmd: $NMCLI -f UUID,TYPE --mode tabular --pretty con
|
||||||
lang: C
|
lang: C
|
||||||
returncode: 0
|
returncode: 0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:785:test_003()/64
|
location: clients/tests/test-client.py:790:test_003()/64
|
||||||
cmd: $NMCLI -f UUID,TYPE --mode tabular --pretty con
|
cmd: $NMCLI -f UUID,TYPE --mode tabular --pretty con
|
||||||
lang: pl_PL.UTF-8
|
lang: pl_PL.UTF-8
|
||||||
returncode: 0
|
returncode: 0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:788:test_003()/65
|
location: clients/tests/test-client.py:793:test_003()/65
|
||||||
cmd: $NMCLI con s ethernet
|
cmd: $NMCLI con s ethernet
|
||||||
lang: C
|
lang: C
|
||||||
returncode: 0
|
returncode: 0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:788:test_003()/66
|
location: clients/tests/test-client.py:793:test_003()/66
|
||||||
cmd: $NMCLI con s ethernet
|
cmd: $NMCLI con s ethernet
|
||||||
lang: pl_PL.UTF-8
|
lang: pl_PL.UTF-8
|
||||||
returncode: 0
|
returncode: 0
|
||||||
|
102
clients/tests/test-client.check-on-disk/test_003-067.expected
Normal file
102
clients/tests/test-client.check-on-disk/test_003-067.expected
Normal file
@@ -0,0 +1,102 @@
|
|||||||
|
location: clients/tests/test-client.py:796:test_003()/67
|
||||||
|
cmd: $NMCLI c s /org/freedesktop/NetworkManager/ActiveConnection/1
|
||||||
|
lang: C
|
||||||
|
returncode: 0
|
||||||
|
stdout: 4183 bytes
|
||||||
|
>>>
|
||||||
|
connection.id: ethernet
|
||||||
|
connection.uuid: UUID-ethernet-REPLACED-REPLACED-REPL
|
||||||
|
connection.stable-id: --
|
||||||
|
connection.type: 802-3-ethernet
|
||||||
|
connection.interface-name: --
|
||||||
|
connection.autoconnect: yes
|
||||||
|
connection.autoconnect-priority: 0
|
||||||
|
connection.autoconnect-retries: -1 (default)
|
||||||
|
connection.auth-retries: -1
|
||||||
|
connection.timestamp: 0
|
||||||
|
connection.read-only: no
|
||||||
|
connection.permissions: --
|
||||||
|
connection.zone: --
|
||||||
|
connection.master: --
|
||||||
|
connection.slave-type: --
|
||||||
|
connection.autoconnect-slaves: -1 (default)
|
||||||
|
connection.secondaries: --
|
||||||
|
connection.gateway-ping-timeout: 0
|
||||||
|
connection.metered: unknown
|
||||||
|
connection.lldp: default
|
||||||
|
connection.mdns: -1 (default)
|
||||||
|
802-3-ethernet.port: --
|
||||||
|
802-3-ethernet.speed: 0
|
||||||
|
802-3-ethernet.duplex: --
|
||||||
|
802-3-ethernet.auto-negotiate: no
|
||||||
|
802-3-ethernet.mac-address: --
|
||||||
|
802-3-ethernet.cloned-mac-address: --
|
||||||
|
802-3-ethernet.generate-mac-address-mask:--
|
||||||
|
802-3-ethernet.mac-address-blacklist: --
|
||||||
|
802-3-ethernet.mtu: auto
|
||||||
|
802-3-ethernet.s390-subchannels: --
|
||||||
|
802-3-ethernet.s390-nettype: --
|
||||||
|
802-3-ethernet.s390-options: --
|
||||||
|
802-3-ethernet.wake-on-lan: default
|
||||||
|
802-3-ethernet.wake-on-lan-password: --
|
||||||
|
ipv4.method: auto
|
||||||
|
ipv4.dns: --
|
||||||
|
ipv4.dns-search: --
|
||||||
|
ipv4.dns-options: ""
|
||||||
|
ipv4.dns-priority: 0
|
||||||
|
ipv4.addresses: --
|
||||||
|
ipv4.gateway: --
|
||||||
|
ipv4.routes: --
|
||||||
|
ipv4.route-metric: -1
|
||||||
|
ipv4.route-table: 0 (unspec)
|
||||||
|
ipv4.ignore-auto-routes: no
|
||||||
|
ipv4.ignore-auto-dns: no
|
||||||
|
ipv4.dhcp-client-id: --
|
||||||
|
ipv4.dhcp-timeout: 0 (default)
|
||||||
|
ipv4.dhcp-send-hostname: yes
|
||||||
|
ipv4.dhcp-hostname: --
|
||||||
|
ipv4.dhcp-fqdn: --
|
||||||
|
ipv4.never-default: no
|
||||||
|
ipv4.may-fail: yes
|
||||||
|
ipv4.dad-timeout: -1 (default)
|
||||||
|
ipv6.method: auto
|
||||||
|
ipv6.dns: --
|
||||||
|
ipv6.dns-search: --
|
||||||
|
ipv6.dns-options: ""
|
||||||
|
ipv6.dns-priority: 0
|
||||||
|
ipv6.addresses: --
|
||||||
|
ipv6.gateway: --
|
||||||
|
ipv6.routes: --
|
||||||
|
ipv6.route-metric: -1
|
||||||
|
ipv6.route-table: 0 (unspec)
|
||||||
|
ipv6.ignore-auto-routes: no
|
||||||
|
ipv6.ignore-auto-dns: no
|
||||||
|
ipv6.never-default: no
|
||||||
|
ipv6.may-fail: yes
|
||||||
|
ipv6.ip6-privacy: -1 (unknown)
|
||||||
|
ipv6.addr-gen-mode: stable-privacy
|
||||||
|
ipv6.dhcp-send-hostname: yes
|
||||||
|
ipv6.dhcp-hostname: --
|
||||||
|
ipv6.token: --
|
||||||
|
proxy.method: none
|
||||||
|
proxy.browser-only: no
|
||||||
|
proxy.pac-url: --
|
||||||
|
proxy.pac-script: --
|
||||||
|
GENERAL.NAME: ethernet
|
||||||
|
GENERAL.UUID: UUID-ethernet-REPLACED-REPLACED-REPL
|
||||||
|
GENERAL.DEVICES: eth0
|
||||||
|
GENERAL.STATE: deactivating
|
||||||
|
GENERAL.DEFAULT: no
|
||||||
|
GENERAL.DEFAULT6: no
|
||||||
|
GENERAL.SPEC-OBJECT: --
|
||||||
|
GENERAL.VPN: no
|
||||||
|
GENERAL.DBUS-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1
|
||||||
|
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/Settings/Connection/3
|
||||||
|
GENERAL.ZONE: --
|
||||||
|
GENERAL.MASTER-PATH: --
|
||||||
|
|
||||||
|
<<<
|
||||||
|
stderr: 0 bytes
|
||||||
|
>>>
|
||||||
|
|
||||||
|
<<<
|
102
clients/tests/test-client.check-on-disk/test_003-068.expected
Normal file
102
clients/tests/test-client.check-on-disk/test_003-068.expected
Normal file
@@ -0,0 +1,102 @@
|
|||||||
|
location: clients/tests/test-client.py:796:test_003()/68
|
||||||
|
cmd: $NMCLI c s /org/freedesktop/NetworkManager/ActiveConnection/1
|
||||||
|
lang: pl_PL.UTF-8
|
||||||
|
returncode: 0
|
||||||
|
stdout: 4204 bytes
|
||||||
|
>>>
|
||||||
|
connection.id: ethernet
|
||||||
|
connection.uuid: UUID-ethernet-REPLACED-REPLACED-REPL
|
||||||
|
connection.stable-id: --
|
||||||
|
connection.type: 802-3-ethernet
|
||||||
|
connection.interface-name: --
|
||||||
|
connection.autoconnect: tak
|
||||||
|
connection.autoconnect-priority: 0
|
||||||
|
connection.autoconnect-retries: -1 (default)
|
||||||
|
connection.auth-retries: -1
|
||||||
|
connection.timestamp: 0
|
||||||
|
connection.read-only: nie
|
||||||
|
connection.permissions: --
|
||||||
|
connection.zone: --
|
||||||
|
connection.master: --
|
||||||
|
connection.slave-type: --
|
||||||
|
connection.autoconnect-slaves: -1 (default)
|
||||||
|
connection.secondaries: --
|
||||||
|
connection.gateway-ping-timeout: 0
|
||||||
|
connection.metered: nieznane
|
||||||
|
connection.lldp: default
|
||||||
|
connection.mdns: -1 (default)
|
||||||
|
802-3-ethernet.port: --
|
||||||
|
802-3-ethernet.speed: 0
|
||||||
|
802-3-ethernet.duplex: --
|
||||||
|
802-3-ethernet.auto-negotiate: nie
|
||||||
|
802-3-ethernet.mac-address: --
|
||||||
|
802-3-ethernet.cloned-mac-address: --
|
||||||
|
802-3-ethernet.generate-mac-address-mask:--
|
||||||
|
802-3-ethernet.mac-address-blacklist: --
|
||||||
|
802-3-ethernet.mtu: automatyczne
|
||||||
|
802-3-ethernet.s390-subchannels: --
|
||||||
|
802-3-ethernet.s390-nettype: --
|
||||||
|
802-3-ethernet.s390-options: --
|
||||||
|
802-3-ethernet.wake-on-lan: default
|
||||||
|
802-3-ethernet.wake-on-lan-password: --
|
||||||
|
ipv4.method: auto
|
||||||
|
ipv4.dns: --
|
||||||
|
ipv4.dns-search: --
|
||||||
|
ipv4.dns-options: ""
|
||||||
|
ipv4.dns-priority: 0
|
||||||
|
ipv4.addresses: --
|
||||||
|
ipv4.gateway: --
|
||||||
|
ipv4.routes: --
|
||||||
|
ipv4.route-metric: -1
|
||||||
|
ipv4.route-table: 0 (unspec)
|
||||||
|
ipv4.ignore-auto-routes: nie
|
||||||
|
ipv4.ignore-auto-dns: nie
|
||||||
|
ipv4.dhcp-client-id: --
|
||||||
|
ipv4.dhcp-timeout: 0 (default)
|
||||||
|
ipv4.dhcp-send-hostname: tak
|
||||||
|
ipv4.dhcp-hostname: --
|
||||||
|
ipv4.dhcp-fqdn: --
|
||||||
|
ipv4.never-default: nie
|
||||||
|
ipv4.may-fail: tak
|
||||||
|
ipv4.dad-timeout: -1 (default)
|
||||||
|
ipv6.method: auto
|
||||||
|
ipv6.dns: --
|
||||||
|
ipv6.dns-search: --
|
||||||
|
ipv6.dns-options: ""
|
||||||
|
ipv6.dns-priority: 0
|
||||||
|
ipv6.addresses: --
|
||||||
|
ipv6.gateway: --
|
||||||
|
ipv6.routes: --
|
||||||
|
ipv6.route-metric: -1
|
||||||
|
ipv6.route-table: 0 (unspec)
|
||||||
|
ipv6.ignore-auto-routes: nie
|
||||||
|
ipv6.ignore-auto-dns: nie
|
||||||
|
ipv6.never-default: nie
|
||||||
|
ipv6.may-fail: tak
|
||||||
|
ipv6.ip6-privacy: -1 (unknown)
|
||||||
|
ipv6.addr-gen-mode: stable-privacy
|
||||||
|
ipv6.dhcp-send-hostname: tak
|
||||||
|
ipv6.dhcp-hostname: --
|
||||||
|
ipv6.token: --
|
||||||
|
proxy.method: none
|
||||||
|
proxy.browser-only: nie
|
||||||
|
proxy.pac-url: --
|
||||||
|
proxy.pac-script: --
|
||||||
|
GENERAL.NAME: ethernet
|
||||||
|
GENERAL.UUID: UUID-ethernet-REPLACED-REPLACED-REPL
|
||||||
|
GENERAL.DEVICES: eth0
|
||||||
|
GENERAL.STATE: deactivating
|
||||||
|
GENERAL.DEFAULT: nie
|
||||||
|
GENERAL.DEFAULT6: nie
|
||||||
|
GENERAL.SPEC-OBJECT: --
|
||||||
|
GENERAL.VPN: nie
|
||||||
|
GENERAL.DBUS-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1
|
||||||
|
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/Settings/Connection/3
|
||||||
|
GENERAL.ZONE: --
|
||||||
|
GENERAL.MASTER-PATH: --
|
||||||
|
|
||||||
|
<<<
|
||||||
|
stderr: 0 bytes
|
||||||
|
>>>
|
||||||
|
|
||||||
|
<<<
|
@@ -0,0 +1,17 @@
|
|||||||
|
location: clients/tests/test-client.py:769:test_003()/69
|
||||||
|
cmd: $NMCLI -f ALL con
|
||||||
|
lang: C
|
||||||
|
returncode: 0
|
||||||
|
stdout: 1430 bytes
|
||||||
|
>>>
|
||||||
|
NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT AUTOCONNECT-PRIORITY READONLY DBUS-PATH ACTIVE DEVICE STATE ACTIVE-PATH SLAVE
|
||||||
|
<invisible> ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet -- -- -- -- -- -- yes eth0 deactivating /org/freedesktop/NetworkManager/ActiveConnection/1 --
|
||||||
|
<invisible> ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet -- -- -- -- -- -- yes eth1 activated /org/freedesktop/NetworkManager/ActiveConnection/2 --
|
||||||
|
con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet 0 never yes 0 no /org/freedesktop/NetworkManager/Settings/Connection/1 no -- -- -- --
|
||||||
|
con-xx1 UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet 0 never yes 0 no /org/freedesktop/NetworkManager/Settings/Connection/2 no -- -- -- --
|
||||||
|
|
||||||
|
<<<
|
||||||
|
stderr: 0 bytes
|
||||||
|
>>>
|
||||||
|
|
||||||
|
<<<
|
@@ -0,0 +1,17 @@
|
|||||||
|
location: clients/tests/test-client.py:769:test_003()/70
|
||||||
|
cmd: $NMCLI -f ALL con
|
||||||
|
lang: pl_PL.UTF-8
|
||||||
|
returncode: 0
|
||||||
|
stdout: 1430 bytes
|
||||||
|
>>>
|
||||||
|
NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT AUTOCONNECT-PRIORITY READONLY DBUS-PATH ACTIVE DEVICE STATE ACTIVE-PATH SLAVE
|
||||||
|
<invisible> ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet -- -- -- -- -- -- tak eth0 deactivating /org/freedesktop/NetworkManager/ActiveConnection/1 --
|
||||||
|
<invisible> ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet -- -- -- -- -- -- tak eth1 activated /org/freedesktop/NetworkManager/ActiveConnection/2 --
|
||||||
|
con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet 0 nigdy tak 0 nie /org/freedesktop/NetworkManager/Settings/Connection/1 nie -- -- -- --
|
||||||
|
con-xx1 UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet 0 nigdy tak 0 nie /org/freedesktop/NetworkManager/Settings/Connection/2 nie -- -- -- --
|
||||||
|
|
||||||
|
<<<
|
||||||
|
stderr: 0 bytes
|
||||||
|
>>>
|
||||||
|
|
||||||
|
<<<
|
@@ -0,0 +1,17 @@
|
|||||||
|
location: clients/tests/test-client.py:772:test_003()/71
|
||||||
|
cmd: $NMCLI -f UUID,TYPE con
|
||||||
|
lang: C
|
||||||
|
returncode: 0
|
||||||
|
stdout: 240 bytes
|
||||||
|
>>>
|
||||||
|
UUID TYPE
|
||||||
|
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
|
||||||
|
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
|
||||||
|
5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet
|
||||||
|
UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet
|
||||||
|
|
||||||
|
<<<
|
||||||
|
stderr: 0 bytes
|
||||||
|
>>>
|
||||||
|
|
||||||
|
<<<
|
@@ -0,0 +1,17 @@
|
|||||||
|
location: clients/tests/test-client.py:772:test_003()/72
|
||||||
|
cmd: $NMCLI -f UUID,TYPE con
|
||||||
|
lang: pl_PL.UTF-8
|
||||||
|
returncode: 0
|
||||||
|
stdout: 240 bytes
|
||||||
|
>>>
|
||||||
|
UUID TYPE
|
||||||
|
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
|
||||||
|
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
|
||||||
|
5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet
|
||||||
|
UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet
|
||||||
|
|
||||||
|
<<<
|
||||||
|
stderr: 0 bytes
|
||||||
|
>>>
|
||||||
|
|
||||||
|
<<<
|
@@ -0,0 +1,20 @@
|
|||||||
|
location: clients/tests/test-client.py:775:test_003()/73
|
||||||
|
cmd: $NMCLI -f UUID,TYPE --mode multiline con
|
||||||
|
lang: C
|
||||||
|
returncode: 0
|
||||||
|
stdout: 504 bytes
|
||||||
|
>>>
|
||||||
|
UUID: UUID-ethernet-REPLACED-REPLACED-REPL
|
||||||
|
TYPE: ethernet
|
||||||
|
UUID: UUID-ethernet-REPLACED-REPLACED-REPL
|
||||||
|
TYPE: ethernet
|
||||||
|
UUID: 5fcfd6d7-1e63-3332-8826-a7eda103792d
|
||||||
|
TYPE: ethernet
|
||||||
|
UUID: UUID-con-xx1-REPLACED-REPLACED-REPLA
|
||||||
|
TYPE: ethernet
|
||||||
|
|
||||||
|
<<<
|
||||||
|
stderr: 0 bytes
|
||||||
|
>>>
|
||||||
|
|
||||||
|
<<<
|
@@ -0,0 +1,20 @@
|
|||||||
|
location: clients/tests/test-client.py:775:test_003()/74
|
||||||
|
cmd: $NMCLI -f UUID,TYPE --mode multiline con
|
||||||
|
lang: pl_PL.UTF-8
|
||||||
|
returncode: 0
|
||||||
|
stdout: 504 bytes
|
||||||
|
>>>
|
||||||
|
UUID: UUID-ethernet-REPLACED-REPLACED-REPL
|
||||||
|
TYPE: ethernet
|
||||||
|
UUID: UUID-ethernet-REPLACED-REPLACED-REPL
|
||||||
|
TYPE: ethernet
|
||||||
|
UUID: 5fcfd6d7-1e63-3332-8826-a7eda103792d
|
||||||
|
TYPE: ethernet
|
||||||
|
UUID: UUID-con-xx1-REPLACED-REPLACED-REPLA
|
||||||
|
TYPE: ethernet
|
||||||
|
|
||||||
|
<<<
|
||||||
|
stderr: 0 bytes
|
||||||
|
>>>
|
||||||
|
|
||||||
|
<<<
|
@@ -0,0 +1,20 @@
|
|||||||
|
location: clients/tests/test-client.py:778:test_003()/75
|
||||||
|
cmd: $NMCLI -f UUID,TYPE --mode multiline --terse con
|
||||||
|
lang: C
|
||||||
|
returncode: 0
|
||||||
|
stdout: 248 bytes
|
||||||
|
>>>
|
||||||
|
UUID:UUID-ethernet-REPLACED-REPLACED-REPL
|
||||||
|
TYPE:802-3-ethernet
|
||||||
|
UUID:UUID-ethernet-REPLACED-REPLACED-REPL
|
||||||
|
TYPE:802-3-ethernet
|
||||||
|
UUID:5fcfd6d7-1e63-3332-8826-a7eda103792d
|
||||||
|
TYPE:802-3-ethernet
|
||||||
|
UUID:UUID-con-xx1-REPLACED-REPLACED-REPLA
|
||||||
|
TYPE:802-3-ethernet
|
||||||
|
|
||||||
|
<<<
|
||||||
|
stderr: 0 bytes
|
||||||
|
>>>
|
||||||
|
|
||||||
|
<<<
|
@@ -0,0 +1,20 @@
|
|||||||
|
location: clients/tests/test-client.py:778:test_003()/76
|
||||||
|
cmd: $NMCLI -f UUID,TYPE --mode multiline --terse con
|
||||||
|
lang: pl_PL.UTF-8
|
||||||
|
returncode: 0
|
||||||
|
stdout: 248 bytes
|
||||||
|
>>>
|
||||||
|
UUID:UUID-ethernet-REPLACED-REPLACED-REPL
|
||||||
|
TYPE:802-3-ethernet
|
||||||
|
UUID:UUID-ethernet-REPLACED-REPLACED-REPL
|
||||||
|
TYPE:802-3-ethernet
|
||||||
|
UUID:5fcfd6d7-1e63-3332-8826-a7eda103792d
|
||||||
|
TYPE:802-3-ethernet
|
||||||
|
UUID:UUID-con-xx1-REPLACED-REPLACED-REPLA
|
||||||
|
TYPE:802-3-ethernet
|
||||||
|
|
||||||
|
<<<
|
||||||
|
stderr: 0 bytes
|
||||||
|
>>>
|
||||||
|
|
||||||
|
<<<
|
@@ -0,0 +1,27 @@
|
|||||||
|
location: clients/tests/test-client.py:781:test_003()/77
|
||||||
|
cmd: $NMCLI -f UUID,TYPE --mode multiline --pretty con
|
||||||
|
lang: C
|
||||||
|
returncode: 0
|
||||||
|
stdout: 1041 bytes
|
||||||
|
>>>
|
||||||
|
===============================================================================
|
||||||
|
NetworkManager connection profiles
|
||||||
|
===============================================================================
|
||||||
|
UUID: UUID-ethernet-REPLACED-REPLACED-REPL
|
||||||
|
TYPE: ethernet
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
UUID: UUID-ethernet-REPLACED-REPLACED-REPL
|
||||||
|
TYPE: ethernet
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
UUID: 5fcfd6d7-1e63-3332-8826-a7eda103792d
|
||||||
|
TYPE: ethernet
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
UUID: UUID-con-xx1-REPLACED-REPLACED-REPLA
|
||||||
|
TYPE: ethernet
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
<<<
|
||||||
|
stderr: 0 bytes
|
||||||
|
>>>
|
||||||
|
|
||||||
|
<<<
|
@@ -0,0 +1,27 @@
|
|||||||
|
location: clients/tests/test-client.py:781:test_003()/78
|
||||||
|
cmd: $NMCLI -f UUID,TYPE --mode multiline --pretty con
|
||||||
|
lang: pl_PL.UTF-8
|
||||||
|
returncode: 0
|
||||||
|
stdout: 1047 bytes
|
||||||
|
>>>
|
||||||
|
===============================================================================
|
||||||
|
Profile połączeń usługi NetworkManager
|
||||||
|
===============================================================================
|
||||||
|
UUID: UUID-ethernet-REPLACED-REPLACED-REPL
|
||||||
|
TYPE: ethernet
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
UUID: UUID-ethernet-REPLACED-REPLACED-REPL
|
||||||
|
TYPE: ethernet
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
UUID: 5fcfd6d7-1e63-3332-8826-a7eda103792d
|
||||||
|
TYPE: ethernet
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
UUID: UUID-con-xx1-REPLACED-REPLACED-REPLA
|
||||||
|
TYPE: ethernet
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
<<<
|
||||||
|
stderr: 0 bytes
|
||||||
|
>>>
|
||||||
|
|
||||||
|
<<<
|
@@ -0,0 +1,17 @@
|
|||||||
|
location: clients/tests/test-client.py:784:test_003()/79
|
||||||
|
cmd: $NMCLI -f UUID,TYPE --mode tabular con
|
||||||
|
lang: C
|
||||||
|
returncode: 0
|
||||||
|
stdout: 240 bytes
|
||||||
|
>>>
|
||||||
|
UUID TYPE
|
||||||
|
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
|
||||||
|
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
|
||||||
|
5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet
|
||||||
|
UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet
|
||||||
|
|
||||||
|
<<<
|
||||||
|
stderr: 0 bytes
|
||||||
|
>>>
|
||||||
|
|
||||||
|
<<<
|
@@ -0,0 +1,17 @@
|
|||||||
|
location: clients/tests/test-client.py:784:test_003()/80
|
||||||
|
cmd: $NMCLI -f UUID,TYPE --mode tabular con
|
||||||
|
lang: pl_PL.UTF-8
|
||||||
|
returncode: 0
|
||||||
|
stdout: 240 bytes
|
||||||
|
>>>
|
||||||
|
UUID TYPE
|
||||||
|
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
|
||||||
|
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
|
||||||
|
5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet
|
||||||
|
UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet
|
||||||
|
|
||||||
|
<<<
|
||||||
|
stderr: 0 bytes
|
||||||
|
>>>
|
||||||
|
|
||||||
|
<<<
|
@@ -0,0 +1,16 @@
|
|||||||
|
location: clients/tests/test-client.py:787:test_003()/81
|
||||||
|
cmd: $NMCLI -f UUID,TYPE --mode tabular --terse con
|
||||||
|
lang: C
|
||||||
|
returncode: 0
|
||||||
|
stdout: 208 bytes
|
||||||
|
>>>
|
||||||
|
UUID-ethernet-REPLACED-REPLACED-REPL:802-3-ethernet
|
||||||
|
UUID-ethernet-REPLACED-REPLACED-REPL:802-3-ethernet
|
||||||
|
5fcfd6d7-1e63-3332-8826-a7eda103792d:802-3-ethernet
|
||||||
|
UUID-con-xx1-REPLACED-REPLACED-REPLA:802-3-ethernet
|
||||||
|
|
||||||
|
<<<
|
||||||
|
stderr: 0 bytes
|
||||||
|
>>>
|
||||||
|
|
||||||
|
<<<
|
@@ -0,0 +1,16 @@
|
|||||||
|
location: clients/tests/test-client.py:787:test_003()/82
|
||||||
|
cmd: $NMCLI -f UUID,TYPE --mode tabular --terse con
|
||||||
|
lang: pl_PL.UTF-8
|
||||||
|
returncode: 0
|
||||||
|
stdout: 208 bytes
|
||||||
|
>>>
|
||||||
|
UUID-ethernet-REPLACED-REPLACED-REPL:802-3-ethernet
|
||||||
|
UUID-ethernet-REPLACED-REPLACED-REPL:802-3-ethernet
|
||||||
|
5fcfd6d7-1e63-3332-8826-a7eda103792d:802-3-ethernet
|
||||||
|
UUID-con-xx1-REPLACED-REPLACED-REPLA:802-3-ethernet
|
||||||
|
|
||||||
|
<<<
|
||||||
|
stderr: 0 bytes
|
||||||
|
>>>
|
||||||
|
|
||||||
|
<<<
|
@@ -0,0 +1,21 @@
|
|||||||
|
location: clients/tests/test-client.py:790:test_003()/83
|
||||||
|
cmd: $NMCLI -f UUID,TYPE --mode tabular --pretty con
|
||||||
|
lang: C
|
||||||
|
returncode: 0
|
||||||
|
stdout: 442 bytes
|
||||||
|
>>>
|
||||||
|
======================================
|
||||||
|
NetworkManager connection profiles
|
||||||
|
======================================
|
||||||
|
UUID TYPE
|
||||||
|
--------------------------------------------------------------------------------------
|
||||||
|
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
|
||||||
|
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
|
||||||
|
5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet
|
||||||
|
UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet
|
||||||
|
|
||||||
|
<<<
|
||||||
|
stderr: 0 bytes
|
||||||
|
>>>
|
||||||
|
|
||||||
|
<<<
|
@@ -0,0 +1,21 @@
|
|||||||
|
location: clients/tests/test-client.py:790:test_003()/84
|
||||||
|
cmd: $NMCLI -f UUID,TYPE --mode tabular --pretty con
|
||||||
|
lang: pl_PL.UTF-8
|
||||||
|
returncode: 0
|
||||||
|
stdout: 462 bytes
|
||||||
|
>>>
|
||||||
|
==========================================
|
||||||
|
Profile połączeń usługi NetworkManager
|
||||||
|
==========================================
|
||||||
|
UUID TYPE
|
||||||
|
------------------------------------------------------------------------------------------
|
||||||
|
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
|
||||||
|
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
|
||||||
|
5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet
|
||||||
|
UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet
|
||||||
|
|
||||||
|
<<<
|
||||||
|
stderr: 0 bytes
|
||||||
|
>>>
|
||||||
|
|
||||||
|
<<<
|
@@ -0,0 +1,13 @@
|
|||||||
|
location: clients/tests/test-client.py:793:test_003()/85
|
||||||
|
cmd: $NMCLI con s ethernet
|
||||||
|
lang: C
|
||||||
|
returncode: 10
|
||||||
|
stdout: 0 bytes
|
||||||
|
>>>
|
||||||
|
|
||||||
|
<<<
|
||||||
|
stderr: 46 bytes
|
||||||
|
>>>
|
||||||
|
Error: ethernet - no such connection profile.
|
||||||
|
|
||||||
|
<<<
|
@@ -0,0 +1,13 @@
|
|||||||
|
location: clients/tests/test-client.py:793:test_003()/86
|
||||||
|
cmd: $NMCLI con s ethernet
|
||||||
|
lang: pl_PL.UTF-8
|
||||||
|
returncode: 10
|
||||||
|
stdout: 0 bytes
|
||||||
|
>>>
|
||||||
|
|
||||||
|
<<<
|
||||||
|
stderr: 58 bytes
|
||||||
|
>>>
|
||||||
|
Błąd: ethernet — nie ma takiego profilu połączenia.
|
||||||
|
|
||||||
|
<<<
|
@@ -0,0 +1,14 @@
|
|||||||
|
location: clients/tests/test-client.py:796:test_003()/87
|
||||||
|
cmd: $NMCLI c s /org/freedesktop/NetworkManager/ActiveConnection/1
|
||||||
|
lang: C
|
||||||
|
returncode: -6
|
||||||
|
stdout: 0 bytes
|
||||||
|
>>>
|
||||||
|
|
||||||
|
<<<
|
||||||
|
stderr: 102 bytes
|
||||||
|
>>>
|
||||||
|
**
|
||||||
|
nmcli:ERROR:clients/cli/connections.c:893:fill_output_active_connection: assertion failed: (s_con)
|
||||||
|
|
||||||
|
<<<
|
@@ -0,0 +1,14 @@
|
|||||||
|
location: clients/tests/test-client.py:796:test_003()/88
|
||||||
|
cmd: $NMCLI c s /org/freedesktop/NetworkManager/ActiveConnection/1
|
||||||
|
lang: pl_PL.UTF-8
|
||||||
|
returncode: -6
|
||||||
|
stdout: 0 bytes
|
||||||
|
>>>
|
||||||
|
|
||||||
|
<<<
|
||||||
|
stderr: 102 bytes
|
||||||
|
>>>
|
||||||
|
**
|
||||||
|
nmcli:ERROR:clients/cli/connections.c:893:fill_output_active_connection: assertion failed: (s_con)
|
||||||
|
|
||||||
|
<<<
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:798:test_004()/1
|
location: clients/tests/test-client.py:806:test_004()/1
|
||||||
cmd: $NMCLI c add type wifi ifname '*' ssid foobar con-name con-xx1
|
cmd: $NMCLI c add type wifi ifname '*' ssid foobar con-name con-xx1
|
||||||
lang: C
|
lang: C
|
||||||
returncode: 0
|
returncode: 0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:800:test_004()/2
|
location: clients/tests/test-client.py:808:test_004()/2
|
||||||
cmd: $NMCLI connection mod con-xx1 ip.gateway ''
|
cmd: $NMCLI connection mod con-xx1 ip.gateway ''
|
||||||
lang: C
|
lang: C
|
||||||
returncode: 2
|
returncode: 2
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:801:test_004()/3
|
location: clients/tests/test-client.py:809:test_004()/3
|
||||||
cmd: $NMCLI connection mod con-xx1 ipv4.gateway 172.16.0.1
|
cmd: $NMCLI connection mod con-xx1 ipv4.gateway 172.16.0.1
|
||||||
lang: C
|
lang: C
|
||||||
returncode: 0
|
returncode: 0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:802:test_004()/4
|
location: clients/tests/test-client.py:810:test_004()/4
|
||||||
cmd: $NMCLI connection mod con-xx1 ipv6.gateway ::99
|
cmd: $NMCLI connection mod con-xx1 ipv6.gateway ::99
|
||||||
lang: C
|
lang: C
|
||||||
returncode: 0
|
returncode: 0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:803:test_004()/5
|
location: clients/tests/test-client.py:811:test_004()/5
|
||||||
cmd: $NMCLI connection mod con-xx1 802.abc ''
|
cmd: $NMCLI connection mod con-xx1 802.abc ''
|
||||||
lang: C
|
lang: C
|
||||||
returncode: 2
|
returncode: 2
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
location: clients/tests/test-client.py:804:test_004()/6
|
location: clients/tests/test-client.py:812:test_004()/6
|
||||||
cmd: $NMCLI connection mod con-xx1 802-11-wireless.band a
|
cmd: $NMCLI connection mod con-xx1 802-11-wireless.band a
|
||||||
lang: C
|
lang: C
|
||||||
returncode: 0
|
returncode: 0
|
||||||
|
@@ -760,6 +760,11 @@ class TestNmcli(NmTestBase):
|
|||||||
'State',
|
'State',
|
||||||
dbus.UInt32(NM.ActiveConnectionState.DEACTIVATING))
|
dbus.UInt32(NM.ActiveConnectionState.DEACTIVATING))
|
||||||
|
|
||||||
|
for i in [0, 1]:
|
||||||
|
if i == 1:
|
||||||
|
self.async_wait()
|
||||||
|
self.srv.op_ConnectionSetVisible(False, con_id = 'ethernet')
|
||||||
|
|
||||||
self.call_nmcli_l(['-f', 'ALL', 'con'],
|
self.call_nmcli_l(['-f', 'ALL', 'con'],
|
||||||
replace_stdout = replace_stdout)
|
replace_stdout = replace_stdout)
|
||||||
|
|
||||||
@@ -787,6 +792,9 @@ class TestNmcli(NmTestBase):
|
|||||||
self.call_nmcli_l(['con', 's', 'ethernet'],
|
self.call_nmcli_l(['con', 's', 'ethernet'],
|
||||||
replace_stdout = replace_stdout)
|
replace_stdout = replace_stdout)
|
||||||
|
|
||||||
|
self.call_nmcli_l(['c', 's', '/org/freedesktop/NetworkManager/ActiveConnection/1'],
|
||||||
|
replace_stdout = replace_stdout)
|
||||||
|
|
||||||
def test_004(self):
|
def test_004(self):
|
||||||
self.init_001()
|
self.init_001()
|
||||||
|
|
||||||
|
@@ -968,8 +968,8 @@ class NetworkManager(ExportedObj):
|
|||||||
gl.mainloop.quit()
|
gl.mainloop.quit()
|
||||||
|
|
||||||
@dbus.service.method(IFACE_TEST, in_signature='a{ss}', out_signature='a(sss)')
|
@dbus.service.method(IFACE_TEST, in_signature='a{ss}', out_signature='a(sss)')
|
||||||
def FindConnections(self, args):
|
def FindConnections(self, selector_args):
|
||||||
return [(c.path, c.get_uuid(), c.get_id()) for c in gl.settings.find_connections(**args)]
|
return [(c.path, c.get_uuid(), c.get_id()) for c in gl.settings.find_connections(**selector_args)]
|
||||||
|
|
||||||
@dbus.service.method(IFACE_TEST, in_signature='a(oa(sa(sv)))', out_signature='')
|
@dbus.service.method(IFACE_TEST, in_signature='a(oa(sa(sv)))', out_signature='')
|
||||||
def SetProperties(self, all_args):
|
def SetProperties(self, all_args):
|
||||||
@@ -1055,6 +1055,12 @@ class NetworkManager(ExportedObj):
|
|||||||
def UpdateConnection(self, path, connection, verify_connection):
|
def UpdateConnection(self, path, connection, verify_connection):
|
||||||
return gl.settings.update_connection(connection, path, verify_connection)
|
return gl.settings.update_connection(connection, path, verify_connection)
|
||||||
|
|
||||||
|
@dbus.service.method(dbus_interface=IFACE_TEST, in_signature='ba{ss}', out_signature='')
|
||||||
|
def ConnectionSetVisible(self, vis, selector_args):
|
||||||
|
cons = list(gl.settings.find_connections(**selector_args))
|
||||||
|
assert(len(cons) == 1)
|
||||||
|
cons[0].SetVisible(vis)
|
||||||
|
|
||||||
@dbus.service.method(dbus_interface=IFACE_TEST, in_signature='', out_signature='')
|
@dbus.service.method(dbus_interface=IFACE_TEST, in_signature='', out_signature='')
|
||||||
def Restart(self):
|
def Restart(self):
|
||||||
gl.bus.release_name("org.freedesktop.NetworkManager")
|
gl.bus.release_name("org.freedesktop.NetworkManager")
|
||||||
|
Reference in New Issue
Block a user