public final class SfcGeniusDataUtils extends Object
Modifier and Type | Method and Description |
---|---|
static List<String> |
getInterfaceLowerLayerIf(String theIfName)
Get the information of all physical interfaces mapped to a given logical
interface.
|
static Optional<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress> |
getServiceFunctionForwarderPortMacAddress(String ifName)
Fetches the MAC address for the switch port to which a given SF is
connected.
|
static Optional<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress> |
getServiceFunctionMacAddress(String ifName)
Fetches the SF's MAC address, given a neutron port name.
|
static String |
getSfLogicalInterface(ServiceFunction sf)
Fetches the logical interface name, when given a ServiceFunction.
|
static boolean |
isSfUsingALogicalInterface(ServiceFunction sf)
Checks if a given Service Function has logical interfaces attached to it.
|
public static Optional<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress> getServiceFunctionMacAddress(String ifName)
ifName
- the name of the neutron port to which the SF is connectedpublic static Optional<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress> getServiceFunctionForwarderPortMacAddress(String ifName)
ifName
- the name of the neutron port to which the SF is connectedpublic static boolean isSfUsingALogicalInterface(ServiceFunction sf)
sf
- The service function we want to checkpublic static String getSfLogicalInterface(ServiceFunction sf)
sf
- The service function whose logical interface name we're
interested onIllegalArgumentException
- if the Service Function is not attached to a single Logical
Interfacepublic static List<String> getInterfaceLowerLayerIf(String theIfName)
theIfName
- the name of the logical interfaceCopyright © 2017 OpenDaylight. All rights reserved.