@Service public class DefaultVirtualNetworkProvider extends org.onosproject.net.provider.AbstractProvider implements VirtualNetworkProvider
| Modifier and Type | Field and Description |
|---|---|
protected VirtualNetworkProviderRegistry |
providerRegistry |
protected org.onosproject.net.topology.TopologyListener |
topologyListener |
protected org.onosproject.net.topology.TopologyService |
topologyService |
| Constructor and Description |
|---|
DefaultVirtualNetworkProvider()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
TunnelId |
createTunnel(NetworkId networkId,
org.onosproject.net.ConnectPoint src,
org.onosproject.net.ConnectPoint dst)
Creates a network tunnel for all traffic from the specified source
connection point to the indicated destination connection point.
|
void |
deactivate() |
void |
destroyTunnel(NetworkId networkId,
TunnelId tunnelId)
Destroys the specified network tunnel.
|
Set<Set<org.onosproject.net.ConnectPoint>> |
getConnectPoints(org.onosproject.net.topology.Topology topology)
Returns a set of set of interconnected connect points in the default topology.
|
boolean |
isTraversable(org.onosproject.net.ConnectPoint src,
org.onosproject.net.ConnectPoint dst)
Indicates whether or not the specified connect points on the underlying
network are traversable/reachable.
|
@Reference(cardinality=MANDATORY_UNARY) protected VirtualNetworkProviderRegistry providerRegistry
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.topology.TopologyService topologyService
protected org.onosproject.net.topology.TopologyListener topologyListener
public DefaultVirtualNetworkProvider()
@Activate public void activate()
@Deactivate public void deactivate()
public boolean isTraversable(org.onosproject.net.ConnectPoint src,
org.onosproject.net.ConnectPoint dst)
VirtualNetworkProviderisTraversable in interface VirtualNetworkProvidersrc - source connection pointdst - destination connection pointpublic TunnelId createTunnel(NetworkId networkId, org.onosproject.net.ConnectPoint src, org.onosproject.net.ConnectPoint dst)
VirtualNetworkProvidercreateTunnel in interface VirtualNetworkProvidernetworkId - virtual network identifiersrc - source connection pointdst - destination connection pointpublic void destroyTunnel(NetworkId networkId, TunnelId tunnelId)
VirtualNetworkProviderdestroyTunnel in interface VirtualNetworkProvidernetworkId - virtual network identifiertunnelId - tunnel identifierpublic Set<Set<org.onosproject.net.ConnectPoint>> getConnectPoints(org.onosproject.net.topology.Topology topology)
topology - the default topology