[Interop-dev] [NetJSON] DeviceConfiguration implementation: netjsonconfig

Nemesis (spam-protected)
Tue Oct 6 18:02:04 CEST 2015


Sorry, that was Aaron's repost that was very fast :-)

The direct link is
http://nemesisdesign.net/blog/coding/netjsonconfig-convert-netjson-to-openwrt-uci/

Federico


On 10/06/2015 05:59 PM, Nemesis wrote:
> Hi all,
>
> I've written more about netjsonconfig and its rationale here:
> https://confine.funkfeuer.at/2015/10/netjson-to-uci-config/
>
> Federico
>
>
> On 09/25/2015 04:28 PM, Nemesis wrote:
>> Hi all,
>>
>> over the last two weeks I have been working on an implementation of
>> the DeviceConfiguration spec:
>> https://github.com/openwisp/netjsonconfig
>>
>> The idea is to have a relatively small python library to convert
>> NetJSON to real router configurations, at the moment I'm working
>> exclusively on OpenWRT UCI configs.
>> The openwisp project already has a UCI config generator, but the team
>> is not satisfied with it because adding features requires changing
>> SQL tables, the generated configs are too specific to a few use cases
>> and the generator code is embedded in a ruby on rails web app
>> (OpenWISP Manager), which makes it uninteresting for a lot of other
>> potential users and contributors.
>> The idea for the netjsonconfig library is to keep it small and well
>> documented, so that other more complex apps can easily integrate it
>> if they need.
>>
>> For a practical example see the following test:
>> https://github.com/openwisp/netjsonconfig/blob/master/tests/openwrt/test_wireless.py#L186-L247
>> A few uci config blocks are generated from a NetJSON object.
>> Nothing special really, but this work it's allowing me to test and
>> improve the spec.
>> That's the reason for which I'm opening more issues on github
>> regarding this object and I will be sending more emails about it.
>>
>> The (always up to date) DeviceConfiguration spec and its relative
>> JSON Schema definition are available at the following URLs:
>>
>>   * spec: http://netjson.org/rfc.html#rfc.section.5
>>   * schema: http://netjson.org/rfc.html#DeviceConfiguration-schema
>>
>> Nemesis
>>
>>
>> _______________________________________________
>> Interop-dev mailing list
>> (spam-protected)
>> https://lists.funkfeuer.at/mailman/listinfo/interop-dev
>
>
>
> _______________________________________________
> Interop-dev mailing list
> (spam-protected)
> https://lists.funkfeuer.at/mailman/listinfo/interop-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.funkfeuer.at/pipermail/interop-dev/attachments/20151006/666092a8/attachment.html>


More information about the Interop-dev mailing list