Skip to content

netascode/robotframework-gnmi

Robotframework Keywords for GNMI Client

Simple robotkeywords wrapper for pygnmi GNMI library. At the moment, only GNMI client is supported.

At the moment, we just expose the attributes of gNMIclient.__init__, gNMIclient.get and gNMIclient.set as robot keywords

Installation

Using uv (recommended)

uv is a fast Python package installer:

# Install from PyPI (once published)
uv pip install robotframework-gnmi

# Or install from GitHub
uv pip install git+https://github.com/oboehmer/robotframework-gnmi.git

Using pip

# Install from PyPI (once published)
pip install robotframework-gnmi

# Or install from GitHub
pip install git+https://github.com/oboehmer/robotframework-gnmi.git

Example

Example robot file

*** Settings ***
Library   GNMI

*** Variables ***
@{target_host}    192.168.1.1   5400

*** Test Cases ***
Connect and Get

    GNMI connect session   MySession    target=@{target_host}    username=admin    password=password    insecure=True
    @{path}=   Create List   openconfig-interfaces:interfaces
    ${result}=   GNMI get    MySession  path=@{path}   encoding=ascii

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages