]> git.ipfire.org Git - network.git/commitdiff
man: add documentation for the description command
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Mon, 10 Jul 2017 15:10:42 +0000 (17:10 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 12 Jul 2017 22:03:03 +0000 (18:03 -0400)
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
man/network-description.xml [new file with mode: 0644]
man/network-port.xml
man/network-zone.xml

index 8b869a80f4f1adcea7ebf7c1e33b0ba4880b6bf5..e2800d0bce8b85b08453fe39bf40b534084874a3 100644 (file)
@@ -333,6 +333,7 @@ MANPAGES = \
        man/firewall-settings.8 \
        man/network.8 \
        man/network-color.8 \
+       man/network-description.8 \
        man/network-device.8 \
        man/network-dhcp.8 \
        man/network-dns-server.8 \
diff --git a/man/network-description.xml b/man/network-description.xml
new file mode 100644 (file)
index 0000000..f1722b4
--- /dev/null
@@ -0,0 +1,92 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS/DTD DocBook XML V4.2//EN"
+       "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+
+<refentry id="network-color">
+       <refentryinfo>
+               <title>networ-color</title>
+               <productname>network</productname>
+
+               <authorgroup>
+                       <author>
+                               <contrib>Developer</contrib>
+                               <firstname>Jonatan</firstname>
+                               <surname>Schlag</surname>
+                               <email>jonatan.schlag@ipfire.org</email>
+                       </author>
+               </authorgroup>
+       </refentryinfo>
+
+       <refmeta>
+               <refentrytitle>network-description</refentrytitle>
+               <manvolnum>8</manvolnum>
+       </refmeta>
+
+       <refnamediv>
+               <refname>network-description</refname>
+               <refpurpose>Network Configuration Control Program</refpurpose>
+       </refnamediv>
+
+       <refsect1>
+               <title>Description</title>
+
+               <para>
+                       The <command>description</command> command make it possible to add descriptions to zone and ports.
+                       A description is similar to a git commit. Every description has a title, the first line of the describtion file.
+                       The title is shown on the status page and in the webinterface. It should be something short like Office Lan or DMZ.
+                       After the title can follow a longer description. You can write whatever you want.
+                       This longer description is shown via the <command>show</command> command
+               </para>
+       </refsect1>
+
+       <refsect1>
+               <title>Commands</title>
+
+               <para>
+                       The following commands are understood:
+               </para>
+
+               <variablelist>
+                       <varlistentry>
+                               <term>
+                                       <command>edit</command>
+                               </term>
+
+                               <listitem>
+                                       <para>
+                                       This command opens an editor and allows you to edit title and description.
+                                       </para>
+                               </listitem>
+                       </varlistentry>
+                       <varlistentry>
+                               <term>
+                                       <command>show</command>
+                               </term>
+
+                               <listitem>
+                                       <para>
+                                               This command prints title and the longer description in a nice way.
+                                       </para>
+                               </listitem>
+                       </varlistentry>
+       </variablelist>
+       </refsect1>
+       <refsect1>
+               <title>See Also</title>
+
+               <para>
+                       <citerefentry>
+                               <refentrytitle>network</refentrytitle>
+                               <manvolnum>8</manvolnum>
+                       </citerefentry>,
+                       <citerefentry>
+                               <refentrytitle>network-zone</refentrytitle>
+                               <manvolnum>8</manvolnum>
+                       </citerefentry>,
+                       <citerefentry>
+                               <refentrytitle>network-port</refentrytitle>
+                               <manvolnum>8</manvolnum>
+                       </citerefentry>
+               </para>
+       </refsect1>
+</refentry>
index 92d35d8ba3c5c37199785f3a13ce73069f903454..4cbf6ca5ee8d62d25516ecca5db6ab4dac8900b3 100644 (file)
                                        </para>
                                </listitem>
                        </varlistentry>
+                       <varlistentry>
+                               <term>
+                                       <command><replaceable>PORT</replaceable>description</command>
+                               </term>
 
+                               <listitem>
+                                       <para>
+                                               This command allows you to add a description to a port.
+                                               See
+                                               <citerefentry>
+                                               <refentrytitle>network-description</refentrytitle>
+                                               <manvolnum>8</manvolnum>,
+                                               </citerefentry>
+                                               for more information.
+                                       </para>
+                               </listitem>
+                       </varlistentry>
                        <varlistentry>
                                <term>
                                        <command><replaceable>PORT</replaceable> edit <arg choice="opt" rep="repeat">ARGUMENTS</arg></command>
index 817ad26efb2d0c56bd3bf9f7ad5059aaff26cb20..2a86a45c32aea26be04df653e3913cc78ee95b67 100644 (file)
                                        </para>
                                </listitem>
                        </varlistentry>
+                       <varlistentry>
+                               <term>
+                                       <command><replaceable>ZONE</replaceable>description</command>
+                               </term>
+
+                               <listitem>
+                                       <para>
+                                               This command make is possible to add a description to a zone.
+                                               See
+                                               <citerefentry>
+                                               <refentrytitle>network-description</refentrytitle>
+                                               <manvolnum>8</manvolnum>,
+                                               </citerefentry>
+                                               for more information.
+                                       </para>
+                               </listitem>
+                       </varlistentry>
                        <varlistentry>
                                <term>
                                        <command><replaceable>ZONE</replaceable> identify</command>