Automation

 View Only

IMPORTANT MODERATION NOTICE

This community is currently under full moderation, meaning  all posts will be reviewed before appearing in the community. Please expect a brief delay—there is no need to post multiple times. If your post is rejected, you'll receive an email outlining the reason(s). We've implemented full moderation to control spam. Thank you for your patience and participation.



  • 1.  Question on the JET API

     
    Posted 08-16-2022 11:09

    Hi.

     

    Juniper documentation says that automation using the JET API allows you to perform thousands of commits a second.

     

    In what scenario would I ever need such frequent commits?

     

     

    Thanks,

    Deepak


    Juniper Business Use Only



  • 2.  RE: Question on the JET API
    Best Answer

    Posted 08-17-2022 10:13
    It's a theoretical maximum.

    However, the point is that when your Juniper state is controlled by automation, you don't have to wait for 90 seconds (on some SRXs for example) for a single change.
    Also the logic to which an application may be configured, is such that a change that you may do in one commit via CLI, is called over separate functions which each require their own commit. For example, you may have a device with 96 ports that you are provisioning, however you are only configuring 10 of those ports, but the remaining 86 may have some basic interface-name disable unit 0 family ethernet-switching configuration applied.
    Instead of one commit to apply the config to all 96 ports, your tool might do each interface individually, thus creating ~96 changes.

    Conversely, you may deal with many, many LSPs and may want to make batch changes, but again, perhaps the program only does 1 LSP at a time.

    Maybe you have a device with logical systems that is controlled by automation whereby multiple clients cause configuration changes to be made, it's useful for the API to make multiple changes very quickly in this situation.

    Cheers,

    ------------------------------
    ANDREY LEO
    ------------------------------



  • 3.  RE: Question on the JET API

     
    Posted 08-17-2022 11:44
    Thanks Andrey!


  • 4.  RE: Question on the JET API

    Posted 08-19-2022 05:01
    You're welcome :)

    ------------------------------
    ANDREY LEO
    ------------------------------