Reset nodedb command

This commit is contained in:
Ben Meadors
2022-09-25 13:46:11 -05:00
parent 262e921a81
commit a74ec12445
2 changed files with 15 additions and 0 deletions

View File

@@ -482,6 +482,14 @@ class Node:
return self._sendAdmin(p)
def resetNodeDb(self):
"""Tell the node to reset its list of nodes."""
p = admin_pb2.AdminMessage()
p.nodedb_reset = True
logging.info(f"Telling node to reset the NodeDB")
return self._sendAdmin(p)
def _fixupChannels(self):
"""Fixup indexes and add disabled channels as needed"""