tunnel-manager: Make the tunnel enabling policy configurable 42/31442/1
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Wed, 3 Dec 2014 12:05:44 +0000 (14:05 +0200)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Thu, 4 Dec 2014 17:23:47 +0000 (19:23 +0200)
commit9eff15e03051a1e82a4002e175543dbd02233300
tree2df49ccc82b6d7cc2eaf1693de4e420f3f9bd88c
parenta55b88c9ddc14dcf3fd1784679a07a41f60a0533
tunnel-manager: Make the tunnel enabling policy configurable

There's no real configurability yet, because only one condition is
supported. Support for more conditions will be added later.

The syntax of the configuration option pretends to conform to some
programming language, but there's no real parser for the language.
A proper parser may be implemented later, but for now the option
values are parsed simply by comparing to a list of predefined string
constants.

Change-Id: I57bbb0cd2b91691415be78f9732aef6b3bebde56
src/modules/tunnel-manager/remote-device.c
src/modules/tunnel-manager/tunnel-manager-config.c
src/modules/tunnel-manager/tunnel-manager-config.h
src/modules/tunnel-manager/tunnel-manager.c
src/modules/tunnel-manager/tunnel-manager.h