Skip to content

Instantly share code, notes, and snippets.

@v6ak
Created May 10, 2021 11:54
Show Gist options
  • Save v6ak/9f7e1a961b282ca2742b7d2da307fb11 to your computer and use it in GitHub Desktop.
Save v6ak/9f7e1a961b282ca2742b7d2da307fb11 to your computer and use it in GitHub Desktop.
#!/bin/env python3
from qubesadmin import Qubes
q = Qubes()
d = q.domains['sys-net']
devices = d.devices['pci']
print(list(devices.assignments(persistent=True)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment