modules/admin-full: fix status reporting of inactive virtual interfaces
This commit is contained in:
parent
9e8de5189d
commit
21b2f45d02
1 changed files with 2 additions and 2 deletions
|
@ -14,11 +14,11 @@
|
||||||
'<img src="<%=resource%>/icons/%s%s.png" style="width:16px; height:16px" />' +
|
'<img src="<%=resource%>/icons/%s%s.png" style="width:16px; height:16px" />' +
|
||||||
'<br /><small>%s</small>',
|
'<br /><small>%s</small>',
|
||||||
ifc.type, ifc.is_up ? '' : '_disabled',
|
ifc.type, ifc.is_up ? '' : '_disabled',
|
||||||
ifc.is_up ? ifc.ifname : '?'
|
ifc.name
|
||||||
);
|
);
|
||||||
|
|
||||||
var d = document.getElementById('<%=self.option%>-ifc-description');
|
var d = document.getElementById('<%=self.option%>-ifc-description');
|
||||||
if (d && ifc.ifname && ifc.macaddr != '00:00:00:00:00:00')
|
if (d && ifc.ifname)
|
||||||
{
|
{
|
||||||
if (ifc.is_up)
|
if (ifc.is_up)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue