]> git.ipfire.org Git - network.git/commitdiff
network: add color commands
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Thu, 15 Jun 2017 16:18:52 +0000 (18:18 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 19 Jun 2017 16:06:20 +0000 (18:06 +0200)
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/network

index e0d57a04ff28d7e180f4856e3abe0702592dc755..ea7f7d6682621f6b2445680853b4f6795ae8c921 100644 (file)
@@ -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