From d28437cdf2133533c9092b881ce0e4c243d6c1f6 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Wed, 20 Nov 2019 09:28:31 -0500 Subject: classify: per-interface rx/tx pcap capture filters Finish the feature, and fix a couple of doc bugs Type: feature Signed-off-by: Dave Barach Change-Id: I2c62745fda137776204c8fc4fca0e7e288051573 --- docs/gettingstarted/developers/vnet.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'docs/gettingstarted/developers') diff --git a/docs/gettingstarted/developers/vnet.md b/docs/gettingstarted/developers/vnet.md index f9d7bd597fa..a5cd9e73594 100644 --- a/docs/gettingstarted/developers/vnet.md +++ b/docs/gettingstarted/developers/vnet.md @@ -549,22 +549,30 @@ not, the CLI command add a new table and the indicated mask rule ### Configure a simple pcap classify filter ``` - classify filter pcap mask l3 ip4 src match l3 ip4 src 192.168.1.11" - pcap rx trace on max 100 filter + classify filter pcap mask l3 ip4 src match l3 ip4 src 192.168.1.11 + pcap trace rx max 100 filter ``` -### Configure a simple interface packet-tracer filter +### Configure a simple per-interface capture filter ``` classify filter GigabitEthernet3/0/0 mask l3 ip4 src match l3 ip4 src 192.168.1.11" - [device-driver debug CLI TBD] + pcap trace rx max 100 intfc GigabitEthernet3/0/0 +``` + +Note that per-interface capture filters are _always_ applied. + +### Clear per-interface capture filters + +``` + classify filter GigabitEthernet3/0/0 del ``` ### Configure another fairly simple pcap classify filter ``` classify filter pcap mask l3 ip4 src dst match l3 ip4 src 192.168.1.10 dst 192.168.2.10 - pcap tx trace on max 100 filter + pcap trace tx max 100 filter ``` ### Clear all current classifier filters -- cgit 1.2.3-korg