<div dir="ltr"><p>Hello,</p> <p>I am trying to create and type-set some parameters to a volume-type as follows:</p> <pre>cinder type-create nfs
cinder type-key nfs set volume_backend_name=myNFSBackend
</pre> <p>The same thing I want to achieve through python client. </p> <p>I can create the type as follows:</p> <pre>from cinderclient import client 
cinder = client.Client('2', 'admin', 'pw', 'demo', '<a href="http://127.0.0.1:5000/v2.0">http://127.0.0.1:5000/v2.0</a>', service_type="volumev2")
cinder.volume_types.create('nfs')
</pre> <p>However how can I associate the extra-spec through python-client code to the 'nfs' volume (same impact as the 
CLI 'cinder type-key nfs set volume_backend_name=myNFSBackend' does)?</p> <p>The 'set_keys' etc. methods are there in the "v2/volume_types.py" in python-cinderclient codebase. How to call it?
(it's part of VolumeType class, not VolumeTypeManager).</p> <p>Any help would be great.</p> <p>Thanks,
Pradip</p></div>