Expand field/action conversion scope of ofagent
Ofagent did not parse all fields back from protobuf to lexi,
hence ONOS was not able to confirm downloaded flows. This
made her unhappy.
Also, DHCP config info is added to ONOS netcfg.json.
Change-Id: I57ac5d3b4d14c8c52feb52e08bb420c15809238e
diff --git a/ofagent/of_protocol_handler.py b/ofagent/of_protocol_handler.py
index 87feb37..d0b71e3 100644
--- a/ofagent/of_protocol_handler.py
+++ b/ofagent/of_protocol_handler.py
@@ -168,9 +168,12 @@
@inlineCallbacks
def handle_flow_stats_request(self, req):
- flow_stats = yield self.rpc.list_flows(self.device_id)
- self.cxn.send(ofp.message.flow_stats_reply(
- xid=req.xid, entries=[to_loxi(f) for f in flow_stats]))
+ try:
+ flow_stats = yield self.rpc.list_flows(self.device_id)
+ self.cxn.send(ofp.message.flow_stats_reply(
+ xid=req.xid, entries=[to_loxi(f) for f in flow_stats]))
+ except Exception, e:
+ log.exception('failed-flow-stats-request', req=req)
@inlineCallbacks
def handle_group_stats_request(self, req):