33 lines
597 B
Makefile
33 lines
597 B
Makefile
all: config up
|
|
|
|
.PHONY: bridges-up
|
|
bridges-up:
|
|
brctl show br-frysix 2>/dev/null || brctl addbr br-frysix
|
|
brctl show br-locix 2>/dev/null || brctl addbr br-locix
|
|
ip link set br-frysix up
|
|
ip link set br-locix up
|
|
|
|
|
|
.PHONY: bridges-down
|
|
bridges-down:
|
|
ip link set br-frysix down
|
|
ip link set br-locix down
|
|
brctl delbr br-frysix
|
|
brctl delbr br-locix
|
|
|
|
.PHONY: up
|
|
up:
|
|
sudo containerlab deploy --reconfigure
|
|
|
|
.PHONY: down
|
|
down:
|
|
sudo containerlab destroy
|
|
|
|
.PHONY: inspect
|
|
inspect:
|
|
sudo containerlab inspect
|
|
|
|
.PHONY: config
|
|
config:
|
|
ansible-playbook -i ansible/inventory.yaml ansible/playbook.yaml
|