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

if-feature fixes #33

Closed hellt closed 1 year ago

hellt commented 1 year ago

Test set based on 23.3.1:

  1. /acl/cpm-filter/ipv4-filter/entry[sequence-id=*]/action/accept/log

    1. should be shown when ixr6 is selected
    2. should not be shown when ixrd2 is selected
  2. /acl/cpm-filter/ipv4-filter/entry[sequence-id=*]/statistics/distributed-policer/conforming-octets

    1. should be shown when d2l is seleceted
    2. should not be shown when H3 is selected
  3. /acl/cpm-filter/mac-filter/entry[sequence-id=*]/action/accept/rate-limit/system-cpu-policer

    1. show when d2 is selected
    2. not show when h3 is selected
  4. /network-instance[name=*]/bgp-rib/afi-safi[afi-safi-name=*]/evpn/rib-in-out/rib-out-post/imet-routes[route-distinguisher=*][originating-router=*][ethernet-tag-id=*][neighbor=*]/neighbor

    1. should not be shown for d2 nor for h3, nor for 63, since it uses a feature flag that doesn't belong to any platform
  5. /network-instance[name=*]/protocols/isis/instance[name=*]/interface[interface-name=*]/ldp-synchronization/end-of-lib

    1. show for ixr6
    2. not show for d2
hellt commented 1 year ago

great stuff, thanks @siva19susi