Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parsing /etc/network/interfaces

Is there a C or C++ library available for parsing, editing, and writing /etc/network/interfaces on Linux (in the form described at http://manpages.ubuntu.com/manpages/hardy/man5/interfaces.5.html)?

like image 569
Jason C Avatar asked Oct 28 '13 04:10

Jason C


1 Answers

http://augeas.net/

Augeas is a configuration editing tool. It parses configuration files in their native formats and transforms them into a tree. Configuration changes are made by manipulating this tree and saving it back into native config files.

like image 159
Jayen Avatar answered Oct 10 '22 00:10

Jayen