gluon/gluon/cmd
Bin Hu 4630cc62d1 Support all API YAML Models by default
Service API Models are defined in gluon/models directory, where each
sub-directory is a model of NFV networking service. An exemplary structure
looks like:

    gluon/models/net-l3vpn/api.yaml

A more generic example looks like:

    gluon/models/<service>/<name>.yaml

Currently, in gluon/cmd/config.py, service model is net-l3vpn only by
default. When a new service model is added, we need to add the new
service model in "service_list" of proton.conf, and restart the service
by something like:

    proton-server --config-file proton.conf

If some user forgets to add it to proton.conf, even if new service model
is defined appropriately, Proton Server only loads net-l3vpn by default.

This patch changes the default model to be all models under gluon/models
directory. This means that if a user adds a service model definition, he
does not have to change proton.conf. By simply restarting proton-server,
all models will be loaded by default. The user needs to change proton.conf
ONLY IF he has specific needs of supporting specific service(s).

So this patch improves usability of adding / removing new service models
on-demand.

The original work is credited to Thomas Hambleton.

Change-Id: If2e5b7225105ca0dbbda4bb85090ce3c86e0e7f8
Signed-off-by: Bin Hu <bh526r@att.com>
2017-04-12 09:49:01 -07:00
..
__init__.py Initial Gluon Code 2016-09-21 19:48:56 +00:00
api.py Support all API YAML Models by default 2017-04-12 09:49:01 -07:00
api_tool.py Support all API YAML Models by default 2017-04-12 09:49:01 -07:00
cli.py Support all API YAML Models by default 2017-04-12 09:49:01 -07:00
config.py Support all API YAML Models by default 2017-04-12 09:49:01 -07:00