srl-labs / yang-browser Goto Github PK
View Code? Open in Web Editor NEWA 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
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
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
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
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)
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
to automatically update index.html
pages per each lister release
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
There is already a "config" / "no config" flag, it would be useful to have a toggle button to show only items in one or the other
Hi,
23.3.1 introduced 7220 IXR-D4 chassis, could you please add it to the list of platforms?
Thanks
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.