Package org.onosproject.net.behaviour
Interface MirroringDescription
-
- All Superinterfaces:
Annotated
,Description
- All Known Implementing Classes:
DefaultMirroringDescription
@Beta public interface MirroringDescription extends Description, Annotated
The abstraction of a mirroring. Port mirroring is a method of monitoring network traffic that forwards a copy of each incoming or outgoing packet from one port (Monitor port) on a network switch to another port (Mirror port) where the packet can be analyzed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<String>
mirrorPort()
Returns mirror port.Optional<VlanId>
mirrorVlan()
Returns mirror vlan.List<String>
monitorDstPorts()
Returns dst ports to monitor.List<String>
monitorSrcPorts()
Returns src ports to monitor.List<VlanId>
monitorVlans()
Returns vlans to monitor.MirroringName
name()
Returns mirroring name.-
Methods inherited from interface org.onosproject.net.Description
annotations
-
-
-
-
Method Detail
-
name
MirroringName name()
Returns mirroring name.- Returns:
- mirroring name
-
monitorSrcPorts
List<String> monitorSrcPorts()
Returns src ports to monitor. If it is empty, then no src port has to be monitored.- Returns:
- set of src ports to monitor
-
monitorDstPorts
List<String> monitorDstPorts()
Returns dst ports to monitor. If it is empty, then no dst port has to be monitored.- Returns:
- set of dst ports to monitor
-
monitorVlans
List<VlanId> monitorVlans()
Returns vlans to monitor. If it is empty, then no vlan has to be monitored.- Returns:
- monitored vlan
-
mirrorPort
Optional<String> mirrorPort()
Returns mirror port. If it is not set, then no destination port for mirrored packets.- Returns:
- mirror port
-
-