Search in sources :

Example 1 with MepEntryBuilder

use of org.onosproject.incubator.net.l2monitoring.cfm.MepEntry.MepEntryBuilder in project onos by opennetworkinglab.

the class MepEntryCodecTest method setUp.

@Before
public void setUp() throws Exception, CfmConfigException {
    mapper = new ObjectMapper();
    context = new CfmCodecContext();
    MepEntryBuilder builder = DefaultMepEntry.builder(MepId.valueOf((short) 22), DeviceId.deviceId("netconf:1234:830"), PortNumber.portNumber(2), MepDirection.UP_MEP, MdIdCharStr.asMdId("md-1"), MaIdCharStr.asMaId("ma-1-1")).macAddress(MacAddress.valueOf("aa:bb:cc:dd:ee:ff"));
    builder = (MepEntryBuilder) builder.administrativeState(true).cciEnabled(true).ccmLtmPriority(Priority.PRIO1);
    mepEntry1 = builder.buildEntry();
}
Also used : CfmCodecContext(org.onosproject.cfm.CfmCodecContext) MepEntryBuilder(org.onosproject.incubator.net.l2monitoring.cfm.MepEntry.MepEntryBuilder) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) Before(org.junit.Before)

Aggregations

ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 Before (org.junit.Before)1 CfmCodecContext (org.onosproject.cfm.CfmCodecContext)1 MepEntryBuilder (org.onosproject.incubator.net.l2monitoring.cfm.MepEntry.MepEntryBuilder)1