The Executor Service fails to get "ietf-netconf" module. The below script succeeds to retrieve the module, but then returns exception:
ydk.errors.YServiceProviderError: RPC error occurred; check log for details
Steps to Reproduce
Run the script below and observe the error.
Traceback (most recent call last):
File "/Users/ygorelik/gitlab/ydk-gen/scripts/tests/get_schema.py", line 21, in <module>
es.execute_rpc(ncc, rpc)
File "/Users/ygorelik/venv/lib/python3.7/site-packages/ydk/services/executor_service.py", line 32, in execute_rpc
return self._es.execute_rpc(provider, entity, top_entity)
File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/contextlib.py", line 130, in __exit__
self.gen.throw(type, value, traceback)
File "/Users/ygorelik/venv/lib/python3.7/site-packages/ydk/errors/error_handler.py", line 82, in handle_runtime_error
_raise(_exc)
File "/Users/ygorelik/venv/lib/python3.7/site-packages/ydk/errors/error_handler.py", line 54, in _raise
exec("raise exc from None")
File "<string>", line 1, in <module>
ydk.errors.YServiceProviderError: RPC error occurred; check log for details
Your Script
from ydk.providers import NetconfServiceProvider
from ydk.services import ExecutorService
from ydk.models.ietf import ietf_netconf_monitoring as ietf
from test_utils import enable_logging
import logging
if __name__ == '__main__':
enable_logging(logging.INFO)
ncc = NetconfServiceProvider(
address='127.0.0.1',
username='admin',
password='admin',
port=12022)
rpc = ietf.GetSchema()
rpc.input.identifier = 'ietf-netconf'
es = ExecutorService()
es.execute_rpc(ncc, rpc)
Current Behavior
The Executor Service fails to get "ietf-netconf" module. The below script succeeds to retrieve the module, but then returns exception:
Steps to Reproduce
Run the script below and observe the error.
Your Script
System Information
YDK-0.8.5