client-application/valhalla-client

28 lines
680 B
Plaintext
Raw Normal View History

2022-12-06 09:01:55 +00:00
from network.ValhallaServer import ValhallaServer
2022-12-07 09:20:51 +00:00
from utils.MachineData import MachineData
2022-12-06 09:01:55 +00:00
2022-12-07 09:20:51 +00:00
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,
)
2022-12-06 09:01:55 +00:00
server.authenticate()
2022-12-07 09:20:51 +00:00
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()
2022-12-06 09:01:55 +00:00
# vim:ft=py