Development
This commit is contained in:
parent
f518f0e86b
commit
37a8e58fc7
2 changed files with 4 additions and 1 deletions
|
|
@ -55,7 +55,7 @@
|
||||||
"field": "vlan_name"
|
"field": "vlan_name"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Status",
|
"label": "ARP Status",
|
||||||
"field": "status",
|
"field": "status",
|
||||||
"render": "raw_html"
|
"render": "raw_html"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -546,6 +546,9 @@ def refresh_arp_cache():
|
||||||
state = parts[-1]
|
state = parts[-1]
|
||||||
if state in ('FAILED', 'PERMANENT', 'NOARP', 'INCOMPLETE'):
|
if state in ('FAILED', 'PERMANENT', 'NOARP', 'INCOMPLETE'):
|
||||||
continue
|
continue
|
||||||
|
iface = parts[2] if len(parts) > 2 else ''
|
||||||
|
if iface.startswith('br-') or iface == 'docker0':
|
||||||
|
continue
|
||||||
idx = parts.index('lladdr')
|
idx = parts.index('lladdr')
|
||||||
mac = parts[idx + 1].lower()
|
mac = parts[idx + 1].lower()
|
||||||
entries[mac] = {'ip': parts[0], 'state': state}
|
entries[mac] = {'ip': parts[0], 'state': state}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue