diff options
-rw-r--r-- | tests/py/netdev/reject.t.json | 66 |
1 files changed, 21 insertions, 45 deletions
diff --git a/tests/py/netdev/reject.t.json b/tests/py/netdev/reject.t.json index 21e6ebb5..616a2bc1 100644 --- a/tests/py/netdev/reject.t.json +++ b/tests/py/netdev/reject.t.json @@ -134,6 +134,17 @@ "match": { "left": { "meta": { + "key": "l4proto" + } + }, + "op": "==", + "right": 6 + } + }, + { + "match": { + "left": { + "meta": { "key": "mark" } }, @@ -151,43 +162,30 @@ # reject [ { - "reject": null + "reject": { + "expr": "port-unreachable", + "type": "icmpx" + } } ] # meta protocol ip reject [ { - "match": { - "left": { - "meta": { - "key": "protocol" - } - }, - "op": "==", - "right": "ip" + "reject": { + "expr": "port-unreachable", + "type": "icmp" } - }, - { - "reject": null } ] # meta protocol ip6 reject [ { - "match": { - "left": { - "meta": { - "key": "protocol" - } - }, - "op": "==", - "right": "ip6" + "reject": { + "expr": "port-unreachable", + "type": "icmpv6" } - }, - { - "reject": null } ] @@ -234,17 +232,6 @@ # meta protocol ip reject with icmp type host-unreachable [ { - "match": { - "left": { - "meta": { - "key": "protocol" - } - }, - "op": "==", - "right": "ip" - } - }, - { "reject": { "expr": "host-unreachable", "type": "icmp" @@ -255,17 +242,6 @@ # meta protocol ip6 reject with icmpv6 type no-route [ { - "match": { - "left": { - "meta": { - "key": "protocol" - } - }, - "op": "==", - "right": "ip6" - } - }, - { "reject": { "expr": "no-route", "type": "icmpv6" |