Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Reflash a gate node with bootloader #144

Merged
merged 2 commits into from
Jul 4, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions pyluos/tools/bootloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,10 @@ def create_target_list(args, state):
nodes_to_program = []
nodes_to_reboot = []
for node in state['routing_table']:
# bypass if node contains a Gate service
# prevent programmation of a Gate
for service in node['services']:
bypass_node = False
if(service['type'] == 'Gate'):
bypass_node = True
break
if(service['alias'] == 'Pipe_mod'):
bypass_node = True
# prevent programmation of node 1
bypass_node = False
if(node['node_id'] == 1):
bypass_node = True
# check if node is in target list
if not (bypass_node):
nodes_to_reboot.append(node['node_id'])
Expand Down