Can't create a neutron port with --no-security-groups parameters
Hello all,
I am using my compute node with neutron SR-IOV PCIpassthrough.When I want to create a port using the CLI, I can't add the option --no-security-groups, why?
I printed the parameters in the function do_request() in the neutronclient/v2_0/client.py
And that's what I have:
[stack@peryn5 devstack]$ neutron port-create --no-security-groups --vnic-type macvtap --name sriov-macvtap private100
'GET'
'/networks'
None
None
{'fields': 'id', 'name': u'private100'}
'POST'
'/ports'
{'port': {'admin_state_up': True,
'binding:vnic_type': u'macvtap',
'name': u'sriov-macvtap',
'network_id': u'1d6092a1-c656-41c1-bd66-7144582b3237',
'security_groups': []}}
None
None
Unrecognized attribute(s) 'security_groups'
Therefore I can't create my port and I don't understand what happens. On the CLI guide the parameter --no-security-groups
is present.
Someone has an idea? Tks a lot
we use this command and it's working
neutron port-create demo-net --binding:vnic-type macvtap
also you have to specify which network the port will belong toYes, but my question is to use the
--no-security-groups
parameter and it doesn't work with it.