Skip to content

Commit

Permalink
Merge pull request #3609 from xiaodwan/v2v_add_new_output_mode_kubevirt
Browse files Browse the repository at this point in the history
v2v: add '-o kubevirt' support
  • Loading branch information
Yingshun authored Feb 16, 2023
2 parents c30db87 + 9a72d90 commit 47fd481
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions spell.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ autotest
cartesian
config
keyvals
kubevirt
libvirt
libvirtd
lmr
Expand Down
5 changes: 5 additions & 0 deletions virttest/backends/v2v/cfg/convert_destination.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ variants:
target = json
network = default
bridge = virbr0
- dest_kubevirt:
output_mode = kubevirt
target = kubevirt
network = default
bridge = virbr0
- dest_local:
output_mode = local
target = local
Expand Down
9 changes: 9 additions & 0 deletions virttest/utils_v2v.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,15 @@ def _get_json_options(self):

return options

def _get_kubevirt_options(self):
"""
Construct output options for -o kubevirt
"""
os_directory = self._get_os_directory()
options = " -os %s" % os_directory

return options

def get_target_options(self):
"""
Return command options.
Expand Down

0 comments on commit 47fd481

Please sign in to comment.