updates to session.clear to clear out all configuration data as well, updated session.shutdown to use clear, updated tests to account for this
This commit is contained in:
parent
dc27fadb10
commit
5c12651e4e
5 changed files with 18 additions and 26 deletions
|
@ -1092,10 +1092,14 @@ class CoreHandler(socketserver.BaseRequestHandler):
|
|||
|
||||
if message_type == ConfigFlags.RESET:
|
||||
node_id = config_data.node
|
||||
self.session.location.reset()
|
||||
self.session.services.reset()
|
||||
self.session.mobility.config_reset(node_id)
|
||||
self.session.emane.config_reset(node_id)
|
||||
if node_id is not None:
|
||||
self.session.mobility.config_reset(node_id)
|
||||
self.session.emane.config_reset(node_id)
|
||||
else:
|
||||
self.session.location.reset()
|
||||
self.session.services.reset()
|
||||
self.session.mobility.config_reset()
|
||||
self.session.emane.config_reset()
|
||||
else:
|
||||
raise Exception(f"cant handle config all: {message_type}")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue