summaryrefslogtreecommitdiffstats
path: root/src/HTTPParser.py
Commit message (Collapse)AuthorAgeFilesLines
* Improve /image/create command responseAlvaro Neira Ayuso2020-01-191-0/+7
| | | | | | | | | | | With this new patch, the image/create command will create a response message with more information for the server. The new format is: {"disk" : "1", "partition" : "1", "code" : "1", "id" : "1", "name" : "test", "repository" : "192.168.2.4", "software" : "xyz"} "xyz" will be the output saved during the execution of InventarioSoftware in a specific path.
* Include License headerAlvaro Neira Ayuso2020-01-191-0/+8
|
* Include echo option for returning shell outputAlvaro Neira Ayuso2020-01-191-0/+8
| | | | | | | | | This patch adds a new echo option in /shell/run command. In case that the option is set up to true, the server will receive in the response a json with the shell output. Otherwise, the server will receive a response message without json body. A side effect of this change is that the command /shell/output/ disapears.
* Add restore/image command for restoring images on the machineAlvaro Neira Ayuso2020-01-191-0/+35
| | | | | | | | | ogAdmClient has a support to restore image on the machine. This new command allows the new ogClient to execute the same script to restore the images on the machine. The json format sent from the server must be: { "disk" : "1", "partition" : "1", "name" : "test",\ "repository" : "192.168.56.10", "type" : "UNICAST", "profile": "1", "id": "1"}
* Add setup command for configuring the machineAlvaro Neira Ayuso2020-01-191-1/+23
| | | | | | | | | | ogAdmClient has a support to configure the machines. This new command allows the new ogClient to execute the same script to configure the machine. The json format sent from the server must be: { "disk" : "1", "cache" : "0", "cache_size" : "70000000",\ "partition_setup": [{"partition": "1", "code": "NTFS", "filesystem": "NTFS",\ "size": "11000000", "format": "0"}]}
* Add session command to init the opengnsys sessionAlvaro Neira Ayuso2020-01-191-0/+14
| | | | | | | | ogAdmClient has a support for initializing the session in the machine. This new command allows the new ogClient to execute the same script to init the session. The arguments will be received from the server as a json message. Format: { "disk" : "0", "partition" : "1"}
* (BUG) Fix crash when json message received is incompleteAlvaro Neira Ayuso2020-01-191-1/+6
|
* Add shell run and output commandsAlvaro Neira Ayuso2020-01-191-6/+18
| | | | | | | | Opengnsys needs a support to execute commands on the machine. This patch adds the support for executing two new commands "shell/run" and "shell/output". The first one, give us the support for executing a command in the machine and keep save in a queue the output. The second one, give us the support for sending the output from the command executed.
* Port program to Python 3Alvaro Neira Ayuso2020-01-191-3/+3
| | | | | Python 2.7 will be deprecated in January of 2020. So, we need to have the program with a supported api.
* Add HTTP parser supportAlvaro Neira Ayuso2020-01-191-0/+54
The new OpenGnsys support to communicate server and client side will be HTTP. This new class allows us the support for parsing all the message received from the server in HTTP format.