Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

vtc vpc-prefixes should include option for vpc attachment id and prefix #183

@mithil2906

Description

@mithil2906

Is your feature request related to a problem? Please describe.

The vtc vpc-prefixes does not have an option to include vpc attachment id and the prefix. This requires manual intervention to enter both of these options.

mithilra@b0be83701edd python-client-for-vmware-cloud-on-aws-development % ./pyVMC.py vtc vpc-prefixes -aid 310793149708 -gid 1edeb6b5-8742-6d21-b1f9-0d126ed6be4b -h
usage: vtc vpc-prefixes [-h] [--oauth [OAUTH]] -aid AWS_ACCOUNT_ID -gid SDDC_GROUP_ID

options:
-h, --help show this help message and exit
--oauth [OAUTH] Used to specify use of OAuth app ID and secret in config.ini instead of 'refresh_token' (default).
-aid AWS_ACCOUNT_ID, --aws_account_id AWS_ACCOUNT_ID
The ID of the AWS Account that owns the resource (DXGE / VPC, etc) you wish to configure.
-gid SDDC_GROUP_ID, --sddc_group_id SDDC_GROUP_ID
ID for the SDDC group to add prefixes to. Use 'get-group-info' to view a list of SDDC groups and their IDs.
mithilra@b0be83701edd python-client-for-vmware-cloud-on-aws-development % ./pyVMC.py vtc vpc-prefixes -aid 310793149708 -gid 1edeb6b5-8742-6d21-b1f9-0d126ed6be4b
===== Adding/Removing VPC Static Routes =========
Account: 310793149708
1: VPC attachment = tgw-attach-0d62cefdfe050f07c
Select VPC: 1
Enter route(s) to add (space separated), or press Enter to remove all: 172.21.37.0/24
PENDING
............
FINISHED in 00min 34sec

Describe the solution you'd like

A list of vpc attachment ids and prefixes should be allowed to be passed as an option to eliminate the manual user intervention

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions