Issue #9573 has been updated by Krzysztof Wilczynski.

Assignee deleted (Krzysztof Wilczynski)


----------------------------------------
Feature #9573: Add fact that exposes details about bonding interfaces on Linux
https://projects.puppetlabs.com/issues/9573

Author: Krzysztof Wilczynski
Status: Tests Insufficient
Priority: Normal
Assignee: 
Category: 
Target version: 1.7.x
Keywords: 
Branch: 
Affected Facter version: 


I needed a distribution-agnostic fact that was exposing bonding interfaces with 
their configuration details.

Example of the output:

<pre>
root@germany:~# facter -p | grep -i bonding
bonding_bond0_active_slave => eth4
bonding_bond0_mode => active-backup
bonding_bond0_primary_slave => none
bonding_bond0_slaves => eth0,eth4
bonding_bond0_status => up
bonding_bond1_active_slave => eth5
bonding_bond1_mode => active-backup
bonding_bond1_primary_slave => none
bonding_bond1_slaves => eth1,eth5
bonding_bond1_status => up
bonding_bond2_active_slave => eth6
bonding_bond2_mode => active-backup
bonding_bond2_primary_slave => none
bonding_bond2_slaves => eth2,eth6
bonding_bond2_status => up
bonding_interfaces => bond0,bond1,bond2
</pre>

The code can be reviewed here: 
[bonding.rb](https://github.com/kwilczynski/facter-facts/blob/master/bonding.rb);
 or available in the repository: 
[facter-facts](https://github.com/kwilczynski/facter-facts).

I need to write tests for it :-)

KW


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to