diff options
author | Jiří Klimeš <blueowl@centrum.cz> | 2016-07-19 10:42:03 +0200 |
---|---|---|
committer | Jiří Klimeš <blueowl@centrum.cz> | 2016-07-19 10:42:03 +0200 |
commit | 39930396cdfa92101e8218828d19def02a143872 (patch) | |
tree | 2651f7adaeb046ee9d2a71a9ac5b06a9863fab44 | |
parent | 887cdcc217244172eb7f1ecd40fda8261213388a (diff) | |
parent | 58f7319043d67a1a95c68f82f4f2e589e763089f (diff) | |
download | NetworkManager-39930396cdfa92101e8218828d19def02a143872.tar.gz |
merge: various syntax fixes for nmcli (bgo #768834)
-rw-r--r-- | clients/cli/connections.c | 2 | ||||
-rw-r--r-- | clients/cli/devices.c | 5 | ||||
-rw-r--r-- | man/nmcli.xml | 58 |
3 files changed, 34 insertions, 31 deletions
diff --git a/clients/cli/connections.c b/clients/cli/connections.c index 954c9037b7..cedbb7c4ed 100644 --- a/clients/cli/connections.c +++ b/clients/cli/connections.c @@ -312,7 +312,7 @@ static void usage (void) { g_printerr (_("Usage: nmcli connection { COMMAND | help }\n\n" - "COMMAND := { show | up | down | add | modify | edit | delete | monitor | reload | load }\n\n" + "COMMAND := { show | up | down | add | modify | clone | edit | delete | monitor | reload | load | import | export }\n\n" " show [--active] [--order <order spec>]\n" " show [--active] [id | uuid | path | apath] <ID> ...\n\n" " up [[id | uuid | path] <ID>] [ifname <ifname>] [ap <BSSID>] [passwd-file <file with passwords>]\n\n" diff --git a/clients/cli/devices.c b/clients/cli/devices.c index 4a56799d48..7f0e4eac55 100644 --- a/clients/cli/devices.c +++ b/clients/cli/devices.c @@ -292,12 +292,13 @@ static void usage (void) { g_printerr (_("Usage: nmcli device { COMMAND | help }\n\n" - "COMMAND := { status | show | connect | reapply | disconnect | delete | monitor | wifi | lldp }\n\n" + "COMMAND := { status | show | set | connect | reapply | modify | disconnect | delete | monitor | wifi | lldp }\n\n" " status\n\n" " show [<ifname>]\n\n" " set [ifname] <ifname> [autoconnect yes|no] [managed yes|no]\n\n" " connect <ifname>\n\n" " reapply <ifname>\n\n" + " modify <ifname> ([+|-]<setting>.<property> <value>)+\n\n" " disconnect <ifname> ...\n\n" " delete <ifname> ...\n\n" " monitor <ifname> ...\n\n" @@ -362,7 +363,7 @@ usage_device_reapply (void) static void usage_device_modify (void) { - g_printerr (_("Usage: nmcli connection modify { ARGUMENTS | --help }\n" + g_printerr (_("Usage: nmcli device modify { ARGUMENTS | --help }\n" "\n" "ARGUMENTS := <ifname> ([+|-]<setting>.<property> <value>)+\n" "\n" diff --git a/man/nmcli.xml b/man/nmcli.xml index ff8e63e699..0d403202f4 100644 --- a/man/nmcli.xml +++ b/man/nmcli.xml @@ -191,7 +191,7 @@ <arg choice='plain'><option>-f</option></arg> <arg choice='plain'><option>--fields</option></arg> <group choice='req'> - <arg conice='plain' rep='repeat'><replaceable>field</replaceable></arg> + <arg choice='plain' rep='repeat'><replaceable>field1</replaceable>,<replaceable>field2</replaceable></arg> <arg choice='plain'>all</arg> <arg choice='plain'>common</arg> </group> @@ -258,13 +258,11 @@ </varlistentry> <varlistentry> - <term><arg> - <group choice='plain'> - <arg choice='plain'><option>-w</option></arg> - <arg choice='plain'><option>--wait</option></arg> - </group> - <arg choice='plain' rep='repeat'><replaceable>seconds</replaceable></arg> - </arg></term> + <term><group choice='plain'> + <arg choice='plain'><option>-w</option></arg> + <arg choice='plain'><option>--wait</option></arg></group> + <arg choice='plain'><replaceable>seconds</replaceable></arg> + </term> <listitem> <para>This option sets a timeout period for which <command>nmcli</command> will @@ -363,7 +361,7 @@ <term> <command>logging</command> <arg><option>level</option> <replaceable>level</replaceable></arg> - <arg rep='repeat'><option>domain</option> <replaceable>domains</replaceable></arg> + <arg rep='repeat'><option>domains</option> <replaceable>domains</replaceable></arg> </term> <listitem> @@ -547,10 +545,13 @@ <arg choice='plain'><command>modify</command></arg> <arg choice='plain'><command>add</command></arg> <arg choice='plain'><command>edit</command></arg> + <arg choice='plain'><command>clone</command></arg> <arg choice='plain'><command>delete</command></arg> <arg choice='plain'><command>monitor</command></arg> <arg choice='plain'><command>reload</command></arg> <arg choice='plain'><command>load</command></arg> + <arg choice='plain'><command>import</command></arg> + <arg choice='plain'><command>export</command></arg> </group> <arg rep='repeat'><replaceable>ARGUMENTS</replaceable></arg> </cmdsynopsis> @@ -699,7 +700,7 @@ <arg choice='plain'><option>uuid</option></arg> <arg choice='plain'><option>path</option></arg> </group> - <arg rep='repeat' choice='plain'><replaceable>ID</replaceable></arg> + <arg choice='plain'><replaceable>ID</replaceable></arg> <arg><option>ifname</option> <replaceable>ifname</replaceable></arg> <arg><option>ap</option> <replaceable>BSSID</replaceable></arg> <arg><option>passwd-file</option> <replaceable>file</replaceable></arg> @@ -820,7 +821,7 @@ </group> <arg choice='plain'><replaceable>ID</replaceable></arg> <arg rep='repeat' choice='plain'> - <group> + <group choice='req'> <arg choice='plain'><replaceable>option</replaceable> <replaceable>value</replaceable></arg> <arg choice='plain'>[+|-]<replaceable>setting</replaceable>.<replaceable>property</replaceable> <replaceable>value</replaceable></arg> </group> @@ -862,9 +863,9 @@ <varlistentry> <term> <command>add</command> + <arg><option>save</option><group choice='req'><arg choice='plain'>yes</arg><arg choice='plain'>no</arg></group></arg> <arg rep='repeat' choice='plain'> - <group> - <arg choice='plain'><option>save</option><group choice='req'><arg choice='plain'>yes</arg><arg choice='plain'>no</arg></group></arg> + <group choice='req'> <arg choice='plain'><replaceable>option</replaceable> <replaceable>value</replaceable></arg> <arg choice='plain'>[+|-]<replaceable>setting</replaceable>.<replaceable>property</replaceable> <replaceable>value</replaceable></arg> </group> @@ -943,7 +944,7 @@ <arg choice='plain'><option>uuid</option></arg> <arg choice='plain'><option>path</option></arg> </group> - <arg rep='repeat' choice='plain'><replaceable>ID</replaceable></arg> + <arg choice='plain'><replaceable>ID</replaceable></arg> </arg> <arg choice='plain'> <arg><option>type</option> <replaceable>type</replaceable></arg> @@ -1003,8 +1004,8 @@ <arg choice='plain'><option>uuid</option></arg> <arg choice='plain'><option>path</option></arg> </group> - <arg choice='plain' rep='repeat'><replaceable>ID</replaceable></arg> - <arg choice='plain'><option>new</option> <replaceable>name</replaceable></arg> + <arg choice='plain'><replaceable>ID</replaceable></arg> + <arg choice='plain'><replaceable>new_name</replaceable></arg> </term> <listitem> @@ -1012,9 +1013,9 @@ name, UUID or D-Bus path. If <replaceable>ID</replaceable> is ambiguous, a keyword <option>id</option>, <option>uuid</option> or <option>path</option> can be used. See <command>connection show</command> above for the description - of the <replaceable>ID</replaceable>-specifying keywords. <replaceable>name</replaceable> is + of the <replaceable>ID</replaceable>-specifying keywords. <replaceable>new_name</replaceable> is the name of the new cloned connection. The new connection will be the exact - copy except the connection.id (<replaceable>name</replaceable>) and + copy except the connection.id (<replaceable>new_name</replaceable>) and connection.uuid (generated) properties.</para> <para>The new connection profile will be saved as persistent unless @@ -1107,8 +1108,8 @@ <term> <command>import</command> <arg><option>--temporary</option></arg> - <arg><option>type</option> <replaceable>type</replaceable></arg> - <arg><option>file</option> <replaceable>file</replaceable></arg> + <arg choice='plain'><option>type</option> <replaceable>type</replaceable></arg> + <arg choice='plain'><option>file</option> <replaceable>file</replaceable></arg> </term> <listitem> @@ -1230,7 +1231,7 @@ <varlistentry> <term> <command>connect</command> - <arg><replaceable>ifname</replaceable></arg> + <arg choice='plain'><replaceable>ifname</replaceable></arg> </term> <listitem> @@ -1246,7 +1247,7 @@ <varlistentry> <term> <command>reapply</command> - <arg><replaceable>ifname</replaceable></arg> + <arg choice='plain'><replaceable>ifname</replaceable></arg> </term> <listitem> @@ -1258,8 +1259,9 @@ <varlistentry> <term> <command>modify</command> + <arg choice='plain'><replaceable>ifname</replaceable></arg> <arg rep='repeat' choice='plain'> - <group> + <group choice='req'> <arg choice='plain'><replaceable>option</replaceable> <replaceable>value</replaceable></arg> <arg choice='plain'>[+|-]<replaceable>setting</replaceable>.<replaceable>property</replaceable> <replaceable>value</replaceable></arg> </group> @@ -1285,7 +1287,7 @@ <varlistentry> <term> <command>disconnect</command> - <arg rep='repeat'><replaceable>ifname</replaceable></arg> + <arg choice='plain' rep='repeat'><replaceable>ifname</replaceable></arg> </term> <listitem> @@ -1302,7 +1304,7 @@ <varlistentry> <term> <command>delete</command> - <arg rep='repeat'><replaceable>ifname</replaceable></arg> + <arg choice='plain' rep='repeat'><replaceable>ifname</replaceable></arg> </term> <listitem> @@ -1839,9 +1841,9 @@ It's equivalent of using the <literal>+bond.options 'option=value'</literal> syn <row><entry align="left">ageing-time</entry><entry align="left"><link linkend="nm-settings.property.bridge.ageing-time">bridge.ageing-time</link></entry></row> <row><entry align="left">multicast-snooping</entry><entry align="left"><link linkend="nm-settings.property.bridge.multicast-snooping">bridge.multicast-snooping</link></entry></row> <row><entry align="left">mac</entry><entry align="left"><link linkend="nm-settings.property.bridge.mac-address">bridge.mac-address</link></entry></row> - <row><entry align="left">priority</entry><entry align="left"><link linkend="nm-settings.property.bridge.port-priority">bridge.port-priority</link></entry></row> - <row><entry align="left">path-cost</entry><entry align="left"><link linkend="nm-settings.property.bridge.port-path-cost">bridge.port-path-cost</link></entry></row> - <row><entry align="left">hairpin</entry><entry align="left"><link linkend="nm-settings.property.bridge.port-hairpin-mode">bridge.port-hairpin-mode</link></entry></row> + <row><entry align="left">priority</entry><entry align="left"><link linkend="nm-settings.property.bridge-port.priority">bridge-port.priority</link></entry></row> + <row><entry align="left">path-cost</entry><entry align="left"><link linkend="nm-settings.property.bridge-port.path-cost">bridge-port.path-cost</link></entry></row> + <row><entry align="left">hairpin</entry><entry align="left"><link linkend="nm-settings.property.bridge-port.hairpin-mode">bridge-port.hairpin-mode</link></entry></row> </tbody> </tgroup></table> |