[j-nsp] purpose of "commit check"?

Martin T m4rtntns at gmail.com
Wed Sep 30 17:30:51 EDT 2015


So in order to sum this up, "commit check" makes sense at least in
following cases:

1) confirm "commit confirmed" action. This does not waste a rollback.
2) test errors for configuration which will be saved and committed later
3) make intermediate syntax checks in case of large configurations in
order to make sure that configuration applied to candidate
configuration so far is fine
4) use "commit check" to trigger commit scripts



regards,
Martin


On Wed, Sep 30, 2015 at 6:49 PM, Alexander Arseniev
<arseniev at btinternet.com> wrote:
> Hello,
> To add to what's been already covered  - "commit check" runs the commit
> scripts as if it is an actual commit.
> And You can do pretty much everything with commit scripts, including logging
> to another node and comparing/changing the config there.
> One use case is to keep DetNAT pools & prefix-lists synced between 2 CGNAT
> nodes in case inter-node failover happens. So if You want to always make
> changes on 1 such node only, and never bother with manually checking config
> consistency, then use a commit script which logs in to a neighbor node and
> does comparison and maybe fixes some trivial discrepansies. In this case,
> You want to run "commit check" first, to get 2nd node changed, and then
> "commit comment" to get 1st node aligned with the 2nd.
> HTH
> Thanks
> Alex
>
> On 28/09/2015 22:24, Martin T wrote:
>
> Hi,
>
> when I commit the candidate configuration in Junos, I tend to execute
> "commit check" and if configuration check succeeds, then I execute
> "commit comment <COMMENT>". However, when I think about it, "commit
> (comment)" itself should perform those very same checks that "commit
> check" does. If yes, then what is the point of "commit check"? Only
> purpose I could see is to check the validity of the candidate
> configuration in the middle of the configuration process, i.e. to
> check if the changes made in candidate configuration so far are fine
> but the candidate configuration is not ready to be committed.
>
>
> thanks,
> Martin
> _______________________________________________
> juniper-nsp mailing list juniper-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/juniper-nsp
>
>


More information about the juniper-nsp mailing list