return false; if (!Objects.equals(_securityRuleGroup, other.getSecurityRuleGroup())) { return false;
public SecurityRuleGroupsBuilder(SecurityRuleGroups base) { if (base.getKey() == null) { this._key = new SecurityRuleGroupsKey( base.getUuid() ); this._uuid = base.getUuid(); } else { this._key = base.getKey(); this._uuid = _key.getUuid(); } this._description = base.getDescription(); this._name = base.getName(); this._ports = base.getPorts(); this._securityRuleGroup = base.getSecurityRuleGroup(); this._tenantId = base.getTenantId(); if (base instanceof SecurityRuleGroupsImpl) { SecurityRuleGroupsImpl impl = (SecurityRuleGroupsImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.faas.logical.faas.security.rules.rev151013.security.rule.groups.attributes.security.rule.groups.container.SecurityRuleGroups> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.faas.logical.faas.security.rules.rev151013.security.rule.groups.attributes.security.rule.groups.container.SecurityRuleGroups>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
private void renderSecurityRuleGroups(Uuid tenantId, NodeId fabricId,UserLogicalNetworkCache uln, NodeId nodeId, SecurityRuleGroups ruleGroups) { /* * One SecurityRuleGroups contains a list SecurityRuleGroup. * One SecurityRuleGroup contains a list of SecurityRule. * One SecurityRule can be mapped to one ietf-acl. */ SecurityRuleGroupsMappingInfo ruleGroupsMappingInfo = uln.findSecurityRuleGroupsFromRuleGroupsId(ruleGroups.getUuid()); if (ruleGroupsMappingInfo == null) { LOG.error("FABMGR: ERROR: renderSecurityRuleGroups: ruleGroupsMappingInfo is null"); return; } List<SecurityRuleGroup> ruleGroupList = ruleGroups.getSecurityRuleGroup(); for (SecurityRuleGroup ruleGroup : ruleGroupList) { List<SecurityRule> ruleList = ruleGroup.getSecurityRule(); for (SecurityRule rule : ruleList) { String aclName = this.createAclFromSecurityRule(rule); this.renderSecurityRule(tenantId, fabricId, uln, nodeId, ruleGroupsMappingInfo, aclName); } } uln.markSecurityRuleGroupsAsRendered(ruleGroups); }
private void renderSecurityRuleGroupsOnPair(Uuid tenantId, UserLogicalNetworkCache uln, NodeId fabricId, NodeId nodeId, NodeId fabricId2, NodeId nodeId2, SecurityRuleGroups ruleGroups) { /* * One SecurityRuleGroups contains a list SecurityRuleGroup. * One SecurityRuleGroup contains a list of SecurityRule. * One SecurityRule can be mapped to one ietf-acl. */ SecurityRuleGroupsMappingInfo ruleGroupsMappingInfo = uln.findSecurityRuleGroupsFromRuleGroupsId(ruleGroups.getUuid()); if (ruleGroupsMappingInfo == null) { LOG.error("FABMGR: ERROR: renderSecurityRuleGroups: ruleGroupsMappingInfo is null"); return; } List<SecurityRuleGroup> ruleGroupList = ruleGroups.getSecurityRuleGroup(); for (SecurityRuleGroup ruleGroup : ruleGroupList) { List<SecurityRule> ruleList = ruleGroup.getSecurityRule(); for (SecurityRule rule : ruleList) { String aclName = this.createAclFromSecurityRule(rule); this.renderSecurityRule(tenantId, fabricId, uln, nodeId, ruleGroupsMappingInfo, aclName); this.renderSecurityRule(tenantId, fabricId2, uln, nodeId2, ruleGroupsMappingInfo, aclName); } } uln.markSecurityRuleGroupsAsRendered(ruleGroups); }