Creating an Import Route Distribution
Create an import route distribution for a Dynamic Routing Gateway (DRG) in Oracle Cloud Infrastructure.
A newly created DRG has two autogenerated import route distributions. You can create a new import route distribution, and then assign it to a route table so it dynamically learns new routes based on BGP advertisements.
A newly created DRG also has a single autogenerated export route distribution. If the default export route distribution is assigned to an attachment, the entire contents of the attachment's assigned DRG route table are dynamically exported to the attachment. You can't create a new export route distribution.
For more details about DRG routing, see Working with DRG Route Tables and Route Distributions and Dynamic Import/Export Route Distributions.
.
Use the network drg-route-distribution create command and required parameters to create a new import route distribution for the specified DRG:
oci network drg-route-distribution create --drg-id ocid --distribution-type import ... [OPTIONS]
Assign the import route distribution to a DRG route table using the
network drg-route-table create
ornetwork drg-route-table update
commands. Assign an export distribution to a DRG attachment using thenetwork drg-attachment create
ornetwork drg-attachment update
commands.For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the CreateDrgRouteDistribution operation to create a new import route distribution for the specified DRG.
You can then assign the import route distribution to a DRG route table using the
CreateDrgRouteTable
orUpdateDrgRouteTable
operations or assign the route distribution as an export distribution to a DRG attachment using theUpdateDrgAttachment
orCreateDrgAttachment
operations.