Revision 39de55208b8dde961fb3c7ae71c5b7f7ca1ab8fe authored by Faidon Liambotis on 07 June 2017, 13:47:48 UTC, committed by Faidon Liambotis on 07 June 2017, 14:07:34 UTC
Extract the primary interface by looking at the default gateway instead,
and use that in the single place we were hardcoding eth0. We may soon
not use ethN interfaces, and this was already broken in a handful of
cases over the years where the primary one was e.g eth2.

The only downside of this is that errors like plugging in the wrong NIC
of a server won't become installation failures and thus may never be
caught.

Bug: T164444
Change-Id: If377da20cbe7a0ea35c2e2a16659847154a6a2ae
1 parent 5fce2d6
History
File Mode Size
conftool-data
doc
files
hieradata
manifests
modules
utils
.ctags -rw-r--r-- 323 bytes
.gitignore -rw-r--r-- 499 bytes
.gitmodules -rw-r--r-- 717 bytes
.gitreview -rw-r--r-- 101 bytes
.mailmap -rw-r--r-- 9.5 KB
.puppet-lint.rc -rw-r--r-- 239 bytes
.rubocop.yml -rw-r--r-- 848 bytes
.rubocop_todo.yml -rw-r--r-- 11.6 KB
.ruby-version -rw-r--r-- 4 bytes
Gemfile -rw-r--r-- 434 bytes
README -rw-r--r-- 783 bytes
Rakefile -rw-r--r-- 6.0 KB
tox.ini -rw-r--r-- 1.0 KB
typos -rw-r--r-- 400 bytes

README

back to top