Blame man/nm-settings-nmcli.xsl

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
%entities;
Packit 5756e2
]>
Packit 5756e2
Packit 5756e2
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
Packit 5756e2
Packit 5756e2
  
Packit 5756e2
      method="xml"
Packit 5756e2
      doctype-public="-//OASIS//DTD DocBook XML V4.3//EN"
Packit 5756e2
      doctype-system="http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
Packit 5756e2
      />
Packit 5756e2
Packit 5756e2
  <xsl:template match="nm-setting-docs">
Packit 5756e2
    <refentry id="nm-settings-nmcli">
Packit 5756e2
      <refentryinfo>
Packit 5756e2
        <title>nm-settings-nmcli</title>
Packit 5756e2
        <author>NetworkManager developers</author>
Packit 5756e2
      </refentryinfo>
Packit 5756e2
      <refmeta>
Packit 5756e2
        <refentrytitle>nm-settings-nmcli</refentrytitle>
Packit 5756e2
        <manvolnum>5</manvolnum>
Packit 5756e2
        <refmiscinfo class="source">NetworkManager</refmiscinfo>
Packit 5756e2
        <refmiscinfo class="manual">Configuration</refmiscinfo>
Packit 5756e2
        <refmiscinfo class="version">&NM_VERSION;</refmiscinfo>
Packit 5756e2
      </refmeta>
Packit 5756e2
      <refnamediv>
Packit 5756e2
        <refname>nm-settings-nmcli</refname>
Packit 5756e2
        <refpurpose>Description of settings and properties of NetworkManager connection profiles for nmcli</refpurpose>
Packit 5756e2
      </refnamediv>
Packit 5756e2
Packit 5756e2
      <refsect1 id='description'><title>Description</title>
Packit 5756e2
        <para>
Packit 5756e2
          NetworkManager is based on a concept of connection profiles, sometimes referred to as
Packit 5756e2
          connections only. These connection profiles contain a network configuration. When
Packit 5756e2
          NetworkManager activates a connection profile on a network device the configuration will
Packit 5756e2
          be applied and an active network connection will be established. Users are free to create
Packit 5756e2
          as many connection profiles as they see fit. Thus they are flexible in having various network
Packit 5756e2
          configurations for different networking needs.
Packit 5756e2
        </para>
Packit 5756e2
        <para>
Packit 5756e2
          NetworkManager provides an API for configuring connection profiles, for activating them
Packit 5756e2
          to configure the network, and inspecting the current network configuration. The command
Packit 5756e2
          line tool <emphasis>nmcli</emphasis> is a client application to NetworkManager that uses
Packit 5756e2
          this API. See <link linkend='nmcli'><citerefentry><refentrytitle>nmcli</refentrytitle><manvolnum>1</manvolnum></citerefentry></link>
Packit 5756e2
          for details.
Packit 5756e2
        </para>
Packit 5756e2
        <para>
Packit 5756e2
          With commands like <literal>nmcli connection add</literal>, <literal>nmcli connection modify</literal>
Packit 5756e2
          and <literal>nmcli connection show</literal>, connection profiles can be created, modified
Packit 5756e2
          and inspected. A profile consists of properties. On D-Bus this follows the format
Packit 5756e2
          as described by <link linkend='nm-settings-dbus'><citerefentry><refentrytitle>nm-settings-dbus</refentrytitle><manvolnum>5</manvolnum></citerefentry></link>,
Packit 5756e2
          while this manual page describes the settings format how they are expected by <emphasis>nmcli</emphasis>.
Packit 5756e2
        </para>
Packit 5756e2
        <para>
Packit 5756e2
          The settings and properties shown in tables below list all available connection
Packit 5756e2
          configuration options. However, note that not all settings are applicable to all
Packit 5756e2
          connection types. <emphasis>nmcli</emphasis> connection editor has also a built-in
Packit 5756e2
          <emphasis>describe</emphasis> command that can display description of particular settings
Packit 5756e2
          and properties of this page.
Packit 5756e2
        </para>
Packit 5756e2
        <para>
Packit 5756e2
          The <replaceable>setting</replaceable> and
Packit 5756e2
          <replaceable>property</replaceable> can be abbreviated provided they are unique. The list below
Packit 5756e2
          also shows aliases that can be used unqualified instead of the full name. For example
Packit 5756e2
          <literal>connection.interface-name</literal> and <literal>ifname</literal> refer to the same
Packit 5756e2
          property.
Packit 5756e2
        </para>
Packit 5756e2
        <xsl:apply-templates/>
Packit 5756e2
        <refsect2 id="secrets-flags">
Packit 5756e2
          <title>Secret flag types:</title>
Packit 5756e2
          <para>
Packit 5756e2
            Each password or secret property in a setting has an associated <emphasis>flags</emphasis> property
Packit 5756e2
            that describes how to handle that secret. The <emphasis>flags</emphasis> property is a bitfield
Packit 5756e2
            that contains zero or more of the following values logically OR-ed together.
Packit 5756e2
          </para>
Packit 5756e2
          <itemizedlist>
Packit 5756e2
            <listitem>
Packit 5756e2
              <para>0x0 (none) - the system is responsible for providing and storing this secret. This
Packit 5756e2
              may be required so that secrets are already available before the user logs in.
Packit 5756e2
              It also commonly means that the secret will be stored in plain text on disk, accessible
Packit 5756e2
              to root only. For example via the keyfile settings plugin as described in the "PLUGINS" section
Packit 5756e2
              in <link linkend='NetworkManager.conf'><citerefentry><refentrytitle>NetworkManager.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry></link>.
Packit 5756e2
              </para>
Packit 5756e2
            </listitem>
Packit 5756e2
            <listitem>
Packit 5756e2
              <para>0x1 (agent-owned) - a user-session secret agent is responsible for providing and storing
Packit 5756e2
              this secret; when it is required, agents will be asked to provide it.</para>
Packit 5756e2
            </listitem>
Packit 5756e2
            <listitem>
Packit 5756e2
              <para>0x2 (not-saved) - this secret should not be saved but should be requested from the user
Packit 5756e2
              each time it is required. This flag should be used for One-Time-Pad secrets, PIN codes from hardware tokens,
Packit 5756e2
              or if the user simply does not want to save the secret.</para>
Packit 5756e2
            </listitem>
Packit 5756e2
            <listitem>
Packit 5756e2
              <para>0x4 (not-required) - in some situations it cannot be automatically determined that a secret
Packit 5756e2
              is required or not. This flag hints that the secret is not required and should not be requested from the user.</para>
Packit 5756e2
            </listitem>
Packit 5756e2
          </itemizedlist>
Packit 5756e2
        </refsect2>
Packit 5756e2
      </refsect1>
Packit 5756e2
Packit 5756e2
      <refsect1 id='files'><title>Files</title>
Packit 5756e2
        <para><filename>/etc/NetworkManager/system-connections</filename> or distro plugin-specific location</para>
Packit 5756e2
      </refsect1>
Packit 5756e2
Packit 5756e2
      <refsect1 id='see_also'><title>See Also</title>
Packit 5756e2
        <para>
Packit 5756e2
        <link linkend='nmcli'><citerefentry><refentrytitle>nmcli</refentrytitle><manvolnum>1</manvolnum></citerefentry></link>,
Packit 5756e2
        <link linkend='nmcli-examples'><citerefentry><refentrytitle>nmcli-examples</refentrytitle><manvolnum>7</manvolnum></citerefentry></link>,
Packit 5756e2
        <link linkend='NetworkManager'><citerefentry><refentrytitle>NetworkManager</refentrytitle><manvolnum>8</manvolnum></citerefentry></link>,
Packit 5756e2
        <link linkend='nm-settings-dbus'><citerefentry><refentrytitle>nm-settings-dbus</refentrytitle><manvolnum>5</manvolnum></citerefentry></link>,
Packit 5756e2
        <link linkend='nm-settings-keyfile'><citerefentry><refentrytitle>nm-settings-keyfile</refentrytitle><manvolnum>5</manvolnum></citerefentry></link>,
Packit 5756e2
        <link linkend='NetworkManager.conf'><citerefentry><refentrytitle>NetworkManager.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry></link></para>
Packit 5756e2
      </refsect1>
Packit 5756e2
    </refentry>
Packit 5756e2
  </xsl:template>
Packit 5756e2
Packit 5756e2
  <xsl:template match="setting">
Packit 5756e2
    <refsect2>
Packit 5756e2
      <title><xsl:value-of select="@name"/> setting</title>
Packit 5756e2
      <xsl:if test="@alias">
Packit 5756e2
        <para>
Packit 5756e2
          Alias: <xsl:value-of select="@alias"/>
Packit 5756e2
        </para>
Packit 5756e2
      </xsl:if>
Packit 5756e2
      <para><xsl:value-of select="@description"/>.</para>
Packit 5756e2
      <para>
Packit 5756e2
        Properties:
Packit 5756e2
        <variablelist>
Packit 5756e2
          <xsl:apply-templates/>
Packit 5756e2
        </variablelist>
Packit 5756e2
      </para>
Packit 5756e2
    </refsect2>
Packit 5756e2
  </xsl:template>
Packit 5756e2
Packit 5756e2
  <xsl:template match="property">
Packit 5756e2
    <xsl:variable name="setting_name" select="../@name"/>
Packit 5756e2
    <varlistentry>
Packit 5756e2
      <term>
Packit 5756e2
        <option>
Packit 5756e2
          <xsl:attribute name="id">nm-settings-nmcli.property.<xsl:value-of select="../@name"/>.<xsl:value-of select="@name"/></xsl:attribute>
Packit 5756e2
          <xsl:value-of select="@name"/>
Packit 5756e2
        </option>
Packit 5756e2
      </term>
Packit 5756e2
      <listitem>
Packit 5756e2
        <xsl:if test="@alias">
Packit 5756e2
          <para>
Packit 5756e2
            Alias: <xsl:value-of select="@alias"/>
Packit 5756e2
          </para>
Packit 5756e2
        </xsl:if>
Packit 5756e2
        <para>
Packit 5756e2
          <xsl:value-of select="@description"/>
Packit 5756e2
          <xsl:if test="@type = 'NMSettingSecretFlags (uint32)'">
Packit 5756e2
           See <xref linkend="secrets-flags"/> for flag values.
Packit 5756e2
          </xsl:if>
Packit 5756e2
        </para>
Packit 5756e2
        <xsl:if test="@type">
Packit 5756e2
          <para>
Packit 5756e2
            Format: <xsl:value-of select="@type"/>
Packit 5756e2
          </para>
Packit 5756e2
        </xsl:if>
Packit 5756e2
      </listitem>
Packit 5756e2
    </varlistentry>
Packit 5756e2
  </xsl:template>
Packit 5756e2
Packit 5756e2
</xsl:stylesheet>