# Config file format: Python, i.e. dict(), list(), int, str, etc...
# port ids (id) are integers 0...N
# namespaces are integers 0..N
# subsysnqn can be integers or strings
{
    'ports': [
        {
            'id': 1,
            #'adrfam': 'ipv6',
            #'traddr': '::',
            'adrfam': 'ipv4',
            'traddr': '0.0.0.0',
            'trsvcid': 4420,
            'trtype': 'tcp',
        }
    ],

    'subsystems': [
        {
            'subsysnqn': 'nqn.1988-11.com.dell:PowerSANxxx:01:20210225100113-454f73093ceb4847a7bdfc6e34ae8e28',
            'port': 1,
            'namespaces': [1],
            'allowed_hosts': [
                {
                    # Must match with the NQN and key configured on the host
                    # Key was generated with:
                    #    nvme gen-dhchap-key ...
                    'nqn': 'nqn.2014-08.org.nvmexpress:uuid:46ba5037-7ce5-41fa-9452-48477bf00080',
                    'key': 'DHHC-1:00:2kx1hDTUPdvwtxHYUXFRl8pzn5hYZH7K3Z77IYM4hNN6/fQT:',
                },
            ],
        },
    ]
}