mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
Removed alias from VLAN 0 (#9805)
This commit is contained in:
parent
7fe9bc23f9
commit
4a8438c176
2 changed files with 43 additions and 24 deletions
|
|
@ -504,10 +504,9 @@ end
|
|||
-- ##############################################
|
||||
|
||||
function getFullVlanName(vlan_id, compact, return_untagged)
|
||||
local alias = getVlanAlias(vlan_id)
|
||||
|
||||
-- In case of vlan 0, return empty string as name
|
||||
-- fix for untagged vlan (#7998)
|
||||
-- Also do not check redis in case of vlan 0
|
||||
if tonumber(vlan_id) == 0 then
|
||||
if (return_untagged) then
|
||||
return i18n('no_vlan')
|
||||
|
|
@ -515,6 +514,8 @@ function getFullVlanName(vlan_id, compact, return_untagged)
|
|||
return ''
|
||||
end
|
||||
|
||||
local alias = getVlanAlias(vlan_id)
|
||||
|
||||
if not isEmptyString(alias) then
|
||||
if not isEmptyString(alias) and alias ~= tostring(vlan_id) then
|
||||
if compact then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue