[netcf-devel] Gentoo integration / basic questions

Cole Robinson crobinso at redhat.com
Mon Dec 7 17:44:23 UTC 2009


On 12/06/2009 08:33 PM, elias wrote:
> Hi,
> 
> I'm just working on getting netcf integrated into Gentoo. See also:
> http://bugs.gentoo.org/show_bug.cgi?id=295993
> 
> But I have some basic questions first.
> I have installed netcf and put the netcf.aug into 
> /usr/share/augeas/lenses/netcf.aug.
> Is it correct to put the aug file into this directory or should it remain in 
> the default installation path (/usr/share/netcf/lenses).
> 
> I've never used an Augeas based tool before, sorry for this question ;-)
> 
> Is or should ncftool/netcf be able to read existing interfaces?
> So I could just use it on top of another network configuration.
> e.g.:
> 
> - Gentoo's Initsystem creates + configures interfaces
> - netcf provides read-only information about them to further services like 
> libvirt
> 
> Don't worry, my plan is to integrate it fully into Gentoo, but depending on it 
> completely makes it hard establishing it in existing environments, so this 
> read-existing-interfaces capability would be quite interesting, I just don't 
> know whether this is already possible as 'ncftool list' displays nothing here 
> without providing an XML based definition.
> 

netcf is expected to read existing interfaces. For example, Fedora's
installer will set up interface config files in
/etc/sysconfig/network-scripts, and netcf knows how to parse these and
exposes the interface list through its API (and ncftool). If the user
creates a config for a bridge interface and drops it in /etc/..., netcf
will see that as well.

Unless Gentoo is using the same initscripts as Fedora, netcf will need
to be taught how to understand Gentoo network configuration. David sent
an email recently describing how the existing code works and how to go
about expanding it:

https://fedorahosted.org/pipermail/netcf-devel/2009-December/000382.html

- Cole



More information about the netcf-devel mailing list