gluon/package/gluon-core
Matthias Schiffer 57adb49de2
gluon-core: add new gluon.site library for convenient access to optional values
The new gluon.site lua library will eventually replace gluon.site_config
(which is hereby deprecated, but will continue to be supported for a
while).

The new gluon.site library will wrap all values to allow traversing
non-existing tables without errors.

    site = require 'gluon.site'
    c = site.a.b.c -- doesn't fail even if a or a.b don't exist

The wrapped values must be unwrapped using call syntax:

    site_name = site.site_name()

Using the call syntax on a non-existing value will return nil. An
alternative default value may be passed instead:

    mac = site.next_node.mac('16:41:95:40:f7:dc')
2017-08-08 13:20:38 +02:00
..
files gluon-core: add interfaces having proto = gluon_mesh to mesh firewall zone 2017-06-27 23:49:56 +02:00
luasrc gluon-core: add new gluon.site library for convenient access to optional values 2017-08-08 13:20:38 +02:00
check_site.lua gluon-core: add a "site seed" to site.conf to seed site-specific random values 2017-06-27 23:00:17 +02:00
Makefile gluon-core: add VXLAN support for gluon_wired protocol 2017-06-27 23:04:50 +02:00