diff mbox series

[ovs-dev,2/1] tests: Add parse-flow tests for MPLS fields

Message ID ebe2ae882a752846f9a19deb0507089777356a39.1603716867.git.tredaelli@redhat.com
State Accepted
Headers show
Series [ovs-dev] ofp-actions: Fix userspace support for mpls_ttl | expand

Commit Message

Timothy Redaelli Oct. 26, 2020, 12:55 p.m. UTC
Currently "ovs-ofctl parse-flows (NXM)" test doesn't test MPLS fields at all.

This commit adds a test for the the 4 MPLS fields (mpls_label, mpls_tc,
mpls_bos and mpls_ttl) to "ovs-ofctl parse-flows (NXM)" test.

Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
---
 tests/ovs-ofctl.at | 2 ++
 1 file changed, 2 insertions(+)

Comments

Ilya Maximets Nov. 16, 2020, 7:27 p.m. UTC | #1
On 10/26/20 1:55 PM, Timothy Redaelli wrote:
> Currently "ovs-ofctl parse-flows (NXM)" test doesn't test MPLS fields at all.
> 
> This commit adds a test for the the 4 MPLS fields (mpls_label, mpls_tc,
> mpls_bos and mpls_ttl) to "ovs-ofctl parse-flows (NXM)" test.
> 
> Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
> ---

Thanks!

Applied to master and backported down to 2.6.



Best regards, Ilya Maximets.
diff mbox series

Patch

diff --git a/tests/ovs-ofctl.at b/tests/ovs-ofctl.at
index b6951f404..7876b474b 100644
--- a/tests/ovs-ofctl.at
+++ b/tests/ovs-ofctl.at
@@ -434,6 +434,7 @@  tcp,actions=fin_timeout(idle_timeout=5,hard_timeout=15)
 actions=controller(max_len=123,reason=invalid_ttl,id=555)
 actions=sample(probability=12345,collector_set_id=23456,obs_domain_id=34567,obs_point_id=45678)
 actions=sample(probability=12345,collector_set_id=23456,obs_domain_id=34567,obs_point_id=45678,sampling_port=56789)
+mpls,mpls_label=5,mpls_tc=1,mpls_ttl=1,mpls_bos=0,actions=drop
 ip,actions=ct(commit,zone=5)
 ip,actions=ct(commit,exec(load(1->NXM_NX_CT_MARK[])))
 ip,actions=ct(commit,exec(load(0x1->NXM_NX_CT_LABEL[])))
@@ -490,6 +491,7 @@  NXT_FLOW_MOD: ADD table:255 tcp actions=fin_timeout(idle_timeout=5,hard_timeout=
 NXT_FLOW_MOD: ADD table:255 actions=controller(reason=invalid_ttl,max_len=123,id=555)
 NXT_FLOW_MOD: ADD table:255 actions=sample(probability=12345,collector_set_id=23456,obs_domain_id=34567,obs_point_id=45678)
 NXT_FLOW_MOD: ADD table:255 actions=sample(probability=12345,collector_set_id=23456,obs_domain_id=34567,obs_point_id=45678,sampling_port=56789)
+NXT_FLOW_MOD: ADD table:255 mpls,mpls_label=5,mpls_tc=1,mpls_ttl=1,mpls_bos=0 actions=drop
 NXT_FLOW_MOD: ADD table:255 ip actions=ct(commit,zone=5)
 NXT_FLOW_MOD: ADD table:255 ip actions=ct(commit,exec(load:0x1->NXM_NX_CT_MARK[]))
 NXT_FLOW_MOD: ADD table:255 ip actions=ct(commit,exec(load:0x1->NXM_NX_CT_LABEL[0..63],load:0->NXM_NX_CT_LABEL[64..127]))