From df696b1413abfc66e780f96e40f8ad2213af9341 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 27 Aug 2020 16:32:13 +0900 Subject: [PATCH 1/2] networkctl: label command does not take any argument --- src/network/networkctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/networkctl.c b/src/network/networkctl.c index 2178b5799e..2e89f2d50b 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -2794,7 +2794,7 @@ static int networkctl_main(int argc, char *argv[]) { { "list", VERB_ANY, VERB_ANY, VERB_DEFAULT, list_links }, { "status", VERB_ANY, VERB_ANY, 0, link_status }, { "lldp", VERB_ANY, VERB_ANY, 0, link_lldp_status }, - { "label", VERB_ANY, VERB_ANY, 0, list_address_labels }, + { "label", 1, 1, 0, list_address_labels }, { "delete", 2, VERB_ANY, 0, link_delete }, { "up", 2, VERB_ANY, 0, link_up_down }, { "down", 2, VERB_ANY, 0, link_up_down }, From f2c676c6c016e24f246a21d70e359b9358a2f61d Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 27 Aug 2020 16:35:25 +0900 Subject: [PATCH 2/2] man: clarify that several networkctl commands takes device names --- man/networkctl.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/man/networkctl.xml b/man/networkctl.xml index bd958fb1e0..5a6ca5ab27 100644 --- a/man/networkctl.xml +++ b/man/networkctl.xml @@ -255,6 +255,7 @@ s - Service VLAN, m - Two-port MAC Relay (TPMR) delete + DEVICE… Deletes virtual netdevs. Takes interface name or index number. @@ -262,6 +263,7 @@ s - Service VLAN, m - Two-port MAC Relay (TPMR) up + DEVICE… Bring devices up. Takes interface name or index number. @@ -269,6 +271,7 @@ s - Service VLAN, m - Two-port MAC Relay (TPMR) down + DEVICE… Bring devices down. Takes interface name or index number. @@ -276,6 +279,7 @@ s - Service VLAN, m - Two-port MAC Relay (TPMR) renew + DEVICE… Renew dynamic configurations e.g. addresses received from DHCP server. Takes interface name or index number. @@ -284,6 +288,7 @@ s - Service VLAN, m - Two-port MAC Relay (TPMR) forcerenew + DEVICE… Send a FORCERENEW message to all connected clients, triggering DHCP reconfiguration. Takes interface name or index number. @@ -292,6 +297,7 @@ s - Service VLAN, m - Two-port MAC Relay (TPMR) reconfigure + DEVICE… Reconfigure network interfaces. Takes interface name or index number.