Version: openvswitch-2.12.0-1.1
Distro: RHEL8
Kernel: 4.18.0-305
Steps to reproduce:
Configure a mirror interface on an OVS bridge "BRIDGE" to dummy interface
"mirror" using:
ovs-vsctl add-port BRIDGE mirror \
-- --id=@p get port mirror \
-- --id=@m create mirror name=m0 select-all=true output-port=@p \
-- set bridge BRIDGE mirrors=@m &>/dev/null
Configure sFlow collector using command:
ovs-vsctl -- --id=@sflow create sflow agent=sflow-br target=X.X.X.X
header=128 sampling=32 polling=10 -- set bridge BRIDGE sflow=@sflow
Using sFlow-RT as sflow collector.
Expected results:
The sFlow records should display the outgoing interface as configured by
the flow rules.
Actual results:
All sflow records show "multiple" as outgoing interface.
Notes:
While it may be "correct" that the packets are actually being sent to
multiple interfaces and therefore the "multiple" output for sflow may be
appropriate. However, this behavior should be configurable to allow for
displaying the actual outgoing interface not considering the mirror. If
all flows show "multiple" as the outgoing interface when mirroring is
enabled, then mirroring actually reduces the capability of OVS exports to
an sFlow collector as the output port field is now useless. Perhaps an
option when configuring a mirror for " flow-record-output=true|false" or
similar? If set to false, then the records do not consider the mirror port
when calculating flow records.
Thank you for your time.
-Brian
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss