From a5be8dabd62543a018e8ab4c3b2cf810f15b6a92 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 27 Jun 2017 10:30:41 -0400 Subject: [PATCH] Add networkctl label to man and shell completion --- man/networkctl.xml | 33 ++++++++++++++++++++++++++++++--- shell-completion/bash/networkctl | 2 +- shell-completion/zsh/_networkctl | 1 + 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/man/networkctl.xml b/man/networkctl.xml index 809eb7e..d4fa5e9 100644 --- a/man/networkctl.xml +++ b/man/networkctl.xml @@ -172,14 +172,40 @@ s - Service VLAN, m - Two-port MAC Relay (TPMR) 1 neighbors listed. + + + + label + + + Show numerical address labels that can be used for address selection. + This is the same information that + ip-addrlabel8 + shows. See RFC 3484 + for a discussion of address labels. + + Produces output similar to: + Prefix/Prefixlen Label + ::/0 1 + fc00::/7 5 + fec0::/10 11 + 2002::/16 2 + 3ffe::/16 12 + 2001:10::/28 7 + 2001::/32 6 +::ffff:0.0.0.0/96 4 + ::/96 3 + ::1/128 0 + + + Exit status - On success, 0 is returned, a non-zero failure - code otherwise. + On success, 0 is returned, a non-zero failure code otherwise. @@ -187,7 +213,8 @@ s - Service VLAN, m - Two-port MAC Relay (TPMR) systemd-networkd.service8, systemd.network5, - systemd.netdev5 + systemd.netdev5, + ip8 diff --git a/shell-completion/bash/networkctl b/shell-completion/bash/networkctl index 942c7e1..68e3338 100644 --- a/shell-completion/bash/networkctl +++ b/shell-completion/bash/networkctl @@ -36,7 +36,7 @@ _networkctl() { ) local -A VERBS=( - [STANDALONE]='list lldp' + [STANDALONE]='list lldp label' [LINKS]='status' ) diff --git a/shell-completion/zsh/_networkctl b/shell-completion/zsh/_networkctl index 61f173b..acf7463 100644 --- a/shell-completion/zsh/_networkctl +++ b/shell-completion/zsh/_networkctl @@ -6,6 +6,7 @@ _networkctl_command(){ 'list:List existing links' 'status:Show information about the specified links' 'lldp:Show Link Layer Discovery Protocol status' + 'label:Show address labels' ) if (( CURRENT == 1 )); then _describe -t commands 'networkctl command' _networkctl_cmds -- 2.7.4