public class SnatServiceImpl extends Object implements SnatService
| Constructor and Description |
|---|
SnatServiceImpl(org.onosproject.core.ApplicationId appId)
Construct a SnatServiceImpl object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
programRules(org.onosproject.net.DeviceId deviceId,
org.onosproject.vtnrsc.SegmentationId matchVni,
org.onlab.packet.IpAddress srcIP,
org.onlab.packet.MacAddress ethDst,
org.onlab.packet.MacAddress ethSrc,
org.onlab.packet.IpAddress ipSrc,
org.onosproject.vtnrsc.SegmentationId actionVni,
org.onosproject.net.flowobjective.Objective.Operation type)
Assemble the SNAT table rules.
|
public SnatServiceImpl(org.onosproject.core.ApplicationId appId)
appId - the application id of vtnpublic void programRules(org.onosproject.net.DeviceId deviceId,
org.onosproject.vtnrsc.SegmentationId matchVni,
org.onlab.packet.IpAddress srcIP,
org.onlab.packet.MacAddress ethDst,
org.onlab.packet.MacAddress ethSrc,
org.onlab.packet.IpAddress ipSrc,
org.onosproject.vtnrsc.SegmentationId actionVni,
org.onosproject.net.flowobjective.Objective.Operation type)
SnatServiceprogramRules in interface SnatServicedeviceId - Device IdmatchVni - the vni of L3 networksrcIP - source ipethDst - external gateway macethSrc - external port macipSrc - floating ipactionVni - external network VNItype - the operation type of the flow rulesCopyright © 2016. All rights reserved.