srl-labs / yang-browser

A web portal and a set of tools to bring joy to YANG consumption
https://yang.srlinux.dev
BSD 3-Clause "New" or "Revised" License
9 stars 0 forks source link

Regenerate paths using gnmic v0.31.0 #35

Closed bclasse closed 1 year ago

bclasse commented 1 year ago

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

bclasse commented 1 year ago

An example of this :

  {
    "path": "/interface[name=*]/subinterface[index=*]/qos/input/classifiers/multifield/ipv4-policy",
    (...)    
    "if-features": [
      "not srl-feat:platform-7220-d1"
    ]
  },

should be

  {
    "path": "/interface[name=*]/subinterface[index=*]/qos/input/classifiers/multifield/ipv4-policy",
    (...)    
    "if-features": [
      "srl_nokia-feat:ip-qos-multifield",
      "not srl-feat:platform-7220-d1"
    ]
  },
hellt commented 1 year ago

Great work with goyang and gnmic, @bclasse! done in #36