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();
}
Aggregations