@Service public class CfmMepManager extends org.onosproject.event.AbstractListenerManager<CfmMepEvent,CfmMepListener> implements CfmMepService
| Modifier and Type | Field and Description |
|---|---|
protected CfmMdService |
cfmMdService |
protected org.onosproject.core.CoreService |
coreService |
protected org.onosproject.net.device.DeviceService |
deviceService |
protected org.onosproject.mastership.MastershipService |
mastershipService |
| Constructor and Description |
|---|
CfmMepManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
abortLoopback(MdId mdName,
MaIdShort maName,
MepId mepId)
Abort a
Loopback session on the named Mep. |
void |
activate() |
boolean |
createMep(MdId mdName,
MaIdShort maName,
Mep newMep)
Create a named
Mep on an MA. |
void |
deactivate() |
boolean |
deleteMep(MdId mdName,
MaIdShort maName,
MepId mepId)
Delete a named
Mep belonging to an MA. |
java.util.Collection<MepEntry> |
getAllMeps(MdId mdName,
MaIdShort maName)
Retrieve all
MepEntry(s) belonging to an MA. |
MepEntry |
getMep(MdId mdName,
MaIdShort maName,
MepId mepId)
Retrieve a named
MepEntry belonging to an MA. |
void |
transmitLinktrace(MdId mdName,
MaIdShort maName,
MepId mepId,
MepLtCreate ltCreate)
Create a
Linktrace session on the named Mep. |
void |
transmitLoopback(MdId mdName,
MaIdShort maName,
MepId mepId,
MepLbCreate lbCreate)
Create a
Loopback session on the named Mep. |
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceService deviceService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.mastership.MastershipService mastershipService
@Reference(cardinality=MANDATORY_UNARY) protected CfmMdService cfmMdService
@Activate public void activate()
@Deactivate public void deactivate()
public java.util.Collection<MepEntry> getAllMeps(MdId mdName, MaIdShort maName) throws CfmConfigException
CfmMepServiceMepEntry(s) belonging to an MA.getAllMeps in interface CfmMepServicemdName - A Maintenance DomainmaName - A Maintetance Association in the MDCfmConfigException - If there a problem with the MD or MApublic MepEntry getMep(MdId mdName, MaIdShort maName, MepId mepId) throws CfmConfigException
CfmMepServiceMepEntry belonging to an MA.getMep in interface CfmMepServicemdName - A Maintenance DomainmaName - A Maintetance Association in the MDmepId - A Mep IdCfmConfigException - If there a problem with the MD, MA or MEPpublic boolean deleteMep(MdId mdName, MaIdShort maName, MepId mepId) throws CfmConfigException
CfmMepServiceMep belonging to an MA.deleteMep in interface CfmMepServicemdName - A Maintenance DomainmaName - A Maintetance Association in the MDmepId - A Mep IdCfmConfigException - If there a problem with the MD or MApublic boolean createMep(MdId mdName, MaIdShort maName, Mep newMep) throws CfmConfigException
CfmMepServiceMep on an MA.createMep in interface CfmMepServicemdName - A Maintenance DomainmaName - A Maintetance Association in the MDnewMep - A Mep objectCfmConfigException - If there a problem with the MD, MA or MEPpublic void transmitLoopback(MdId mdName, MaIdShort maName, MepId mepId, MepLbCreate lbCreate) throws CfmConfigException
CfmMepServiceLoopback session on the named Mep.transmitLoopback in interface CfmMepServicemdName - A Maintenance DomainmaName - A Maintetance Association in the MDmepId - A Mep IdlbCreate - The Loopback session detailsCfmConfigException - If there a problem with the MD, MA or MEPpublic void abortLoopback(MdId mdName, MaIdShort maName, MepId mepId) throws CfmConfigException
CfmMepServiceLoopback session on the named Mep.abortLoopback in interface CfmMepServicemdName - A Maintenance DomainmaName - A Maintetance Association in the MDmepId - A Mep IdCfmConfigException - If there a problem with the MD, MA or MEPpublic void transmitLinktrace(MdId mdName, MaIdShort maName, MepId mepId, MepLtCreate ltCreate)
CfmMepServiceLinktrace session on the named Mep.transmitLinktrace in interface CfmMepServicemdName - A Maintenance DomainmaName - A Maintetance Association in the MDmepId - A Mep IdltCreate - The Linktrace session details