Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring the JET Application and its License on a Device Running Junos OS

    Before you can start a JET application on a device running Junos OS, first determine if you must configure the license. License configuration for JET applications is required only if you are deploying on-box applications written in C or C++ and built using the Juniper Extension Toolkit (JET) development environment. For simple Python JET applications, which do not require licensing, this task is not required.

    This topic contains two examples of configuring JET applications to run on Junos OS:

    Configuring a Python Application to Run on a Device

    To configure a JET Python application and its license on a device:

    1. (Optional if Python application is signed) Issue the set system scripts language python command.
      [edit]user@device# set system scripts language python

      If you do not include the language python statement, you cannot execute unsigned Python scripts on the device.

      Note: Junos OS supports using symbolic links for files in the /var/db/scripts/jet directory, but the device will only execute the script at the target location if it is signed.

    2. At the [edit system extensions] hierarchy level, configure the application’s provider’s ID, for example:
      [edit system extensions]user@device# set providers xyzcompany

      Note: The same provider license must be used to configure a JET application to run on Junos OS as was used to package it.

    3. Configure the license type and deployment scope.
      [edit system extensions]user@device# set providers xyzcompany license-type juniper deployment-scope commercial
    4. Commit the configuration.
      [edit system extensions]user@device# top[edit]user@device# commit

    Configuring a C or C++ Application to Run on a Device

    To configure a JET C or C++ application:

    1. Configure the application’s provider’s ID, license type, and deployment scope.

      The following application example was packaged using chef as the provider license:

      [edit]user@device# set system extensions providers chef license-type juniper deployment-scope commercial

      Note: The same provider license must be used to configure a JET application to run on Junos OS as was used to package it.

    2. Commit the configuration and exit to operational mode.
      [edit]user@device# commitcommit complete
      [edit]user@device# exituser@device>

    Modified: 2016-11-16