modified 'create new instance' screen with compute details

This commit is contained in:
cserma
2023-05-10 13:59:13 +03:00
parent 96ea999926
commit 3cd4212cdd
3 changed files with 42 additions and 27 deletions

View File

@@ -48,6 +48,10 @@ class Compute(Model):
@cached_property
def cpu_count(self):
return self.proxy.get_node_info()[3]
@cached_property
def cpu_usage(self):
return round(self.proxy.get_cpu_usage().get('usage'))
@cached_property
def ram_size(self):