-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.sh
executable file
·28 lines (21 loc) · 1.04 KB
/
build.sh
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
#!/bin/bash
#apt-get install git python-pip
#sudo pip install pip --upgrade
#sudo pip install setuptools ipaddress pydotplus jinja2 --upgrade
#vagrant destroy -f
wget https://raw.githubusercontent.com/CumulusNetworks/topology_converter/master/topology_converter.py
mkdir -p ./templates/
wget -O ./templates/Vagrantfile.j2 https://raw.githubusercontent.com/CumulusNetworks/topology_converter/master/templates/Vagrantfile.j2
# Write Vagrantfile for Virtualbox (Large Memory)
python ./topology_converter.py ./topology_large_memory.dot
cp ./Vagrantfile ./Vagrantfile-large-memory-vbox
# Write Vagrantfile for Libvirt (Large Memory)
python ./topology_converter.py ./topology_large_memory.dot -p libvirt
cp ./Vagrantfile ./Vagrantfile-large-memory-libvirt
# Write Vagrantfile for Libvirt
python ./topology_converter.py ./topology.dot -p libvirt
cp ./Vagrantfile ./Vagrantfile-kvm
# Write Vagrantfile for Virtualbox
python ./topology_converter.py ./topology.dot
cp ./Vagrantfile ./Vagrantfile-vbox
rm -rfv ./templates ./topology_converter.py ./topology_converter/