public class BgpFlowForwarderImpl extends Object implements BgpFlowForwarderService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.core.ApplicationId |
appId |
protected org.onosproject.net.device.DeviceService |
deviceService |
protected org.onosproject.net.driver.DriverService |
driverService |
static String |
FLOW_PEER |
protected org.onosproject.net.flowobjective.FlowObjectiveService |
flowObjectiveService |
| Constructor and Description |
|---|
BgpFlowForwarderImpl()
Default constructor.
|
BgpFlowForwarderImpl(org.onosproject.core.ApplicationId appId,
org.onosproject.net.flowobjective.FlowObjectiveService flowObjectiveService,
org.onosproject.net.device.DeviceService deviceService,
org.onosproject.net.driver.DriverService driverService)
Explicit constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
installForwardingRule(org.onosproject.flowapi.ExtFlowContainer container)
Install forwarding rule.
|
org.onosproject.net.flow.TrafficSelector.Builder |
packTrafficSelector(org.onosproject.net.DeviceId deviceId,
org.onosproject.flowapi.ExtFlowContainer container)
Traffic selector builder function.
|
org.onosproject.net.flow.TrafficTreatment.Builder |
packTrafficTreatment(org.onosproject.flowapi.ExtFlowContainer container)
Traffic treatment builder function.
|
boolean |
pushBgpFlowRuleForwarder(org.onosproject.flowapi.ExtFlowContainer container,
org.onosproject.net.flowobjective.Objective.Operation type)
Find the bgp device and push the rule.
|
void |
sendBgpFlowRuleForwarder(org.onosproject.net.flow.TrafficSelector.Builder selector,
org.onosproject.net.flow.TrafficTreatment.Builder treatment,
org.onosproject.net.DeviceId deviceId,
org.onosproject.net.flowobjective.Objective.Operation type)
Send bgp flow forwarder to bgp provider.
|
boolean |
unInstallForwardingRule(org.onosproject.flowapi.ExtFlowContainer container)
Uninstall forwarding rule.
|
protected org.onosproject.net.driver.DriverService driverService
protected org.onosproject.net.device.DeviceService deviceService
protected org.onosproject.net.flowobjective.FlowObjectiveService flowObjectiveService
protected org.onosproject.core.ApplicationId appId
public static final String FLOW_PEER
public BgpFlowForwarderImpl()
public BgpFlowForwarderImpl(org.onosproject.core.ApplicationId appId,
org.onosproject.net.flowobjective.FlowObjectiveService flowObjectiveService,
org.onosproject.net.device.DeviceService deviceService,
org.onosproject.net.driver.DriverService driverService)
appId - Application idflowObjectiveService - flow servicedeviceService - device servicedriverService - driver servicepublic boolean installForwardingRule(org.onosproject.flowapi.ExtFlowContainer container)
BgpFlowForwarderServiceinstallForwardingRule in interface BgpFlowForwarderServicecontainer - BgpFlow containerpublic boolean unInstallForwardingRule(org.onosproject.flowapi.ExtFlowContainer container)
BgpFlowForwarderServiceunInstallForwardingRule in interface BgpFlowForwarderServicecontainer - BgpFlow containerpublic boolean pushBgpFlowRuleForwarder(org.onosproject.flowapi.ExtFlowContainer container,
org.onosproject.net.flowobjective.Objective.Operation type)
container - is a flow rule containertype - either add or remove the service rulepublic org.onosproject.net.flow.TrafficSelector.Builder packTrafficSelector(org.onosproject.net.DeviceId deviceId,
org.onosproject.flowapi.ExtFlowContainer container)
deviceId - device id.container - container need to be pushed.public org.onosproject.net.flow.TrafficTreatment.Builder packTrafficTreatment(org.onosproject.flowapi.ExtFlowContainer container)
container - container need to be pushed.public void sendBgpFlowRuleForwarder(org.onosproject.net.flow.TrafficSelector.Builder selector,
org.onosproject.net.flow.TrafficTreatment.Builder treatment,
org.onosproject.net.DeviceId deviceId,
org.onosproject.net.flowobjective.Objective.Operation type)
selector - traffic selectortreatment - traffic treatmentdeviceId - device idtype - operation typeCopyright © 2016. All rights reserved.