28 lines
680 B
Plaintext
28 lines
680 B
Plaintext
from network.ValhallaServer import ValhallaServer
|
|
from utils.MachineData import MachineData
|
|
|
|
machine_data = MachineData()
|
|
|
|
server = ValhallaServer(
|
|
server_address=machine_data.server_url,
|
|
server_port=machine_data.server_port,
|
|
server_user=machine_data.server_access_username,
|
|
server_access_password=machine_data.server_password,
|
|
logging_level=machine_data.client_loglevel,
|
|
)
|
|
|
|
server.authenticate()
|
|
|
|
server.get_server_data()
|
|
|
|
server.update_machine_data_on_server(machine_data=machine_data)
|
|
|
|
vm_list = server.get_vm_list_from_server(machine_data=machine_data)
|
|
|
|
print(vm_list)
|
|
|
|
server.get_vms_data_from_server()
|
|
|
|
server.update_vms_images_from_server()
|
|
|
|
# vim:ft=py |