[v2,4/5] network: add color commands

Submitted by Jonatan Schlag on June 15, 2017, 4:18 p.m.

Details

Message ID 1497543533-5925-4-git-send-email-jonatan.schlag@ipfire.org
State New
Headers show

Commit Message

Jonatan Schlag June 15, 2017, 4:18 p.m.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
---
 src/network | 6 ++++++
 1 file changed, 6 insertions(+)

Patch hide | download patch | download mbox

diff --git a/src/network b/src/network
index e0d57a0..ea7f7d6 100644
--- a/src/network
+++ b/src/network
@@ -518,6 +518,9 @@  cli_port() {
 			edit|create|remove|up|down|status|identify)
 				port_${action} "${port}" $@
 				;;
+			color)
+				color_cli "port" "${port}" $@
+				;;
 			*)
 				error "Unrecognized argument: ${action}"
 				exit ${EXIT_ERROR}
@@ -576,6 +579,9 @@  cli_zone() {
 			config|disable|down|edit|enable|identify|status|up)
 				zone_${action} ${zone} $@
 				;;
+			color)
+				color_cli "zone" "${zone}" $@
+				;;
 			*)
 				error "Unrecognized argument: ${action}"
 				cli_show_man network-zone