Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YError exception not raised as expected #773

Closed
111pontes opened this issue Apr 30, 2018 · 1 comment
Closed

YError exception not raised as expected #773

111pontes opened this issue Apr 30, 2018 · 1 comment
Assignees
Labels

Comments

@111pontes
Copy link
Collaborator

Issue tracker is ONLY used for reporting bugs. Please use the YDK Community for any support issues.

Expected Behavior

YDK should generate YError exceptions.

Current Behavior

YDK generates RuntimeError exception when an invalid namespace is sent in a NETCONF subtree filter.

Steps to Reproduce

Using Path API, send a NETCONF get RPC with filter:

<netconf-state xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring2">
  <schemas/>
</netconf-state>

Logs

RuntimeError: YServiceProviderError: <?xml version="1.0"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <rpc-error>
    <error-type>protocol</error-type>
    <error-tag>unknown-namespace</error-tag>
    <error-severity>error</error-severity>
    <error-info>
      <bad-element>netconf-state</bad-element>
      <bad-namespace>urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring2</bad-namespace>
    </error-info>
  </rpc-error>
</rpc-reply>

System Information

$ python --version
Python 3.5.2
$ pip list | grep ydk
ydk                     0.7.1
ydk-models-cisco-ios-xr 6.3.2
ydk-models-ietf         0.1.5
$
@ygorelik
Copy link
Collaborator

Could not reproduce after #774 got fixed.

@ygorelik ygorelik self-assigned this Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants