]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/functions/functions.ports
ports: Improve function that returns the children
[people/stevee/network.git] / src / functions / functions.ports
index bef76be82f2046b1d3252b1210999196c0ef7d78..c852a53ae8a6e7fa064225201278ce894fe8d484 100644 (file)
@@ -335,7 +335,9 @@ port_get_parents() {
 port_get_children() {
        local port=${1}
 
-       port_get_info ${port} PORT_CHILDREN
+       assert port_exists "${port}"
+
+       port_cmd "children" "${port}"
 }
 
 port_zone() {