Enable xlinks on hap ac lites (#1104)

This commit is contained in:
Tim Wilkinson 2024-02-28 23:57:13 -08:00 committed by GitHub
parent 4ff44c2b21
commit 6d81b4c846
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
local board = aredn.hardware.get_board_type()
if board == "mikrotik,hap-ac2" or board == "mikrotik,hap-ac3" or board == "qemu" or board == "glinet,gl-b1300" or board == "vmware" then
if board == "mikrotik,routerboard-952ui-5ac2nd" or board == "mikrotik,hap-ac2" or board == "mikrotik,hap-ac3" or board == "qemu" or board == "glinet,gl-b1300" or board == "vmware" then
return { href = "advancednetwork", display = "Advanced Network" }
end

View File

@ -542,7 +542,7 @@ end
function supportsVLANChange()
-- If we support advanced networking, we dont provide this option here
local board = aredn.hardware.get_board_type()
if board == "mikrotik,hap-ac2" or board == "mikrotik,hap-ac3" then
if board == "mikrotik,routerboard-952ui-5ac2nd" or board == "mikrotik,hap-ac2" or board == "mikrotik,hap-ac3" then
return false
end
local stat = nixio.fs.stat("/etc/aredn_include/swconfig")

View File

@ -58,6 +58,7 @@ local function default_n_port_layout(board_type)
return { ports = ports }
end
local layouts = {
["mikrotik,routerboard-952ui-5ac2nd"] = default_5_port_layout,
["mikrotik,hap-ac2"] = default_5_port_layout,
["mikrotik,hap-ac3"] = default_5_port_layout,
["glinet,gl-b1300"] = default_3_port_layout,
@ -126,6 +127,7 @@ local default_1_port_config = {
}
}
local default_configs = {
["mikrotik,routerboard-952ui-5ac2nd"] = default_5_port_config,
["mikrotik,hap-ac2"] = default_5_port_config,
["mikrotik,hap-ac3"] = default_5_port_config,
["glinet,gl-b1300"] = default_3_port_config,