Skip to content
Snippets Groups Projects
Commit a6825a1d authored by Erik Reid's avatar Erik Reid
Browse files

added /poller/gws/indirect -> /poller/service/gws_indirect

parent d8cc7c22
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,12 @@ These endpoints are intended for use by BRIAN.
.. autofunction:: inventory_provider.routes.poller.gws_direct
/poller/gws/direct
---------------------------------
.. autofunction:: inventory_provider.routes.poller.gws_indirect
/poller/services</type>
---------------------------------
......@@ -657,7 +663,7 @@ def gws_direct():
inventory_provider.routes.poller.GWS_DIRECT_DATA_SCHEMA
WARNING: interface tags in the `gws-direct` section of the config data
should be unique for each nren/isp/hostname combination. i.e. if there
should be unique for each nren/isp combination. i.e. if there
are multiple community strings in use for a particular host, then please
keep the interface tags unique.
......@@ -762,3 +768,17 @@ def get_services(service_type=None):
redis.set(cache_key, result.encode('utf-8'))
return Response(result, mimetype='application/json')
@routes.route("/gws/indirect", methods=['GET', 'POST'])
@common.require_accepts_json
def gws_indirect():
"""
Handler for `/poller/gws/indirect`
Same as `/poller/services/gws_indirect`
cf. :meth:`inventory_provider.routes.poller.get_services`
:return:
"""
return get_services(service_type='geant_ip')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment