summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2021-06-02 20:47:34 +0200
committerFlorian Westphal <fw@strlen.de>2021-06-04 13:23:00 +0200
commitd1a7b9e19fe655c350b6d85a687c7d09e29f58c7 (patch)
tree3c2f7d9a17e4f60d70a15d01d540685dd344b7b3 /tests
parent110d7ce37b0ae18f8dcea8bd4a4aa58fc49ccca0 (diff)
tests: py: update netdev reject test file
netdev/reject.t throws a couple of WARNINGs. For some reason this file wasn't updated after the reject statement json output was changed to keep the icmp type/protocol. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/py/netdev/reject.t.json66
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"