DrgRouteDistributionStatement

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

Bases: object

A single statement within a route distribution. All match criteria in a statement must be met for the action to take place.

Attributes:

ACTION_ACCEPT

A constant which can be used with the action property of a DrgRouteDistributionStatement.

action

[Required] Gets the action of this DrgRouteDistributionStatement.

id

[Required] Gets the id of this DrgRouteDistributionStatement.

match_criteria

[Required] Gets the match_criteria of this DrgRouteDistributionStatement.

priority

[Required] Gets the priority of this DrgRouteDistributionStatement.

Methods:

__init__(**kwargs)

Initializes a new DrgRouteDistributionStatement object with values from keyword arguments.

ACTION_ACCEPT = 'ACCEPT'

A constant which can be used with the action property of a DrgRouteDistributionStatement. This constant has a value of “ACCEPT”

__init__(**kwargs)

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

Parameters
  • match_criteria (list[oci.core.models.DrgRouteDistributionMatchCriteria]) – The value to assign to the match_criteria property of this DrgRouteDistributionStatement.

  • action (str) – The value to assign to the action property of this DrgRouteDistributionStatement. Allowed values for this property are: “ACCEPT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • priority (int) – The value to assign to the priority property of this DrgRouteDistributionStatement.

  • id (str) – The value to assign to the id property of this DrgRouteDistributionStatement.

property action

[Required] Gets the action of this DrgRouteDistributionStatement. ACCEPT indicates the route should be imported or exported as-is.

Allowed values for this property are: “ACCEPT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The action of this DrgRouteDistributionStatement.

Return type

str

property id

[Required] Gets the id of this DrgRouteDistributionStatement. The Oracle-assigned ID of the route distribution statement.

Returns

The id of this DrgRouteDistributionStatement.

Return type

str

property match_criteria

[Required] Gets the match_criteria of this DrgRouteDistributionStatement. The action is applied only if all of the match criteria is met. If there are no match criteria in a statement, any input is considered a match and the action is applied.

Returns

The match_criteria of this DrgRouteDistributionStatement.

Return type

list[oci.core.models.DrgRouteDistributionMatchCriteria]

property priority

[Required] Gets the priority of this DrgRouteDistributionStatement. This field specifies the priority of each statement in a route distribution. Priorities must be unique within a particular route distribution. The priority will be represented as a number between 0 and 65535 where a lower number indicates a higher priority. When a route is processed, statements are applied in the order defined by their priority. The first matching rule dictates the action that will be taken on the route.

Returns

The priority of this DrgRouteDistributionStatement.

Return type

int