Debian Codegraph @

man/nm-settings-nmcli.xsl

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE stylesheet [
3 <!ENTITY % entities SYSTEM "common.ent" >
4 %entities;
5 ]>
6 <xsl:stylesheet version="1.0"
7 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
8
9 <xsl:output
10 method="xml"
11 doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"
12 doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
13 />
14
15 <xsl:template match="nm-setting-docs">
16 <refentry id="nm-settings-nmcli">
17 <refentryinfo>
18 <title>nm-settings-nmcli</title>
19 <author>NetworkManager developers</author>
20 </refentryinfo>
21 <refmeta>
22 <refentrytitle>nm-settings-nmcli</refentrytitle>
23 <manvolnum>5</manvolnum>
24 <refmiscinfo class="source">NetworkManager</refmiscinfo>
25 <refmiscinfo class="manual">Configuration</refmiscinfo>
26 <refmiscinfo class="version">&NM_VERSION;</refmiscinfo>
27 </refmeta>
28 <refnamediv>
29 <refname>nm-settings-nmcli</refname>
30 <refpurpose>Description of settings and properties of NetworkManager connection profiles for nmcli</refpurpose>
31 </refnamediv>
32
33 <refsect1 id='description'><title>Description</title>
34 <para>
35 NetworkManager is based on a concept of connection profiles, sometimes referred to as
36 connections only. These connection profiles contain a network configuration. When
37 NetworkManager activates a connection profile on a network device the configuration will
38 be applied and an active network connection will be established. Users are free to create
39 as many connection profiles as they see fit. Thus they are flexible in having various network
40 configurations for different networking needs.
41 </para>
42 <para>
43 NetworkManager provides an API for configuring connection profiles, for activating them
44 to configure the network, and inspecting the current network configuration. The command
45 line tool <emphasis>nmcli</emphasis> is a client application to NetworkManager that uses
46 this API. See <link linkend='nmcli'><citerefentry><refentrytitle>nmcli</refentrytitle><manvolnum>1</manvolnum></citerefentry></link>
47 for details.
48 </para>
49 <para>
50 With commands like <literal>nmcli connection add</literal>, <literal>nmcli connection modify</literal>
51 and <literal>nmcli connection show</literal>, connection profiles can be created, modified
52 and inspected. A profile consists of properties. On D-Bus this follows the format
53 as described by <link linkend='nm-settings-dbus'><citerefentry><refentrytitle>nm-settings-dbus</refentrytitle><manvolnum>5</manvolnum></citerefentry></link>,
54 while this manual page describes the settings format how they are expected by <emphasis>nmcli</emphasis>.
55 </para>
56 <para>
57 The settings and properties shown in tables below list all available connection
58 configuration options. However, note that not all settings are applicable to all
59 connection types. <emphasis>nmcli</emphasis> connection editor has also a built-in
60 <emphasis>describe</emphasis> command that can display description of particular settings
61 and properties of this page.
62 </para>
63 <para>
64 The <replaceable>setting</replaceable> and
65 <replaceable>property</replaceable> can be abbreviated provided they are unique. The list below
66 also shows aliases that can be used unqualified instead of the full name. For example
67 <literal>connection.interface-name</literal> and <literal>ifname</literal> refer to the same
68 property.
69 </para>
70 <xsl:apply-templates/>
71 <refsect2 id="secrets-flags">
72 <title>Secret flag types:</title>
73 <para>
74 Each password or secret property in a setting has an associated <emphasis>flags</emphasis> property
75 that describes how to handle that secret. The <emphasis>flags</emphasis> property is a bitfield
76 that contains zero or more of the following values logically OR-ed together.
77 </para>
78 <itemizedlist>
79 <listitem>
80 <para>0x0 (none) - the system is responsible for providing and storing this secret. This
81 may be required so that secrets are already available before the user logs in.
82 It also commonly means that the secret will be stored in plain text on disk, accessible
83 to root only. For example via the keyfile settings plugin as described in the "PLUGINS" section
84 in <link linkend='NetworkManager.conf'><citerefentry><refentrytitle>NetworkManager.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry></link>.
85 </para>
86 </listitem>
87 <listitem>
88 <para>0x1 (agent-owned) - a user-session secret agent is responsible for providing and storing
89 this secret; when it is required, agents will be asked to provide it.</para>
90 </listitem>
91 <listitem>
92 <para>0x2 (not-saved) - this secret should not be saved but should be requested from the user
93 each time it is required. This flag should be used for One-Time-Pad secrets, PIN codes from hardware tokens,
94 or if the user simply does not want to save the secret.</para>
95 </listitem>
96 <listitem>
97 <para>0x4 (not-required) - in some situations it cannot be automatically determined that a secret
98 is required or not. This flag hints that the secret is not required and should not be requested from the user.</para>
99 </listitem>
100 </itemizedlist>
101 </refsect2>
102 </refsect1>
103
104 <refsect1 id='files'><title>Files</title>
105 <para><filename>/etc/NetworkManager/system-connections</filename> or distro plugin-specific location</para>
106 </refsect1>
107
108 <refsect1 id='see_also'><title>See Also</title>
109 <para>
110 <link linkend='nmcli'><citerefentry><refentrytitle>nmcli</refentrytitle><manvolnum>1</manvolnum></citerefentry></link>,
111 <link linkend='nmcli-examples'><citerefentry><refentrytitle>nmcli-examples</refentrytitle><manvolnum>7</manvolnum></citerefentry></link>,
112 <link linkend='NetworkManager'><citerefentry><refentrytitle>NetworkManager</refentrytitle><manvolnum>8</manvolnum></citerefentry></link>,
113 <link linkend='nm-settings-dbus'><citerefentry><refentrytitle>nm-settings-dbus</refentrytitle><manvolnum>5</manvolnum></citerefentry></link>,
114 <link linkend='nm-settings-keyfile'><citerefentry><refentrytitle>nm-settings-keyfile</refentrytitle><manvolnum>5</manvolnum></citerefentry></link>,
115 <link linkend='NetworkManager.conf'><citerefentry><refentrytitle>NetworkManager.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry></link></para>
116 </refsect1>
117 </refentry>
118 </xsl:template>
119
120 <xsl:template match="setting">
121 <refsect2>
122 <title><xsl:value-of select="@name"/> setting</title>
123 <xsl:if test="@alias">
124 <para>
125 Alias: <xsl:value-of select="@alias"/>
126 </para>
127 </xsl:if>
128 <para><xsl:value-of select="@description"/>.</para>
129 <para>
130 Properties:
131 <variablelist>
132 <xsl:apply-templates/>
133 </variablelist>
134 </para>
135 </refsect2>
136 </xsl:template>
137
138 <xsl:template match="property">
139 <xsl:variable name="setting_name" select="../@name"/>
140 <varlistentry>
141 <term>
142 <option>
143 <xsl:attribute name="id">nm-settings-nmcli.property.<xsl:value-of select="$setting_name"/>.<xsl:value-of select="@name"/></xsl:attribute>
144 <xsl:choose>
145 <xsl:when test="@rename">
146 <xsl:value-of select="$setting_name"/>.<xsl:value-of select="@rename"/>
147 </xsl:when>
148 <xsl:otherwise>
149 <xsl:value-of select="$setting_name"/>.<xsl:value-of select="@name"/>
150 </xsl:otherwise>
151 </xsl:choose>
152 </option>
153 </term>
154 <listitem>
155 <xsl:if test="@alias">
156 <para>
157 Alias: <xsl:value-of select="@alias"/>
158 </para>
159 </xsl:if>
160 <xsl:choose>
161 <xsl:when test="description-docbook">
162 <xsl:copy-of select="./description-docbook/*/."/>
163 </xsl:when>
164 <xsl:when test="description">
165 <para>
166 <xsl:value-of select="description"/>
167 </para>
168 </xsl:when>
169 </xsl:choose>
170 <xsl:if test="@type = 'NMSettingSecretFlags (uint32)'">
171 <para>
172 See <xref linkend="secrets-flags"/> for flag values.
173 </para>
174 </xsl:if>
175 <xsl:if test="deprecated">
176 <para>
177 This property is deprecated since version <xsl:value-of select="deprecated/@since"/>.
178 <xsl:value-of select="deprecated"/>
179 </para>
180 </xsl:if>
181 <xsl:if test="@type">
182 <para>
183 Format: <xsl:value-of select="@type"/>
184 </para>
185 </xsl:if>
186 <xsl:if test="@values">
187 <para>
188 Valid values: <xsl:value-of select="@values"/>
189 </para>
190 </xsl:if>
191 <xsl:if test="@special-values">
192 <para>
193 Special values: <xsl:value-of select="@special-values"/>
194 </para>
195 </xsl:if>
196 </listitem>
197 </varlistentry>
198 </xsl:template>
199
200 </xsl:stylesheet>