mirror of
https://github.com/xcat2/confluent.git
synced 2025-03-18 17:37:45 +00:00
Delete discovery entries related to deleted node
On node deletion, it can be confusing if a stale discovery entry persists. Delete such entries upon deletion.
This commit is contained in:
parent
4cb595684e
commit
44bcca99b6
@ -1133,6 +1133,11 @@ def newnodes(added, deleting, configmanager):
|
||||
global attribwatcher
|
||||
global needaddhandled
|
||||
global nodeaddhandler
|
||||
for node in deleting:
|
||||
for mac in known_nodes[node]:
|
||||
if mac in known_info:
|
||||
del known_info[mac]
|
||||
del known_nodes[node]
|
||||
_map_unique_ids()
|
||||
configmanager.remove_watcher(attribwatcher)
|
||||
allnodes = configmanager.list_nodes()
|
||||
|
Loading…
x
Reference in New Issue
Block a user