AddDrgRouteRuleDetails¶
-
class
oci.core.models.
AddDrgRouteRuleDetails
(**kwargs)¶ Bases:
object
Details needed when adding a DRG route rule.
Attributes
DESTINATION_TYPE_CIDR_BLOCK
A constant which can be used with the destination_type property of a AddDrgRouteRuleDetails. destination
[Required] Gets the destination of this AddDrgRouteRuleDetails. destination_type
[Required] Gets the destination_type of this AddDrgRouteRuleDetails. next_hop_drg_attachment_id
[Required] Gets the next_hop_drg_attachment_id of this AddDrgRouteRuleDetails. Methods
__init__
(**kwargs)Initializes a new AddDrgRouteRuleDetails object with values from keyword arguments. -
DESTINATION_TYPE_CIDR_BLOCK
= 'CIDR_BLOCK'¶ A constant which can be used with the destination_type property of a AddDrgRouteRuleDetails. This constant has a value of “CIDR_BLOCK”
-
__init__
(**kwargs)¶ Initializes a new AddDrgRouteRuleDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - destination_type (str) – The value to assign to the destination_type property of this AddDrgRouteRuleDetails. Allowed values for this property are: “CIDR_BLOCK”
- destination (str) – The value to assign to the destination property of this AddDrgRouteRuleDetails.
- next_hop_drg_attachment_id (str) – The value to assign to the next_hop_drg_attachment_id property of this AddDrgRouteRuleDetails.
-
destination
¶ [Required] Gets the destination of this AddDrgRouteRuleDetails. This is the range of IP addresses used for matching when routing traffic. Only CIDR_BLOCK values are allowed.
- Potential values:
- IP address range in CIDR notation. This can be an IPv4 CIDR block or IPv6 prefix. For example: 192.168.1.0/24
or 2001:0db8:0123:45::/56.
Returns: The destination of this AddDrgRouteRuleDetails. Return type: str
-
destination_type
¶ [Required] Gets the destination_type of this AddDrgRouteRuleDetails. Type of destination for the rule. Allowed values:
- CIDR_BLOCK: If the rule’s destination is an IP address range in CIDR notation.
Allowed values for this property are: “CIDR_BLOCK”
Returns: The destination_type of this AddDrgRouteRuleDetails. Return type: str
-
next_hop_drg_attachment_id
¶ [Required] Gets the next_hop_drg_attachment_id of this AddDrgRouteRuleDetails. The OCID of the next hop DRG attachment. The next hop DRG attachment is responsible for reaching the network destination.
Returns: The next_hop_drg_attachment_id of this AddDrgRouteRuleDetails. Return type: str
-