Comments (4)
https://infocenter.nokia.com/public/7750SR160R4A/index.jsp?topic=%2Fcom.sr.system.mgmt%2Fhtml%2Ftelemetry-intro.html
8.2.1.4. Schema Paths
...
/a/b[key1=foo][key2=bar]/c[key1=*]
Assuming that nokia-conf:configure/policy-options/prefix-list[name=PL_DDOS_MITIGATE]/prefix[ip-prefix=1.2.5.0/24][type=through]
is valid
We expect to delete:
/configure policy-options prefix-list "PL_DDOS_MITIGATE" prefix 1.2.5.0/24 type through
from pygnmi.
Hello Pau,
Thanks for raising issue. We found the example in the gNMI specification: https://github.com/openconfig/reference/blob/master/rpc/gnmi/gnmi-path-conventions.md
So we will fix that bug in the next release.
Thanks,
Anton
from pygnmi.
Hello Pau,
We have updates the pyGNMI, please download the latest version (0.4.2). It contains the fix. The path now is build correctly:
$ python pygnmicli.py -t EOS425:6030 -u aaa -o get --gnmi-path nokia-conf:configure/policy-options/prefix-list[name=PL_DDOS_MITIGATE]/prefix[ip-prefix=1.2.5.0/24][type= through] -c cert.pem --print
The password is not defined.
gRPC password:
Doing get request to ('EOS425', 6030)...
gNMI request:
------------------------------------------------
path {
origin: "nokia-conf"
elem {
name: "configure"
}
elem {
name: "policy-options"
}
elem {
name: "prefix-list"
key {
key: "name"
value: "PL_DDOS_MITIGATE"
}
}
elem {
name: "prefix"
key {
key: "ip-prefix"
value: "1.2.5.0/24"
}
key {
key: "type"
value: "through"
}
}
}
------------------------------------------------
Best,
Anton
from pygnmi.
Working!! :-)
Nice, thanks!! 👍
from pygnmi.
Related Issues (20)
- How to send set request with proto encoding? HOT 2
- FR: Add ability to set the auth scheme for targets HOT 3
- timeout or gnmi-timeout doesn't seem to work HOT 1
- subscribe not working to Juniper device HOT 6
- nornir example for subscribe stream mode HOT 1
- Missing minimum grpcio version in requirements HOT 1
- Invalid Path error HOT 4
- Release new version HOT 2
- Issue with pygnmi not returning value for get on leaf level for presence container HOT 2
- Feature: Distribute the whl file when publishing to pypi HOT 1
- Issue with Thread Termination in gNMI Client Subscription HOT 2
- Proper certificate usage with pygnmi HOT 3
- gNMI Master Arbitration Extension HOT 2
- pygnmi/pygnmic no longer working with Cisco IOS-XR 7.10.2 unified-model HOT 4
- PYGNMI commit replace is not replacing the running config . HOT 6
- Didn't find any infrastructure support to do master arbitration for performing Set operation HOT 1
- Support for "origin" field
- Create a new release HOT 1
- Support for tls-min-version and tls-max-version
- Help needed with forming the set path HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygnmi.