A Python-based automation framework for managing VMware Avi Load Balancer resources via REST API. This tool supports parallel execution of test cases and includes a 4-stage validation workflow.
main.py: Core logic and entry point.config.yaml: Configuration for API credentials and test cases.requirements.txt: Python dependency list.
- Install Python 3.8+
- Create a Virtual Environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
- Install Dependencies:
pip install -r requirements.txt
Edit config.yaml to set your Controller URL and credentials:
api_config:
base_url: "https://your-avi-controller"
username: "admin"
password: "..."Run the main script:
python main.py- Parallel Execution: Runs test cases in separate threads.
- Workflow:
- Pre-Fetcher (Data Gathering)
- Pre-Validation (State Check)
- Task (Action/PUT request)
- Post-Validation (Verification)
- Mock Stubs: Includes placeholders for SSH and RDP connectivity checks.