@Test public void testTunnelAdded() { TunnelEndPoint src = IpTunnelEndPoint.ipTunnelPoint(IpAddress .valueOf("192.168.1.1")); TunnelEndPoint dst = IpTunnelEndPoint.ipTunnelPoint(IpAddress .valueOf("192.168.1.3")); SparseAnnotations annotations = DefaultAnnotations.builder() .set("bandwidth", "1024").build(); List<Link> links = new ArrayList<Link>(); links.add(link); TunnelDescription tunnel = new DefaultTunnelDescription( TunnelId.valueOf("1234"), src, dst, Tunnel.Type.VXLAN, new DefaultGroupId(0), this.provider.id(), TunnelName.tunnelName("tunnel12"), new DefaultPath(this.provider.id(), links, 0.3), annotations); provider.tunnelAdded(tunnel); assertEquals(1, providerService.tunnelSet.size()); }
@Override public TunnelId tunnelAdded(TunnelDescription tunnel) { return providerService.tunnelAdded(tunnel); }
OvsdbTunnelProvider extends AbstractProvider implements TunnelProvider { @Override public TunnelId tunnelAdded(TunnelDescription tunnel) { return providerService.tunnelAdded(tunnel); } }
OvsdbTunnelProvider extends AbstractProvider implements TunnelProvider { @Override public TunnelId tunnelAdded(TunnelDescription tunnel) { return providerService.tunnelAdded(tunnel); } OvsdbTunnelProvider(); }
OvsdbTunnelProvider extends AbstractProvider implements TunnelProvider { @Override public TunnelId tunnelAdded(TunnelDescription tunnel) { return providerService.tunnelAdded(tunnel); } OvsdbTunnelProvider(); @Activate void activate(); @Deactivate void deactivate(); @Override void setupTunnel(Tunnel tunnel, Path path); @Override void setupTunnel(ElementId srcElement, Tunnel tunnel, Path path); @Override void releaseTunnel(Tunnel tunnel); @Override void releaseTunnel(ElementId srcElement, Tunnel tunnel); @Override void updateTunnel(Tunnel tunnel, Path path); @Override void updateTunnel(ElementId srcElement, Tunnel tunnel, Path path); @Override TunnelId tunnelAdded(TunnelDescription tunnel); @Override void tunnelRemoved(TunnelDescription tunnel); @Override void tunnelUpdated(TunnelDescription tunnel); @Override Tunnel tunnelQueryById(TunnelId tunnelId); }
OvsdbTunnelProvider extends AbstractProvider implements TunnelProvider { @Override public TunnelId tunnelAdded(TunnelDescription tunnel) { return providerService.tunnelAdded(tunnel); } OvsdbTunnelProvider(); @Activate void activate(); @Deactivate void deactivate(); @Override void setupTunnel(Tunnel tunnel, Path path); @Override void setupTunnel(ElementId srcElement, Tunnel tunnel, Path path); @Override void releaseTunnel(Tunnel tunnel); @Override void releaseTunnel(ElementId srcElement, Tunnel tunnel); @Override void updateTunnel(Tunnel tunnel, Path path); @Override void updateTunnel(ElementId srcElement, Tunnel tunnel, Path path); @Override TunnelId tunnelAdded(TunnelDescription tunnel); @Override void tunnelRemoved(TunnelDescription tunnel); @Override void tunnelUpdated(TunnelDescription tunnel); @Override Tunnel tunnelQueryById(TunnelId tunnelId);  }