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

Path API should accept XML declaration in anyxml data nodes #662

Closed
111pontes opened this issue Jan 9, 2018 · 2 comments
Closed

Path API should accept XML declaration in anyxml data nodes #662

111pontes opened this issue Jan 9, 2018 · 2 comments
Assignees
Labels

Comments

@111pontes
Copy link
Collaborator

Currently, anyxml data nodes in the Path API do not accept XML strings with an XML declaration (e.g. <?xml version="1.0" ?>).

@111pontes 111pontes added the bug label Jan 9, 2018
@ghost ghost assigned ylil93 Jan 30, 2018
@ylil93
Copy link
Contributor

ylil93 commented Feb 1, 2018

Hey, I'm having trouble reproducing the error. Can you point me to a specific test?

@ghost
Copy link

ghost commented Feb 1, 2018

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
@ylil93 ylil93 closed this as completed Feb 5, 2018
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
Labels
Projects
None yet
Development

No branches or pull requests

2 participants