1
0
Fork 0

Adding upstream version 2.2.1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Benjamin Drung 2025-02-16 12:41:59 +01:00 committed by Daniel Baumann
parent 1d36de0179
commit 757b718eff
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
129 changed files with 16110 additions and 0 deletions

16
utils/mk-discovery-conf.py Executable file
View 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] != ''])}")