vkosuri / robotframework-ncclient Goto Github PK
View Code? Open in Web Editor NEW[Maintainer Required] Robotframework library for NETCONF clients
Home Page: https://vkosuri.github.io/robotframework-ncclient/
License: MIT License
[Maintainer Required] Robotframework library for NETCONF clients
Home Page: https://vkosuri.github.io/robotframework-ncclient/
License: MIT License
From ncclient pypi page:
"As of 0.4.1 ncclient integrates Juniper’s and Cisco’s forks, lots of new concepts have been introduced that ease management of Juniper and Cisco devices respectively. The biggest change is the introduction of device handlers in connection paramms. For example to invoke Juniper’s functions annd params one has to re-write the above with device_params={‘name’:’junos’}""
Would be good if the support is added.
Dispatching rpc like get-software-information does not make much sense if you cannot get the result xml.
Is there any way to retrieve it?
my netconf device is running on https only, not ssh. any way to add the support of netconf over http and https?
I create this Test Case:
Library DebugLibrary
Library Collections
Library NcclientLibrary
Library XML
Test Login
${config} = Create Dictionary host=192.168.110.22 port=830 username=netconf password=
hostkey_verify=False alias=qwerty
${conn} = Connect &{config}
Should Be True ${conn}
${resp} = Get qwerty xpath /ietf-netconf-server:netconf-server
${xml_str} = Element To String ${resp}
Log To Console ${xml_str}
but exit with RPCError: XML namespace with prefix "ietf-netconf-server" not defined.
Hello,
There was an issue with the passing of arguments in edit_config which resulted to failures when trying to write on running configuration datastore.
I have made some changes to a new branch but i do not have rights to push my changes.
Can you please check the permissions?
Thanks
Nikos
<get> and <get-config> operations ignore filter_criteria, when it contains a empty XML element. In instance, the following filter is ignored:
${filter} = Parse XML <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces" />
${data} = Get alias=NE1 filter_criteria=${filter}
It should be possible to filter on a container element at the top in order to retreive the subtree. In instance: it should be possible to filter on <interfaces> (RFC8343) to retreive the /interfaces subtree).
Additionaly, empty filter is not an error, according to section 6.4.2. Empty Filter of RFC 6241.
To retreive the subtree, it's possible to include the (singular).
${filter} = Parse XML <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"><interface /></interfaces>
This is possible since the container element containts a list of elements.
This is not possible with ietf-system, where the container contains several leaf elements.
Line 190 for the def get_config() method and line 380 for def get() method.
I suggest to change if filter_criteria:
to if filter_criteria is not None:
.
See Pull request #14 .
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.