Can't create a neutron port with --no-security-groups parameters

asked 2015-05-27 16:26:32 -0500

GLaupre gravatar image

updated 2015-05-27 16:27:11 -0500

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/

And that's what I have:

[stack@peryn5 devstack]$ neutron port-create --no-security-groups --vnic-type macvtap --name sriov-macvtap private100
{'fields': 'id', 'name': u'private100'}
{'port': {'admin_state_up': True,
          'binding:vnic_type': u'macvtap',
          'name': u'sriov-macvtap',
          'network_id': u'1d6092a1-c656-41c1-bd66-7144582b3237',
          'security_groups': []}}
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

edit retag flag offensive close merge delete


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 to

Maged Fathy gravatar imageMaged Fathy ( 2015-05-28 06:39:47 -0500 )edit

Yes, but my question is to use the --no-security-groups parameter and it doesn't work with it.

GLaupre gravatar imageGLaupre ( 2015-06-08 15:58:49 -0500 )edit