Adding upstream version 2.2.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
1d36de0179
commit
757b718eff
129 changed files with 16110 additions and 0 deletions
16
utils/mk-discovery-conf.py
Executable file
16
utils/mk-discovery-conf.py
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
# USAGE: stafctl ls | ./mk-discovery-conf.py
|
||||
|
||||
import sys
|
||||
|
||||
KEYS = [
|
||||
('transport', None),
|
||||
('traddr', None),
|
||||
('subsysnqn', 'nqn'),
|
||||
('host-iface', None),
|
||||
('host-traddr', None),
|
||||
]
|
||||
|
||||
for ctrl in eval(sys.stdin.read()):
|
||||
print(f"{' '.join([f'--{kout or kin}={ctrl[kin]}' for kin,kout in KEYS if ctrl[kin] != ''])}")
|
Loading…
Add table
Add a link
Reference in a new issue