]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldpcli: use "description" keyword when setting port description
authorVincent Bernat <vincent@bernat.im>
Sun, 29 Mar 2015 16:38:58 +0000 (18:38 +0200)
committerVincent Bernat <vincent@bernat.im>
Sun, 29 Mar 2015 16:38:58 +0000 (18:38 +0200)
src/client/conf-lldp.c
src/client/lldpcli.8.in

index f6ade7a1c91f660596dfd1b594d195815dcd8281..49224f9088cd2f00da12fab38ecce257f1ea9356 100644 (file)
@@ -208,9 +208,13 @@ register_commands_configure_lldp(struct cmd_node *configure)
                                NULL, cmd_portid_type_local,
                                b_map->string);
                        commands_new(
-                               commands_new(port_id,
-                                   NULL, "Port description",
-                                   NULL, cmd_store_env_value, "port-descr"),
+                               commands_new(
+                                       commands_new(port_id,
+                                           "description",
+                                           "Also set port description",
+                                           NULL, NULL, NULL),
+                                       NULL, "Port description",
+                                       NULL, cmd_store_env_value, "port-descr"),
                                NEWLINE, "Set local port ID and description",
                                NULL, cmd_portid_type_local, NULL);
                } else if (!strcmp(b_map->string, "macaddress")) {
index d271f0ac1c165bbe3cca49c44002c80293dd750d..2c34e98d77d795cafeb5627b8827ea174b215a7f 100644 (file)
@@ -318,7 +318,7 @@ option undoes the previous one.
 
 .Cd configure
 .Cd portidsubtype
-.Cd ifname | macaddress | local Ar value Op Ar description
+.Cd ifname | macaddress | local Ar value Op Cd description Ar description
 .Bd -ragged -offset XXXXXX
 Force port ID subtype. By default,
 .Nm