Skip to content

Commit

Permalink
q-dev: port
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrbartman committed Oct 14, 2024
1 parent 30d7547 commit 55dbba9
Show file tree
Hide file tree
Showing 7 changed files with 144 additions and 137 deletions.
4 changes: 2 additions & 2 deletions doc/manpages/qvm-device.rst
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ Show info about the device with *DEVICE_ID* from *BACKEND_DOMAIN* attached to th

aliases: i

Device classes
==============
Port classes
============

block
^^^^^
Expand Down
10 changes: 6 additions & 4 deletions qubesadmin/backup/restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
from qubesadmin.backup import BackupVM
from qubesadmin.backup.core2 import Core2Qubes
from qubesadmin.backup.core3 import Core3Qubes
from qubesadmin.device_protocol import DeviceAssignment
from qubesadmin.device_protocol import DeviceAssignment, Port
from qubesadmin.exc import QubesException
from qubesadmin.utils import size_to_human

Expand Down Expand Up @@ -2094,9 +2094,11 @@ def _restore_vms_metadata(self, restore_info):
else:
required = False
assignment = DeviceAssignment(
backend_domain=self.app.domains[backend_domain],
ident=ident,
devclass=bus,
Port(
backend_domain=self.app.domains[backend_domain],
ident=ident,
devclass=bus,
),
options=options,
attach_automatically=True,
required=required,
Expand Down
Loading

0 comments on commit 55dbba9

Please sign in to comment.