mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Updated ListDomainsConfigScreen to use vmmDomain types.
This commit is contained in:
parent
78408182bf
commit
fdd07b26e4
12
src/virtManagerTui/listdomains.py
Normal file → Executable file
12
src/virtManagerTui/listdomains.py
Normal file → Executable file
@ -49,18 +49,18 @@ class ListDomainsConfigScreen(DomainListConfigScreen):
|
|||||||
return self.get_detail_page_elements(screen)
|
return self.get_detail_page_elements(screen)
|
||||||
|
|
||||||
def get_detail_page_elements(self, screen):
|
def get_detail_page_elements(self, screen):
|
||||||
domain = self.get_libvirt().get_domain(self.get_selected_domain())
|
domain = self.get_selected_domain()
|
||||||
grid = Grid(2, 5)
|
grid = Grid(2, 5)
|
||||||
grid.setField(Label("Name: "), 0, 0, anchorRight = 1)
|
grid.setField(Label("Name: "), 0, 0, anchorRight = 1)
|
||||||
grid.setField(Label(domain.name()), 1, 0, anchorLeft = 1)
|
grid.setField(Label(domain.get_name()), 1, 0, anchorLeft = 1)
|
||||||
grid.setField(Label("UUID: "), 0, 1, anchorRight = 1)
|
grid.setField(Label("UUID: "), 0, 1, anchorRight = 1)
|
||||||
grid.setField(Label(domain.UUIDString()), 1, 1, anchorLeft = 1)
|
grid.setField(Label(domain.get_uuid()), 1, 1, anchorLeft = 1)
|
||||||
grid.setField(Label("OS Type: "), 0, 2, anchorRight = 1)
|
grid.setField(Label("OS Type: "), 0, 2, anchorRight = 1)
|
||||||
grid.setField(Label(domain.OSType()), 1, 2, anchorLeft = 1)
|
grid.setField(Label(domain.get_abi_type()), 1, 2, anchorLeft = 1)
|
||||||
grid.setField(Label("Max. Memory: "), 0, 3, anchorRight = 1)
|
grid.setField(Label("Max. Memory: "), 0, 3, anchorRight = 1)
|
||||||
grid.setField(Label(str(domain.maxMemory())), 1, 3, anchorLeft = 1)
|
grid.setField(Label(str(domain.maximum_memory())), 1, 3, anchorLeft = 1)
|
||||||
grid.setField(Label("Max. VCPUs: "), 0, 4, anchorRight = 1)
|
grid.setField(Label("Max. VCPUs: "), 0, 4, anchorRight = 1)
|
||||||
grid.setField(Label(str(domain.maxVcpus())), 1, 4, anchorLeft = 1)
|
grid.setField(Label(str(domain.vcpu_count())), 1, 4, anchorLeft = 1)
|
||||||
return [grid]
|
return [grid]
|
||||||
|
|
||||||
def ListDomains():
|
def ListDomains():
|
||||||
|
Loading…
Reference in New Issue
Block a user