Sign inSign up

isac322/peer_oracle_vcn

By isac322

•Updated about 4 years ago

Image
0

3.4K

isac322/peer_oracle_vcn repository overview

⁠Automate connecting two VCN on Oracle Cloud

Docker Pulls Docker Image Size (tag) PyPI GitHub last commit (branch) GitHub Workflow Status (branch) Dependabpt Status

Supported platform: linux/amd64, linux/arm64/v8, linux/arm/v7

⁠Overview

It will automate peering two VCN using Python SDK.

You have to add Oracle API Key. please follow Official Instruction⁠

한글 문서⁠

⁠Tag format

isac322/peer_oracle_vcn:<app_version>

⁠Command

⁠peer_oracle_vcn --help
usage: peer_oracle_vcn [-h] {lpg_intra_tenant,lpg_inter_tenant,list_vcn,list_group,list_route_table} ...

optional arguments:
  -h, --help            show this help message and exit

Sub Command:
  {lpg_intra_tenant,lpg_inter_tenant,list_vcn,list_group,list_route_table}
⁠peer_oracle_vcn lpg_intra_tenant --help
usage: peer_oracle_vcn lpg_intra_tenant [-h] [--api-config-file API_CONFIG_FILE] [--profile PROFILE] --requestor-vcn-ocid REQUESTOR_VCN_OCID --acceptor-vcn-ocid ACCEPTOR_VCN_OCID --requestor-group-ocid REQUESTOR_GROUP_OCID --requestor-route-table-ocid REQUESTOR_ROUTE_TABLE_OCID --acceptor-route-table-ocid
                                        ACCEPTOR_ROUTE_TABLE_OCID --requestor-cidr REQUESTOR_CIDR --acceptor-cidr ACCEPTOR_CIDR

optional arguments:
  -h, --help            show this help message and exit
  --api-config-file API_CONFIG_FILE
                        OCI API config file path
  --profile PROFILE
  --requestor-vcn-ocid REQUESTOR_VCN_OCID
                        VCN OCID of requestor
  --acceptor-vcn-ocid ACCEPTOR_VCN_OCID
                        VCN OCID of acceptor
  --requestor-group-ocid REQUESTOR_GROUP_OCID
                        Group OCID of requestor
  --requestor-route-table-ocid REQUESTOR_ROUTE_TABLE_OCID
                        Route Table OCID of requestor to register LGP
  --acceptor-route-table-ocid ACCEPTOR_ROUTE_TABLE_OCID
                        Route Table OCID of acceptor to register LGP
  --requestor-cidr REQUESTOR_CIDR
                        CIDR of requestor to add acceptor's Route Table
  --acceptor-cidr ACCEPTOR_CIDR
                        CIDR of acceptor to add requestor's Route Table
⁠peer_oracle_vcn lpg_inter_tenant --help
usage: peer_oracle_vcn lpg_inter_tenant [-h] [--api-config-file API_CONFIG_FILE] [--requestor-vcn-ocid REQUESTOR_VCN_OCID] [--acceptor-vcn-ocid ACCEPTOR_VCN_OCID] [--requestor-group-ocid REQUESTOR_GROUP_OCID] [--requestor-route-table-ocid REQUESTOR_ROUTE_TABLE_OCID]
                                        [--acceptor-route-table-ocid ACCEPTOR_ROUTE_TABLE_OCID] --requestor-cidr REQUESTOR_CIDR --acceptor-cidr ACCEPTOR_CIDR --requestor-profile REQUESTOR_PROFILE --acceptor-profile ACCEPTOR_PROFILE

optional arguments:
  -h, --help            show this help message and exit
  --api-config-file API_CONFIG_FILE
                        OCI API config file path
  --requestor-vcn-ocid REQUESTOR_VCN_OCID
                        VCN OCID of requestor
  --acceptor-vcn-ocid ACCEPTOR_VCN_OCID
                        VCN OCID of acceptor
  --requestor-group-ocid REQUESTOR_GROUP_OCID
                        Group OCID of requestor
  --requestor-route-table-ocid REQUESTOR_ROUTE_TABLE_OCID
                        Route Table OCID of requestor to register LGP
  --acceptor-route-table-ocid ACCEPTOR_ROUTE_TABLE_OCID
                        Route Table OCID of acceptor to register LGP
  --requestor-cidr REQUESTOR_CIDR
                        CIDR of requestor to add acceptor's Route Table
  --acceptor-cidr ACCEPTOR_CIDR
                        CIDR of acceptor to add requestor's Route Table
  --requestor-profile REQUESTOR_PROFILE
  --acceptor-profile ACCEPTOR_PROFILE

⁠How to run

docker run -v <your_oci_key_path>:/root/.oci:ro -ti isac322/peer_oracle_vcn lpg_inter_tenant --requestor-profile profile1 --acceptor-profile profile2

Will peer VCN of tenant profile1 with VCN of tenant profile2. It will automatically find main VCN and main Route Table using each OCI API Profile. If there are multiple VCN or Route Table, you have to manually set OCID using sub-command arguments.

You can list up VCN, Route Table, Group using sub-command list_vcn, list_route_table, list_group respectively.

Tag summary

Content type

Image

Digest

sha256:1e3791727…

Size

56.8 MB

Last updated

about 4 years ago

docker pull isac322/peer_oracle_vcn