use of org.opendaylight.netvirt.aclservice.tests.IdentifiedInterfaceWithAclBuilder in project netvirt by opendaylight.
the class AclLiveStatisticsRpcServiceTest method setUp.
@Before
public void setUp() throws Exception {
aclStatsService = new AclLiveStatisticsRpcServiceImpl(config, dataBroker, odlDirectStatsService);
singleTransactionDataBroker = new SingleTransactionDataBroker(dataBroker);
LOG.info("Acl mode: {}", config.getSecurityGroupMode());
newElan(ELAN, ELAN_TAG);
newElanInterface(ELAN, PORT_1, true);
Pair<DataTreeIdentifier<Interface>, Interface> port1 = new IdentifiedInterfaceWithAclBuilder().interfaceName(PORT_1).portSecurity(true).build();
dataBrokerUtil.put(port1);
testInterfaceManager.addInterface(port1.getValue());
putNewStateInterface(dataBroker, "port1", PORT_MAC_1);
asyncEventsWaiter.awaitEventsConsumption();
}
Aggregations