mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Remove possibility to set alias to untagged traffic.
This commit is contained in:
parent
bb4bd92eac
commit
a56ce4b93f
2 changed files with 13 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue