Software Defined Networking
1753768 Members
5567 Online
108799 Solutions
New Discussion

How to get Altitude value of all the registered Packet_IN Listeners

 
RakeshSh
Visitor

How to get Altitude value of all the registered Packet_IN Listeners

Hi,

 

I am trying to fetch the altitude values of all the registered Packet_IN Listenere to ControllerService Module.  But there seems "no API" to fetch that in API Doc.

 

As per the API document, while adding PACKET_IN Listener to Controller Service for a specific role say DIRECTOR then there should always be a different Altitude i.e two listeners can not have the same Altitude. 

 

Below is the method in API Doc:

 

"List<SequencedPacketListener> getPacketListeners(PacketListenerRole role)  => Returns an ordered list of packet listeners registered with the packet sequencer, for the specified role"

 

which returns the list of all listeners but not their Altitude Value.

 

Pl let me know how can I do that.

 

Any help would be appriciated.

 

Thanks

Rakesh Sh

 

 

1 REPLY 1
sdnindia
Trusted Contributor

Re: How to get Altitude value of all the registered Packet_IN Listeners

Hello Rakesh,

 

Are you using controller version 2.0.0 ?

For controller version 2.2.5 and 2.3.5 , in package com.hp.of.ctl.pkt there is an interface SplMetric  which has a method  int altitude() that returns the packet listener's registered altitude.

 

Please let us know if this helps or still you are having the problem.

 

Thanks,

HP SDN Team