I fixed the problem.
The issue was that I used a slash at the end of the path which I set here:
ret = aug_set(myAug, "/augeas/load/Interfaces/incl", path);
Example: /etc/network/interfaces/ instead of /etc/network/interfaces
There was no error message generated but augeas just did not save the changes back to the file.
I uploaded a working example to my git repo:
Maybe it is helpful for someone else.
Thanks and best regards,
Am 11.01.2016 um 09:38 schrieb Raphaël Pinson <raphael pinson camptocamp com>: