I got this working by modifying the regex which seems to be explicit for a
specific output, but in reality it could be simpler - unless I am missing
something. This change works for me now and I tested various interface
names (eth0, eth0.100, bond0, eth, WAN, LAN). Thoughts?
$ git diff ip.rb
dif
Yes, but by X you mean they are represented with a digit? I have systems
that do not have interfaces represented with the name and then a digit (WAN,
LAN, BACKUP, etc). The regex looks to not pick those interfaces up.
On Tue, Oct 5, 2010 at 9:31 AM, Joe McDonagh wrote:
> On 10/04/2010 05:35 PM,
On 10/04/2010 05:35 PM, Christopher Johnston wrote:
Does facter support NICs that are not named ethX? I happen to use
custom names on my systems. Just a quick look at the code I don't see
why it wouldn't but the behavior I am seeing is very different. --
You received this message because you ar
On 4 October 2010 15:21, Christopher Johnston wrote:
> I am using 1.58, I see the issue though. I have interfaces called wan and
> lan without a \d+ at the end. Looks they are getting skipped. I will play
> with the regex to see whats up.
The whole way this works is going to be revisited for 2
I am using 1.58, I see the issue though. I have interfaces called wan and
lan without a \d+ at the end. Looks they are getting skipped. I will play
with the regex to see whats up.
On Mon, Oct 4, 2010 at 5:50 PM, Gary Law wrote:
> On 4 October 2010 22:35, Christopher Johnston wrote:
> > Does
On 4 October 2010 22:35, Christopher Johnston wrote:
> Does facter support NICs that are not named ethX? I happen to use custom
> names on my systems. Just a quick look at the code I don't see why it
> wouldn't but the behavior I am seeing is very different.
works for me:
g...@sv01:~ $ facter |