Closed MaxG4 closed 7 years ago
Hi! This looks to be an issue with the vagrant-cumulus plugin using Bundler
directly but not including it within the runtime dependencies. Vagrant's plugin manager no longer uses Bundler internally to manage plugins. The author of the vagrant-cumulus plugin will need to update their plugin to either explicitly require Bundler in their dependencies, or (the better option) detect if bundler is available prior to use.
Cheers!
Please note that the Vagrant issue tracker is reserved for bug reports and enhancements. For general usage questions, please use the Vagrant mailing list: https://groups.google.com/forum/#!forum/vagrant-up. Thank you!
Vagrant version
Vagrant 1.9.1
Host operating system
MacOS 10.12.2
Guest operating system
CentOS & Cumulus Linux
Vagrantfile
Created by Topology-Converter v4.5.1
https://github.com/cumulusnetworks/topology_converter
using topology data from: topology_kvm.dot
#
NOTE: in order to use this Vagrantfile you will need:
-Vagrant(v1.8.1+) installed: http://www.vagrantup.com/downloads
-Cumulus Plugin for Vagrant installed: $ vagrant plugin install vagrant-cumulus
-the "helper_scripts" directory that comes packaged with topology-converter.py
-Virtualbox installed: https://www.virtualbox.org/wiki/Downloads
Check required plugins
REQUIRED_PLUGINS = %w(vagrant-cumulus) exit unless REQUIRED_PLUGINS.all? do |plugin| Vagrant.has_plugin?(plugin) || ( puts "The #{plugin} plugin is required. Please install it with:" puts "$ vagrant plugin install #{plugin}" false ) end
$script = <<-SCRIPT if grep -q -i 'cumulus' /etc/lsb-release &> /dev/null; then echo "### RUNNING CUMULUS EXTRA CONFIG ###" source /etc/lsb-release if [[ $DISTRIB_RELEASE =~ ^2.* ]]; then echo " INFO: Detected a 2.5.x Based Release"
else echo "### Rebooting to Apply Remap..." reboot fi SCRIPT
Vagrant.configure("2") do |config| wbid = 1478207602
config.vm.provider "virtualbox" do |v| v.gui=false
end
DEFINE VM for oob-mgmt-server
config.vm.define "oob-mgmt-server" do |device| device.vm.hostname = "oob-mgmt-server" device.vm.box = "yk0/ubuntu-xenial" device.vm.provider "virtualbox" do |v| v.name = "1478207602_oob-mgmt-server" v.memory = 1024 end
see note here: https://github.com/pradels/vagrant-libvirt#synced-folders
if [ -d "/etc/udev/rules.d/70-persistent-net.rules" ]; then rm -rfv /etc/udev/rules.d/70-persistent-net.rules &> /dev/null fi delete_udev_directory
device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:6b --> eth0" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:6b", NAME="eth0", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:5f --> eth1" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:5f", NAME="eth1", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule
echo " INFO: Adding UDEV Rule: Vagrant interface = eth0" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{ifindex}=="2", NAME="eth0", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules echo "#### UDEV Rules (/etc/udev/rules.d/70-persistent-net.rules) ####" cat /etc/udev/rules.d/70-persistent-net.rules vagrant_interface_rule
Run Any Platform Specific Code and Apply the interface Re-map
end
DEFINE VM for oob-mgmt-switch
config.vm.define "oob-mgmt-switch" do |device| device.vm.hostname = "oob-mgmt-switch" device.vm.box = "CumulusCommunity/cumulus-vx" device.vm.box_version = "3.1.1" device.vm.provider "virtualbox" do |v| v.name = "1478207602_oob-mgmt-switch" v.memory = 256 end
see note here: https://github.com/pradels/vagrant-libvirt#synced-folders
if [ -d "/etc/udev/rules.d/70-persistent-net.rules" ]; then rm -rfv /etc/udev/rules.d/70-persistent-net.rules &> /dev/null fi delete_udev_directory
device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:6a --> eth0" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:6a", NAME="eth0", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:60 --> swp1" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:60", NAME="swp1", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:4b --> swp2" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:4b", NAME="swp2", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:54 --> swp3" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:54", NAME="swp3", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:05 --> swp4" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:05", NAME="swp4", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:56 --> swp5" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:56", NAME="swp5", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:25 --> swp6" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:25", NAME="swp6", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:45 --> swp7" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:45", NAME="swp7", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:34 --> swp8" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:34", NAME="swp8", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:3e --> swp9" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:3e", NAME="swp9", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:39 --> swp10" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:39", NAME="swp10", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:69 --> swp11" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:69", NAME="swp11", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:10 --> swp12" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:10", NAME="swp12", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:55 --> swp13" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:55", NAME="swp13", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:48 --> swp14" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:48", NAME="swp14", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:40 --> swp15" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:40", NAME="swp15", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule
echo " INFO: Adding UDEV Rule: Vagrant interface = eth0" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{ifindex}=="2", NAME="eth0", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules echo "#### UDEV Rules (/etc/udev/rules.d/70-persistent-net.rules) ####" cat /etc/udev/rules.d/70-persistent-net.rules vagrant_interface_rule
Run Any Platform Specific Code and Apply the interface Re-map
end
DEFINE VM for exit02
config.vm.define "exit02" do |device| device.vm.hostname = "exit02" device.vm.box = "CumulusCommunity/cumulus-vx" device.vm.box_version = "3.1.1" device.vm.provider "virtualbox" do |v| v.name = "1478207602_exit02" v.memory = 512 end
see note here: https://github.com/pradels/vagrant-libvirt#synced-folders
if [ -d "/etc/udev/rules.d/70-persistent-net.rules" ]; then rm -rfv /etc/udev/rules.d/70-persistent-net.rules &> /dev/null fi delete_udev_directory
device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: a0:00:00:00:00:42 --> eth0" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="a0:00:00:00:00:42", NAME="eth0", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:0d --> swp1" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:0d", NAME="swp1", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:47 --> swp44" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:47", NAME="swp44", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:37 --> swp45" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:37", NAME="swp45", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:38 --> swp46" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:38", NAME="swp46", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:3c --> swp47" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:3c", NAME="swp47", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:3d --> swp48" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:3d", NAME="swp48", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:2d --> swp49" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:2d", NAME="swp49", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:1a --> swp50" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:1a", NAME="swp50", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:26 --> swp51" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:26", NAME="swp51", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:5d --> swp52" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:5d", NAME="swp52", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule
echo " INFO: Adding UDEV Rule: Vagrant interface = vagrant" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{ifindex}=="2", NAME="vagrant", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules echo "#### UDEV Rules (/etc/udev/rules.d/70-persistent-net.rules) ####" cat /etc/udev/rules.d/70-persistent-net.rules vagrant_interface_rule
Run Any Platform Specific Code and Apply the interface Re-map
end
DEFINE VM for exit01
config.vm.define "exit01" do |device| device.vm.hostname = "exit01" device.vm.box = "CumulusCommunity/cumulus-vx" device.vm.box_version = "3.1.1" device.vm.provider "virtualbox" do |v| v.name = "1478207602_exit01" v.memory = 512 end
see note here: https://github.com/pradels/vagrant-libvirt#synced-folders
if [ -d "/etc/udev/rules.d/70-persistent-net.rules" ]; then rm -rfv /etc/udev/rules.d/70-persistent-net.rules &> /dev/null fi delete_udev_directory
device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: a0:00:00:00:00:41 --> eth0" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="a0:00:00:00:00:41", NAME="eth0", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:53 --> swp1" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:53", NAME="swp1", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:09 --> swp44" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:09", NAME="swp44", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:4c --> swp45" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:4c", NAME="swp45", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:4d --> swp46" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:4d", NAME="swp46", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:13 --> swp47" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:13", NAME="swp47", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:14 --> swp48" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:14", NAME="swp48", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:2c --> swp49" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:2c", NAME="swp49", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:19 --> swp50" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:19", NAME="swp50", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:0a --> swp51" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:0a", NAME="swp51", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:63 --> swp52" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:63", NAME="swp52", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule
echo " INFO: Adding UDEV Rule: Vagrant interface = vagrant" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{ifindex}=="2", NAME="vagrant", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules echo "#### UDEV Rules (/etc/udev/rules.d/70-persistent-net.rules) ####" cat /etc/udev/rules.d/70-persistent-net.rules vagrant_interface_rule
Run Any Platform Specific Code and Apply the interface Re-map
end
DEFINE VM for spine02
config.vm.define "spine02" do |device| device.vm.hostname = "spine02" device.vm.box = "CumulusCommunity/cumulus-vx" device.vm.box_version = "3.1.1" device.vm.provider "virtualbox" do |v| v.name = "1478207602_spine02" v.memory = 512 end
see note here: https://github.com/pradels/vagrant-libvirt#synced-folders
if [ -d "/etc/udev/rules.d/70-persistent-net.rules" ]; then rm -rfv /etc/udev/rules.d/70-persistent-net.rules &> /dev/null fi delete_udev_directory
device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: a0:00:00:00:00:22 --> eth0" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="a0:00:00:00:00:22", NAME="eth0", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:2b --> swp1" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:2b", NAME="swp1", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:68 --> swp2" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:68", NAME="swp2", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:20 --> swp3" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:20", NAME="swp3", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:4f --> swp4" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:4f", NAME="swp4", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:5e --> swp29" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:5e", NAME="swp29", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:64 --> swp30" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:64", NAME="swp30", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:51 --> swp31" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:51", NAME="swp31", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:42 --> swp32" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:42", NAME="swp32", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule
echo " INFO: Adding UDEV Rule: Vagrant interface = vagrant" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{ifindex}=="2", NAME="vagrant", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules echo "#### UDEV Rules (/etc/udev/rules.d/70-persistent-net.rules) ####" cat /etc/udev/rules.d/70-persistent-net.rules vagrant_interface_rule
Run Any Platform Specific Code and Apply the interface Re-map
end
DEFINE VM for spine01
config.vm.define "spine01" do |device| device.vm.hostname = "spine01" device.vm.box = "CumulusCommunity/cumulus-vx" device.vm.box_version = "3.1.1" device.vm.provider "virtualbox" do |v| v.name = "1478207602_spine01" v.memory = 512 end
see note here: https://github.com/pradels/vagrant-libvirt#synced-folders
if [ -d "/etc/udev/rules.d/70-persistent-net.rules" ]; then rm -rfv /etc/udev/rules.d/70-persistent-net.rules &> /dev/null fi delete_udev_directory
device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: a0:00:00:00:00:21 --> eth0" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="a0:00:00:00:00:21", NAME="eth0", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:5c --> swp1" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:5c", NAME="swp1", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:2f --> swp2" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:2f", NAME="swp2", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:58 --> swp3" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:58", NAME="swp3", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:44 --> swp4" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:44", NAME="swp4", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:27 --> swp29" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:27", NAME="swp29", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:0b --> swp30" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:0b", NAME="swp30", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:50 --> swp31" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:50", NAME="swp31", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:41 --> swp32" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:41", NAME="swp32", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule
echo " INFO: Adding UDEV Rule: Vagrant interface = vagrant" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{ifindex}=="2", NAME="vagrant", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules echo "#### UDEV Rules (/etc/udev/rules.d/70-persistent-net.rules) ####" cat /etc/udev/rules.d/70-persistent-net.rules vagrant_interface_rule
Run Any Platform Specific Code and Apply the interface Re-map
end
DEFINE VM for leaf04
config.vm.define "leaf04" do |device| device.vm.hostname = "leaf04" device.vm.box = "CumulusCommunity/cumulus-vx" device.vm.box_version = "3.1.1" device.vm.provider "virtualbox" do |v| v.name = "1478207602_leaf04" v.memory = 512 end
see note here: https://github.com/pradels/vagrant-libvirt#synced-folders
if [ -d "/etc/udev/rules.d/70-persistent-net.rules" ]; then rm -rfv /etc/udev/rules.d/70-persistent-net.rules &> /dev/null fi delete_udev_directory
device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: a0:00:00:00:00:14 --> eth0" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="a0:00:00:00:00:14", NAME="eth0", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:66 --> swp1" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:66", NAME="swp1", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:33 --> swp2" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:33", NAME="swp2", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:1d --> swp45" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:1d", NAME="swp45", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:1e --> swp46" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:1e", NAME="swp46", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:3a --> swp47" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:3a", NAME="swp47", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:3b --> swp48" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:3b", NAME="swp48", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:36 --> swp49" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:36", NAME="swp49", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:07 --> swp50" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:07", NAME="swp50", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:43 --> swp51" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:43", NAME="swp51", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:4e --> swp52" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:4e", NAME="swp52", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule
echo " INFO: Adding UDEV Rule: Vagrant interface = vagrant" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{ifindex}=="2", NAME="vagrant", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules echo "#### UDEV Rules (/etc/udev/rules.d/70-persistent-net.rules) ####" cat /etc/udev/rules.d/70-persistent-net.rules vagrant_interface_rule
Run Any Platform Specific Code and Apply the interface Re-map
end
DEFINE VM for leaf02
config.vm.define "leaf02" do |device| device.vm.hostname = "leaf02" device.vm.box = "CumulusCommunity/cumulus-vx" device.vm.box_version = "3.1.1" device.vm.provider "virtualbox" do |v| v.name = "1478207602_leaf02" v.memory = 512 end
see note here: https://github.com/pradels/vagrant-libvirt#synced-folders
if [ -d "/etc/udev/rules.d/70-persistent-net.rules" ]; then rm -rfv /etc/udev/rules.d/70-persistent-net.rules &> /dev/null fi delete_udev_directory
device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: a0:00:00:00:00:12 --> eth0" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="a0:00:00:00:00:12", NAME="eth0", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:18 --> swp1" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:18", NAME="swp1", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:1c --> swp2" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:1c", NAME="swp2", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:0e --> swp45" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:0e", NAME="swp45", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:0f --> swp46" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:0f", NAME="swp46", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:61 --> swp47" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:61", NAME="swp47", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:62 --> swp48" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:62", NAME="swp48", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:12 --> swp49" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:12", NAME="swp49", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:02 --> swp50" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:02", NAME="swp50", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:2e --> swp51" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:2e", NAME="swp51", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:67 --> swp52" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:67", NAME="swp52", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule
echo " INFO: Adding UDEV Rule: Vagrant interface = vagrant" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{ifindex}=="2", NAME="vagrant", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules echo "#### UDEV Rules (/etc/udev/rules.d/70-persistent-net.rules) ####" cat /etc/udev/rules.d/70-persistent-net.rules vagrant_interface_rule
Run Any Platform Specific Code and Apply the interface Re-map
end
DEFINE VM for leaf03
config.vm.define "leaf03" do |device| device.vm.hostname = "leaf03" device.vm.box = "CumulusCommunity/cumulus-vx" device.vm.box_version = "3.1.1" device.vm.provider "virtualbox" do |v| v.name = "1478207602_leaf03" v.memory = 512 end
see note here: https://github.com/pradels/vagrant-libvirt#synced-folders
if [ -d "/etc/udev/rules.d/70-persistent-net.rules" ]; then rm -rfv /etc/udev/rules.d/70-persistent-net.rules &> /dev/null fi delete_udev_directory
device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: a0:00:00:00:00:13 --> eth0" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="a0:00:00:00:00:13", NAME="eth0", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:29 --> swp1" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:29", NAME="swp1", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:24 --> swp2" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:24", NAME="swp2", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:30 --> swp45" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:30", NAME="swp45", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:31 --> swp46" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:31", NAME="swp46", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:59 --> swp47" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:59", NAME="swp47", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:5a --> swp48" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:5a", NAME="swp48", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:35 --> swp49" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:35", NAME="swp49", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:06 --> swp50" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:06", NAME="swp50", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:57 --> swp51" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:57", NAME="swp51", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:1f --> swp52" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:1f", NAME="swp52", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule
echo " INFO: Adding UDEV Rule: Vagrant interface = vagrant" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{ifindex}=="2", NAME="vagrant", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules echo "#### UDEV Rules (/etc/udev/rules.d/70-persistent-net.rules) ####" cat /etc/udev/rules.d/70-persistent-net.rules vagrant_interface_rule
Run Any Platform Specific Code and Apply the interface Re-map
end
DEFINE VM for leaf01
config.vm.define "leaf01" do |device| device.vm.hostname = "leaf01" device.vm.box = "CumulusCommunity/cumulus-vx" device.vm.box_version = "3.1.1" device.vm.provider "virtualbox" do |v| v.name = "1478207602_leaf01" v.memory = 512 end
see note here: https://github.com/pradels/vagrant-libvirt#synced-folders
if [ -d "/etc/udev/rules.d/70-persistent-net.rules" ]; then rm -rfv /etc/udev/rules.d/70-persistent-net.rules &> /dev/null fi delete_udev_directory
device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: a0:00:00:00:00:11 --> eth0" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="a0:00:00:00:00:11", NAME="eth0", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:04 --> swp1" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:04", NAME="swp1", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:16 --> swp2" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:16", NAME="swp2", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:21 --> swp45" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:21", NAME="swp45", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:22 --> swp46" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:22", NAME="swp46", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:49 --> swp47" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:49", NAME="swp47", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:4a --> swp48" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:4a", NAME="swp48", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:11 --> swp49" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:11", NAME="swp49", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:01 --> swp50" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:01", NAME="swp50", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:5b --> swp51" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:5b", NAME="swp51", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:2a --> swp52" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:2a", NAME="swp52", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule
echo " INFO: Adding UDEV Rule: Vagrant interface = vagrant" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{ifindex}=="2", NAME="vagrant", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules echo "#### UDEV Rules (/etc/udev/rules.d/70-persistent-net.rules) ####" cat /etc/udev/rules.d/70-persistent-net.rules vagrant_interface_rule
Run Any Platform Specific Code and Apply the interface Re-map
end
DEFINE VM for edge01
config.vm.define "edge01" do |device| device.vm.hostname = "edge01" device.vm.box = "yk0/ubuntu-xenial" device.vm.provider "virtualbox" do |v| v.name = "1478207602_edge01" v.memory = 512 end
see note here: https://github.com/pradels/vagrant-libvirt#synced-folders
if [ -d "/etc/udev/rules.d/70-persistent-net.rules" ]; then rm -rfv /etc/udev/rules.d/70-persistent-net.rules &> /dev/null fi delete_udev_directory
device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: a0:00:00:00:00:51 --> eth0" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="a0:00:00:00:00:51", NAME="eth0", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:52 --> eth1" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:52", NAME="eth1", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:0c --> eth2" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:0c", NAME="eth2", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule
echo " INFO: Adding UDEV Rule: Vagrant interface = vagrant" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{ifindex}=="2", NAME="vagrant", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules echo "#### UDEV Rules (/etc/udev/rules.d/70-persistent-net.rules) ####" cat /etc/udev/rules.d/70-persistent-net.rules vagrant_interface_rule
Run Any Platform Specific Code and Apply the interface Re-map
end
DEFINE VM for server01
config.vm.define "server01" do |device| device.vm.hostname = "server01" device.vm.box = "CumulusCommunity/cumulus-vx" device.vm.box_version = "3.1.1" device.vm.provider "virtualbox" do |v| v.name = "1478207602_server01" v.memory = 512 end
see note here: https://github.com/pradels/vagrant-libvirt#synced-folders
if [ -d "/etc/udev/rules.d/70-persistent-net.rules" ]; then rm -rfv /etc/udev/rules.d/70-persistent-net.rules &> /dev/null fi delete_udev_directory
device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: a0:00:00:00:00:31 --> eth0" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="a0:00:00:00:00:31", NAME="eth0", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:03 --> eth1" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:03", NAME="eth1", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:17 --> eth2" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:17", NAME="eth2", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule
echo " INFO: Adding UDEV Rule: Vagrant interface = vagrant" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{ifindex}=="2", NAME="vagrant", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules echo "#### UDEV Rules (/etc/udev/rules.d/70-persistent-net.rules) ####" cat /etc/udev/rules.d/70-persistent-net.rules vagrant_interface_rule
Run Any Platform Specific Code and Apply the interface Re-map
end
DEFINE VM for server03
config.vm.define "server03" do |device| device.vm.hostname = "server03" device.vm.box = "CumulusCommunity/cumulus-vx" device.vm.box_version = "3.1.1" device.vm.provider "virtualbox" do |v| v.name = "1478207602_server03" v.memory = 512 end
see note here: https://github.com/pradels/vagrant-libvirt#synced-folders
if [ -d "/etc/udev/rules.d/70-persistent-net.rules" ]; then rm -rfv /etc/udev/rules.d/70-persistent-net.rules &> /dev/null fi delete_udev_directory
device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: a0:00:00:00:00:33 --> eth0" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="a0:00:00:00:00:33", NAME="eth0", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:28 --> eth1" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:28", NAME="eth1", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:65 --> eth2" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:65", NAME="eth2", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule
echo " INFO: Adding UDEV Rule: Vagrant interface = vagrant" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{ifindex}=="2", NAME="vagrant", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules echo "#### UDEV Rules (/etc/udev/rules.d/70-persistent-net.rules) ####" cat /etc/udev/rules.d/70-persistent-net.rules vagrant_interface_rule
Run Any Platform Specific Code and Apply the interface Re-map
end
DEFINE VM for server02
config.vm.define "server02" do |device| device.vm.hostname = "server02" device.vm.box = "CumulusCommunity/cumulus-vx" device.vm.box_version = "3.1.1" device.vm.provider "virtualbox" do |v| v.name = "1478207602_server02" v.memory = 512 end
see note here: https://github.com/pradels/vagrant-libvirt#synced-folders
if [ -d "/etc/udev/rules.d/70-persistent-net.rules" ]; then rm -rfv /etc/udev/rules.d/70-persistent-net.rules &> /dev/null fi delete_udev_directory
device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: a0:00:00:00:00:32 --> eth0" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="a0:00:00:00:00:32", NAME="eth0", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:15 --> eth1" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:15", NAME="eth1", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:1b --> eth2" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:1b", NAME="eth2", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule
echo " INFO: Adding UDEV Rule: Vagrant interface = vagrant" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{ifindex}=="2", NAME="vagrant", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules echo "#### UDEV Rules (/etc/udev/rules.d/70-persistent-net.rules) ####" cat /etc/udev/rules.d/70-persistent-net.rules vagrant_interface_rule
Run Any Platform Specific Code and Apply the interface Re-map
end
DEFINE VM for server04
config.vm.define "server04" do |device| device.vm.hostname = "server04" device.vm.box = "CumulusCommunity/cumulus-vx" device.vm.box_version = "3.1.1" device.vm.provider "virtualbox" do |v| v.name = "1478207602_server04" v.memory = 512 end
see note here: https://github.com/pradels/vagrant-libvirt#synced-folders
if [ -d "/etc/udev/rules.d/70-persistent-net.rules" ]; then rm -rfv /etc/udev/rules.d/70-persistent-net.rules &> /dev/null fi delete_udev_directory
device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: a0:00:00:00:00:34 --> eth0" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="a0:00:00:00:00:34", NAME="eth0", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:23 --> eth1" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:23", NAME="eth1", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:32 --> eth2" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:32", NAME="eth2", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule
echo " INFO: Adding UDEV Rule: Vagrant interface = vagrant" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{ifindex}=="2", NAME="vagrant", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules echo "#### UDEV Rules (/etc/udev/rules.d/70-persistent-net.rules) ####" cat /etc/udev/rules.d/70-persistent-net.rules vagrant_interface_rule
Run Any Platform Specific Code and Apply the interface Re-map
end
DEFINE VM for internet
config.vm.define "internet" do |device| device.vm.hostname = "internet" device.vm.box = "CumulusCommunity/cumulus-vx" device.vm.box_version = "3.1.1" device.vm.provider "virtualbox" do |v| v.name = "1478207602_internet" v.memory = 256 end
see note here: https://github.com/pradels/vagrant-libvirt#synced-folders
if [ -d "/etc/udev/rules.d/70-persistent-net.rules" ]; then rm -rfv /etc/udev/rules.d/70-persistent-net.rules &> /dev/null fi delete_udev_directory
device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:3f --> eth0" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:3f", NAME="eth0", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:08 --> swp1" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:08", NAME="swp1", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule device.vm.provision :shell , :inline => <<-udev_rule echo " INFO: Adding UDEV Rule: 44:38:39:00:00:46 --> swp2" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="44:38:39:00:00:46", NAME="swp2", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules udev_rule
echo " INFO: Adding UDEV Rule: Vagrant interface = swp48" echo 'ACTION=="add", SUBSYSTEM=="net", ATTR{ifindex}=="2", NAME="swp48", SUBSYSTEMS=="pci"' >> /etc/udev/rules.d/70-persistent-net.rules echo "#### UDEV Rules (/etc/udev/rules.d/70-persistent-net.rules) ####" cat /etc/udev/rules.d/70-persistent-net.rules vagrant_interface_rule
Run Any Platform Specific Code and Apply the interface Re-map
end
end
Debug output
https://gist.github.com/MaxG4/5ac75df8360b73556aaf36941843dd83
Expected behavior
What should have happened?
Servers and switches should be spun up in the topology outlined.
issue occurs during Vagrant initialization
Actual behavior
What actually happened?
Error loading plugin
Steps to reproduce
References
Are there any other GitHub issues (open or closed) that should be linked here? For example: