hi all i have one function for send port-stats-request and another function for handle port stats
def _handle_PacketIn(self,event):
"do somthing"
mylist=[]
self.connection.send(of.ofp_stats_request(body=of.ofp_port_stats_request(port_no=2)))
def _handle_portstats_received(event):
for item in event.stats:
txbytes=item.tx_bytes
rxbytes=item.rx_bytes
ABW=(txbytes+rxbytes)
How could i append, ABW variable to mylist in the _handle_PacketIn
function?could you please give me advice
SaeedehKarami
