@Test public void testRemoveInterface() { ConnectPoint sw1eth4 = new ConnectPoint(DEVICE_ID, PortNumber.portNumber(4)); Set<InterfaceIpAddress> interfaceIpAddresses4 = Sets.newHashSet(); interfaceIpAddresses4 .add(new InterfaceIpAddress(IpAddress.valueOf("192.168.40.101"), IpPrefix.valueOf("192.168.40.0/24"))); Interface sw1Eth4 = new Interface(sw1eth4.deviceId().toString(), sw1eth4, interfaceIpAddresses4, MacAddress.valueOf("00:00:00:00:00:04"), VlanId.NONE); EasyMock.reset(flowObjectiveService); expect(flowObjectiveService.allocateNextId()).andReturn(1).anyTimes(); setUpInterfaceConfiguration(sw1Eth4, false); replay(flowObjectiveService); interfaceListener.event(new InterfaceEvent(InterfaceEvent.Type.INTERFACE_REMOVED, sw1Eth4, 500L)); verify(flowObjectiveService); }
private void removeInterface(Interface intf) { modifyBasicInterfaceForwarding(intf, false); updateOspfForwarding(intf, false); }
ControlPlaneRedirectManager { private void removeInterface(Interface intf) { modifyBasicInterfaceForwarding(intf, false); updateOspfForwarding(intf, false); } }
ControlPlaneRedirectManager { private void removeInterface(Interface intf) { modifyBasicInterfaceForwarding(intf, false); updateOspfForwarding(intf, false); }  }
ControlPlaneRedirectManager { private void removeInterface(Interface intf) { modifyBasicInterfaceForwarding(intf, false); updateOspfForwarding(intf, false); }  @Activate void activate(); @Deactivate void deactivate(); }
ControlPlaneRedirectManager { private void removeInterface(Interface intf) { modifyBasicInterfaceForwarding(intf, false); updateOspfForwarding(intf, false); }  @Activate void activate(); @Deactivate void deactivate();  }