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

added some todo's

parent b2e1ac87
Branches
Tags
No related merge requests found
...@@ -368,7 +368,8 @@ Any non-empty responses are JSON formatted messages. ...@@ -368,7 +368,8 @@ Any non-empty responses are JSON formatted messages.
* key example: * key example:
* `snmp-interfaces:mx1.lon2.uk.geant.net` * `snmp-interfaces:mx1.lon2.uk.geant.net`
* value schema * value schema
```json TODO: this needs to be checked ...
```json
{ {
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
...@@ -541,6 +542,7 @@ Any non-empty responses are JSON formatted messages. ...@@ -541,6 +542,7 @@ Any non-empty responses are JSON formatted messages.
* `opsdb:services:children:12363` * `opsdb:services:children:12363`
* `opsdb:services:parents:14407` * `opsdb:services:parents:14407`
* value schema * value schema
TODO: this needs to be checked ...
```json ```json
{ {
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
......
...@@ -178,6 +178,7 @@ def update_equipment_locations(): ...@@ -178,6 +178,7 @@ def update_equipment_locations():
@app.task() @app.task()
def update_circuit_hierarchy(): def update_circuit_hierarchy():
# TODO: integers are not JSON keys
with db.connection(InventoryTask.config["ops-db"]) as cx: with db.connection(InventoryTask.config["ops-db"]) as cx:
child_to_parents = defaultdict(list) child_to_parents = defaultdict(list)
parent_to_children = defaultdict(list) parent_to_children = defaultdict(list)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment