Cannot assign instance to a given network from Python novaclient API
Hi,
I have 2 networks and when I create an instance, it attaches itself automatically to both the networks by default.
I want to mainly disable this and attach the instance to a network of my choice specified by the net-id
I am writing Python novaclient API calls for this:
import os
import time
import novaclient.
from credentials import get_nova_creds
creds=get_
nova=nvclient.
image=nova.
flavor=
#network=
instance=
status=
print "Status: %s" % status
My problem is in the nova.servers.create command where I am not able to specify the correct arguments for the net-id.
Could someone help me on by specifying the correct way to give the 'net-id' argument
Thanks
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- ZhiQiang Fan
- Solved:
- Last query:
- Last reply: