Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 3.12 KB

File metadata and controls

63 lines (42 loc) · 3.12 KB

Networking Scenarios

Non-Greenfield Tenancies (Managing Network for Non Green Field Tenancies)

NOTE- Before you start with Network Export, make sure you have run 'Fetch Compartments OCIDs to variables file'.

Export Network

Follow the below steps to export the Networking components that includes VCNs, Subnets, DHCP, DRG, Security List, Route Tables, DRG Route Tables, NSGs, etc to CD3 Excel Sheet and create the Terraform state.

  1. Use the CD3-Blank-Template.xlsx to export the networking resources into the Tabs - VCNs, DRGs, VCN Info, DHCP, Subnets, NSGs, RouteRulesInOCI, SecRulesInOCI,DRGRouteRulesInOCI tabs.

  2. Execute the setupOCI.py file with non_gf_tenancy parameter value to true:

    python setUpOCI.py /cd3user/tenancies/<customer_name>/<customer_name>_setUpOCI.properties

  3. Choose one of the below available sub-options from 'Export Network' of the main menu.

    • Export all Network Components
    • Export Network components for VCNs, DRGs and DRGRouteRulesinOCI Tabs
    • Export Network components for DHCP Tab
    • Export Network components for SecRulesinOCI Tab
    • Export Network components for RouteRulesinOCI Tab
    • Export Network components for Subnets Tab
    • Export Network components for NSGs Tab

    Once the execution is successful, networking related .tfvars files and .sh files containing import statements will be generated under the folder /cd3user/tenancies/<customer_name>/terraform_files/<region_dir>

    Navigate to the above path and execute the terraform commands:

    terraform init
    Execute the shell scirpts of networking components
    terraform plan
      → Terraform Plan must show that all the components are in sync.

This completes the export of Networking components from OCI.

Sample of CD3 Excel after export:
(DO NOT Modify the highlighted columns)

VCNs tab: image

Subnets tab: image


Go back to Networking Scenarios

Add a new or modify the existing networking components

  1. Export the Networking components by following the steps above. (Note that here non_gf_tenancy flag is set to true)
  2. Follow the process to add new components such as VCN/DHCP/DRG/IGW/NGW/SGW/LPG/Subnet etc. (Note that here non_gf_tenancy flag is set to false)


Go back to Networking Scenarios