Network automation in practice lab 2 of 11
Transactions across vendors - candidate validate and confirmed commit
Write one transaction layer for three vendors: NETCONF's candidate datastore, lock, validate and confirmed commit on IOS XE and Junos, and an EOS configuration session with a commit timer. Push one change to all three as a transaction, then send a canary that nobody confirms and watch every device put itself back.
Run this lab
It needs Standard: its 4 nodes are set to 5 vCPU and 11,776 MB in total. It is ready about 15 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 02 - Transactions across vendors - candidate validate and confirmed commit
Run it on Standard from £5 a day
- About 15 min to be ready
- About 60 min of tasks
- Level
- Advanced
- How you work
- CLI-led
- Nodes need
- 5 vCPU, 11,776 MB
- Smallest plan
- Standard
The scenario
Fenwick Rail's monitoring team wants an anycast address, 10.255.100.x/32, on every core router (CR-2050). It is a small change, but the network manager has one rule for every change from now on: it goes to all devices as a transaction, and if anything goes wrong mid-way, the devices put themselves back without anyone having to log in.
txn.py is the team's transaction tool. It knows how to run a change file across devices, but its vendor drivers aren't finished. Finish them, run CR-2050, then prove the safety net works with a canary change that nobody confirms.
Start-up and waits. Click Start all. eos1 answers after about 3 minutes and srx1 after about 5. xe1 takes longest: its NETCONF server comes up about 8 minutes after Start all, and restarts once more about a minute later while it turns on the candidate datastore its start-up configuration asks for. Read Tasks 1 and 2 and write the EOS part (TODO 4 and 5) while it boots. Measured on our servers: the whole lab was ready for its first task about 15 minutes after Start all, with every device booted.
What you’ll practise
- Read a NETCONF server's capabilities and know which transaction features it offers
- Lock, edit and validate the candidate datastore, and diff it against running
- Commit with a timeout, and confirm in the same session
- Do the same on EOS with a configuration session and a commit timer
- Show that an unconfirmed change reverts by itself on every vendor
The tasks
- What each server offers
- The NETCONF driver
- The EOS driver
- Run CR-2050
- The canary nobody confirms
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) - xe1
Gi1to Mgmt (network) - srx1
fxp0to Mgmt (network) - eos1
Management1to Mgmt (network)
| 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 |
| xe1 | Cisco CSR 1000v | csr1000vng-universalk9.17.03.08a-serial | 1 vCPU, 4,096 MB |
| srx1 | Juniper vSRX NextGen template | vsrxng-24.4R1.9 | 2 vCPU, 3,584 MB |
| eos1 | Arista vEOS | veos-4.33.1.1F | 1 vCPU, 2,048 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
02 - Transactions across vendors - candidate validate and confirmed commitand 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.