It would be good to allow users to create systems from CLI. The command would be sth like this: bkr system-add -fqdn <fqdn> --lab-controller <lab-controller> --type <machine-type> --mac <mac_address> And also we need a command to edit the power configurations details of the system. bkr system-config_power --type <power_type> --address <power_address> --login <power_login> --password <power_password> --port <port>
(In reply to matt jia from comment #0) Correct two typos, :-) > bkr system-add -fqdn <fqdn> --lab-controller <lab-controller> --type > <machine-type> --mac <mac_address> brk system_add --fqdn .. > And also we need a command to edit the power configurations details of the > system. > > bkr system-config_power --type <power_type> --address <power_address> > --login <power_login> --password <power_password> --port <port> bkr system_config_power ..
We use hyphens for subcommand names, not underscores. bkr system-add Also I don't think we need a separate command for updating power config. It can just be new options on system-modify. bkr system-modify --power-type drac --power-address ... It is all the same HTTP endpoint anyway (PUT /systems/<fqdn>/).
*** This bug has been marked as a duplicate of bug 1323885 ***