flow_match: Match on ARP Opcode
diff --git a/tests/FuncUtils.py b/tests/FuncUtils.py
index 1aefae1..6b346a7 100644
--- a/tests/FuncUtils.py
+++ b/tests/FuncUtils.py
@@ -278,6 +278,18 @@
     match_send_flowadd(self, match, priority, of_ports[1])
     return (pkt_match, match)  
 
+def match_arp_opcode(self,of_ports,priority=None):
+    #Generate Match_Arp_Opcode
+
+    #Create a simple arp packet and generate match on arp opcode 
+    pkt_match = simple_arp_packet(arp_op=1)
+    match = parse.packet_to_flow_match(pkt_match)
+    self.assertTrue(match is not None, "Could not generate flow match from pkt")
+
+    match.wildcards = ofp.OFPFW_ALL^ofp.OFPFW_NW_PROTO
+    match_send_flowadd(self, match, priority, of_ports[1])
+    return (pkt_match, match)  
+
 def match_arp_sender(self,of_ports,priority=None):
     #Generate Match_Arp_Sender