diff options
Diffstat (limited to 'libnvme/tests/create-ctrl-obj.py')
-rwxr-xr-x | libnvme/tests/create-ctrl-obj.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libnvme/tests/create-ctrl-obj.py b/libnvme/tests/create-ctrl-obj.py new file mode 100755 index 0000000..51915cc --- /dev/null +++ b/libnvme/tests/create-ctrl-obj.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python3 +import sys +import pprint +from libnvme import nvme + +root = nvme.root() +root.log_level('debug') + +host = nvme.host(root) +subsysnqn = nvme.NVME_DISC_SUBSYS_NAME +transport = 'loop' +traddr = '127.0.0.1' +trsvcid = '8009' +ctrl = nvme.ctrl(root, subsysnqn=subsysnqn, transport=transport, traddr=traddr, trsvcid=trsvcid) |