Network automation in practice lab 1 of 11

First look - two vendors from one script

A quick start on this course's workstation: open the browser code editor, read an Arista switch and a FortiGate through their APIs into one inventory table, then give the FortiGate an address object with a script that is safe to run twice, and see the result in the FortiGate's own web interface.

Run this lab

It needs Lite: its 3 nodes are set to 3 vCPU and 6,144 MB in total. It is ready about 6 minutes after you start it. It starts already set up, with nothing to paste before the first task. It fits the free demo too.

In your workspace: Shared, then Network Automation in Practice - multi-vendor professional guided labs, then 01 - First look - two vendors from one script

Try it free for 30 minutesRun it on Lite from £3 a day

  • About 6 min to be ready
  • About 25 min of tasks
  • The free demo’s 30 min cover the start and about 24 min of the tasks

The free demo needs no card and no email. Every lab plan includes every guided lab.

Level
Intermediate
How you work
CLI-led
Nodes need
3 vCPU, 6,144 MB
Smallest plan
Lite

The scenario

You've joined Fenwick Rail's network automation team. The network has several vendors, and the team drives them all from one workstation, devbox, through each device's API. Your first job is small: a table of what's on the network, and one firewall object the monitoring team asked for, made the way the team makes every change: safe to run again.

Start-up and waits. Click Start all. devbox is ready in seconds and fgt1 in about a minute; eos1's API answers after about 3 minutes. Each device boots with its management address, the netops login and its API switched on. Open the code editor (Task 1) while they boot. Measured on our servers: the whole lab was ready for its first task about 6 minutes after Start all, with every device booted.

What you’ll practise

  • Work in the browser code editor and its terminal on devbox
  • Read structured data from Arista eAPI and the FortiOS REST API
  • Write an idempotent change: read, compare, then create, update or leave alone
  • Check the result in the device's own GUI

The tasks

  1. Open your workstation
  2. One table from two APIs
  3. A change that is safe to run twice
  4. See it in the GUI

The Lab Tasks pane has the scenario, these tasks, the checks to run, hints and the full solution.

Topology and devices

The network as it opens in EVE-NG, drawn from the lab’s own canvas, and the image each node runs.

Topology of First look - two vendors from one script3 nodes and 1 network, 3 links. Every link is listed as text below the diagram.devboxeos1fgt1Mgmteth0Management1port1
3 nodes and 1 network, with the interface names each link uses. On a narrow screen, scroll the diagram sideways.
Nodes in First look - two vendors from one script, with the image each runs and the vCPU and RAM it’s set to
NodeDeviceImage in Add NodeSet to
devboxCloudLabBox code workstation (Docker)CloudLabBox’s own workstation image, with a browser code editor1 vCPU, 2,048 MB
eos1Arista vEOSveos-4.33.1.1F1 vCPU, 2,048 MB
fgt1Fortinet FortiGatefortinet-FGT-v7.0.17.M-build06821 vCPU, 2,048 MB

How to open this lab

  1. Sign in to your workspace at lab.cloudlabbox.com.

  2. In File Manager, open Shared, then the folder Network Automation in Practice - multi-vendor professional guided labs.

  3. Open 01 - First look - two vendors from one script and start its nodes, then open Lab Tasks for the scenario and the steps.

The lab is read-only. You can start the nodes and configure the devices, but changes to the topology can’t be saved. To change it, rebuild it in your own folder.

More Network automation in practice labs

All Network automation in practice labs

CloudLabBox is independent of Arista Networks, Cisco, Fortinet, Juniper Networks and Palo Alto Networks. The lab follows exam topics and isn’t vendor training material; vendor names identify the exams and the images in the workspace.