summaryrefslogtreecommitdiffstats
path: root/lib/facter/util/ip.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #2346 - Part 1: Added arp fact for LinuxJames Turnbull2011-03-171-0/+7
| | | | | Added facts arp (like the ipaddress etc) facts Added facts arp_interfacename
* Fix for #6495 - Updated interface detectionJames Turnbull2011-03-091-10/+8
| | | | | | | | | | 1. Fixed IP return to not filter lo/localhost and return it as a proper interface 2. Fixed HP-UX netstat return to remove extraneous first line of naming. 3. Updated tests to reflect changes
* (#2270) add IPv6 support to facter core.Daniel Pittman2011-02-171-0/+3
| | | | | | | | | | | | | | | | | | Now that IPocalypse has happened, IPv6 support in Facter core would be nice to have. So, we add the appropriate code to start handling that. The ipaddress6 fact as supplied included some smart code to try determining the "primary" address using DNS to resolve the AAAA record for the host FQDN. While this was smart, it actually didn't work: facter prefers the longest confine list, so the *stupid* mechanisms that were kernel-specific would override the smarter and more portable mechanisms. We strip that code out for now, which also brings this into line with the existing ipaddress fact; improving both would be good, but it should be uniform. Paired-With: Matt Robinson <matt@puppetlabs.com> Paired-With: Max Martin <max@puppetlabs.com>
* Fix #4755: add support for GNU/kFreeBSD platform where missing.Marc Fournier2011-01-311-5/+5
| | | | | | | | | Merged manually to the current state of the art. Minimal conflicts resolved by adding both Darwin and GNU/KFreeBSD to the confine lines. Author: Marc Fournier <marc.fournier@camptocamp.com> Signed-off-by: Daniel Pittman <daniel@puppetlabs.com> Signed-off-by: Rick Bradley <rick@rickbradley.com>
* Adding HP-UX support to Facter's IP factsJames Turnbull2010-06-151-3/+15
| | | | Includes Rspec tests
* Fixed #2938 - interfaces that don't match ^\w+[.:]?\d+ are ignoredJames Turnbull2010-04-241-2/+2
| | | | Thanks to Tim Sharpe for the fix
* Fix errors when alias IP's are definedKurt Keller2009-09-091-0/+7
|
* Fix #2470 - duplicate entries in interfaces factPaul Nasrat2009-08-121-1/+1
| | | | | Solaris orders inet and inet6 seperately. This tests for and fixes this by uniqueing the list. Will probably need work when we get to ipv6 support.
* Facter fix #2231 typoPaul Nasrat2009-05-121-1/+1
| | | | Added a test to pickup typo and fix
* Partial fix for #2191 - Facter compatibility for Ruby 1.9James Turnbull2009-04-271-1/+1
|
* Fixing ifconfig warnings generated on OS XLuke Kanies2009-04-201-10/+6
| | | | | | | | The interface collection regex was leaving trailing ':' characters on the interface names, which meant individual interfaces weren't quite right. Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixed #2132 - support for named interface aliases under linuxJames Turnbull2009-04-211-1/+1
|
* Fixed #2081 - Fixed interfaces fact for vlan subinterfacesJames Turnbull2009-03-171-1/+1
|
* Fixed #2055 - SunoS Interface errorJames Turnbull2009-03-071-1/+1
|
* more consistent indentation and alignment. also removal of trailing whitespaceIan Taylor2009-02-281-11/+11
|
* Fixed #1924 - Fixed lo / lo:0 local interface matchingJames Turnbull2009-02-041-1/+1
|
* Cleaner fix for #1926James Turnbull2009-02-031-1/+1
|
* Added network factJames Turnbull2009-01-271-0/+13
|
* Fixed #1870 - Format all subnet masks as human-readableJames Turnbull2009-01-271-2/+7
|
* Fix bug #1870 and add interface fact support for darwin systemsPaul Nasrat2009-01-151-3/+3
|
* Refactoring the IP support, and fixing #1846.Luke Kanies2009-01-151-29/+49
| | | | | | | | | | | | | | | | I've made the IPMess stuff a lot less messy, and refactored a lot of the util/ip module, including naming it more sensibly. The biggest changes are that I moved the big case statement into a constant and then used a bit of dispatch-style logic to use it, and I eliminated a bunch of duplicate code in the ipmess.rb file. Added some test data for FreeBSD and fixed a bug in my map logic pointed out by Paul Nasrat. I've also fixed #1846, in that the interface list now s/:/_/g. Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixing indentation everywhereLuke Kanies2009-01-151-75/+76
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixes #1582 - Fix MAC address reporting for Linux bonding slave interfacesJames Turnbull2008-09-201-14/+43
|
* Add unit rspec tests for ticket 1425Paul Nasrat2008-08-131-3/+13
|
* Add sample test and strawman solution for IP parsing codePaul Nasrat2008-08-111-8/+14
|
* Fix ticket 1425 on SolarisPaul Nasrat2008-08-081-1/+7
|
* Remove duplicated code pathsPaul Nasrat2008-08-081-36/+4
| | | | Signed-off-by: Paul Nasrat <pnasrat@googlemail.com>
* Partial fix for #1345 - BSD interfaces with aliases now select the first ↵James Turnbull2008-06-211-3/+3
| | | | address by default
* Refactered ipmess.rb and util/ip.rb to support separate *BSD logic for *BSD ↵James Turnbull2008-06-091-5/+35
| | | | aliased interfaces.
* Fixing warnings and interfaces.Luke Kanies2008-05-141-1/+7
| | | | | | | | I was getting warnings on OS X for the IPmess stuff; that's now fixed. Also, I got rid of the internal usage of the Facter.<factname> interface, as I want to get rid of it.
* Fixed Solaris detection of lo0 for ticket #46James Turnbull2008-02-161-1/+1
|
* Added require util ip.rb fileJames Turnbull2008-02-161-0/+62