-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
40 lines (30 loc) · 1.08 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
###########################################
# Run AVD with various tags #
# #########################################
.PHONY: help
help: ## Display help message
@grep -E '^[0-9a-zA-Z_-]+\.*[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: build
build: ## Build Configs
ansible-playbook playbooks/build.yml
.PHONY: deploy
deploy: ## Deploy Configs via eAPI (direct)
ansible-playbook playbooks/deploy.yml
.PHONY: deploy-cvaas
deploy-cvaas: ## Deploy Configs via CVaaS
ansible-playbook playbooks/deploy-cvaas.yml
.PHONY: onboard-lab
onboard-lab: ## Onboard Lab Devices to CVaaS
ansible-playbook playbooks/onboard_to_cvaas.yml
.PHONY: ping
ping: ## Test Connectivity
ansible-playbook playbooks/ping.yml
.PHONY: inspect-lab
inspect-lab: ## Inspect Running Lab
sudo clab inspect -t clab/campus-l2ls.yml
.PHONY: start-lab
start-lab: ## Start Lab
sudo clab deploy -t clab/campus-l2ls.yml --reconfigure
.PHONY: stop-lab
stop-lab: ## Stop Lab
sudo clab destroy -t clab/campus-l2ls.yml --cleanup