gui CHANGE link schemas from data
open schema in YANG explorer by clicking on schema name of the nodes
in configuration view
diff --git a/backend/connections.py b/backend/connections.py
index 94a05bb..fb0b13b 100644
--- a/backend/connections.py
+++ b/backend/connections.py
@@ -251,7 +251,11 @@
def _create_child(ctx, parent, child_def):
- module = ctx.get_module(child_def['info']['module'])
+ at = child_def['info']['module'].find('@')
+ if at == -1:
+ module = ctx.get_module(child_def['info']['module'])
+ else:
+ module = ctx.get_module(child_def['info']['module'][:at], child_def['info']['module'][at + 1:])
# print('child: ' + json.dumps(child_def))
# print('parent: ' + parent.schema().name())
# print('module: ' + module.name())
diff --git a/backend/data.py b/backend/data.py
index cfcfdbd..935d974 100644
--- a/backend/data.py
+++ b/backend/data.py
@@ -63,7 +63,10 @@
info = {}
info["type"] = schema.nodetype()
- info["module"] = schema.module().name()
+ if schema.module().rev_size():
+ info["module"] = schema.module().name() + '@' + schema.module().rev().date()
+ else:
+ info["module"] = schema.module().name()
info["name"] = schema.name()
info["dsc"] = schema.dsc()
info["config"] = True if schema.flags() & yang.LYS_CONFIG_W else False