Switched BGPMessage concept to yangtools.binding.Notification.
[bgpcep.git] / bgp / testtool / src / test / java / org / opendaylight / protocol / bgp / testtool / SpeakerSessionListener.java
index 22852c049d67191a04236c15f80589ace7dc8563..edc271ca9878149d115c1a6fc721b0bf9c5d3dec 100644 (file)
@@ -7,10 +7,10 @@
  */
 package org.opendaylight.protocol.bgp.testtool;
 
-import org.opendaylight.protocol.bgp.parser.BGPMessage;
 import org.opendaylight.protocol.bgp.parser.BGPSession;
 import org.opendaylight.protocol.bgp.parser.BGPSessionListener;
 import org.opendaylight.protocol.bgp.parser.BGPTerminationReason;
+import org.opendaylight.yangtools.yang.binding.Notification;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -35,7 +35,7 @@ public class SpeakerSessionListener implements BGPSessionListener {
        }
 
        @Override
-       public void onMessage(final BGPSession session, final BGPMessage message) {
+       public void onMessage(final BGPSession session, final Notification message) {
                logger.info("Server: Message received: {}", message);
                // this.d.stop();
        }