public class OVXLinkUtils extends Object
Modifier | Constructor and Description |
---|---|
protected |
OVXLinkUtils()
Instantiates a new link utils instance.
|
|
OVXLinkUtils(Integer tenantId,
Integer linkId,
Integer flowId)
Instantiates a new link utils from tenantId, linkId and flowId.
|
|
OVXLinkUtils(MACAddress srcMac,
MACAddress dstMac)
Instantiates a new link utils instance from the MAC addresses couple.
|
Modifier and Type | Method and Description |
---|---|
MACAddress |
getDstMac()
Gets the destination MAC address.
|
Integer |
getFlowId()
Gets the flow id.
|
Integer |
getLinkId()
Gets the link id.
|
LinkedList<MACAddress> |
getOriginalMacAddresses()
Gets the original MAC addresses in a list.
|
MACAddress |
getSrcMac()
Gets the source MAC address.
|
Integer |
getTenantId()
Gets the tenant id.
|
Short |
getVlan()
Gets the VLAN.
|
boolean |
isValid()
Checks if the link utils instance is valid.
|
void |
rewriteMatch(OFMatch match)
Rewrites the given match according to the current instance.
|
List<OFAction> |
setLinkFields()
Gets a list of actions based on the current instance.
|
String |
toString() |
List<OFAction> |
unsetLinkFields(boolean skipSrcMac,
boolean skipDstMac)
Gets a list of actions based on the original MAC addresses.
|
protected OVXLinkUtils()
public OVXLinkUtils(MACAddress srcMac, MACAddress dstMac)
srcMac
- the src macdstMac
- the dst macpublic OVXLinkUtils(Integer tenantId, Integer linkId, Integer flowId)
tenantId
- the tenant idlinkId
- the link idflowId
- the flow idpublic boolean isValid()
public Integer getTenantId()
public Integer getLinkId()
public Integer getFlowId()
public MACAddress getSrcMac()
public MACAddress getDstMac()
public Short getVlan()
public LinkedList<MACAddress> getOriginalMacAddresses() throws NetworkMappingException
NetworkMappingException
- if the tenant ID is invalidpublic void rewriteMatch(OFMatch match)
match
- the OpenFlow matchpublic List<OFAction> setLinkFields()
Copyright © 2015. All rights reserved.