@Test public void updateDeviceTypeRule() { Device.Type deviceType1 = Device.Type.ROADM; Device.Type deviceType2 = Device.Type.SWITCH; Set<Device.Type> deviceTypes = new HashSet<>(); deviceTypes.add(deviceType1); cfg.deviceTypes(deviceTypes); configEvent(NetworkConfigEvent.Type.CONFIG_ADDED); deviceTypes.add(deviceType2); cfg.deviceTypes(deviceTypes); configEvent(NetworkConfigEvent.Type.CONFIG_UPDATED); assertAfter(EVENT_MS, () -> { assertTrue(provider.rules().getSuppressedDeviceType().contains(deviceType1)); assertTrue(provider.rules().getSuppressedDeviceType().contains(deviceType2)); }); }
protected SuppressionRules rules() { return rules; }
LldpLinkProvider extends AbstractProvider implements ProbedLinkProvider { protected SuppressionRules rules() { return rules; } }
LldpLinkProvider extends AbstractProvider implements ProbedLinkProvider { protected SuppressionRules rules() { return rules; } LldpLinkProvider(); }
LldpLinkProvider extends AbstractProvider implements ProbedLinkProvider { protected SuppressionRules rules() { return rules; } LldpLinkProvider(); @Activate void activate(ComponentContext context); @Deactivate void deactivate(); @Modified void modified(ComponentContext context); }
LldpLinkProvider extends AbstractProvider implements ProbedLinkProvider { protected SuppressionRules rules() { return rules; } LldpLinkProvider(); @Activate void activate(ComponentContext context); @Deactivate void deactivate(); @Modified void modified(ComponentContext context); static final String NO_LLDP; static final String CONFIG_KEY; static final String FEATURE_NAME; }