From: Jonatan Schlag Date: Mon, 19 Jun 2017 19:20:48 +0000 (+0200) Subject: cli: print the description title X-Git-Tag: 009~205 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7b8eb7307334317ec354faf439d2475d518d389;p=network.git cli: print the description title Signed-off-by: Jonatan Schlag Signed-off-by: Michael Tremer --- diff --git a/src/functions/functions.cli b/src/functions/functions.cli index 5efd923d..1bd99dd1 100644 --- a/src/functions/functions.cli +++ b/src/functions/functions.cli @@ -113,6 +113,17 @@ cli_device_headline() { esac cli_print_fmt1 1 "Status" "${status}" + # Print the description title of the device. + case "${type}" in + port) + cli_print_fmt1 1 "Description" "$(port_get_description_title ${device})" + ;; + + zone) + cli_print_fmt1 1 "Description" "$(zone_get_description_title ${device})" + ;; + esac + # Print the color of the device. case "${type}" in port)