Created
November 21, 2017 17:37
-
-
Save madchap/2c71cc3b86c23adb93a836753c80216e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at | |
# https://docs.vagrantup.com. | |
config.vm.define "leaf1" do |leaf1| | |
# Every Vagrant development environment requires a box. You can search for | |
# boxes at https://vagrantcloud.com/search. | |
leaf1.vm.box = "CumulusCommunity/cumulus-vx" | |
# Disable automatic box update checking. If you disable this, then | |
# boxes will only be checked for updates when the user runs | |
# `vagrant box outdated`. This is not recommended. | |
# config.vm.box_check_update = false | |
# Create a forwarded port mapping which allows access to a specific port | |
# within the machine from a port on the host machine. In the example below, | |
# accessing "localhost:8080" will access port 80 on the guest machine. | |
# NOTE: This will enable public access to the opened port | |
# config.vm.network "forwarded_port", guest: 80, host: 8080 | |
# Create a forwarded port mapping which allows access to a specific port | |
# within the machine from a port on the host machine and only allow access | |
# via 127.0.0.1 to disable public access | |
# config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1" | |
# Create a private network, which allows host-only access to the machine | |
# using a specific IP. | |
# config.vm.network "private_network", ip: "192.168.33.10" | |
leaf1.vm.network "private_network", virtualbox__intnet: "swp1", auto_config: false | |
leaf1.vm.network "private_network", virtualbox__intnet: "swp2", auto_config: false | |
leaf1.vm.network "private_network", virtualbox__intnet: "swp3", auto_config: false | |
leaf1.vm.network "private_network", virtualbox__intnet: "swp4", auto_config: false | |
leaf1.vm.network "private_network", virtualbox__intnet: "swp5", auto_config: false | |
leaf1.vm.network "private_network", virtualbox__intnet: "swp6", auto_config: false | |
leaf1.vm.network "private_network", virtualbox__intnet: "swp7", auto_config: false | |
leaf1.vm.network "private_network", virtualbox__intnet: "swp8", auto_config: false | |
# config.vm.provider "virtualbox" do |vb| | |
# # Display the VirtualBox GUI when booting the machine | |
# vb.gui = true | |
# | |
# # Customize the amount of memory on the VM: | |
# vb.memory = "1024" | |
# end | |
leaf1.vm.provision "shell", path: "leaf1_peerlink.sh" | |
end | |
config.vm.define "leaf2" do |leaf2| | |
# Every Vagrant development environment requires a box. You can search for | |
# boxes at https://vagrantcloud.com/search. | |
leaf2.vm.box = "CumulusCommunity/cumulus-vx" | |
# Disable automatic box update checking. If you disable this, then | |
# boxes will only be checked for updates when the user runs | |
# `vagrant box outdated`. This is not recommended. | |
# config.vm.box_check_update = false | |
# Create a forwarded port mapping which allows access to a specific port | |
# within the machine from a port on the host machine. In the example below, | |
# accessing "localhost:8080" will access port 80 on the guest machine. | |
# NOTE: This will enable public access to the opened port | |
# config.vm.network "forwarded_port", guest: 80, host: 8080 | |
# Create a forwarded port mapping which allows access to a specific port | |
# within the machine from a port on the host machine and only allow access | |
# via 127.0.0.1 to disable public access | |
# config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1" | |
# Create a private network, which allows host-only access to the machine | |
# using a specific IP. | |
# config.vm.network "private_network", ip: "192.168.33.10" | |
leaf2.vm.network "private_network", virtualbox__intnet: "swp1", auto_config: false | |
leaf2.vm.network "private_network", virtualbox__intnet: "swp2", auto_config: false | |
leaf2.vm.network "private_network", virtualbox__intnet: "swp3", auto_config: false | |
leaf2.vm.network "private_network", virtualbox__intnet: "swp4", auto_config: false | |
leaf2.vm.network "private_network", virtualbox__intnet: "swp5", auto_config: false | |
leaf2.vm.network "private_network", virtualbox__intnet: "swp6", auto_config: false | |
leaf2.vm.network "private_network", virtualbox__intnet: "swp7", auto_config: false | |
leaf2.vm.network "private_network", virtualbox__intnet: "swp8", auto_config: false | |
# config.vm.provider "virtualbox" do |vb| | |
# # Display the VirtualBox GUI when booting the machine | |
# vb.gui = true | |
# | |
# # Customize the amount of memory on the VM: | |
# vb.memory = "1024" | |
# end | |
leaf2.vm.provision "shell", path: "leaf2_peerlink.sh" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment