Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to load config changes without committing? #24

Open
mirceaulinic opened this issue Apr 8, 2020 · 1 comment
Open

Any way to load config changes without committing? #24

mirceaulinic opened this issue Apr 8, 2020 · 1 comment

Comments

@mirceaulinic
Copy link

mirceaulinic commented Apr 8, 2020

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

@111pontes
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants