daemon: fixed issue bringing back addresses with no broadcast on rj45 nodes
This commit is contained in:
parent
e0e4b05b7f
commit
e60b0f0de1
1 changed files with 4 additions and 1 deletions
|
@ -171,7 +171,10 @@ class Rj45Node(CoreNodeBase):
|
|||
if "UP" in flags:
|
||||
self.old_up = True
|
||||
elif items[0] == "inet":
|
||||
self.old_addrs.append((items[1], items[3]))
|
||||
broadcast = None
|
||||
if items[2] == "brd":
|
||||
broadcast = items[3]
|
||||
self.old_addrs.append((items[1], broadcast))
|
||||
elif items[0] == "inet6":
|
||||
if items[1][:4] == "fe80":
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue