sros_set_update
Merge configuration changes on Nokia SR OS devices via gNMI Set by providing a YANG path and JSON value.
Instructions
Update (merge) configuration on Nokia SR OS via gNMI Set. Provide a YANG path and JSON value to merge.
Example — create interface: path: /configure/router[router-name=Base]/interface[interface-name=lo0] value: {"ipv4": {"primary": {"address": "10.0.0.1", "prefix-length": 32}}}
Example — enable port: path: /configure/port[port-id=1/1/c2/1] value: {"admin-state": "enable"}
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>",
"path": "<path>",
"value": "<value>"
},
"name": "sros_set_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Device session name | |
| path | Yes | YANG path to update | |
| value | Yes | JSON object with config values to merge |