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

The free demo isn’t offered for this lab: it is Lite size, with 6 vCPU and 8 GB, and this lab’s nodes need 5 vCPU and 11,776 MB together. Every lab plan includes every guided lab.

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

  1. What each server offers
  2. The NETCONF driver
  3. The EOS driver
  4. Run CR-2050
  5. 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.

Topology of Transactions across vendors - candidate validate and confirmed commit4 nodes and 1 network, 4 links. Every link is listed as text below the diagram.devboxxe1srx1eos1Mgmteth0Gi1Management1fxp0
4 nodes and 1 network, with the interface names each link uses. On a narrow screen, scroll the diagram sideways.
Nodes in Transactions across vendors - candidate validate and confirmed commit, 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
xe1Cisco CSR 1000vcsr1000vng-universalk9.17.03.08a-serial1 vCPU, 4,096 MB
srx1Juniper vSRX NextGen templatevsrxng-24.4R1.92 vCPU, 3,584 MB
eos1Arista vEOSveos-4.33.1.1F1 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 02 - Transactions across vendors - candidate validate and confirmed commit 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

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.