BUG-47 : unfinished PCEP migration to generated DTOs.
[bgpcep.git] / pcep / impl / src / main / java / org / opendaylight / protocol / pcep / impl / PCEPMessageFactory.java
index 99ee06896443bf509d0cfd8850079e4d2c2f5f22..2191484abe821bbcc1e19fe546f322da53027544 100644 (file)
@@ -13,7 +13,6 @@ import java.util.List;
 import org.opendaylight.protocol.framework.DeserializerException;
 import org.opendaylight.protocol.framework.DocumentedException;
 import org.opendaylight.protocol.framework.ProtocolMessageFactory;
-import org.opendaylight.protocol.pcep.PCEPDeserializerException;
 import org.opendaylight.protocol.pcep.spi.RawMessage;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.Message;
 
@@ -34,14 +33,14 @@ public final class PCEPMessageFactory implements ProtocolMessageFactory<Message>
                        Preconditions.checkState(msg instanceof RawMessage);
                        final RawMessage raw = (RawMessage) msg;
 
-                       try {
-                               validated.addAll(PCEPMessageValidator.getValidator(raw.getMsgType()).validate(raw.getAllObjects()));
-                       } catch (final PCEPDeserializerException e) {
-                               // FIXME: at validation time we may want to terminate with:
-                               // logger.error("Malformed message, terminating. ", e);
-                               // this.terminate(Reason.MALFORMED_MSG);
-                               throw e;
-                       }
+                       // try {
+                       // validated.addAll(PCEPMessageValidator.getValidator(raw.getMsgType()).validate(raw.getAllObjects()));
+                       // } catch (final PCEPDeserializerException e) {
+                       // // FIXME: at validation time we may want to terminate with:
+                       // // logger.error("Malformed message, terminating. ", e);
+                       // // this.terminate(Reason.MALFORMED_MSG);
+                       // throw e;
+                       // }
                }
 
                return validated;