Skip to content

Any way to load config changes without committing? #24

@mirceaulinic

Description

@mirceaulinic

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions