sros_get_config
Retrieve Nokia SR OS device configuration via gNMI Get using config datatype. Provide YANG paths to fetch specific interfaces, ports, services, or the entire config.
Instructions
Get configuration from Nokia SR OS via gNMI Get (datatype=config). Provide one or more YANG paths. Uses json_ietf encoding.
Nokia SROS YANG path examples: /configure/router[router-name=Base]/interface /configure/port[port-id=1/1/c2/1] /configure/service/vprn[service-name=CUST-1] /configure/router[router-name=Base]/bgp /configure/card[slot-number=1] /configure (entire config)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"paths": "<paths>"
},
"name": "sros_get_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Device session name | |
| paths | Yes | List of YANG paths to retrieve. Example: ['/configure/router[router-name=Base]/interface'] |