Remove possibility to set alias to untagged traffic.

This commit is contained in:
Nicolo Maio 2023-11-13 17:33:53 +01:00
parent bb4bd92eac
commit a56ce4b93f
2 changed files with 13 additions and 16 deletions

View file

@ -517,20 +517,10 @@ function getFullVlanName(vlan_id, compact, return_untagged)
-- In case of vlan 0, return empty string as name
-- fix for untagged vlan (#7998)
if tonumber(vlan_id) == 0 then
if (isEmptyString(alias) or alias == '0') then
if (return_untagged) then
return i18n('no_vlan')
end
return ''
else
if (compact) then
alias = shortenString(alias)
return string.format("%s", alias)
else
return string.format("%s [%s]",i18n('no_vlan'),alias)
end
if (return_untagged) then
return i18n('no_vlan')
end
return ''
end
if not isEmptyString(alias) then