IcmpOptions

class oci.core.models.IcmpOptions(**kwargs)

Bases: object

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.

__init__(**kwargs)

Initializes a new IcmpOptions object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • 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.
code

Gets the code of this IcmpOptions. The ICMP code (optional).

Returns:The code of this IcmpOptions.
Return type:int
type

[Required] Gets the type of this IcmpOptions. The ICMP type.

Returns:The type of this IcmpOptions.
Return type:int