Finish the core functionality using awscli and boto3. Add corresponding commands. Also, log functionality of aws tool is developed. IP shifting while failover happens is done.
Review Request #667 — Created Feb. 20, 2025 and submitted — Latest diff uploaded
| Information | |
|---|---|
| marychou | |
| APV10 | |
| rel_apv_10_7 | |
| 1383 | |
| Reviewers | |
| timlai, weikai | |
TWSD-59 HA support for APV in AWS Cloud
The added functionalities (the core of this functionlaities is written by python):
1. Authenticate vAPV with AWS account using aws cli.
2. Set ENIs configurations to tell vAPV what ENIs sholud be considered while failover happen.
3. Shift IPs from primary vAPV to secondary vAPV based on the ENI configuration.
4. Add log functionality of this AWS tool.
Add Array CLI and copy the code base of this tool to the corresponding directory.
manual test is finished
cloud aws show log config
cloud aws log off
cloud aws show log config
cloud aws log on
cloud aws show log config
cloud aws show log severity
cloud aws loglevel debug
cloud aws show log severity
cloud aws loglevel info
cloud aws show log severity
cloud aws loglevel warning
cloud aws show log severity
cloud aws loglevel error
cloud aws show log severity
cloud aws loglevel info
cloud aws show log buffer
cloud aws show account
cloud aws login “{your key}” “{your secret key}” “{your region}”
cloud aws show account
cloud aws logout
cloud aws show account
cloud aws set eniconfig eni-0ceb6ccf5b7cd052e eni-0e1f3a4bd67bf3ec8
cloud aws show eniconfig
cloud aws set eniconfig maryeni3 maryeni4
cloud aws show eniconfig
cloud aws remove eniconfig “1”
cloud aws show eniconfig
cloud aws clear eniconfig
cloud aws show eniconfig
cloud aws set eniconfig maryeni1 maryeni2
cloud aws show eniconfig
cloud aws failover trigger
cloud aws failover recover
cloud aws ha enable
cloud aws ha show
turn off primary vAPV
cloud aws ha disable
cloud aws ha show
