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 2d62d64 commit 4b14411Copy full SHA for 4b14411
lib/host.py
@@ -711,3 +711,15 @@ def enable_hsts_header(self):
711
def disable_hsts_header(self):
712
self.ssh(['rm', '-f', f'{XAPI_CONF_DIR}/00-XCP-ng-tests-enable-hsts-header.conf'])
713
self.restart_toolstack(verify=True)
714
+
715
+ def lvs(self, vgName: Optional[str] = None, ignore_MGT: bool = True) -> List[str]:
716
+ ret: List[str] = []
717
+ cmd = ["lvs", "--noheadings", "-o", "LV_NAME"]
718
+ if vgName:
719
+ cmd.append(vgName)
720
+ output = self.ssh(cmd)
721
+ for line in output.splitlines():
722
+ if ignore_MGT and "MGT" in line:
723
+ continue
724
+ ret.append(line.strip())
725
+ return ret
0 commit comments