Skip to content

OpenvSwitch port mirroring #7638

@dann1

Description

@dann1

Description
Allow per NIC port mirroring in OpenvSwitch driver. From RFP NFH 108

Proposed solution must support vSwitch port-mirroring features (applies also for CPU Accelerated vSwitch.):

Port Mirror Origin Definition:

  • vNIC(s)
  • VLAN(s)
  • VNIC(s) & VLAN(s)

Port Mirror Destination (Delivery):

  • ERSPAN type I, type II.
  • RSPAN

Interface Changes
Mirroring configuration is established on the NIC element of the VM Template and VM Instance

Additional Context
Example configurations on the OVS doc https://docs.openvswitch.org/en/latest/faq/configuration/

Example mirror options

[root@sm15 ~]# ovs-vsctl list mirror
_uuid               : 8b3c5630-27a4-480b-a691-68a3123a5d22
external_ids        : {}
filter              : []
name                : m1
output_port         : 6a53592f-5b41-43a9-9b43-8e9f8e1a8fc2
output_vlan         : []
select_all          : true
select_dst_port     : []
select_src_port     : []
select_vlan         : []
snaplen             : []
statistics          : {}

Example mirror creation with everything forwarded

[root@sm15 ~]# ovs-vsctl add-port ovsbr0 gre1 -- set interface gre1 type=gre -- set interface gre1 options=remote_ip=10.0.1.15
[root@sm15 ~]# ovs-vsctl --id=@p get port gre1 -- --id=@m create mirror name=m1 select-all=true output-port=@p -- set bridge ovsbr0 mirrors=@m

Progress Status

  • Code committed
  • Testing - QA
  • Documentation (Release notes - resolved issues, compatibility, known issues)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions