Python Client for VMware Cloud on AWS is an open-source Python-based tool. Written in Python, the tool enables VMware Cloud on AWS users to automate the consumption of their VMware Cloud on AWS SDDC.
Other
23
stars
20
forks
source link
vtc vpc-prefixes should include option for vpc attachment id and prefix #183
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.
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
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