Search in sources :

Example 1 with AclserviceAugmentationBuilder

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;
}
Also used : AccessListEntriesBuilder(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.acl.AccessListEntriesBuilder) AclBuilder(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.AclBuilder) AclserviceAugmentationBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.aclservice.rev160608.AclserviceAugmentationBuilder)

Aggregations

AclBuilder (org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.AclBuilder)1 AccessListEntriesBuilder (org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.acl.AccessListEntriesBuilder)1 AclserviceAugmentationBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.aclservice.rev160608.AclserviceAugmentationBuilder)1