Bug 4550
[ovsdb.git] / openstack / net-virt / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / translator / crud / impl / NeutronSecurityGroupInterface.java
index 9498dd77cdb0c210d6d2077fe11743054b1639c3..db54ad9ab85168fed95b87a54660cdbce01931af 100644 (file)
@@ -127,7 +127,7 @@ public class NeutronSecurityGroupInterface extends AbstractNeutronInterface<Secu
         List<NeutronSecurityRule> rules = new ArrayList<NeutronSecurityRule>();
         String sgId = group.getUuid().getValue();
         for (NeutronSecurityRule rule: srCrud.getAllNeutronSecurityRules()) {
-            if (rule.getSecurityRuleGroupID() == sgId) {
+            if (rule.getSecurityRuleGroupID().equals(sgId)) {
                 rules.add(rule);
             }
         }