juju-solutions / layer-flannel

0 stars 2 forks source link

Detect the default interface #17

Closed mbruzek closed 8 years ago

mbruzek commented 8 years ago

With xenial the interface is ens4 the code was expecting eth0 and the assumption breaks the configuration of the flannel interface.

Changed the default behavior to attempt to detect the default interface when the iface configuration option is None or "".

Take that !

edit: closes #16

lazypower commented 8 years ago

Readme :cop: wants more details about what this does

lazypower commented 8 years ago

🏆 This is a great fix up for #16

I'm over-all really happy with this proposal. One thing I would like to suggest is to put in the status-history which interface it auto-selected so the user has an opportunity to find what interface it picked without remoting into each unit.

juju status-history kubernetes/0 would be good info to have, but its not super critical that go in this merge. Just food for thought for future iterations.