Skip to content
Snippets Groups Projects
Commit 0142cb08 authored by BRONES Romain's avatar BRONES Romain
Browse files

fix(cli): Default configuration apply config on corrector

parent 827291fc
No related branches found
Tags 2.1
No related merge requests found
...@@ -52,10 +52,10 @@ if __name__ == '__main__': ...@@ -52,10 +52,10 @@ if __name__ == '__main__':
parser.add_argument("--stop-ccn", action="store_true", parser.add_argument("--stop-ccn", action="store_true",
help="Stop command for the ComBPM applications blocks.") help="Stop command for the ComBPM applications blocks.")
parser.add_argument("--configure", choices=["combpm", "ccn", "comcorr", "corr", "all", "every"], parser.add_argument("--configure", choices=["combpm", "ccn", "comcorr", "corr", "all"],
nargs='?', const='all', nargs='?', const='all',
help="Configuration commands for the Fofb applications blocs."+ help="Configuration commands for the Fofb applications blocs."+
" 'all' is for all com, not configuring corrector. 'every' configure everything. Default is 'all'") " 'all' is for all com and corrector. Default is 'all'")
parser.add_argument("--start", action="store_true", parser.add_argument("--start", action="store_true",
help="Start command for the CCN and ComBPM applications blocks.") help="Start command for the CCN and ComBPM applications blocks.")
...@@ -101,13 +101,13 @@ if __name__ == '__main__': ...@@ -101,13 +101,13 @@ if __name__ == '__main__':
if args.stop or args.stop_ccn: if args.stop or args.stop_ccn:
FofbTool.Utils.stop_all_ccn() FofbTool.Utils.stop_all_ccn()
if args.configure in ("combpm", "all", "every"): if args.configure in ("combpm", "all"):
FofbTool.Utils.conf_all_combpm() FofbTool.Utils.conf_all_combpm()
if args.configure in ("comcorr", "all", "every"): if args.configure in ("comcorr", "all"):
FofbTool.Utils.conf_all_comcorr() FofbTool.Utils.conf_all_comcorr()
if args.configure in ("ccn", "all", "every"): if args.configure in ("ccn", "all"):
FofbTool.Utils.conf_all_ccn() FofbTool.Utils.conf_all_ccn()
if args.configure in ("corr", "every"): if args.configure in ("corr", "all"):
FofbTool.Configuration.centralnode_configure_corr() FofbTool.Configuration.centralnode_configure_corr()
if args.start or args.start_combpm: if args.start or args.start_combpm:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment