ns2 0.2.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ns2/__init__.py +0 -0
- ns2/core.py +0 -0
- ns2/dbus/__init__.py +0 -0
- ns2/dbus/dbus.py +13 -0
- ns2/lib/__init__.py +0 -0
- ns2/lib/accounts.py +130 -0
- ns2/lib/commands.py +32 -0
- ns2/lib/firewalld.py +167 -0
- ns2/lib/introspection/org.fedoraproject.FirewallD1.config.xml +3 -0
- ns2/lib/introspection/org.fedoraproject.FirewallD1.xml +763 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.AccessPoint.xml +106 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.AgentManager.xml +43 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Checkpoint.xml +36 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Connection.Active.xml +185 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.DHCP4Config.xml +21 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.DHCP6Config.xml +20 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Adsl.xml +21 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Bluetooth.xml +36 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Bond.xml +40 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Bridge.xml +41 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Dummy.xml +20 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Generic.xml +27 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Hsr.xml +51 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.IPTunnel.xml +107 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Infiniband.xml +31 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Ipvlan.xml +38 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Loopback.xml +8 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Lowpan.xml +27 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Macsec.xml +109 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Macvlan.xml +39 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Modem.xml +62 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.OlpcMesh.xml +34 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.OvsBridge.xml +21 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.OvsInterface.xml +11 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.OvsPort.xml +21 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Ppp.xml +11 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Statistics.xml +35 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Team.xml +48 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Tun.xml +65 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Veth.xml +18 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Vlan.xml +45 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Vrf.xml +18 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Vxlan.xml +139 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.WiMax.xml +109 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.WifiP2P.xml +76 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.WireGuard.xml +38 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Wired.xml +53 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Wireless.xml +131 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Wpan.xml +20 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Device.xml +407 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.DnsManager.xml +40 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.IP4Config.xml +125 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.IP6Config.xml +95 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.PPP.xml +34 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.SecretAgent.xml +94 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Settings.Connection.xml +224 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.Settings.xml +233 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.VPN.Connection.xml +42 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.VPN.Plugin.xml +204 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.WiMax.Nsp.xml +35 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.WifiP2PPeer.xml +91 -0
- ns2/lib/introspection/org.freedesktop.NetworkManager.xml +598 -0
- ns2/lib/lib.py +0 -0
- ns2/lib/network_delay.py +92 -0
- ns2/lib/networking.py +528 -0
- ns2/lib/ntl.py +188 -0
- ns2/lib/pam_client.py +37 -0
- ns2/lib/ping_data_collector.py +37 -0
- ns2/lib/snmp.py +511 -0
- ns2/lib/socket.py +132 -0
- ns2/lib/socket_client.py +62 -0
- ns2/lib/systemd.py +151 -0
- ns2/lib/test.py +374 -0
- ns2/lib/udp_client.py +227 -0
- ns2/lib/udp_server.py +167 -0
- ns2/snmp/__init__.py +0 -0
- ns2/snmp/ns_dbus_service.py +38 -0
- ns2/snmp/pam_interface.py +19 -0
- ns2/snmp/snmp_interface.py +66 -0
- ns2/ui/__init__.py +0 -0
- ns2/ui/assets/NOVUS_LOGO.svg +105 -0
- ns2/ui/assets/favicon.png +0 -0
- ns2/ui/firewalld_page.py +375 -0
- ns2/ui/fpga_page.py +24 -0
- ns2/ui/login.py +65 -0
- ns2/ui/main.py +200 -0
- ns2/ui/networking_page.py +406 -0
- ns2/ui/ntp.py +105 -0
- ns2/ui/root.py +31 -0
- ns2/ui/snmp_page.py +353 -0
- ns2/ui/terminal.py +65 -0
- ns2/ui/tests_page.py +116 -0
- ns2/ui/theme.py +25 -0
- ns2/utils.py +5 -0
- ns2-0.2.6.dist-info/METADATA +78 -0
- ns2-0.2.6.dist-info/RECORD +98 -0
- ns2-0.2.6.dist-info/WHEEL +4 -0
- ns2-0.2.6.dist-info/entry_points.txt +3 -0
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<node name="/">
|
|
3
|
+
<!--
|
|
4
|
+
org.freedesktop.NetworkManager.Device:
|
|
5
|
+
@short_description: Device.
|
|
6
|
+
|
|
7
|
+
-->
|
|
8
|
+
<interface name="org.freedesktop.NetworkManager.Device">
|
|
9
|
+
|
|
10
|
+
<!--
|
|
11
|
+
Udi:
|
|
12
|
+
|
|
13
|
+
Operating-system specific transient device hardware identifier. This is an
|
|
14
|
+
opaque string representing the underlying hardware for the device, and
|
|
15
|
+
shouldn't be used to keep track of individual devices. For some device
|
|
16
|
+
types (Bluetooth, Modems) it is an identifier used by the hardware service
|
|
17
|
+
(ie bluez or ModemManager) to refer to that device, and client programs
|
|
18
|
+
use it get additional information from those services which NM does not
|
|
19
|
+
provide. The Udi is not guaranteed to be consistent across reboots or
|
|
20
|
+
hotplugs of the hardware. If you're looking for a way to uniquely track
|
|
21
|
+
each device in your application, use the object path. If you're looking
|
|
22
|
+
for a way to track a specific piece of hardware across reboot or hotplug,
|
|
23
|
+
use a MAC address or USB serial number.
|
|
24
|
+
|
|
25
|
+
Note that non-UTF-8 characters are backslash escaped. Use g_strcompress()
|
|
26
|
+
to obtain the true (non-UTF-8) string.
|
|
27
|
+
-->
|
|
28
|
+
<property name="Udi" type="s" access="read"/>
|
|
29
|
+
|
|
30
|
+
<!--
|
|
31
|
+
Path:
|
|
32
|
+
|
|
33
|
+
The path of the device as exposed by the udev property ID_PATH.
|
|
34
|
+
|
|
35
|
+
Note that non-UTF-8 characters are backslash escaped. Use g_strcompress()
|
|
36
|
+
to obtain the true (non-UTF-8) string.
|
|
37
|
+
-->
|
|
38
|
+
<property name="Path" type="s" access="read"/>
|
|
39
|
+
|
|
40
|
+
<!--
|
|
41
|
+
Interface:
|
|
42
|
+
|
|
43
|
+
The name of the device's control (and often data) interface.
|
|
44
|
+
Note that non UTF-8 characters are backslash escaped, so the
|
|
45
|
+
resulting name may be longer then 15 characters. Use g_strcompress()
|
|
46
|
+
to revert the escaping.
|
|
47
|
+
-->
|
|
48
|
+
<property name="Interface" type="s" access="read"/>
|
|
49
|
+
|
|
50
|
+
<!--
|
|
51
|
+
IpInterface:
|
|
52
|
+
|
|
53
|
+
The name of the device's data interface when available. This property may
|
|
54
|
+
not refer to the actual data interface until the device has successfully
|
|
55
|
+
established a data connection, indicated by the device's State becoming
|
|
56
|
+
ACTIVATED.
|
|
57
|
+
Note that non UTF-8 characters are backslash escaped, so the
|
|
58
|
+
resulting name may be longer then 15 characters. Use g_strcompress()
|
|
59
|
+
to revert the escaping.
|
|
60
|
+
-->
|
|
61
|
+
<property name="IpInterface" type="s" access="read"/>
|
|
62
|
+
|
|
63
|
+
<!--
|
|
64
|
+
Driver:
|
|
65
|
+
|
|
66
|
+
The driver handling the device.
|
|
67
|
+
Non-UTF-8 sequences are backslash escaped. Use g_strcompress()
|
|
68
|
+
to revert.
|
|
69
|
+
-->
|
|
70
|
+
<property name="Driver" type="s" access="read"/>
|
|
71
|
+
|
|
72
|
+
<!--
|
|
73
|
+
DriverVersion:
|
|
74
|
+
|
|
75
|
+
The version of the driver handling the device.
|
|
76
|
+
Non-UTF-8 sequences are backslash escaped. Use g_strcompress()
|
|
77
|
+
to revert.
|
|
78
|
+
-->
|
|
79
|
+
<property name="DriverVersion" type="s" access="read"/>
|
|
80
|
+
|
|
81
|
+
<!--
|
|
82
|
+
FirmwareVersion:
|
|
83
|
+
|
|
84
|
+
The firmware version for the device.
|
|
85
|
+
Non-UTF-8 sequences are backslash escaped. Use g_strcompress()
|
|
86
|
+
to revert.
|
|
87
|
+
-->
|
|
88
|
+
<property name="FirmwareVersion" type="s" access="read"/>
|
|
89
|
+
|
|
90
|
+
<!--
|
|
91
|
+
Capabilities:
|
|
92
|
+
|
|
93
|
+
Flags describing the capabilities of the device.
|
|
94
|
+
|
|
95
|
+
Returns: <link linkend="NMDeviceCapabilities">NMDeviceCapabilities</link>
|
|
96
|
+
-->
|
|
97
|
+
<property name="Capabilities" type="u" access="read"/>
|
|
98
|
+
|
|
99
|
+
<!--
|
|
100
|
+
Ip4Address:
|
|
101
|
+
|
|
102
|
+
DEPRECATED; use the 'Addresses' property of the 'Ip4Config' object
|
|
103
|
+
instead. This property always returns 0.0.0.0 (numeric 0) as address.
|
|
104
|
+
-->
|
|
105
|
+
<property name="Ip4Address" type="u" access="read"/>
|
|
106
|
+
|
|
107
|
+
<!--
|
|
108
|
+
State:
|
|
109
|
+
|
|
110
|
+
The current state of the device.
|
|
111
|
+
|
|
112
|
+
Returns: <link linkend="NMDeviceState">NMDeviceState</link>
|
|
113
|
+
-->
|
|
114
|
+
<property name="State" type="u" access="read"/>
|
|
115
|
+
|
|
116
|
+
<!--
|
|
117
|
+
StateReason:
|
|
118
|
+
|
|
119
|
+
The current state and reason for changing to that state.
|
|
120
|
+
|
|
121
|
+
Returns: A tuple of <link linkend="NMDeviceState">NMDeviceState</link> and <link linkend="NMDeviceStateReason">NMDeviceStateReason</link>.
|
|
122
|
+
-->
|
|
123
|
+
<property name="StateReason" type="(uu)" access="read"/>
|
|
124
|
+
|
|
125
|
+
<!--
|
|
126
|
+
ActiveConnection:
|
|
127
|
+
|
|
128
|
+
Object path of an ActiveConnection object that "owns" this device during
|
|
129
|
+
activation. The ActiveConnection object tracks the life-cycle of a
|
|
130
|
+
connection to a specific network and implements the
|
|
131
|
+
org.freedesktop.NetworkManager.Connection.Active D-Bus interface.
|
|
132
|
+
-->
|
|
133
|
+
<property name="ActiveConnection" type="o" access="read"/>
|
|
134
|
+
|
|
135
|
+
<!--
|
|
136
|
+
Ip4Config:
|
|
137
|
+
|
|
138
|
+
Object path of the Ip4Config object describing the configuration of the
|
|
139
|
+
device. Only valid when the device is in the NM_DEVICE_STATE_ACTIVATED
|
|
140
|
+
state.
|
|
141
|
+
-->
|
|
142
|
+
<property name="Ip4Config" type="o" access="read"/>
|
|
143
|
+
|
|
144
|
+
<!--
|
|
145
|
+
Dhcp4Config:
|
|
146
|
+
|
|
147
|
+
Object path of the Dhcp4Config object describing the DHCP options returned
|
|
148
|
+
by the DHCP server. Only valid when the device is in the
|
|
149
|
+
NM_DEVICE_STATE_ACTIVATED state.
|
|
150
|
+
-->
|
|
151
|
+
<property name="Dhcp4Config" type="o" access="read"/>
|
|
152
|
+
|
|
153
|
+
<!--
|
|
154
|
+
Ip6Config:
|
|
155
|
+
|
|
156
|
+
Object path of the Ip6Config object describing the configuration of the
|
|
157
|
+
device. Only valid when the device is in the NM_DEVICE_STATE_ACTIVATED
|
|
158
|
+
state.
|
|
159
|
+
-->
|
|
160
|
+
<property name="Ip6Config" type="o" access="read"/>
|
|
161
|
+
|
|
162
|
+
<!--
|
|
163
|
+
Dhcp6Config:
|
|
164
|
+
|
|
165
|
+
Object path of the Dhcp6Config object describing the DHCP options returned
|
|
166
|
+
by the DHCP server. Only valid when the device is in the
|
|
167
|
+
NM_DEVICE_STATE_ACTIVATED state.
|
|
168
|
+
-->
|
|
169
|
+
<property name="Dhcp6Config" type="o" access="read"/>
|
|
170
|
+
|
|
171
|
+
<!--
|
|
172
|
+
Managed:
|
|
173
|
+
|
|
174
|
+
Whether or not this device is managed by NetworkManager. Setting this
|
|
175
|
+
property has a similar effect to configuring the device as unmanaged via
|
|
176
|
+
the keyfile.unmanaged-devices setting in NetworkManager.conf. Changes to
|
|
177
|
+
this value are not persistent and lost after NetworkManager restart.
|
|
178
|
+
-->
|
|
179
|
+
<property name="Managed" type="b" access="readwrite"/>
|
|
180
|
+
|
|
181
|
+
<!--
|
|
182
|
+
Autoconnect:
|
|
183
|
+
|
|
184
|
+
If TRUE, indicates the device is allowed to autoconnect. If FALSE, manual
|
|
185
|
+
intervention is required before the device will automatically connect to a
|
|
186
|
+
known network, such as activating a connection using the device, or
|
|
187
|
+
setting this property to TRUE. This property cannot be set to TRUE for
|
|
188
|
+
default-unmanaged devices, since they never autoconnect.
|
|
189
|
+
-->
|
|
190
|
+
<property name="Autoconnect" type="b" access="readwrite"/>
|
|
191
|
+
|
|
192
|
+
<!--
|
|
193
|
+
FirmwareMissing:
|
|
194
|
+
|
|
195
|
+
If TRUE, indicates the device is likely missing firmware necessary for its
|
|
196
|
+
operation.
|
|
197
|
+
-->
|
|
198
|
+
<property name="FirmwareMissing" type="b" access="read"/>
|
|
199
|
+
|
|
200
|
+
<!--
|
|
201
|
+
NmPluginMissing:
|
|
202
|
+
|
|
203
|
+
If TRUE, indicates the NetworkManager plugin for the device is likely
|
|
204
|
+
missing or misconfigured.
|
|
205
|
+
-->
|
|
206
|
+
<property name="NmPluginMissing" type="b" access="read"/>
|
|
207
|
+
|
|
208
|
+
<!--
|
|
209
|
+
DeviceType:
|
|
210
|
+
|
|
211
|
+
The general type of the network device; ie Ethernet, Wi-Fi, etc.
|
|
212
|
+
|
|
213
|
+
Returns: <link linkend="NMDeviceType">NMDeviceType</link>
|
|
214
|
+
-->
|
|
215
|
+
<property name="DeviceType" type="u" access="read"/>
|
|
216
|
+
|
|
217
|
+
<!--
|
|
218
|
+
AvailableConnections:
|
|
219
|
+
|
|
220
|
+
An array of object paths of every configured connection that is currently
|
|
221
|
+
'available' through this device.
|
|
222
|
+
-->
|
|
223
|
+
<property name="AvailableConnections" type="ao" access="read"/>
|
|
224
|
+
|
|
225
|
+
<!--
|
|
226
|
+
PhysicalPortId:
|
|
227
|
+
|
|
228
|
+
If non-empty, an (opaque) indicator of the physical network port
|
|
229
|
+
associated with the device. This can be used to recognize when two
|
|
230
|
+
seemingly-separate hardware devices are actually just different virtual
|
|
231
|
+
interfaces to the same physical port.
|
|
232
|
+
-->
|
|
233
|
+
<property name="PhysicalPortId" type="s" access="read"/>
|
|
234
|
+
|
|
235
|
+
<!--
|
|
236
|
+
Mtu:
|
|
237
|
+
|
|
238
|
+
The device MTU (maximum transmission unit).
|
|
239
|
+
-->
|
|
240
|
+
<property name="Mtu" type="u" access="read"/>
|
|
241
|
+
|
|
242
|
+
<!--
|
|
243
|
+
Metered:
|
|
244
|
+
|
|
245
|
+
Whether the amount of traffic flowing through the device is subject to
|
|
246
|
+
limitations, for example set by service providers.
|
|
247
|
+
|
|
248
|
+
Returns: <link linkend="NMMetered">NMMetered</link>
|
|
249
|
+
-->
|
|
250
|
+
<property name="Metered" type="u" access="read"/>
|
|
251
|
+
|
|
252
|
+
<!--
|
|
253
|
+
LldpNeighbors:
|
|
254
|
+
|
|
255
|
+
Array of LLDP neighbors; each element is a dictionary mapping LLDP TLV
|
|
256
|
+
names to variant boxed values.
|
|
257
|
+
-->
|
|
258
|
+
<property name="LldpNeighbors" type="aa{sv}" access="read"/>
|
|
259
|
+
|
|
260
|
+
<!--
|
|
261
|
+
Real:
|
|
262
|
+
|
|
263
|
+
True if the device exists, or False for placeholder devices that do not
|
|
264
|
+
yet exist but could be automatically created by NetworkManager if one of
|
|
265
|
+
their AvailableConnections was activated.
|
|
266
|
+
-->
|
|
267
|
+
<property name="Real" type="b" access="read"/>
|
|
268
|
+
|
|
269
|
+
<!--
|
|
270
|
+
Ip4Connectivity:
|
|
271
|
+
@since: 1.16
|
|
272
|
+
|
|
273
|
+
The result of the last IPv4 connectivity check.
|
|
274
|
+
|
|
275
|
+
Returns: <link linkend="NMConnectivityState">NMConnectivityState</link>
|
|
276
|
+
-->
|
|
277
|
+
<property name="Ip4Connectivity" type="u" access="read"/>
|
|
278
|
+
|
|
279
|
+
<!--
|
|
280
|
+
Ip6Connectivity:
|
|
281
|
+
@since: 1.16
|
|
282
|
+
|
|
283
|
+
The result of the last IPv6 connectivity check.
|
|
284
|
+
|
|
285
|
+
Returns: <link linkend="NMConnectivityState">NMConnectivityState</link>
|
|
286
|
+
-->
|
|
287
|
+
<property name="Ip6Connectivity" type="u" access="read"/>
|
|
288
|
+
|
|
289
|
+
<!--
|
|
290
|
+
InterfaceFlags:
|
|
291
|
+
@since: 1.22
|
|
292
|
+
|
|
293
|
+
The flags of the network interface. See
|
|
294
|
+
<link linkend="NMDeviceInterfaceFlags">NMDeviceInterfaceFlags</link> for
|
|
295
|
+
the currently defined flags.
|
|
296
|
+
-->
|
|
297
|
+
<property name="InterfaceFlags" type="u" access="read"/>
|
|
298
|
+
|
|
299
|
+
<!--
|
|
300
|
+
HwAddress:
|
|
301
|
+
@since: 1.24
|
|
302
|
+
|
|
303
|
+
The hardware address of the device.
|
|
304
|
+
|
|
305
|
+
This replaces the other 'HwAddress' properties on the device-specific D-Bus interfaces.
|
|
306
|
+
-->
|
|
307
|
+
<property name="HwAddress" type="s" access="read"/>
|
|
308
|
+
|
|
309
|
+
<!--
|
|
310
|
+
Ports:
|
|
311
|
+
@since: 1.34
|
|
312
|
+
|
|
313
|
+
The port devices of the controller device.
|
|
314
|
+
|
|
315
|
+
Array of object paths representing devices which are currently set as
|
|
316
|
+
port of this device. This replaces the 'Slaves' properties on the
|
|
317
|
+
device-specific D-Bus interfaces.
|
|
318
|
+
-->
|
|
319
|
+
<property name="Ports" type="ao" access="read"/>
|
|
320
|
+
|
|
321
|
+
<!--
|
|
322
|
+
Reapply:
|
|
323
|
+
@connection: The optional connection settings that will be reapplied on the device. If empty, the currently active settings-connection will be used. The connection cannot arbitrarily differ from the current applied-connection otherwise the call will fail. Only certain changes are supported, like adding or removing IP addresses.
|
|
324
|
+
@version_id: If non-zero, the current version id of the applied-connection must match. The current version id can be retrieved via GetAppliedConnection. This optional argument allows one to catch concurrent modifications between the GetAppliedConnection call and Reapply.
|
|
325
|
+
@flags: Flags which would modify the behavior of the Reapply call. Invalid flags are rejected.
|
|
326
|
+
|
|
327
|
+
Attempts to update the configuration of a device without deactivating it.
|
|
328
|
+
NetworkManager has the concept of connections, which are profiles that
|
|
329
|
+
contain the configuration for a networking device. Those connections are
|
|
330
|
+
exposed via D-Bus as individual objects that can be created, modified and
|
|
331
|
+
deleted. When activating such a settings-connection on a device, the
|
|
332
|
+
settings-connection is cloned to become an applied-connection and used to
|
|
333
|
+
configure the device (see GetAppliedConnection). Subsequent modification
|
|
334
|
+
of the settings-connection don't propagate automatically to the device's
|
|
335
|
+
applied-connection (with exception of the firewall-zone and the metered
|
|
336
|
+
property). For the changes to take effect, you can either re-activate the
|
|
337
|
+
settings-connection, or call Reapply. The Reapply call allows you to
|
|
338
|
+
directly update the applied-connection and reconfigure the device. Reapply
|
|
339
|
+
can also be useful if the currently applied-connection is equal to the
|
|
340
|
+
connection that is about to be reapplied. This allows one to reconfigure the
|
|
341
|
+
device and revert external changes like removing or adding an IP address
|
|
342
|
+
(which NetworkManager doesn't revert automatically because it is assumed
|
|
343
|
+
that the user made these changes intentionally outside of NetworkManager).
|
|
344
|
+
Reapply can make the applied-connection different from the
|
|
345
|
+
settings-connection, just like updating the settings-connection can make
|
|
346
|
+
them different.
|
|
347
|
+
|
|
348
|
+
Since 1.42, "preserve-external-ip" flag (0x1) is supported to not remove
|
|
349
|
+
externally added IP addresses and routes on the device during reapply.
|
|
350
|
+
-->
|
|
351
|
+
<method name="Reapply">
|
|
352
|
+
<arg name="connection" type="a{sa{sv}}" direction="in"/>
|
|
353
|
+
<arg name="version_id" type="t" direction="in"/>
|
|
354
|
+
<arg name="flags" type="u" direction="in"/>
|
|
355
|
+
</method>
|
|
356
|
+
|
|
357
|
+
<!--
|
|
358
|
+
GetAppliedConnection:
|
|
359
|
+
@flags: Flags which would modify the behavior of the GetAppliedConnection call. There are no flags defined currently and the users should use the value of 0.
|
|
360
|
+
@connection: The effective connection settings that the connection has currently applied.
|
|
361
|
+
@version_id: The version-id of the currently applied connection. This can be specified during Reapply to avoid races where you first fetch the applied connection, modify it and try to reapply it. If the applied connection is modified in the meantime, the version_id gets incremented and Reapply will fail.
|
|
362
|
+
|
|
363
|
+
Get the currently applied connection on the device. This is a snapshot of
|
|
364
|
+
the last activated connection on the device, that is the configuration
|
|
365
|
+
that is currently applied on the device. Usually this is the same as
|
|
366
|
+
GetSettings of the referenced settings connection. However, it can differ
|
|
367
|
+
if the settings connection was subsequently modified or the applied
|
|
368
|
+
connection was modified by Reapply. The applied connection is set when
|
|
369
|
+
activating a device or when calling Reapply.
|
|
370
|
+
-->
|
|
371
|
+
<method name="GetAppliedConnection">
|
|
372
|
+
<arg name="flags" type="u" direction="in"/>
|
|
373
|
+
<arg name="connection" type="a{sa{sv}}" direction="out"/>
|
|
374
|
+
<arg name="version_id" type="t" direction="out"/>
|
|
375
|
+
</method>
|
|
376
|
+
|
|
377
|
+
<!--
|
|
378
|
+
Disconnect:
|
|
379
|
+
|
|
380
|
+
Disconnects a device and prevents the device from automatically activating
|
|
381
|
+
further connections without user intervention.
|
|
382
|
+
-->
|
|
383
|
+
<method name="Disconnect"/>
|
|
384
|
+
|
|
385
|
+
<!--
|
|
386
|
+
Delete:
|
|
387
|
+
|
|
388
|
+
Deletes a software device from NetworkManager and removes the interface
|
|
389
|
+
from the system. The method returns an error when called for a hardware
|
|
390
|
+
device.
|
|
391
|
+
-->
|
|
392
|
+
<method name="Delete"/>
|
|
393
|
+
|
|
394
|
+
<!--
|
|
395
|
+
StateChanged:
|
|
396
|
+
@new_state: (<link linkend="NMDeviceState">NMDeviceState</link>) The new state of the device.
|
|
397
|
+
@old_state: (<link linkend="NMDeviceState">NMDeviceState</link>) The previous state of the device.
|
|
398
|
+
@reason: (<link linkend="NMDeviceStateReason">NMDeviceStateReason</link>) A reason for the state transition.
|
|
399
|
+
-->
|
|
400
|
+
<signal name="StateChanged">
|
|
401
|
+
<arg name="new_state" type="u"/>
|
|
402
|
+
<arg name="old_state" type="u"/>
|
|
403
|
+
<arg name="reason" type="u"/>
|
|
404
|
+
</signal>
|
|
405
|
+
|
|
406
|
+
</interface>
|
|
407
|
+
</node>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<node name="/org/freedesktop/NetworkManager/DnsManager">
|
|
3
|
+
|
|
4
|
+
<!--
|
|
5
|
+
org.freedesktop.NetworkManager.DnsManager:
|
|
6
|
+
@short_description: DNS Configuration State.
|
|
7
|
+
|
|
8
|
+
The interface contains DNS-related information.
|
|
9
|
+
-->
|
|
10
|
+
<interface name="org.freedesktop.NetworkManager.DnsManager">
|
|
11
|
+
|
|
12
|
+
<!--
|
|
13
|
+
Mode:
|
|
14
|
+
|
|
15
|
+
The current DNS processing mode.
|
|
16
|
+
-->
|
|
17
|
+
<property name="Mode" type="s" access="read"/>
|
|
18
|
+
|
|
19
|
+
<!--
|
|
20
|
+
RcManager:
|
|
21
|
+
|
|
22
|
+
The current resolv.conf management mode.
|
|
23
|
+
-->
|
|
24
|
+
<property name="RcManager" type="s" access="read"/>
|
|
25
|
+
|
|
26
|
+
<!--
|
|
27
|
+
Configuration:
|
|
28
|
+
|
|
29
|
+
The current DNS configuration represented as an array of
|
|
30
|
+
dictionaries. Each dictionary has the "nameservers",
|
|
31
|
+
"priority" keys and, optionally, "interface" and "vpn".
|
|
32
|
+
"nameservers" is the list of DNS servers, "priority" their
|
|
33
|
+
relative priority, "interface" the interface on which these
|
|
34
|
+
servers are contacted, "vpn" a boolean telling whether the
|
|
35
|
+
configuration was obtained from a VPN connection.
|
|
36
|
+
-->
|
|
37
|
+
<property name="Configuration" type="aa{sv}" access="read"/>
|
|
38
|
+
|
|
39
|
+
</interface>
|
|
40
|
+
</node>
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<node name="/">
|
|
3
|
+
<!--
|
|
4
|
+
org.freedesktop.NetworkManager.IP4Config:
|
|
5
|
+
@short_description: IPv4 Configuration Set.
|
|
6
|
+
|
|
7
|
+
-->
|
|
8
|
+
<interface name="org.freedesktop.NetworkManager.IP4Config">
|
|
9
|
+
|
|
10
|
+
<!--
|
|
11
|
+
Addresses:
|
|
12
|
+
|
|
13
|
+
Array of arrays of IPv4 address/prefix/gateway. All 3 elements of each
|
|
14
|
+
array are in network byte order. Essentially: [(addr, prefix, gateway),
|
|
15
|
+
(addr, prefix, gateway), ...].
|
|
16
|
+
|
|
17
|
+
DEPRECATED: use AddressData and Gateway
|
|
18
|
+
-->
|
|
19
|
+
<property name="Addresses" type="aau" access="read"/>
|
|
20
|
+
|
|
21
|
+
<!--
|
|
22
|
+
AddressData:
|
|
23
|
+
|
|
24
|
+
Array of IP address data objects. All addresses will include "address" (an
|
|
25
|
+
IP address string), and "prefix" (a uint). Some addresses may include
|
|
26
|
+
additional attributes.
|
|
27
|
+
-->
|
|
28
|
+
<property name="AddressData" type="aa{sv}" access="read"/>
|
|
29
|
+
|
|
30
|
+
<!--
|
|
31
|
+
Gateway:
|
|
32
|
+
|
|
33
|
+
The gateway in use.
|
|
34
|
+
-->
|
|
35
|
+
<property name="Gateway" type="s" access="read"/>
|
|
36
|
+
|
|
37
|
+
<!--
|
|
38
|
+
Routes:
|
|
39
|
+
|
|
40
|
+
Arrays of IPv4 route/prefix/next-hop/metric. All 4 elements of each tuple
|
|
41
|
+
are in network byte order. 'route' and 'next hop' are IPv4 addresses,
|
|
42
|
+
while prefix and metric are simple unsigned integers. Essentially:
|
|
43
|
+
[(route, prefix, next-hop, metric), (route, prefix, next-hop, metric),
|
|
44
|
+
...].
|
|
45
|
+
|
|
46
|
+
DEPRECATED: use RouteData
|
|
47
|
+
-->
|
|
48
|
+
<property name="Routes" type="aau" access="read"/>
|
|
49
|
+
|
|
50
|
+
<!--
|
|
51
|
+
RouteData:
|
|
52
|
+
|
|
53
|
+
Array of IP route data objects. All routes will include "dest" (an IP
|
|
54
|
+
address string) and "prefix" (a uint). Some routes may include "next-hop"
|
|
55
|
+
(an IP address string), "metric" (a uint), and additional attributes.
|
|
56
|
+
-->
|
|
57
|
+
<property name="RouteData" type="aa{sv}" access="read"/>
|
|
58
|
+
|
|
59
|
+
<!--
|
|
60
|
+
Nameservers:
|
|
61
|
+
|
|
62
|
+
The nameservers in use.
|
|
63
|
+
|
|
64
|
+
DEPRECATED: use NameserverData
|
|
65
|
+
-->
|
|
66
|
+
<property name="Nameservers" type="au" access="read"/>
|
|
67
|
+
|
|
68
|
+
<!--
|
|
69
|
+
NameserverData:
|
|
70
|
+
@since: 1.14
|
|
71
|
+
|
|
72
|
+
The nameservers in use. Currently, only the value "address"
|
|
73
|
+
is recognized (with an IP address string).
|
|
74
|
+
-->
|
|
75
|
+
<property name="NameserverData" type="aa{sv}" access="read"/>
|
|
76
|
+
|
|
77
|
+
<!--
|
|
78
|
+
Domains:
|
|
79
|
+
|
|
80
|
+
A list of domains this address belongs to.
|
|
81
|
+
-->
|
|
82
|
+
<property name="Domains" type="as" access="read"/>
|
|
83
|
+
|
|
84
|
+
<!--
|
|
85
|
+
Searches:
|
|
86
|
+
|
|
87
|
+
A list of dns searches.
|
|
88
|
+
-->
|
|
89
|
+
<property name="Searches" type="as" access="read"/>
|
|
90
|
+
|
|
91
|
+
<!--
|
|
92
|
+
DnsOptions:
|
|
93
|
+
|
|
94
|
+
A list of DNS options that modify the behavior of the DNS resolver. See
|
|
95
|
+
resolv.conf(5) manual page for the list of supported options.
|
|
96
|
+
-->
|
|
97
|
+
<property name="DnsOptions" type="as" access="read"/>
|
|
98
|
+
|
|
99
|
+
<!--
|
|
100
|
+
DnsPriority:
|
|
101
|
+
|
|
102
|
+
The relative priority of DNS servers.
|
|
103
|
+
-->
|
|
104
|
+
<property name="DnsPriority" type="i" access="read"/>
|
|
105
|
+
|
|
106
|
+
<!--
|
|
107
|
+
WinsServers:
|
|
108
|
+
|
|
109
|
+
The Windows Internet Name Service servers associated with the connection.
|
|
110
|
+
Each address is in network byte order.
|
|
111
|
+
|
|
112
|
+
DEPRECATED: use WinsServerData
|
|
113
|
+
-->
|
|
114
|
+
<property name="WinsServers" type="au" access="read"/>
|
|
115
|
+
|
|
116
|
+
<!--
|
|
117
|
+
WinsServerData:
|
|
118
|
+
@since: 1.14
|
|
119
|
+
|
|
120
|
+
The Windows Internet Name Service servers associated with the connection.
|
|
121
|
+
-->
|
|
122
|
+
<property name="WinsServerData" type="as" access="read"/>
|
|
123
|
+
|
|
124
|
+
</interface>
|
|
125
|
+
</node>
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<node name="/">
|
|
3
|
+
<!--
|
|
4
|
+
org.freedesktop.NetworkManager.IP6Config:
|
|
5
|
+
@short_description: IPv6 Configuration Set.
|
|
6
|
+
|
|
7
|
+
-->
|
|
8
|
+
<interface name="org.freedesktop.NetworkManager.IP6Config">
|
|
9
|
+
|
|
10
|
+
<!--
|
|
11
|
+
Addresses:
|
|
12
|
+
|
|
13
|
+
Array of tuples of IPv6 address/prefix/gateway.
|
|
14
|
+
|
|
15
|
+
DEPRECATED: use AddressData and Gateway.
|
|
16
|
+
-->
|
|
17
|
+
<property name="Addresses" type="a(ayuay)" access="read"/>
|
|
18
|
+
|
|
19
|
+
<!--
|
|
20
|
+
AddressData:
|
|
21
|
+
|
|
22
|
+
Array of IP address data objects. All addresses will include "address" (an
|
|
23
|
+
IP address string), and "prefix" (a uint). Some addresses may include
|
|
24
|
+
additional attributes.
|
|
25
|
+
-->
|
|
26
|
+
<property name="AddressData" type="aa{sv}" access="read"/>
|
|
27
|
+
|
|
28
|
+
<!--
|
|
29
|
+
Gateway:
|
|
30
|
+
|
|
31
|
+
The gateway in use.
|
|
32
|
+
-->
|
|
33
|
+
<property name="Gateway" type="s" access="read"/>
|
|
34
|
+
|
|
35
|
+
<!--
|
|
36
|
+
Routes:
|
|
37
|
+
|
|
38
|
+
Tuples of IPv6 route/prefix/next-hop/metric.
|
|
39
|
+
|
|
40
|
+
DEPRECATED: use RouteData.
|
|
41
|
+
-->
|
|
42
|
+
<property name="Routes" type="a(ayuayu)" access="read"/>
|
|
43
|
+
|
|
44
|
+
<!--
|
|
45
|
+
RouteData:
|
|
46
|
+
|
|
47
|
+
Array of IP route data objects. All routes will include "dest" (an IP
|
|
48
|
+
address string) and "prefix" (a uint). Some routes may include "next-hop"
|
|
49
|
+
(an IP address string), "metric" (a uint), and additional attributes.
|
|
50
|
+
-->
|
|
51
|
+
<property name="RouteData" type="aa{sv}" access="read"/>
|
|
52
|
+
|
|
53
|
+
<!--
|
|
54
|
+
Nameservers:
|
|
55
|
+
|
|
56
|
+
The nameservers in use.
|
|
57
|
+
-->
|
|
58
|
+
<property name="Nameservers" type="aay" access="read">
|
|
59
|
+
<!-- gdbus-codegen assumes that "aay" means "array of non-UTF-8
|
|
60
|
+
string" and so would make this a char **.
|
|
61
|
+
-->
|
|
62
|
+
<annotation name="org.gtk.GDBus.C.ForceGVariant" value="1"/>
|
|
63
|
+
</property>
|
|
64
|
+
|
|
65
|
+
<!--
|
|
66
|
+
Domains:
|
|
67
|
+
|
|
68
|
+
A list of domains this address belongs to.
|
|
69
|
+
-->
|
|
70
|
+
<property name="Domains" type="as" access="read"/>
|
|
71
|
+
|
|
72
|
+
<!--
|
|
73
|
+
Searches:
|
|
74
|
+
|
|
75
|
+
A list of dns searches.
|
|
76
|
+
-->
|
|
77
|
+
<property name="Searches" type="as" access="read"/>
|
|
78
|
+
|
|
79
|
+
<!--
|
|
80
|
+
DnsOptions:
|
|
81
|
+
|
|
82
|
+
A list of DNS options that modify the behavior of the DNS resolver. See
|
|
83
|
+
resolv.conf(5) manual page for the list of supported options.
|
|
84
|
+
-->
|
|
85
|
+
<property name="DnsOptions" type="as" access="read"/>
|
|
86
|
+
|
|
87
|
+
<!--
|
|
88
|
+
DnsPriority:
|
|
89
|
+
|
|
90
|
+
The relative priority of DNS servers.
|
|
91
|
+
-->
|
|
92
|
+
<property name="DnsPriority" type="i" access="read"/>
|
|
93
|
+
|
|
94
|
+
</interface>
|
|
95
|
+
</node>
|