kytos-ng / of_core

Kytos Main OpenFlow Network Application (NApp)
MIT License
0 stars 5 forks source link

feature: Support `MultipartType.OFPMP_TABLE` and publish a new event. #113

Closed gretelliz closed 1 year ago

gretelliz commented 1 year ago

This is related to EP035

flow_stats will evolve to kytos_stats for kytos statistics and of_core needs to be updated:

of_core will support MultipartType.OFPMP_TABLE and a new event will be published, just so kytos_stats can subscribe and react accordingly. Will be requested by switch and sent only when the switch has confirmed its capabilities:

controller.switches[dpid].features.capabilities.value & Capabilities.OFPC_TABLE_STATS == Capabilities.OFPC_TABLE_STATS

Published Events kytos/of_core.table_stats.received

Event reporting OF table stats

Content:

{
  "switch": <switch>
  "replies_tables": [<Table stats>]
}