diff options
| author | Phil Sutter <phil@nwl.cc> | 2024-05-15 16:01:20 +0200 |
|---|---|---|
| committer | Phil Sutter <phil@nwl.cc> | 2024-11-06 11:00:21 +0100 |
| commit | 73a8adfc2432ec8337288cc90e7c9f4509139846 (patch) | |
| tree | 32716796633d8a0e1250cb15a169abc94dabacd7 /tests/monitor | |
| parent | c1c0c54e237c880adaa8172b93d7450e6c617cfc (diff) | |
monitor: Recognize flowtable add/del events
These were entirely ignored before, add the necessary code analogous to
e.g. objects.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'tests/monitor')
| -rw-r--r-- | tests/monitor/testcases/flowtable-simple.t | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/monitor/testcases/flowtable-simple.t b/tests/monitor/testcases/flowtable-simple.t new file mode 100644 index 00000000..df8eccbd --- /dev/null +++ b/tests/monitor/testcases/flowtable-simple.t @@ -0,0 +1,10 @@ +# setup first +I add table ip t +I add flowtable ip t ft { hook ingress priority 0; devices = { lo }; } +O - +J {"add": {"table": {"family": "ip", "name": "t", "handle": 0}}} +J {"add": {"flowtable": {"family": "ip", "name": "ft", "table": "t", "handle": 0, "hook": "ingress", "prio": 0, "dev": "lo"}}} + +I delete flowtable ip t ft +O - +J {"delete": {"flowtable": {"family": "ip", "name": "ft", "table": "t", "handle": 0, "hook": "ingress", "prio": 0, "dev": "lo"}}} |
