Merge "Added Security Rule for Custom ICMP"
[ovsdb.git] / openstack / net-virt-providers / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / providers / openflow13 / services / IngressAclService.java
index 1bfbc2947083823d7ffe428509eff1a6038a6a67..2e8cd8533d5b0d39a6e1f003757dbeda3ae330d9 100644 (file)
@@ -61,6 +61,10 @@ public class IngressAclService extends AbstractServiceInstance implements Ingres
                                        List<Neutron_IPs> srcAddressList, boolean write) {
 
         LOG.trace("programLocalBridgeRulesWithSec neutronSecurityGroup: {} ", securityGroup);
+        if (securityGroup == null || securityGroup.getSecurityRules() == null) {
+            return;
+        }
+
         List<NeutronSecurityRule> portSecurityList = securityGroup.getSecurityRules();
         /* Iterate over the Port Security Rules in the Port Security Group bound to the port*/
         for (NeutronSecurityRule portSecurityRule : portSecurityList) {