RFC: Drop parsing NIC interfaces

I also think we shouldn’t be building our facter. We’ve already discussed this at RFC: Foreman facter

It’s not just puppet/facter NIC parsing, all facters parsers are capable of this. I think this option should be stop parsing NICs completely. The main motivation was for detecting interfaces on baremetal, so that you can easily configure bonds/vlans on complicated setups of networking (e.g. in openstack - tenant, management and other networks).

I like this, however how do we reliably detect them?

I think this caused more headache than it reduced in last years, probably the worst option.

the number of if conditions reflects there are many possibilities. We can see the same thing in our orchestration code. It’s not simple. If we try to refactor or rewrite this code, we’ll end up with new set of if conditions.

Is there a way to reliable detect or distinguish between them?

:dart: I think we already realized that Foreman shouldn’t be the network management tool. If there’s a way to only detect non-virtual interfaces, I’d drop virtual interfaces parsing. If not, I’d even consider dropping the whole parsing besides for primary interface.