Module change subscription not working for YANG module with anyxml type
ratheeshtv opened this issue · 2 comments
I have a YANG model with below snippet
..
container somecontainer {
choice filter-type {
case subtree-filter {
anyxml subtree-filter {
}
}
}
}
..
I am trying to subscribe for module change and when I do edit-config, sysrepo-python throws below error:
ERROR:sysrepo.subscription:<bound method MySubscriber.on_module_have_changed of <my_server.my_subscriber.ConfigChangeSubscriber object at 0x7f344d9f5b70>> callback failed
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/sysrepo/subscription.py", line 221, in module_change_callback
include_implicit_defaults=subscription.include_implicit_defaults,
File "/usr/local/lib/python3.6/dist-packages/sysrepo/session.py", line 499, in get_changes
node=libyang.DNode.new(ctx, node_p[0]),
File "/usr/local/lib/python3.6/dist-packages/libyang/data.py", line 598, in new
raise TypeError("node type %s not implemented" % cdata.schema.nodetype)
TypeError: node type 32 not implemented
If I change the anyxml to string it works fine.
netopeer2-server 1.1.53
sysrepo-python 0.4.2
libyang-python: 1.6.1
Hi @ratheeshtv
sorry not to have replied earlier. The anyxml
node type is not implemented in libyang-python. Could you please create a feature request here? https://github.com/CESNET/libyang-python/issues
Thanks!