]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Check for default sec-group made case insensitive
authorabhishek.talwar <abhishek.talwar@tcs.com>
Tue, 18 Nov 2014 09:50:51 +0000 (15:20 +0530)
committerAbhishek Talwar <abhishek.talwar@tcs.com>
Thu, 20 Nov 2014 12:23:54 +0000 (12:23 +0000)
commit586af323ca7e87414b1f499499e28e6fec752a26
treedca330d6ecd4ecd2cbeffc72faf3baeea1870054
parentcbbe20c3b567210bc21e482314eaa329ffcde322
Check for default sec-group made case insensitive

Currently creating another security group with name
"default" is not allowed, however we can create
another security group with name "DEFAULT"
(or any other CASE pattern).

When trying to boot a VM without specifying
a security group it should always pick the
"default" security group. However, if another
security group of the name DEFAULT is present,
the VM gets associated with the wrong
security group (i.e DEFAULT and not default).

So, updated the code so that a security group
with name DEFAULT (or any other case pattern)
is not allowed.
Closes-Bug: #1384505

Change-Id: I3bc4e48cf723bcf74e098d7ef66df0333f6a8686
neutron/extensions/securitygroup.py
neutron/tests/unit/test_extension_security_group.py