@Service public class DefaultVirtualFlowRuleProvider extends AbstractVirtualProvider implements VirtualFlowRuleProvider
FlowRule| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.core.CoreService |
coreService |
protected org.onosproject.net.device.DeviceService |
deviceService |
protected org.onosproject.net.flow.FlowRuleService |
flowRuleService |
protected VirtualProviderRegistryService |
providerRegistryService |
protected org.onosproject.net.topology.TopologyService |
topologyService |
protected VirtualNetworkService |
vnService |
| Constructor and Description |
|---|
DefaultVirtualFlowRuleProvider()
Creates a provider with the supplied identifier.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
applyFlowRule(NetworkId networkId,
org.onosproject.net.flow.FlowRule... flowRules)
Instructs the provider to apply the specified flow rules to their
respective virtual devices.
|
void |
deactivate() |
void |
executeBatch(NetworkId networkId,
org.onosproject.net.flow.FlowRuleBatchOperation batch)
Installs a batch of flow rules.
|
protected void |
modified(org.osgi.service.component.ComponentContext context) |
void |
removeFlowRule(NetworkId networkId,
org.onosproject.net.flow.FlowRule... flowRules)
Instructs the provider to remove the specified flow rules to their
respective virtual devices.
|
void |
setEmbeddingAlgorithm(InternalRoutingAlgorithm internalRoutingAlgorithm) |
idclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitid@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.topology.TopologyService topologyService
@Reference(cardinality=MANDATORY_UNARY) protected VirtualNetworkService vnService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.flow.FlowRuleService flowRuleService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceService deviceService
@Reference(cardinality=MANDATORY_UNARY) protected VirtualProviderRegistryService providerRegistryService
public DefaultVirtualFlowRuleProvider()
@Activate public void activate()
@Deactivate public void deactivate()
@Modified protected void modified(org.osgi.service.component.ComponentContext context)
public void applyFlowRule(NetworkId networkId, org.onosproject.net.flow.FlowRule... flowRules)
VirtualFlowRuleProviderapplyFlowRule in interface VirtualFlowRuleProvidernetworkId - the identity of the virtual network where this rule appliesflowRules - one or more flow rulespublic void removeFlowRule(NetworkId networkId, org.onosproject.net.flow.FlowRule... flowRules)
VirtualFlowRuleProviderremoveFlowRule in interface VirtualFlowRuleProvidernetworkId - the identity of the virtual network where this rule appliesflowRules - one or more flow rulespublic void executeBatch(NetworkId networkId, org.onosproject.net.flow.FlowRuleBatchOperation batch)
VirtualFlowRuleProviderexecuteBatch in interface VirtualFlowRuleProvidernetworkId - the identity of the virtual network where this rule appliesbatch - a batch of flow rulespublic void setEmbeddingAlgorithm(InternalRoutingAlgorithm internalRoutingAlgorithm)