@Test public void testFourInterfacesConfiguredHostsPresent() { Host h1 = new DefaultHost(PID, HID1, MAC1, VLAN1, getLocation(1), Collections.singleton(IP1)); Host h2 = new DefaultHost(PID, HID2, MAC2, VLAN1, getLocation(2), Collections.singleton(IP2)); Host h3 = new DefaultHost(PID, HID3, MAC3, VLAN1, getLocation(3), Collections.EMPTY_SET); Host h4 = new DefaultHost(PID, HID4, MAC4, VLAN2, getLocation(4), Collections.EMPTY_SET); Host h5 = new DefaultHost(PID, HID5, MAC5, VLAN2, getLocation(5), Collections.EMPTY_SET); Host h6 = new DefaultHost(PID, HID6, MAC6, VLAN2, getLocation(6), Collections.EMPTY_SET); hostsAvailable.addAll(Sets.newHashSet(h1, h2, h3, h4, h5, h6)); vpls.activate(); List<Intent> expectedIntents = new ArrayList<>(); expectedIntents.addAll(generateVlanOneBrc()); expectedIntents.addAll(generateVlanOneUni()); expectedIntents.addAll(generateVlanTwoBrc()); expectedIntents.addAll(generateVlanTwoUni()); checkIntents(expectedIntents); }
@Activate public void activate() { appId = coreService.registerApplication(VPLS_APP); intentInstaller = new IntentInstaller(appId, intentService, intentSynchronizer); applicationService.registerDeactivateHook(appId, () -> { intentSynchronizer.removeIntentsByAppId(appId); }); hostService.addListener(hostListener); interfaceService.addListener(interfaceListener); setupConnectivity(); log.info("Started"); }
Vpls { @Activate public void activate() { appId = coreService.registerApplication(VPLS_APP); intentInstaller = new IntentInstaller(appId, intentService, intentSynchronizer); applicationService.registerDeactivateHook(appId, () -> { intentSynchronizer.removeIntentsByAppId(appId); }); hostService.addListener(hostListener); interfaceService.addListener(interfaceListener); setupConnectivity(); log.info("Started"); } }
Vpls { @Activate public void activate() { appId = coreService.registerApplication(VPLS_APP); intentInstaller = new IntentInstaller(appId, intentService, intentSynchronizer); applicationService.registerDeactivateHook(appId, () -> { intentSynchronizer.removeIntentsByAppId(appId); }); hostService.addListener(hostListener); interfaceService.addListener(interfaceListener); setupConnectivity(); log.info("Started"); }  }
Vpls { @Activate public void activate() { appId = coreService.registerApplication(VPLS_APP); intentInstaller = new IntentInstaller(appId, intentService, intentSynchronizer); applicationService.registerDeactivateHook(appId, () -> { intentSynchronizer.removeIntentsByAppId(appId); }); hostService.addListener(hostListener); interfaceService.addListener(interfaceListener); setupConnectivity(); log.info("Started"); }  @Activate void activate(); @Deactivate void deactivate(); }
Vpls { @Activate public void activate() { appId = coreService.registerApplication(VPLS_APP); intentInstaller = new IntentInstaller(appId, intentService, intentSynchronizer); applicationService.registerDeactivateHook(appId, () -> { intentSynchronizer.removeIntentsByAppId(appId); }); hostService.addListener(hostListener); interfaceService.addListener(interfaceListener); setupConnectivity(); log.info("Started"); }  @Activate void activate(); @Deactivate void deactivate();  }