Blame tests/monitor/testcases/set-interval.t
|
Packit Service |
a8b2ce |
# setup first
|
|
Packit Service |
a8b2ce |
I add table ip t
|
|
Packit Service |
a8b2ce |
I add chain ip t c
|
|
Packit Service |
a8b2ce |
O -
|
|
Packit Service |
a8b2ce |
J {"add": {"table": {"family": "ip", "name": "t", "handle": 0}}}
|
|
Packit Service |
a8b2ce |
J {"add": {"chain": {"family": "ip", "table": "t", "name": "c", "handle": 0}}}
|
|
Packit Service |
a8b2ce |
|
|
Packit Service |
a8b2ce |
# add set with elements, monitor output expectedly differs
|
|
Packit Service |
a8b2ce |
I add set ip t s { type inet_service; flags interval; elements = { 20, 30-40 }; }
|
|
Packit Service |
a8b2ce |
O add set ip t s { type inet_service; flags interval; }
|
|
Packit Service |
a8b2ce |
O add element ip t s { 20 }
|
|
Packit Service |
a8b2ce |
O add element ip t s { 30-40 }
|
|
Packit Service |
a8b2ce |
J {"add": {"set": {"family": "ip", "name": "s", "table": "t", "type": "inet_service", "handle": 0, "flags": ["interval"]}}}
|
|
Packit Service |
a8b2ce |
J {"add": {"element": {"family": "ip", "table": "t", "name": "s", "elem": {"set": [20]}}}}
|
|
Packit Service |
a8b2ce |
J {"add": {"element": {"family": "ip", "table": "t", "name": "s", "elem": {"set": [{"range": [30, 40]}]}}}}
|
|
Packit Service |
a8b2ce |
|
|
Packit Service |
a8b2ce |
# this would crash nft
|
|
Packit Service |
a8b2ce |
I add rule ip t c tcp dport @s
|
|
Packit Service |
a8b2ce |
O -
|
|
Packit Service |
a8b2ce |
J {"add": {"rule": {"family": "ip", "table": "t", "chain": "c", "handle": 0, "expr": [{"match": {"op": "==", "left": {"payload": {"protocol": "tcp", "field": "dport"}}, "right": "@s"}}]}}}
|