match-1.3: add arp operation test
diff --git a/tests-1.3/match.py b/tests-1.3/match.py
index f30173f..a07e0e3 100644
--- a/tests-1.3/match.py
+++ b/tests-1.3/match.py
@@ -883,3 +883,23 @@
# TODO ipv6 icmp type
# TODO ipv6 icmp code
+
+class ArpOp(MatchTest):
+ """
+ Match on ARP operation
+ """
+ def runTest(self):
+ match = ofp.match([
+ ofp.oxm.eth_type(0x0806),
+ ofp.oxm.arp_op(3),
+ ])
+
+ matching = {
+ "op=3": simple_arp_packet(arp_op=3),
+ }
+
+ nonmatching = {
+ "op=4": simple_arp_packet(arp_op=4),
+ }
+
+ self.verify_match(match, matching, nonmatching)