Skip to content

Instantly share code, notes, and snippets.

@v6ak
Created May 10, 2021 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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