]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/functions/functions.ports
color: add colors to zone and ports
[people/ms/network.git] / src / functions / functions.ports
index c6e45d07df4675d6ae4084943963fcab87670f8b..db4e36558de0fa4b0ddab4ee517a9a7f0475f9a0 100644 (file)
@@ -422,3 +422,11 @@ ports_lowest_address() {
 port_identify() {
        device_identify $@
 }
+
+port_get_color() {
+       # This function return the color of a port
+       assert [ $# -eq 1 ]
+
+       local name=${1}
+       color_read "port" ${name}
+}