[ovs-dev] [PATCH ovn 3/3] CoPP: add self-test for tcp-reset controller action

Lorenzo Bianconi lorenzo.bianconi at redhat.com
Wed Oct 13 16:46:10 UTC 2021


Introduce CoPP selftest for tcp-reset controller action

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi at redhat.com>
---
 tests/ovn-northd.at | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/tests/ovn-northd.at b/tests/ovn-northd.at
index 3bcbdf4a9..c180ba65e 100644
--- a/tests/ovn-northd.at
+++ b/tests/ovn-northd.at
@@ -3272,6 +3272,17 @@ check ovn-nbctl --wait=hv lr-copp-del r0 icmp6-error
 AT_CHECK([ovn-nbctl lr-copp-list r0], [0], [dnl
 ])
 
+check ovn-nbctl --wait=hv lr-copp-add r0 tcp-reset meter2
+AT_CHECK([ovn-nbctl lr-copp-list r0], [0], [dnl
+tcp-reset: meter2
+])
+
+AT_CHECK([ovn-sbctl list logical_flow | grep tcp -A 2 | grep -q meter2])
+
+check ovn-nbctl --wait=hv lr-copp-del r0 tcp-reset
+AT_CHECK([ovn-nbctl lr-copp-list r0], [0], [dnl
+])
+
 check ovn-nbctl --wait=hv ls-copp-del sw1 event-elb
 AT_CHECK([ovn-nbctl ls-copp-list sw1], [0], [dnl
 ])
-- 
2.31.1



More information about the dev mailing list