yang_search
Find correct Nokia SR OS gNMI paths by keyword. Search configure or state YANG trees to locate paths before getting or setting device configuration.
Instructions
Search Nokia SR OS YANG paths by keyword. Use this to find the correct gNMI path before using sros_get_config/sros_get_state/sros_set_update.
Examples: yang_search('fpe', 'configure') → find FPE paths yang_search('end-dt2', 'configure') → find SRv6 EVPN function paths yang_search('bgp-evpn', 'configure') → find EVPN BGP paths yang_search('pxc', 'configure') → find Port Cross-Connect paths yang_search('neighbor', 'state') → find BGP neighbor state paths
Requires YANG models in yang/sros-25.10/YANG/ or pre-built cache in yang/cache/.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree | No | YANG tree to search: 'configure' (default) or 'state' | configure |
| keyword | Yes | Search keyword (case-insensitive) | |
| max_results | No | Maximum number of results to return (default: 50) |