Giter Club home page Giter Club logo

Comments (4)

paunadeu avatar paunadeu commented on August 16, 2024

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.

akarneliuk avatar akarneliuk commented on August 16, 2024

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.

akarneliuk avatar akarneliuk commented on August 16, 2024

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.

paunadeu avatar paunadeu commented on August 16, 2024

Working!! :-)

Nice, thanks!! 👍

from pygnmi.

Related Issues (20)

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.