Topic: tech juniper jaut prev

tech juniper jaut > Junos Platform Automation and DevOps (JAUT)

Junos Platform Automation and DevOps (JAUT)

Module 18: Using JET Virtual Machine

JET can be used to develop an on-device application in C or C++. C and C++ applications must be signed.

Setting up JET

Download Vagrant and Oracle VirtualBox. VirtualBox is the only hypervisor supported by JET.

Download the JET Vagrant setup file and .zip file. The VagrantFile instructs Vagrant on configuring an Ubuntu VM with the Eclipse IDE.

Extract the .zip file to a new directory ‘jet-vagrant’. Change to this directory and issue the ‘vagrantup’ command. This can take 15-60 minutes or more. Configure Eclipse. Stop the VM using the ‘vagrant halt’ command from the same directory.

Using the IDE

Create a new JET project.

To develop a Python program, create a new directory inside the ‘python/’ directory and develop the program there. To develop a C/C++ library, create a new directory inside the ‘lib/’ directory and develop the program there. To develop a C/C++ program, create a new directory inside the ‘bin/’ directory and develop the program there.

Certificate Request Process

Python apps require Python to be enabled at the ‘edit system scripts language’ configuration hierarchy.

A certificate can be requested from Juniper using the IDE. Navigate to ‘Juniper Extension Toolkit, Certificate, Request Certificate’. It must be sent to Juniper for signing by clicking ‘Request Signing’ in the same menu.

JSON File

A JSON file, ‘Jet_interfaces.json’, is used to generate the makefile. JET provides a form to make editing the JSON file easy.

Deploying the Application

Use the ‘request system software add’ command on the Junos device. Start the application with ‘request extension-service start echoclientd’.