How to access IDataPacketService from config file

asked 2015-06-16 22:05:22 -0700

rybek0s gravatar image

updated 2015-06-16 22:39:18 -0700

Hi, I am trying to bind IDataPacketService into my application. Unfortunately, I am having trouble with finding corresponding yang service model. For notification service it was:

            <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">

But I have no clue what to declare for DataPacketService access.

Basically I am interested in transforming PacketRecieved (or RawPacket) into one of the classes implementing Packet interface (EthernetPacket etc..)

I have already looked into l2switch module, but there they have done in manually (by hand checking packet header fields). On the other hand, example from is using IDataPacketServices method decodeDataPacket - which seems a lot more logical as I am sure that somebody has already written code that does such translation(parsing).

Can any body give me a hint on how to do it?

edit retag flag offensive close merge delete