vagrant/Vagrantfile.helpers.rb
def cable(device:, iface:, mac:, port:, remote_port:)
device.vm.network "private_network",
    mac: mac,
    libvirt__tunnel_type: 'udp',
    libvirt__tunnel_local_port: port,
    libvirt__tunnel_port: remote_port,
    libvirt__iface_name: iface,
    auto_config: false
end
# Helper-Function to create Libvirt Point-to-Point connections to simulate cables btw. VMs
Helper-Function to create Libvirt Point-to-Point connections to simulate cables btw.
Helper - Function to create Libvirt Point - to - Point connections to simulate cables btw .
def cable(device:, iface:, mac:, port:, remote_port:)
device.vm.network "private_network",
    mac: mac,
    libvirt__tunnel_type: 'udp',
    libvirt__tunnel_local_port: port,
    libvirt__tunnel_port: remote_port,
    libvirt__iface_name: iface,
    auto_config: false
end
def cable ( device : , iface : , mac : , port : , remote_port : ) device . vm . network "private_network" , mac : mac , libvirt__tunnel_type : 'udp' , libvirt__tunnel_local_port : port , libvirt__tunnel_port : remote_port , libvirt__iface_name : iface , auto_config : false end
Helper-Function to create Libvirt Point-to-Point connections to simulate cables btw.
Helper - Function to create Libvirt Point - to - Point connections to simulate cables btw .
device
iface
mac
port
remote_port