Skip to content

Commit

Permalink
define mount/umount BE functions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexax66 committed Oct 12, 2022
1 parent d7193ca commit 75d73dd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bectl.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ def rename_be(origBeName, newBeName):
assert bectl_process.returncode == 0


def mount_be(BeName):
cmd_list = ['bectl', 'mount', BeName]
bectl_process = run(cmd_list)
assert bectl_process.returncode == 0


def umount_be(BeName):
cmd_list = ['bectl', 'umount', BeName]
bectl_process = run(cmd_list)
assert bectl_process.returncode == 0


def get_be_list():
cmd_list = ['bectl', 'list']
bectl_output = Popen(
Expand Down

0 comments on commit 75d73dd

Please sign in to comment.