Optional object to specify a particular ICMP type and code. If you specify ICMP as the protocol but do not provide this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. See ICMP Parameters for allowed values. To enable MTU negotiation for ingress internet traffic, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.
Initializes a new IcmpOptions object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- code (int) -- The value to assign to the code property of this IcmpOptions.
- type (int) -- The value to assign to the type property of this IcmpOptions.
Gets the code of this IcmpOptions. The ICMP code (optional).
Returns: The code of this IcmpOptions. Return type: int
[Required] Gets the type of this IcmpOptions. The ICMP type.
Returns: The type of this IcmpOptions. Return type: int