Skip to content
Snippets Groups Projects
Verified Commit 96490d46 authored by Karel Koci's avatar Karel Koci :metal:
Browse files

tos3to4: fix invalid VLAN assignment

The `vid` is in default set by LuCI but if user configures stuff
directly it can use only `vlan` and in default that is used as `vid`.
This is probably a common way most of the advanced users configured
switch. We need to read vlan and use that as default to vid.
parent 691feadd
Branches
Tags
1 merge request!854tos3to4: fix invalid VLAN assignment
......@@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=tos3to4
PKG_VERSION:=2.3.2
PKG_VERSION:=2.3.3
PKG_RELEASE:=1
PKG_MAINTAINER:=CZ.NIC <packaging@turris.cz>
......
......@@ -34,7 +34,8 @@ vlan_handle() {
local vlan="$1"
local ports vid
config_get ports "$vlan" ports
config_get vid "$vlan" vid 0
config_get vid "$vlan" vlan 0
config_get vid "$vlan" vid "$vid"
for port in $ports; do
case "$port" in
"$CPU_TRUNK_1")
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment