Redraw NetBox if current network interface is changed due to removal

pull/306/head
Umar Javed 4 years ago
parent 472185c080
commit bcf3b31f71

@ -3555,6 +3555,7 @@ class NetCollector(Collector):
if not cls.nic or cls.nic not in up_stat: if not cls.nic or cls.nic not in up_stat:
cls._get_nics() cls._get_nics()
if not cls.nic: return if not cls.nic: return
NetBox.redraw = True
try: try:
io_all = psutil.net_io_counters(pernic=True)[cls.nic] io_all = psutil.net_io_counters(pernic=True)[cls.nic]
except KeyError: except KeyError:

Loading…
Cancel
Save