HPE Aruba Networking & ProVision-based
1832602 Members
2844 Online
110043 Solutions
New Discussion

Not able to get OpenFlow meter Stats through RYU OpenFlow Controller in ARUBA 2930F Switch

 
Ramzah_Rehman
Advisor

Not able to get OpenFlow meter Stats through RYU OpenFlow Controller in ARUBA 2930F Switch

Hello,

I am using ARUBA 2930F switch with Openflow (version 1.4) and RYU controller. I am trying to get meter stats on the switch from my controller using :

def send_meter_stats_request(self, datapath):
    ofp = datapath.ofproto
    ofp_parser = datapath.ofproto_parser

    req = ofp_parser.OFPMeterStatsRequest(datapath, 0, ofp.OFPM_ALL)
    datapath.send_msg(req)

 

@set_ev_cls(ofp_event.EventOFPMeterStatsReply, MAIN_DISPATCHER)
def meter_stats_reply_handler(self, ev):
    meters = []
    for stat in ev.msg.body:
        meters.append('meter_id=0x%08x len=%d flow_count=%d '
                      'packet_in_count=%d byte_in_count=%d '
                      'duration_sec=%d duration_nsec=%d '
                      'band_stats=%s' %
                      (stat.meter_id, stat.len, stat.flow_count,
                       stat.packet_in_count, stat.byte_in_count,
                       stat.duration_sec, stat.duration_nsec,
                       stat.band_stats))
    self.logger.debug('MeterStats: %s', meters)

 functions in RYU documentation here. I am using the exact code from the documentation so there's no issue with the code. I have a meter installed in the switch, but when I try to get meter stats from the RYU controller switch shows that no meter is installed. Does ARUBA 2930F have the implementation to respond to meter stat requests? What could be going wrong here?