--- network/neutronv2/api.py.orig 2016-08-23 12:29:20.833579848 -0700 +++ network/neutronv2/api.py 2016-08-25 11:01:17.096374454 -0700 @@ -648,7 +648,7 @@ # for a network without L3 assignements. raise exception.SecurityGroupCannotBeApplied() else: - if security_group_ids: + if security_group_ids and not request.port_id: # We don't want to apply security groups on port # for a network defined with # 'port_security_enabled=False'.