vagrant

https://github.com/mitchellh/vagrant

Ruby

Vagrant is a tool for building and distributing development environments.

VagrantPlugins::GuestNixos::Cap::ConfigureNetworks.get_interfaces

using biosdevname, get all interfaces as a list of hashes, where:
  :kernel      - the kernel's name for the device,
  :ethn        - the calculated ethN-style name converted to integer.
  :mac_address - the permanent mac address. ethN-style name converted to integer.

Source | Google | Stack overflow

Edit

git clone [email protected]:mitchellh/vagrant.git

cd vagrant

open plugins/guests/nixos/cap/configure_networks.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-VagrantPlugins--GuestNixos--Cap--ConfigureNetworks-get_interfaces-for-pr


# Commit to git

git add plugins/guests/nixos/cap/configure_networks.rbgit commit -m "better docs for VagrantPlugins::GuestNixos::Cap::ConfigureNetworks.get_interfaces"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-VagrantPlugins--GuestNixos--Cap--ConfigureNetworks-get_interfaces-for-pr

hub pull-request


# Celebrate!