From 301b1e32443a73fbc37a7d2bdeeeb461b6637452 Mon Sep 17 00:00:00 2001 From: Jakob Olsson <jakob.olsson@iopsys.eu> Date: Tue, 25 Mar 2025 11:25:18 +0100 Subject: [PATCH] traffic_separation: trunc the 'multi_ap_vid' over map ethports --- src/script/traffic_separation | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/script/traffic_separation b/src/script/traffic_separation index 22e709f9d..15363d943 100755 --- a/src/script/traffic_separation +++ b/src/script/traffic_separation @@ -329,6 +329,14 @@ EOF local tunnel_if=0 config_foreach find_vid_interface interface $vid + # support tagging for all map_port + for port in $map_ports ; do + uci -q get network.${name}.ports | grep -q "${port}" && { + uci -q del_list network.${name}.ports="${port}" + } + uci -q add_list network.${name}.ports="${port}${tag}" + done + # tag devices assigned to netif_device [ -n "$netif_device" ] && { uci -q del_list network.${name}.ports="${netif_device}:*" @@ -338,14 +346,6 @@ EOF return } - # support tagging for all map_port - for port in $map_ports ; do - uci -q get network.${name}.ports | grep -q "${port}" && { - uci -q del_list network.${name}.ports="${port}" - } - uci -q add_list network.${name}.ports="${port}${tag}" - done - # non-map ports add PVID egress untagged [ "${vid}" = "${PRIMARY_VID}" ] && { for port in $(uci -q get network.${br_dev}.ports) ; do -- GitLab