public final class FlowMatchUtils extends Object
FlowMatchUtils class is a collection of utility class methods for
flow match handling.| Modifier and Type | Method and Description |
|---|---|
static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress |
getDestinationMacAddress(org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.Match match)
Return the destination MAC address specified by the given match.
|
static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId |
getIngressPort(org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.Match match)
Return the ingress switch port configured in the given MD-SAL match.
|
static L2Host |
getSourceHost(org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.Match match)
Return the source L2 host matched by the given MD-SAL match.
|
static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress |
getSourceMacAddress(org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.Match match)
Return the source MAC address specified by the given match.
|
static org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId |
getVlanId(org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.Match match)
Return VLAN ID specified by the given match.
|
public static L2Host getSourceHost(org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.Match match)
match - A Match instance.L2Host instance if found.
null if not found.public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress getSourceMacAddress(org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.Match match)
match - A Match instance.MacAddress instance which specifies the source MAC
address. null if the given match does not specify
the source MAC address.public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress getDestinationMacAddress(org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.Match match)
match - A Match instance.MacAddress instance which specifies the destination
MAC address. null if the given match does not specify
the destination MAC address.public static org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId getVlanId(org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.Match match)
match - A Match instance.VlanId instance if the given match specifies the
VLAN ID. Note that EtherHeader.VLAN_NONE indicates
the given match specifies untagged frame.
null if the given match does not specify the VLAN ID.public static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId getIngressPort(org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.Match match)
match - A Match instance.NodeConnectorId instance if found.
null if not found.Copyright © 2018 OpenDaylight. All rights reserved.