IcmpOptions¶
-
class
oci.core.models.
IcmpOptions
(**kwargs)¶ Bases:
object
Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in: - ICMP Parameters - ICMPv6 Parameters
If you specify ICMP or ICMPv6 as the protocol but omit 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. To enable MTU negotiation for ingress internet traffic via IPv4, 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.
Methods
__init__
(**kwargs)Initializes a new IcmpOptions object with values from keyword arguments. Attributes
code
Gets the code of this IcmpOptions. type
[Required] Gets the type of this IcmpOptions. -
__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
-