public class ClassifierServiceImpl extends Object implements ClassifierService
| Constructor and Description |
|---|
ClassifierServiceImpl(org.onosproject.core.ApplicationId appId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
programArpClassifierRules(org.onosproject.net.DeviceId deviceId,
org.onlab.packet.IpAddress dstIp,
org.onosproject.vtnrsc.SegmentationId actionVni,
org.onosproject.net.flowobjective.Objective.Operation type)
Assemble the Arp Classifier table rules.
|
void |
programL3ExPortClassifierRules(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber inPort,
org.onlab.packet.IpAddress dstIp,
org.onosproject.net.flowobjective.Objective.Operation type)
Assemble the L3 Classifier table rules which are sended from external port.
|
void |
programL3InPortClassifierRules(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber inPort,
org.onlab.packet.MacAddress srcMac,
org.onlab.packet.MacAddress dstMac,
org.onosproject.vtnrsc.SegmentationId actionVni,
org.onosproject.net.flowobjective.Objective.Operation type)
Assemble the L3 Classifier table rules which are sended from internal port.
|
void |
programLocalIn(org.onosproject.net.DeviceId deviceId,
org.onosproject.vtnrsc.SegmentationId segmentationId,
org.onosproject.net.PortNumber inPort,
org.onlab.packet.MacAddress srcMac,
org.onosproject.core.ApplicationId appid,
org.onosproject.net.flowobjective.Objective.Operation type)
The port rule that message from host matches Table(0) Match: host mac and
ingress port Action: set vnid and go to L2Forward Table(50).
|
void |
programTunnelIn(org.onosproject.net.DeviceId deviceId,
org.onosproject.vtnrsc.SegmentationId segmentationId,
Iterable<org.onosproject.net.PortNumber> localTunnelPorts,
org.onosproject.net.flowobjective.Objective.Operation type)
The port rule that message from tunnel Table(0) Match: tunnel port and
vnid Action: go to L2Forward Table(50).
|
public ClassifierServiceImpl(org.onosproject.core.ApplicationId appId)
appId - the application id of vtnpublic void programLocalIn(org.onosproject.net.DeviceId deviceId,
org.onosproject.vtnrsc.SegmentationId segmentationId,
org.onosproject.net.PortNumber inPort,
org.onlab.packet.MacAddress srcMac,
org.onosproject.core.ApplicationId appid,
org.onosproject.net.flowobjective.Objective.Operation type)
ClassifierServiceprogramLocalIn in interface ClassifierServicedeviceId - Device IdsegmentationId - the vnid of the host belong toinPort - the ingress port of the hostsrcMac - the mac of the hostappid - the application ID of the vtntype - the operation of the flowpublic void programTunnelIn(org.onosproject.net.DeviceId deviceId,
org.onosproject.vtnrsc.SegmentationId segmentationId,
Iterable<org.onosproject.net.PortNumber> localTunnelPorts,
org.onosproject.net.flowobjective.Objective.Operation type)
ClassifierServiceprogramTunnelIn in interface ClassifierServicedeviceId - Device IdsegmentationId - the vnid of the host belong tolocalTunnelPorts - the tunnel pors of the devicetype - the operation of the flowpublic void programL3ExPortClassifierRules(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber inPort,
org.onlab.packet.IpAddress dstIp,
org.onosproject.net.flowobjective.Objective.Operation type)
ClassifierServiceprogramL3ExPortClassifierRules in interface ClassifierServicedeviceId - Device IdinPort - external portdstIp - floating iptype - the operation type of the flow rulespublic void programL3InPortClassifierRules(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber inPort,
org.onlab.packet.MacAddress srcMac,
org.onlab.packet.MacAddress dstMac,
org.onosproject.vtnrsc.SegmentationId actionVni,
org.onosproject.net.flowobjective.Objective.Operation type)
ClassifierServiceprogramL3InPortClassifierRules in interface ClassifierServicedeviceId - Device IdinPort - the ingress port of the hostsrcMac - source macdstMac - destination vm gateway macactionVni - the vni of L3 networktype - the operation type of the flow rulespublic void programArpClassifierRules(org.onosproject.net.DeviceId deviceId,
org.onlab.packet.IpAddress dstIp,
org.onosproject.vtnrsc.SegmentationId actionVni,
org.onosproject.net.flowobjective.Objective.Operation type)
ClassifierServiceprogramArpClassifierRules in interface ClassifierServicedeviceId - Device IddstIp - source gateway ipactionVni - the vni of the source network (l2vni)type - the operation type of the flow rulesCopyright © 2015. All rights reserved.