Giter Site home page Giter Site logo

srl-labs / yang-browser Goto Github PK

View Code? Open in Web Editor NEW
8.0 6.0 0.0 15.61 MB

A web portal and a set of tools to bring joy to YANG consumption

Home Page: https://yang.srlinux.dev

License: BSD 3-Clause "New" or "Revised" License

CSS 0.01% HTML 99.98% Shell 0.01% JavaScript 0.02%

yang-browser's People

Contributors

hellt avatar siva19susi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

yang-browser's Issues

"srl_nokia-feat:future-0-0"

Hi,

Some paths containing srl_nokia-feat:future-0-0 with another set of if-feature are being displayed on the browser - while they should not, as srl_nokia-feat:future-0-0 is not available on any platform. Can you please have a look ?

{
    "path": "/acl/mac-filter[name=*]/entry[sequence-id=*]/action/collect-stats",
    "path-with-prefix": "/srl_nokia-acl:acl/mac-filter[name=*]/entry[sequence-id=*]/action/collect-stats",
    "type": "boolean",
    "description": "Collect statistics for each entry of the ACL. If this is set to false no hardware resources are allocated to collecting statistics for this ACL entry.",
    "default": "false",
    "namespace": "urn:srl_nokia/acl",
    "if-features": [
      "srl_nokia-feat:future-0-0",
      "srl_nokia-feat:platform-7220-d2 or srl_nokia-feat:platform-7220-d3 or srl_nokia-feat:platform-7220-d4 or srl_nokia-feat:platform-7220-d5"
    ]
}

Note, oddly enough, this example is displayed for D3, D3L, D4, D5, D5T, 6(e), 10(e), but not the other platforms.

Also, if possible, could you also add this option in the list of selectable features?

Many thanks

Regenerate paths using gnmic v0.31.0

Hi,

gnmic v0.31.0 now uses goyang v1.4.0. This fixes an issue in the usage of if-feature field in uses and augment statements. This missed corner case allows some paths to be displayed on the YANG browser for some chassis type, while the path is actually not available.
Could you please regenerate the paths using the new gnmic version to fix the issue? Many thanks

Filtered path is incorrectly displayed

Some paths are not represented correctly on the YANG browser when using filters.
For example, /interface[name=*]/queue-statistics/queue[queue-name=*]/final-dropped-octets should be displayed for all platforms except D1, and for the ones not containing future-0-0 feature.

    "path": "/interface[name=*]/queue-statistics/queue[queue-name=*]/final-dropped-octets",
    "path-with-prefix": "/srl_nokia-if:interface[name=*]/srl_nokia-qos:queue-statistics/queue[queue-name=*]/final-dropped-octets",
    "type": "zero-based-counter64",
    "description": "Number of octets dropped by the queue.\n\nOn 7250-IXR (Jericho2-based) systems unicast packet drops related to egress port congestion should show up in the VOQ stats and not in this statistic.",
    "default": "0",
    "is-state": true,
    "namespace": "urn:srl_nokia/qos",
    "if-features": [
      "not srl-feat:future-0-0",
      "not srl-feat:platform-7220-d1"
    ]
  },

Yet this path (and others) appears when filtering on D1 (and don't appear when filtering on D2 for example)

image

generate yang docs (with improved css)

the oc-yang plugin can generate nice html docs for yang models as shown here
http://ops.openconfig.net/branches/models/telemetry-version/docs/openconfig-acl.html

we can improve the css styling and make it a beautifully looking add-on to this yang browser

https://github.com/openconfig/oc-pyang

pyang --plugindir ${YANG_PLUGINS} -f docs --doc-format html [PATH_TO_YANG_FILES]

https://github.com/openconfig/oc-pyang/blob/master/openconfig_pyang/plugins/yangdoc.py

/cc @siva19susi

create public jstree template

As a community contribution, it makes sense to create a jstree template stripped of Nokia colors/fonts and open source it.
It can be packaged in a container image with the needed bash based substitutions in place

when generating HTML tree use if-feature flags from some platform

When no features are provided to pyang, all features are implicitly selected. This is not optimal, for example qos module won't be rendered as it has not d1 feature gate.

The proposal is to include if-features for d3l and ixr platforms and exclude d1 and vxdp

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.