LOG.debug("Attempt to parse subobject from bytes: {}", ByteBufUtil.hexDump(buffer));
final Subobject sub = this.subobjReg.parseSubobject(type, buffer.readSlice(length), loose);
if (sub == null) {
- LOG.warn("Unknown subobject type: {}. Ignoring subobject.", type);
+ LOG.warn("Parsing failed for subobject type: {}. Ignoring subobject.", type);
} else {
LOG.debug("Subobject was parsed. {}", sub);
subs.add(sub);
LOG.debug("Attempt to parse subobject from bytes: {}", ByteBufUtil.hexDump(buffer));
final Subobject sub = this.subobjReg.parseSubobject(type, buffer.readSlice(length));
if (sub == null) {
- LOG.warn("Unknown subobject type: {}. Ignoring subobject.", type);
+ LOG.warn("Parsing failed for subobject type: {}. Ignoring subobject.", type);
} else {
LOG.debug("Subobject was parsed. {}", sub);
subs.add(sub);
LOG.debug("Attempt to parse subobject from bytes: {}", ByteBufUtil.hexDump(buffer));
final Subobject sub = this.subobjReg.parseSubobject(type, buffer.readSlice(length), mandatory);
if (sub == null) {
- LOG.warn("Unknown subobject type: {}. Ignoring subobject.", type);
+ LOG.warn("Parsing failed for subobject type: {}. Ignoring subobject.", type);
} else {
LOG.debug("Subobject was parsed. {}", sub);
subs.add(sub);
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.basic.explicit.route.subobjects.subobject.type.label._case.Label;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.basic.explicit.route.subobjects.subobject.type.label._case.LabelBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.label.subobject.LabelType;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
public class EROLabelSubobjectParser implements EROSubobjectParser, EROSubobjectSerializer {
+ private static final Logger LOG = LoggerFactory.getLogger(EROLabelSubobjectParser.class);
public static final int TYPE = 3;
final LabelType labelType = this.registry.parseLabel(cType, buffer.slice());
if (labelType == null) {
- throw new PCEPDeserializerException("Unknown C-TYPE for ero label subobject. Passed: " + cType);
+ LOG.warn("Ignoring ERO label subobject with unknown C-TYPE: {}", cType);
+ return null;
}
final LabelBuilder lbuilder = new LabelBuilder()
.setUniDirectional(reserved.get(U_FLAG_OFFSET))
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.record.route.subobjects.subobject.type.LabelCaseBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.record.route.subobjects.subobject.type.label._case.Label;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.record.route.subobjects.subobject.type.label._case.LabelBuilder;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
public class RROLabelSubobjectParser implements RROSubobjectParser, RROSubobjectSerializer {
+ private static final Logger LOG = LoggerFactory.getLogger(RROLabelSubobjectParser.class);
public static final int TYPE = 3;
final LabelType labelType = this.registry.parseLabel(cType, buffer.slice());
if (labelType == null) {
- throw new PCEPDeserializerException("Unknown C-TYPE for ero label subobject. Passed: " + cType);
+ LOG.warn("Ignoring RRO label subobject with unknown C-TYPE: {}", cType);
+ return null;
}
final LabelBuilder builder = new LabelBuilder()
.setUniDirectional(reserved.get(U_FLAG_OFFSET))
try {
out.add(parse(in, errors));
} catch (final PCEPDeserializerException e) {
- LOG.debug("Failed to decode protocol message", e);
+ LOG.warn("Failed to decode protocol message", e);
}
in.discardReadBytes();
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.explicit.route.subobjects.list.SubobjectContainer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.explicit.route.subobjects.list.SubobjectContainerBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.label.subobject.LabelType;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
public class EROLabelSubobjectParser implements EROSubobjectParser, EROSubobjectSerializer {
+ private static final Logger LOG = LoggerFactory.getLogger(EROLabelSubobjectParser.class);
public static final int TYPE = 3;
final LabelType labelType = this.registry.parseLabel(cType, buffer.slice());
if (labelType == null) {
- throw new RSVPParsingException("Unknown C-TYPE for ero label subobject. Passed: " + cType);
+ LOG.warn("Ignoring ERO label subobject with unknown C-TYPE: {}", cType);
+ return null;
}
final LabelBuilder builder = new LabelBuilder();
builder.setUniDirectional(reserved.get(U_FLAG_OFFSET));
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.record.route.subobjects.subobject.type.LabelCaseBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.record.route.subobjects.subobject.type.label._case.Label;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.record.route.subobjects.subobject.type.label._case.LabelBuilder;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
public class RROLabelSubobjectParser implements RROSubobjectParser, RROSubobjectSerializer {
+ private static final Logger LOG = LoggerFactory.getLogger(RROLabelSubobjectParser.class);
public static final int TYPE = 3;
final LabelType labelType = this.registry.parseLabel(cType, buffer.slice());
if (labelType == null) {
- throw new RSVPParsingException("Unknown C-TYPE for ero label subobject. Passed: " + cType);
+ LOG.warn("Ignoring RRO label subobject with unknown C-TYPE: {}", cType);
+ return null;
}
final LabelBuilder builder = new LabelBuilder();
builder.setUniDirectional(reserved.get(U_FLAG_OFFSET));
LOG.debug("Attempt to parse subobject from bytes: {}", ByteBufUtil.hexDump(buffer));
final SubobjectContainer sub = this.subobjReg.parseSubobject(type, buffer.readSlice(length), loose);
if (sub == null) {
- LOG.warn("Unknown subobject type: {}. Ignoring subobject.", type);
+ LOG.warn("Parsing failed for subobject type: {}. Ignoring subobject.", type);
} else {
LOG.debug("Subobject was parsed. {}", sub);
subs.add(sub);
LOG.debug("Attempt to parse subobject from bytes: {}", ByteBufUtil.hexDump(buffer));
final SubobjectContainer sub = this.subobjReg.parseSubobject(type, buffer.readSlice(length));
if (sub == null) {
- LOG.warn("Unknown subobject type: {}. Ignoring subobject.", type);
+ LOG.warn("Parsing failed for subobject type: {}. Ignoring subobject.", type);
} else {
LOG.debug("Subobject was parsed. {}", sub);
subs.add(sub);
final SubobjectContainer sub = this.subobjReg.parseSubobject(type, byteBuf.readSlice(length), mandatory);
if (sub == null) {
- LOG.warn("Unknown subobject type: {}. Ignoring subobject.", type);
+ LOG.warn("Parsing failed for subobject type: {}. Ignoring subobject.", type);
} else {
LOG.debug("Subobject was parsed. {}", sub);
subs.add(sub);