When we use voltha-onos docker, onos sends clear_actions instruction to voltha ofagent component. voltha ofagent component doesnt handle this instruction type and creates an exception:
20180124T125506.456 ERROR of_protocol_handler.handle_flow_mod_request
{e: <class 'loxi.of13.instruction.clear_actions'>, event: failed-to-convert, exception: Traceback (most recent call last): File "/ofagent/ofagent/of_protocol_handler.py", line 122, in handle_flow_mod_request grpc_req = to_grpc(req) File "/ofagent/ofagent/converter.py", line 52, in to_grpc return converter(loxi_object) File "/ofagent/ofagent/converter.py", line 244, in loxi_flow_mod_to_ofp_flow_mod instructions=[to_grpc(i) for i in lo.instructions]) File "/ofagent/ofagent/converter.py", line 51, in to_grpc converter = to_grpc_converters[cls] KeyError: <class 'loxi.of13.instruction.clear_actions'>, instance_id: compose_ofagent_1}
As a conclusion, we see the flows at pending_add state when we check them at Onos cli.

Change-Id: Icde46ba15dccaa2d25920d5d5d104baf88bdd22b
diff --git a/tests/utests/ofagent/test_converter.py b/tests/utests/ofagent/test_converter.py
index fd72925..415aea3 100644
--- a/tests/utests/ofagent/test_converter.py
+++ b/tests/utests/ofagent/test_converter.py
@@ -1,8 +1,9 @@
 from unittest import TestCase, main
 
 from loxi import of13
+from ofagent.loxi.of13.instruction import clear_actions
 from voltha.protos import third_party
-from ofagent.converter import to_loxi
+from ofagent.converter import to_loxi, to_grpc
 from voltha.core.flow_decomposer import *
 
 _ = third_party
@@ -223,6 +224,10 @@
         for group_stat in group_stats:
             loxi_group_desc = to_loxi(group_stat.desc)
 
+    def test_clear_actions_instruction(self):
+        obj = clear_actions()
+        ofp_instruction = to_grpc(obj)
+        self.assertEqual(ofp_instruction.type, 5)
 
 if __name__ == '__main__':
     main()