[Fuego] Adding board availability status to fserver
Pavan Arun Deshpande <[email protected]> Wed, 14 Apr 2021 11:01:30 +0530
| Newsgroups | dev.linux.lists.fuego |
|---|---|
| Message-ID | <CAMQEYMcAicwZD2DGgMOQwDzdxKjkqDD78K-NvEmKfUW2Vr25YQ@mail.gmail.com> |
Hi Tim,
I have added a status variable to the board dictionary in the
do_put_board() function of ftc script.
Here are procedure to change board availability status and put that on the
fserver:
- change the status variable value either up or down according to board
availability.
- run the following command in the ttc container:
ftc put-board <board_name>
then it will reflect in <board_name>.json file on the fserver
please find the patch file of the ftc script and also the snapshot of the
rpi.json below.
Thanks and regards
Pavan Arun Deshpande
--
This
message contains confidential information and is intended only
for the
individual(s) named. If you are not the intended
recipient, you are
notified that disclosing, copying, distributing or taking any
action in
reliance on the contents of this mail and attached file/s is strictly
prohibited. Please notify the
sender immediately and delete this e-mail
from your system. E-mail transmission
cannot be guaranteed to be secured or
error-free as information could be
intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain
viruses. The sender therefore does
not accept liability for any errors or
omissions in the contents of this
message, which arise as a result of e-mail
transmission.
rpi_json.png
(image/png, 9.1 KB) - not displayed
ftc.patch
(text/x-patch, 547 B)
diff --git a/scripts/ftc b/scripts/ftc
index b0fe0ad..e8428e4 100755
--- a/scripts/ftc
+++ b/scripts/ftc
@@ -4025,7 +4025,7 @@ def do_put_board(conf, options):
error_out("Unrecognized board %s" % (board_name))
url = conf.SERVER_URL_BASE+"put_board"
- board_dict = {"host": conf.host, "board": board_name }
+ board_dict = {"host": conf.host, "board": board_name, "status":"up"}
# FIXTHIS - probably want to send a lot more data here (in do_put_board)
# but this is a start
resp = requests.post(url, board_dict)