public class SfcGeniusRpcClient extends Object
Constructor and Description |
---|
SfcGeniusRpcClient(org.opendaylight.controller.sal.binding.api.RpcProviderRegistry rpcProviderRegistry)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Optional<DpnIdType> |
getDpnIdFromInterfaceNameFromGeniusRPC(String logicalInterfaceName)
Given a Neutron interface to which a VM (hosting a SF instance) is
attached, the method returns the DPN ID for the dataplane node in the
compute node where the VM is running.
|
List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress> |
getDpnIpFromGeniusRPC(DpnIdType theDpnIdType)
Given a DPN ID, the method returns its IP addresses.
|
Optional<List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action>> |
getEgressActionsFromGeniusRPC(String targetInterfaceName,
boolean interfaceIsPartOfTheTransportZone,
int actionOffset)
Retrieve egress actions from Genius.
|
Optional<String> |
getTargetInterfaceFromGeniusRPC(DpnIdType srcDpid,
DpnIdType dstDpid)
Given a pair of data plane node identifiers, the method returns the
interface to use for sending traffic from the first dpn to the second.
|
public SfcGeniusRpcClient(org.opendaylight.controller.sal.binding.api.RpcProviderRegistry rpcProviderRegistry)
rpcProviderRegistry
- The registry used to retrieve RPC servicespublic Optional<List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action>> getEgressActionsFromGeniusRPC(String targetInterfaceName, boolean interfaceIsPartOfTheTransportZone, int actionOffset)
targetInterfaceName
- the interface to useinterfaceIsPartOfTheTransportZone
- true when the interface is part of the transport zone (i.e. it
is an interface between switching elements in different
compute nodes); false when it is the Neutron interface of a SFactionOffset
- offsets the order parameter of the actions gotten from genius
RPCpublic Optional<String> getTargetInterfaceFromGeniusRPC(DpnIdType srcDpid, DpnIdType dstDpid)
srcDpid
- DPN ID for the source dataplane nodedstDpid
- DPN ID for the target dataplane nodepublic Optional<DpnIdType> getDpnIdFromInterfaceNameFromGeniusRPC(String logicalInterfaceName)
logicalInterfaceName
- the Neutron interface that the SF is attached toCopyright © 2017 OpenDaylight. All rights reserved.