CiscoDevNet / yang-explorer

An open-source Yang Browser and RPC Builder Application
Apache License 2.0
438 stars 177 forks source link

issue in runner.py #48

Closed vincenzheng closed 7 years ago

vincenzheng commented 7 years ago

I found I need to change the 'def run ' in runner.py to make it working for juniper device.

all the 'response = xxxxxx.xml' has to be changed to xxxxx.data_xml , for example like the following to make it working: response = self.handle.get(data).data_xml

otherwise there's error message:

response = self.handle.get(data).xml

AttributeError: 'NCElement' object has no attribute 'xml'

pgohite commented 7 years ago

Thanks for reporting, there may have been some changes in ncclient, I'll verify and fix.

vincenzheng commented 7 years ago

Hi, pgohite,

Forgive me I am not familiar with web side, I am just wondering if the WSGIrequest was created from web side, is that right? I mean it's created from adobe swf ? or is there any python code related to create this?

thanks.