classify: fix classify filter trace del cli processing 36/29736/5
authorJon Loeliger <jdl@netgate.com>
Tue, 3 Nov 2020 20:49:10 +0000 (15:49 -0500)
committerDave Barach <openvpp@barachs.net>
Tue, 10 Nov 2020 10:58:54 +0000 (10:58 +0000)
commit5f7f47ec7ad642c3938376420ef9530176052cd8
tree50db45b900d2f315d7edcfe0394e2d350f378f0c
parent212ec2af92b148cd3747e6ab424c0080d4a62968
classify: fix classify filter trace del cli processing

When a 'del' is used to delete a classify table, only the
mask is needed to locate the table.  Any match vector is
unneeded.  The tests failed to notice this, but if the
test is run by hand in vppctl, it issues a parse error.

Fix the test so that it doesn't supply irrelevant data.
Fix the CLI processing to read always complete newline
terminated line of input instead.  This allows unneeded
CLI parameters to be ignored.  It also necessitated
fixing a trace test which had then erroneously split
a single CLI command over multiple lines.

While in the area, fix a latent bug on table matching
where a test for compatible mask vector sizes were
not matching impedance properly (byte vs ux32x4).

Type: fix
Signed-off-by: Jon Loeliger <jdl@netgate.com>
Change-Id: I1177ab1dd417f3d11f30eecbaa2b0fb1015c3ab5
src/vnet/classify/vnet_classify.c
test/test_pcap.py
test/test_trace_filter.py