summaryrefslogtreecommitdiffstats
path: root/man/org.freedesktop.network1.xml
blob: 1d8ce0de8114e8888322fad0f6e00091351afcff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
<?xml version="1.0"?>
<!--*-nxml-*-->
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % entities SYSTEM "custom-entities.ent" >
%entities;
]>
<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->

<refentry id="org.freedesktop.network1" conditional='ENABLE_NETWORKD'
    xmlns:xi="http://www.w3.org/2001/XInclude">
  <refentryinfo>
    <title>org.freedesktop.network1</title>
    <productname>systemd</productname>
  </refentryinfo>

  <refmeta>
    <refentrytitle>org.freedesktop.network1</refentrytitle>
    <manvolnum>5</manvolnum>
  </refmeta>

  <refnamediv>
    <refname>org.freedesktop.network1</refname>
    <refpurpose>The D-Bus interface of systemd-networkd</refpurpose>
  </refnamediv>

  <refsect1>
    <title>Introduction</title>

    <para>
    <citerefentry><refentrytitle>systemd-networkd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
    is a system service that manages and configures network interfaces. This page describes the D-Bus
    interface.</para>
  </refsect1>

  <refsect1>
    <title>The Manager Object</title>

    <para>The service exposes the following interfaces on the Manager object on the bus:</para>

    <programlisting executable="systemd-networkd" node="/org/freedesktop/network1" interface="org.freedesktop.network1.Manager">
node /org/freedesktop/network1 {
  interface org.freedesktop.network1.Manager {
    methods:
      ListLinks(out a(iso) links);
      GetLinkByName(in  s name,
                    out i ifindex,
                    out o path);
      GetLinkByIndex(in  i ifindex,
                     out s name,
                     out o path);
      SetLinkNTP(in  i ifindex,
                 in  as servers);
      SetLinkDNS(in  i ifindex,
                 in  a(iay) addresses);
      SetLinkDNSEx(in  i ifindex,
                   in  a(iayqs) addresses);
      SetLinkDomains(in  i ifindex,
                     in  a(sb) domains);
      SetLinkDefaultRoute(in  i ifindex,
                          in  b enable);
      SetLinkLLMNR(in  i ifindex,
                   in  s mode);
      SetLinkMulticastDNS(in  i ifindex,
                          in  s mode);
      SetLinkDNSOverTLS(in  i ifindex,
                        in  s mode);
      SetLinkDNSSEC(in  i ifindex,
                    in  s mode);
      SetLinkDNSSECNegativeTrustAnchors(in  i ifindex,
                                        in  as names);
      RevertLinkNTP(in  i ifindex);
      RevertLinkDNS(in  i ifindex);
      RenewLink(in  i ifindex);
      ForceRenewLink(in  i ifindex);
      ReconfigureLink(in  i ifindex);
      Reload();
      DescribeLink(in  i ifindex,
                   out s json);
      Describe(out s json);
    properties:
      readonly s OperationalState = '...';
      readonly s CarrierState = '...';
      readonly s AddressState = '...';
      readonly s IPv4AddressState = '...';
      readonly s IPv6AddressState = '...';
      readonly s OnlineState = '...';
      @org.freedesktop.DBus.Property.EmitsChangedSignal("const")
      readonly t NamespaceId = ...;
      @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
      readonly u NamespaceNSID = ...;
  };
  interface org.freedesktop.DBus.Peer { ... };
  interface org.freedesktop.DBus.Introspectable { ... };
  interface org.freedesktop.DBus.Properties { ... };
};
    </programlisting>

    <!--method ListLinks is not documented!-->

    <!--method GetLinkByName is not documented!-->

    <!--method GetLinkByIndex is not documented!-->

    <!--method SetLinkNTP is not documented!-->

    <!--method SetLinkDNS is not documented!-->

    <!--method SetLinkDNSEx is not documented!-->

    <!--method SetLinkDomains is not documented!-->

    <!--method SetLinkDefaultRoute is not documented!-->

    <!--method SetLinkLLMNR is not documented!-->

    <!--method SetLinkMulticastDNS is not documented!-->

    <!--method SetLinkDNSOverTLS is not documented!-->

    <!--method SetLinkDNSSEC is not documented!-->

    <!--method SetLinkDNSSECNegativeTrustAnchors is not documented!-->

    <!--method RevertLinkNTP is not documented!-->

    <!--method RevertLinkDNS is not documented!-->

    <!--method RenewLink is not documented!-->

    <!--method ForceRenewLink is not documented!-->

    <!--method ReconfigureLink is not documented!-->

    <!--method Reload is not documented!-->

    <!--method DescribeLink is not documented!-->

    <!--method Describe is not documented!-->

    <!--property OperationalState is not documented!-->

    <!--property CarrierState is not documented!-->

    <!--property AddressState is not documented!-->

    <!--property IPv4AddressState is not documented!-->

    <!--property IPv6AddressState is not documented!-->

    <!--property OnlineState is not documented!-->

    <!--Autogenerated cross-references for systemd.directives, do not edit-->

    <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.network1.Manager"/>

    <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.network1.Manager"/>

    <variablelist class="dbus-method" generated="True" extra-ref="ListLinks()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="GetLinkByName()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="GetLinkByIndex()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="SetLinkNTP()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="SetLinkDNS()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="SetLinkDNSEx()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="SetLinkDomains()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="SetLinkDefaultRoute()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="SetLinkLLMNR()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="SetLinkMulticastDNS()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="SetLinkDNSOverTLS()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="SetLinkDNSSEC()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="SetLinkDNSSECNegativeTrustAnchors()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="RevertLinkNTP()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="RevertLinkDNS()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="RenewLink()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="ForceRenewLink()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="ReconfigureLink()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="Reload()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="DescribeLink()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="Describe()"/>

    <variablelist class="dbus-property" generated="True" extra-ref="OperationalState"/>

    <variablelist class="dbus-property" generated="True" extra-ref="CarrierState"/>

    <variablelist class="dbus-property" generated="True" extra-ref="AddressState"/>

    <variablelist class="dbus-property" generated="True" extra-ref="IPv4AddressState"/>

    <variablelist class="dbus-property" generated="True" extra-ref="IPv6AddressState"/>

    <variablelist class="dbus-property" generated="True" extra-ref="OnlineState"/>

    <variablelist class="dbus-property" generated="True" extra-ref="NamespaceId"/>

    <variablelist class="dbus-property" generated="True" extra-ref="NamespaceNSID"/>

    <!--End of Autogenerated section-->

    <para>
      Provides information about the manager.
    </para>

    <refsect2>
      <title>Properties</title>

      <para><varname>NamespaceId</varname> contains the inode number of the network namespace that the
      network service runs in. A client may compare this with the inode number of its own network namespace
      to verify whether the service manages the same network namespace.</para>

      <para><varname>NamespaceNSID</varname> contains the "nsid" identifier the kernel maintains for the
      network namespace, if there's one assigned.</para>
    </refsect2>
  </refsect1>

  <refsect1>
    <title>Link Object</title>

    <programlisting executable="systemd-networkd" node="/org/freedesktop/network1/link/_1" interface="org.freedesktop.network1.Link">
node /org/freedesktop/network1/link/_1 {
  interface org.freedesktop.network1.Link {
    methods:
      SetNTP(in  as servers);
      SetDNS(in  a(iay) addresses);
      SetDNSEx(in  a(iayqs) addresses);
      SetDomains(in  a(sb) domains);
      SetDefaultRoute(in  b enable);
      SetLLMNR(in  s mode);
      SetMulticastDNS(in  s mode);
      SetDNSOverTLS(in  s mode);
      SetDNSSEC(in  s mode);
      SetDNSSECNegativeTrustAnchors(in  as names);
      RevertNTP();
      RevertDNS();
      Renew();
      ForceRenew();
      Reconfigure();
      Describe(out s json);
    properties:
      readonly s OperationalState = '...';
      readonly s CarrierState = '...';
      readonly s AddressState = '...';
      readonly s IPv4AddressState = '...';
      readonly s IPv6AddressState = '...';
      readonly s OnlineState = '...';
      readonly s AdministrativeState = '...';
      @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
      readonly (tt) BitRates = ...;
  };
  interface org.freedesktop.DBus.Peer { ... };
  interface org.freedesktop.DBus.Introspectable { ... };
  interface org.freedesktop.DBus.Properties { ... };
};
    </programlisting>

    <!--method SetNTP is not documented!-->

    <!--method SetDNS is not documented!-->

    <!--method SetDNSEx is not documented!-->

    <!--method SetDomains is not documented!-->

    <!--method SetDefaultRoute is not documented!-->

    <!--method SetLLMNR is not documented!-->

    <!--method SetMulticastDNS is not documented!-->

    <!--method SetDNSOverTLS is not documented!-->

    <!--method SetDNSSEC is not documented!-->

    <!--method SetDNSSECNegativeTrustAnchors is not documented!-->

    <!--method RevertNTP is not documented!-->

    <!--method RevertDNS is not documented!-->

    <!--method Renew is not documented!-->

    <!--method ForceRenew is not documented!-->

    <!--method Reconfigure is not documented!-->

    <!--method Describe is not documented!-->

    <!--property OperationalState is not documented!-->

    <!--property CarrierState is not documented!-->

    <!--property AddressState is not documented!-->

    <!--property IPv4AddressState is not documented!-->

    <!--property IPv6AddressState is not documented!-->

    <!--property OnlineState is not documented!-->

    <!--property AdministrativeState is not documented!-->

    <!--property BitRates is not documented!-->

    <!--Autogenerated cross-references for systemd.directives, do not edit-->

    <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.network1.Link"/>

    <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.network1.Link"/>

    <variablelist class="dbus-method" generated="True" extra-ref="SetNTP()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="SetDNS()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="SetDNSEx()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="SetDomains()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="SetDefaultRoute()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="SetLLMNR()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="SetMulticastDNS()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="SetDNSOverTLS()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="SetDNSSEC()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="SetDNSSECNegativeTrustAnchors()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="RevertNTP()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="RevertDNS()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="Renew()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="ForceRenew()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="Reconfigure()"/>

    <variablelist class="dbus-method" generated="True" extra-ref="Describe()"/>

    <variablelist class="dbus-property" generated="True" extra-ref="OperationalState"/>

    <variablelist class="dbus-property" generated="True" extra-ref="CarrierState"/>

    <variablelist class="dbus-property" generated="True" extra-ref="AddressState"/>

    <variablelist class="dbus-property" generated="True" extra-ref="IPv4AddressState"/>

    <variablelist class="dbus-property" generated="True" extra-ref="IPv6AddressState"/>

    <variablelist class="dbus-property" generated="True" extra-ref="OnlineState"/>

    <variablelist class="dbus-property" generated="True" extra-ref="AdministrativeState"/>

    <variablelist class="dbus-property" generated="True" extra-ref="BitRates"/>

    <!--End of Autogenerated section-->

    <para>
      Provides information about interfaces.
    </para>
  </refsect1>

  <refsect1>
    <title>Network Object</title>

    <programlisting executable="systemd-networkd" node="/org/freedesktop/network1/network/_1" interface="org.freedesktop.network1.Network">
node /org/freedesktop/network1/network/_1 {
  interface org.freedesktop.network1.Network {
    properties:
      @org.freedesktop.DBus.Property.EmitsChangedSignal("const")
      readonly s Description = '...';
      @org.freedesktop.DBus.Property.EmitsChangedSignal("const")
      readonly s SourcePath = '...';
      @org.freedesktop.DBus.Property.EmitsChangedSignal("const")
      readonly as MatchMAC = ['...', ...];
      @org.freedesktop.DBus.Property.EmitsChangedSignal("const")
      readonly as MatchPath = ['...', ...];
      @org.freedesktop.DBus.Property.EmitsChangedSignal("const")
      readonly as MatchDriver = ['...', ...];
      @org.freedesktop.DBus.Property.EmitsChangedSignal("const")
      readonly as MatchType = ['...', ...];
      @org.freedesktop.DBus.Property.EmitsChangedSignal("const")
      readonly as MatchName = ['...', ...];
  };
  interface org.freedesktop.DBus.Peer { ... };
  interface org.freedesktop.DBus.Introspectable { ... };
  interface org.freedesktop.DBus.Properties { ... };
};
    </programlisting>

    <!--property Description is not documented!-->

    <!--property SourcePath is not documented!-->

    <!--property MatchMAC is not documented!-->

    <!--property MatchPath is not documented!-->

    <!--property MatchDriver is not documented!-->

    <!--property MatchType is not documented!-->

    <!--property MatchName is not documented!-->

    <!--Autogenerated cross-references for systemd.directives, do not edit-->

    <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.network1.Network"/>

    <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.network1.Network"/>

    <variablelist class="dbus-property" generated="True" extra-ref="Description"/>

    <variablelist class="dbus-property" generated="True" extra-ref="SourcePath"/>

    <variablelist class="dbus-property" generated="True" extra-ref="MatchMAC"/>

    <variablelist class="dbus-property" generated="True" extra-ref="MatchPath"/>

    <variablelist class="dbus-property" generated="True" extra-ref="MatchDriver"/>

    <variablelist class="dbus-property" generated="True" extra-ref="MatchType"/>

    <variablelist class="dbus-property" generated="True" extra-ref="MatchName"/>

    <!--End of Autogenerated section-->

    <para>
      Provides information about .network files.
    </para>
  </refsect1>

  <refsect1>
    <title>DHCP Server Object</title>

    <programlisting executable="systemd-networkd" node="/org/freedesktop/network1/link/_1" interface="org.freedesktop.network1.DHCPServer">
node /org/freedesktop/network1/link/_1 {
  interface org.freedesktop.network1.DHCPServer {
    properties:
      readonly a(uayayayayt) Leases = [...];
  };
  interface org.freedesktop.DBus.Peer { ... };
  interface org.freedesktop.DBus.Introspectable { ... };
  interface org.freedesktop.DBus.Properties { ... };
  interface org.freedesktop.network1.Link { ... };
};
    </programlisting>

    <!--property Leases is not documented!-->

    <!--Autogenerated cross-references for systemd.directives, do not edit-->

    <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.network1.Link"/>

    <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.network1.DHCPServer"/>

    <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.network1.Link"/>

    <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.network1.DHCPServer"/>

    <variablelist class="dbus-property" generated="True" extra-ref="Leases"/>

    <!--End of Autogenerated section-->

    <para>
      Provides information about leases.
    </para>
  </refsect1>

  <refsect1>
    <title>DHCPv4 Client Object</title>

    <programlisting executable="systemd-networkd" node="/org/freedesktop/network1/link/_1" interface="org.freedesktop.network1.DHCPv4Client">
node /org/freedesktop/network1/link/_1 {
  interface org.freedesktop.network1.DHCPv4Client {
    properties:
      readonly s State = '...';
  };
  interface org.freedesktop.DBus.Peer { ... };
  interface org.freedesktop.DBus.Introspectable { ... };
  interface org.freedesktop.DBus.Properties { ... };
  interface org.freedesktop.network1.Link { ... };
};
    </programlisting>

    <!--property State is not documented!-->

    <!--Autogenerated cross-references for systemd.directives, do not edit-->

    <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.network1.Link"/>

    <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.network1.DHCPv4Client"/>

    <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.network1.Link"/>

    <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.network1.DHCPv4Client"/>

    <variablelist class="dbus-property" generated="True" extra-ref="State"/>

    <!--End of Autogenerated section-->

    <para>
      Provides information about DHCPv4 client status.
    </para>
  </refsect1>

  <refsect1>
    <title>DHCPv6 Client Object</title>

    <programlisting executable="systemd-networkd" node="/org/freedesktop/network1/link/_1" interface="org.freedesktop.network1.DHCPv6Client">
node /org/freedesktop/network1/link/_1 {
  interface org.freedesktop.network1.DHCPv6Client {
    properties:
      readonly s State = '...';
  };
  interface org.freedesktop.DBus.Peer { ... };
  interface org.freedesktop.DBus.Introspectable { ... };
  interface org.freedesktop.DBus.Properties { ... };
  interface org.freedesktop.network1.Link { ... };
};
    </programlisting>

    <!--property State is not documented!-->

    <!--Autogenerated cross-references for systemd.directives, do not edit-->

    <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.network1.Link"/>

    <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.network1.DHCPv6Client"/>

    <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.network1.Link"/>

    <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.network1.DHCPv6Client"/>

    <variablelist class="dbus-property" generated="True" extra-ref="State"/>

    <!--End of Autogenerated section-->

    <para>
      Provides information about DHCPv6 client status.
    </para>
  </refsect1>

  <refsect1>
    <title>Examples</title>

    <example>
      <title>Introspect <interfacename>org.freedesktop.network1.Manager</interfacename> on the bus</title>

      <programlisting>
$ gdbus introspect --system \
  --dest org.freedesktop.network1 \
  --object-path /org/freedesktop/network1
      </programlisting>
    </example>

    <example>
      <title>Introspect <interfacename>org.freedesktop.network1.Link</interfacename> on the bus</title>

      <programlisting>
$ gdbus introspect --system \
  --dest org.freedesktop.network1 \
  --object-path /org/freedesktop/network1/link/_11
      </programlisting>
    </example>
  </refsect1>

  <xi:include href="org.freedesktop.locale1.xml" xpointer="versioning"/>

  <refsect1>
    <title>History</title>
    <refsect2>
      <title>DHCPv4 Client Object</title>
      <para><varname>State</varname> was added in version 255.</para>
    </refsect2>
    <refsect2>
      <title>DHCPv6 Client Object</title>
      <para><varname>State</varname> was added in version 255.</para>
    </refsect2>
    <refsect2>
      <title>Manager Object</title>
      <para><varname>NamespaceNSID</varname> was added in version 256.</para>
    </refsect2>
  </refsect1>
</refentry>