ios-xr-grpc-python
ios-xr-grpc-python copied to clipboard
Any way to load config changes without committing?
trafficstars
Hi,
I'm trying to use the cliconfig to load some configuration, e.g.,
>>> driver.cliconfig('ntp server 1.2.3.4')
>>>
To my surprise, this operation did commit the changes on the device. I would have expected to have to explicitly invoke the CommitConfig directive (by issuing another RPC request) to commit.
That's probably the expected / designed behaviour. So my question is: how can you load some configuration (without committing directly), preview the diff, then issue a separate RPC in order to commit (i.e., commit only if the config diff looks good)?
Cheers, -Mircea
The gRPC interfaces (EMS or gNMI) don't use two-phase commit. Any config pre-processing would have to be done offbox.