Class PacketMirroringFilter (1.18.0)

PacketMirroringFilter(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Attributes

NameDescription
I_p_protocols MutableSequence[str]
Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored.
cidr_ranges MutableSequence[str]
One or more IPv4 or IPv6 CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. If no ranges are specified, all IPv4 traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use "0.0.0.0/0,::/0". Note: Support for IPv6 traffic is in preview.
direction str
Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH. Check the Direction enum for the list of possible values. This field is a member of oneof_ _direction.

Classes

Direction

Direction(value)

Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH.

Values: UNDEFINED_DIRECTION (0): A value indicating that the enum field is not set. BOTH (2044801): Default, both directions are mirrored. EGRESS (432880501): Only egress traffic is mirrored. INGRESS (516931221): Only ingress traffic is mirrored.