[Commotion-admin] [commotion-feed] Allow adding hostnames to olsrd's nameservice plugin (#58)

Dan Staples notifications at github.com
Wed Aug 13 14:32:54 EDT 2014


Currently, due to input validation in olsrd's init script, there is no way to add IP/hostname pairs to the nameservice plugin. The format olsrd expects in its config file for IP/hostname entries is:

    PlParam "1.2.3.4" "nodename"

Olsrd's init script turns `/etc/config/olsrd` UCI entries into the olsrd config file. So for IP/hostname pairs, the option name (the IP address) would contain periods, which is disallowed in UCI.

To solve this issue, we would need to add logic to the olsrd init script to convert some new option, like `hostname` for instance, into the right format for the olsrd config file. So as an example, the following line in `/etc/config/olsrd`:

    option hostname "1.2.3.4/nodename"

would be converted into:

    PlParam "1.2.3.4" "nodename"

in the generated olsrd config file, `/var/run/olsrd.conf`.


---
Reply to this email directly or view it on GitHub:
https://github.com/opentechinstitute/commotion-feed/issues/58
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.chambana.net/pipermail/commotion-admin/attachments/20140813/e72048af/attachment.html>


More information about the Commotion-admin mailing list