Giter VIP home page Giter VIP logo

robotframework-ncclient's People

Contributors

jrebiffe avatar nikosgkotsis avatar vkosuri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

robotframework-ncclient's Issues

Add "device_name" parameter to support juniper and Cisco devices

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.

How to retrieve Dispatch result xml

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?

support http(s)?

my netconf device is running on https only, not ssh. any way to add the support of netconf over http and https?

Get with xptah filter not work

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.

Passing arguments to edit_config

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

<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.

Reproduction Robot File

Workaround

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.

Patch suggestion

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 .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.