ios-xr-grpc-python icon indicating copy to clipboard operation
ios-xr-grpc-python copied to clipboard

Any way to load config changes without committing?

Open mirceaulinic opened this issue 5 years ago • 1 comments
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

mirceaulinic avatar Apr 08 '20 14:04 mirceaulinic

The gRPC interfaces (EMS or gNMI) don't use two-phase commit. Any config pre-processing would have to be done offbox.

111pontes avatar Apr 16 '20 15:04 111pontes