How to specify auto or none for the --nic option when creating an instance
Issue
When creating an instance, an error will occur if the --nic option is specified as auto or none.
openstack server create test-vm --flavor m1.nano --image cirros --nic auto --wait
Error Message
nics must be a list or a tuple, not <type 'unicode'>
- To start an instance using --nic auto to automatically assign an IP address.
- To start an instance that does not connect to any network using --nic none.
Environment
Red Hat OpenStack Platform 13.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.