use of org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.aclservice.rev160608.AclserviceAugmentationBuilder in project netvirt by opendaylight.
the class NeutronSecurityGroupListener method toAclBuilder.
private AclBuilder toAclBuilder(SecurityGroup securityGroup, Integer aclTag) {
AclBuilder aclBuilder = new AclBuilder();
aclBuilder.setAclName(securityGroup.key().getUuid().getValue());
aclBuilder.setAclType(NeutronSecurityGroupConstants.ACLTYPE);
aclBuilder.setAccessListEntries(new AccessListEntriesBuilder().setAce(new ArrayList<>()).build());
if (aclTag != NeutronSecurityGroupConstants.INVALID_ACL_TAG) {
AclserviceAugmentationBuilder aclserviceAugmentationBuilder = new AclserviceAugmentationBuilder();
aclserviceAugmentationBuilder.setAclTag(aclTag);
aclBuilder.addAugmentation(aclserviceAugmentationBuilder.build());
}
return aclBuilder;
}
Aggregations