I have a python script to create a clone of a volume but I noticed that the clone inherits the export poilcy from the parent volume but I would like to change that within the script to an exports policy that is built specifically for this new clone.
I played with volume-modify-iter but nothing I input into that portion of the script seems to take.
Any ideas on how to change that export policy while creating the volume clone?
This is the portion of my script that creates the clone:
You cannot change export during vol-clone-create operation, but you can use this to change export policy after cloning, qtree will be "" if you export at volume level.
s = NaServer("<server name or IP address>", 1 , 31)
s.set_admin_user("<user name>", "<password>")
api = NaElement("qtree-modify")
xo = s.invoke_elem(api)