Commit Graph

16 Commits

Author SHA1 Message Date
Alex Dadgar
77c1ebd14f Handle interfaces that only have link-local addrs
This PR changes the fingerprint handling of network interfaces that only
contain link local addresses. The new behavior is to prefer globally
routable addresses and if none are detected, to fall back to link local
addresses if the operator hasn't disallowed it. This gives us pre 0.6
behavior for interfaces with only link local addresses but 0.6+ behavior
for IPv6 interfaces that will always have a link-local address.

Fixes https://github.com/hashicorp/nomad/issues/3005

/cc diptanuc
2017-08-23 15:32:22 -07:00
Diptanu Choudhury
b0a20b4dc9 Fixed typo 2017-04-10 11:45:11 -07:00
Diptanu Choudhury
536fdde121 Added a test 2017-04-08 13:44:21 -07:00
Diptanu Choudhury
bee4b57368 Removed redundant code 2017-04-07 18:28:22 -07:00
Diptanu Choudhury
ad00ec861b Ignoring link local addresses 2017-04-07 16:04:36 -07:00
Diptanu Choudhury
94f9542a04 Finding the appropriate cidr block 2017-04-06 16:04:59 -07:00
Diptanu Choudhury
8b93d40298 Making the fingerprinter support ipv6 ips 2017-04-06 01:06:32 -07:00
Alex Dadgar
5d4e0f18bc Updated AWS speeds and network_speed now overrides
This PR:

* Makes AWS network speeds more granular
* Makes `network_speed` an override and not a default
* Adds a default of 1000 MBits if no network link speed is detected.

Fixes #1985
2016-11-15 13:55:51 -08:00
Sean Chittenden
c26bdebc28 Improve readability: use of a switch vs two if's 2016-07-10 20:18:57 -07:00
Sean Chittenden
fd9bcabaa8 Emit various debugging information with the results of the fingerprinter 2016-05-09 12:21:51 -07:00
Sean Chittenden
e5272cea2b Move network detection code to Linux-specific build
Non-Linux build targets get the current default of 0.  This will allow
platform specific fingerprinting for network capabilities.
2016-05-09 11:56:35 -07:00
Alex Dadgar
b818379576 add nomad fingerprinter 2016-03-22 17:12:30 -07:00
Alex Dadgar
be5d2d6176 Update client fingerprinters 2016-01-26 10:08:01 -08:00
Alex Dadgar
5e1f7c41a9 Allow no interfaces in network fingerprinter 2015-11-18 19:01:39 -08:00
Chris Bednarski
472d1db1c0 Merge branch 'master' into f-windows-networking 2015-11-06 13:32:28 -08:00
Chris Bednarski
835b2041ee Use the same network fingerprinter for *nix and windows 2015-10-30 16:48:02 -07:00