-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
25 lines (17 loc) · 946 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Tokalabs: sdloAssistant.py
By: Hubert Gee
A library that sends Tokalabs REST APIs from your client to the Tokalabs controller.
This repo includes a Python script that reserves and releases a sandbox called reserveSandbox.py.
This reservation script isn't the only style. Just an example. This example takes in two args:
1> -sandbox
2> -reserve or -release
The Sandbox yml file should have the followings:
sdloControllerIp: 10.10.10.2 <-- The Tokalabs controller IP
user: admin <-- Tokalabs login
password: password <-- Tokalabs login password
sandbox: testbed_1 <-- The name of a sandbox
Usage:
To reserve a sandbox: python reserveSandbox.py -sandbox testbed_1.yml -reserve
To release a sandbox: python reserveSandbox.py -sandbox testbed_1.yml -release
The sdloAssistant.py library has many more common configuration APIs.
Please open it up to explore all the functions.