Hi,

I've asked this before but perhaps the question or response got lost, I'm struggling to understand the relationship between Sampling_App, Sample_Collector and Sample when creating ACLs with samples. I can't find any good documentation/blog or tutorial
so I'm working off the unit tests.

So what's the  purpose of Sampling_App type="drop", it seems you don't need it to
sample dropped packets. I have

collector1=$(ovn-nbctl create Sample_Collector id=1 name=c1 probability=65535 set_id=100)

ovn-nbctl create Sampling_App type="acl-new" id="42"

ovn-nbctl acl-add ls_vcn1_net1 from-lport 32767 "inport == \"00bff7c0-2e2d-41ba-9485-3b5fa9801365\" && arp" allow-related ovn-nbctl acl-add ls_vcn1_net1 from-lport 14000 "inport == \"00bff7c0-2e2d-41ba-9485-3b5fa9801365\" && ip.proto == 6" allow-related

ovn-nbctl               \
    -- --id=@sample_in_1c_new create Sample collector="$collector1" metadata=1003 \
    -- --sample-new=@sample_in_1c_new              \
       acl-add ls_vcn1_net1 from-lport 0 "inport == \"00bff7c0-2e2d-41ba-9485-3b5fa9801365\""    drop


And this generates samples for dropped pkts, I don't need to create:

ovn-nbctl create Sampling_App type="drop" id="44"

And in any case there is no "--sample-drop=sample"  option for ovn-nbctl acl_add so how would I use it?


Thanks

Brendan.

_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to