Adding support for OLT side metadata field
Due to historic reasons, ONOS injects a metadata match field into one
of the downstream unicats flow rules, which was not yet handled by voltha.
That is fixed and tested now.
Change-Id: Ic8a47de515fa5837a70941be22da9e2d6539f614
diff --git a/ofagent/of_protocol_handler.py b/ofagent/of_protocol_handler.py
index 0508d76..87feb37 100644
--- a/ofagent/of_protocol_handler.py
+++ b/ofagent/of_protocol_handler.py
@@ -104,9 +104,13 @@
def handle_experimenter_request(self, req):
raise NotImplementedError()
- @inlineCallbacks
def handle_flow_mod_request(self, req):
- yield self.rpc.update_flow_table(self.device_id, to_grpc(req))
+ try:
+ grpc_req = to_grpc(req)
+ except Exception, e:
+ log.exception('failed-to-convert', e=e)
+ else:
+ return self.rpc.update_flow_table(self.device_id, grpc_req)
def handle_get_async_request(self, req):
raise NotImplementedError()