Network automation in practice lab 5 of 11
Render three vendors from one source of truth
Build Fenwick Rail's core from one YAML source of truth: lint the data, finish the EOS and Junos Jinja2 templates, render three vendors' configuration from the same model, and deploy it with NAPALM using each device's own diff, until a second deploy changes nothing.
Run this lab
It needs Standard: its 4 nodes are set to 5 vCPU and 8,192 MB in total. It is ready about 18 minutes after you start it. It starts already set up, with nothing to paste before the first task.
In your workspace: Shared, then Network Automation in Practice - multi-vendor professional guided labs, then 05 - Render three vendors from one source of truth
Run it on Standard from £5 a day
- About 18 min to be ready
- About 75 min of tasks
- Level
- Advanced
- How you work
- CLI-led
- Nodes need
- 5 vCPU, 8,192 MB
- Smallest plan
- Standard
The scenario
Fenwick Rail is retiring hand-typed router configuration. The core has three vendors: an IOS router at the Carlisle depot (r1), an Arista switch in the York data centre (eos1) and a Juniper router at the Leeds edge (srx1). They are cabled and reachable on the management LAN, but nothing else is configured.
Your team's rule: the network is whatever sot.yaml says. A colleague started the repository in /root/lab. The data has a mistake, two templates are half written, and the deploy script can't deploy yet. Finish the job, build the core from data, and prove that running the deploy a second time changes nothing.
Start-up and waits. Click Start all. devbox is ready in seconds; eos1 answers its API after about 3 minutes, r1 after about 4 and srx1 after about 5. Tasks 1 to 4 need no devices, so do them while the routers boot. What configures itself: each device's management address, the
netopslogin and its API (SSH with SCP on r1, eAPI on eos1, NETCONF on srx1). The lab files are already in/root/labon devbox. Measured on our servers: the whole lab was ready for its first task about 18 minutes after Start all, with every device booted.
What you’ll practise
- Keep each fact once in a data model and derive addresses and neighbours from it
- Catch bad data with a linter before anything is rendered
- Write Jinja2 templates for EOS and Junos (set format) from the same variables
- Deploy with NAPALM: merge candidate, the device's own diff, commit or discard
- Make a change by editing data, and prove a second deploy is a no-op
The tasks
- Read the model
- Fix the data, not the linter
- Finish the EOS template
- Finish the Junos template
- Deploy with the device's own diff
- Watch the core come up
- Change the network by changing data
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.
Every link, as text
- devbox
eth0to Mgmt (network) - r1
Gi0/0to Mgmt (network) - eos1
Management1to Mgmt (network) - srx1
fxp0to Mgmt (network) - r1
Gi0/1to eos1Ethernet1 - r1
Gi0/2to srx1ge-0/0/0 - eos1
Ethernet2to srx1ge-0/0/1
| Node | Device | Image in Add Node | Set to |
|---|---|---|---|
| devbox | CloudLabBox code workstation (Docker) | CloudLabBox’s own workstation image, with a browser code editor | 1 vCPU, 2,048 MB |
| r1 | Cisco IOSv | vios-adventerprisek9-m.spa.159-3.m9 | 1 vCPU, 512 MB |
| eos1 | Arista vEOS | veos-4.33.1.1F | 1 vCPU, 2,048 MB |
| srx1 | Juniper vSRX NextGen template | vsrxng-24.4R1.9 | 2 vCPU, 3,584 MB |
How to open this lab
Sign in to your workspace at
lab.cloudlabbox.com.In File Manager, open Shared, then the folder
Network Automation in Practice - multi-vendor professional guided labs.Open
05 - Render three vendors from one source of truthand 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
Related labs in other courses
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.