use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.pcreq.message.pcreq.message.requests.segment.computation.p2p.ReportedRoute in project bgpcep by opendaylight.
the class PCEPRequestMessageParser method serializeP2P.
protected void serializeP2P(final ByteBuf buffer, final P2p p2p) {
serializeObject(p2p.getEndpointsObj(), buffer);
serializeVendorInformationObjects(p2p.getVendorInformationObject(), buffer);
if (p2p.getReportedRoute() != null) {
final ReportedRoute rr = p2p.getReportedRoute();
if (rr != null) {
serializeObject(rr.getRro(), buffer);
serializeObject(rr.getReoptimizationBandwidth(), buffer);
}
}
serializeObject(p2p.getLoadBalancing(), buffer);
serializeObject(p2p.getLspa(), buffer);
serializeObject(p2p.getBandwidth(), buffer);
if (p2p.getMetrics() != null) {
for (final Metrics m : p2p.getMetrics()) {
serializeObject(m.getMetric(), buffer);
}
}
serializeObject(p2p.getIro(), buffer);
serializeObject(p2p.getRro(), buffer);
serializeObject(p2p.getXro(), buffer);
serializeObject(p2p.getOf(), buffer);
serializeObject(p2p.getClassType(), buffer);
}
Aggregations