Skip to content

Commit f59d56f

Browse files
authored
Update NetworkingScenariosGF.md
1 parent 281e881 commit f59d56f

File tree

1 file changed

+22
-15
lines changed

1 file changed

+22
-15
lines changed

cd3_automation_toolkit/documentation/user_guide/learn_more/NetworkingScenariosGF.md

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66
Before you start with Network Creation, make sure you have run 'Fetch Compartments OCIDs to variables file'.
77

88
### 1. Create Network
9-
Follow the below steps to create Network that includes VCNs, Subnets, DHCP, DRG, Security List, Route Tables, DRG Route Tables, NSGs, etc.
9+
Creation of Networking components using Automation Toolkit involes four simple steps.
10+
- Feeding the details of networking resources to Excel.
11+
- Running the toolkit to generate auto.tfvars.
12+
- Executing Terraform commands to provision the resources in OCI.
13+
- Exporting the details of Security Rules and Route Rules to CD3 Excel Sheet.
14+
15+
Below are the steps in detail to create Network that includes VCNs, Subnets, DHCP, DRG, Security List, Route Tables, DRG Route Tables, NSGs, etc.
1016

1117
1. Choose appropriate excel sheet from [Excel Templates](/cd3_automation_toolkit/documentation/user_guide/Essentials_of_Automation_Toolkit.md#excel-sheet-templates) and fill the required Network details in the Networking Tabs - VCNs, DRGs, VCN Info, DHCP, Subnets, NSGs tabs.
1218

@@ -39,11 +45,24 @@ Follow the below steps to create Network that includes VCNs, Subnets, DHCP, DRG,
3945

4046
This completes the steps for Creating the Network in OCI and exporting the default rules to the CD3 Excel Sheet using the Automation Toolkit.
4147

48+
### 1a. Use an existing DRG in OCI while creating the network
49+
In some scenarios, a DRG has already been created in the tenancy and rest of the Network components still need to be created. In such cases, generate the networking related tfvars using same process mentioned above till Step 4.
50+
51+
- For Step 5, Navigate to the outdir path and execute the terraform commands:<br>
52+
<br>_terraform init_
53+
<br>_terraform import "module.drgs[\"&lt;&lt;drgs terraform variable name&gt;&gt;\"].oci_core_drg.drg" &lt;&lt;drg-ocid&gt;&gt;_
54+
<br>&nbsp;&nbsp;→ This will Import the DRG into your state file.
55+
_terraform plan_
56+
<br>&nbsp;&nbsp;→ Terraform Plan will indicate to add all the other components except DRG.
57+
<br>_terraform apply_
58+
59+
Continue executing the remaining steps of [Create Network](#1-create-network).
60+
4261
### 2. Modify Network
4362

44-
Follow the below steps to add a new or modify the existing Networking components - VCNs, Subnets, DHCP and DRG.
63+
Follow the below steps to add a new or modify the existing Networking components like the VCNs, Subnets, DHCP and DRG.
4564

46-
1. Modify your excel sheet to update required data in the Tabs - VCNs, DRGs, VCN Info, DHCP and Subnets.
65+
1. Modify your excel sheet to update required data in the Tabs - VCNs, DRGs, VCN Info, DHCP and Subnets.
4766

4867
2. Execute the _setupOCI.py_ file with _non_gf_tenancy_ parameter value to _false_:
4968

@@ -154,18 +173,6 @@ Follow the below steps to update NSGs.
154173
This completes the modification of NSGs in OCI. Verify the components in console.
155174

156175

157-
### 6. Use an existing DRG in OCI while creating the network
158-
In some scenarios, a DRG has already been created in the tenancy and rest of the Network components still need to be created. In such cases, generate the networking related tfvars using same process mentioned above till Step 4.
159-
160-
For Step5, Navigate to the outdir path and execute the terraform commands:<br>
161-
<br>_terraform init_
162-
<br>_terraform import "module.drgs[\"&lt;&lt;drgs terraform variable name&gt;&gt;\"].oci_core_drg.drg" &lt;&lt;drg-ocid&gt;&gt;_
163-
<br>&nbsp;&nbsp;→ This will Import the DRG into your state file.
164-
_terraform plan_
165-
<br>&nbsp;&nbsp;→ Terraform Plan will indicate to add all the other components except DRG.
166-
<br>_terraform apply_
167-
168-
169176
<br><br>
170177
<div align='center'>
171178

0 commit comments

Comments
 (0)