We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8ce419 commit acd1ff0Copy full SHA for acd1ff0
lib/host.py
@@ -699,3 +699,15 @@ def enable_hsts_header(self):
699
def disable_hsts_header(self):
700
self.ssh(['rm', '-f', f'{XAPI_CONF_DIR}/00-XCP-ng-tests-enable-hsts-header.conf'])
701
self.restart_toolstack(verify=True)
702
+
703
+ def lvs(self, vgName: Optional[str] = None, ignore_MGT: bool = True) -> List[str]:
704
+ ret: List[str] = []
705
+ cmd = ["lvs", "--noheadings", "-o", "LV_NAME"]
706
+ if vgName:
707
+ cmd.append(vgName)
708
+ output = self.ssh(cmd)
709
+ for line in output.splitlines():
710
+ if ignore_MGT and "MGT" in line:
711
+ continue
712
+ ret.append(line.strip())
713
+ return ret
0 commit comments