Class DefaultMirroringDescription

    • Constructor Detail

      • DefaultMirroringDescription

        public DefaultMirroringDescription​(MirroringName name,
                                           java.util.List<java.lang.String> monitorsrcports,
                                           java.util.List<java.lang.String> monitordstports,
                                           java.util.List<VlanId> monitorvlans,
                                           java.util.Optional<java.lang.String> mirrorport,
                                           java.util.Optional<VlanId> mirrorvlan,
                                           SparseAnnotations... annotations)
        Creates a mirroring description using the supplied information.
        Parameters:
        name - the name of the mirroring
        monitorsrcports - the monitored src ports
        monitordstports - the monitored dst ports
        monitorvlans - the monitored vlans
        mirrorport - the mirror port
        mirrorvlan - the mirror vlan
        annotations - optional key/value annotations
    • Method Detail

      • monitorSrcPorts

        public java.util.List<java.lang.String> monitorSrcPorts()
        Returns src ports to monitor. If it is empty, then no src port has to be monitored.
        Specified by:
        monitorSrcPorts in interface MirroringDescription
        Returns:
        set of src ports to monitor
      • monitorDstPorts

        public java.util.List<java.lang.String> monitorDstPorts()
        Returns dst ports to monitor. If it is empty, then no dst port has to be monitored.
        Specified by:
        monitorDstPorts in interface MirroringDescription
        Returns:
        set of dst ports to monitor
      • monitorVlans

        public java.util.List<VlanId> monitorVlans()
        Returns vlans to monitor. If it is empty, then no vlan has to be monitored.
        Specified by:
        monitorVlans in interface MirroringDescription
        Returns:
        monitored vlan
      • mirrorPort

        public java.util.Optional<java.lang.String> mirrorPort()
        Returns mirror port. If it is not set, then no destination port for mirrored packets.
        Specified by:
        mirrorPort in interface MirroringDescription
        Returns:
        mirror port
      • mirrorVlan

        public java.util.Optional<VlanId> mirrorVlan()
        Returns mirror vlan. If it is not set the no destination vlan for mirrored packets.
        Specified by:
        mirrorVlan in interface MirroringDescription
        Returns:
        mirror vlan
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object