-
Notifications
You must be signed in to change notification settings - Fork 74
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
Path API should accept XML declaration in anyxml data nodes #662
Labels
Comments
ghost
assigned ylil93
Jan 30, 2018
Hey, I'm having trouble reproducing the error. Can you point me to a specific test? |
Something like the below can reproduce the issue: from ydk.path import NetconfSession, Codec, Repository
from ydk.types import EncodingFormat
ncc = NetconfSession(address='<hostname>' , username='<user>', password='<pass>', port=<port>)
c=Codec()
root=ncc.get_root_schema()
g=root.create_rpc('ietf-netconf:get')
g.get_input_node().create_datanode('filter','''<?xml version="1.0"?>
<bgp xmlns="http://openconfig.net/yang/bgp"/>''')
g(ncc) # Fails here See http://ydk.cisco.com/py/docs/guides/path.html for other examples of path API |
ylil93
added a commit
to ylil93/ydk-gen
that referenced
this issue
Feb 2, 2018
ylil93
added a commit
to ylil93/ydk-gen
that referenced
this issue
Feb 3, 2018
ylil93
added a commit
to ylil93/ydk-gen
that referenced
this issue
Feb 5, 2018
Merged
ylil93
added a commit
to ylil93/ydk-gen
that referenced
this issue
Feb 5, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, anyxml data nodes in the Path API do not accept XML strings with an XML declaration (e.g.
<?xml version="1.0" ?>
).The text was updated successfully, but these errors were encountered: