Course contents

Unit 8: Management and basic policiesLesson 8.2 (2 of 6 in this unit)48 of 62 in the Cisco SD-WAN course

Configuration deployment and device associations

How a WAN Edge is associated with a template or configuration group, how variables are filled, and how to read the result and the common failures.

Intermediate · 10 min read

You'll learn to explain how a device is associated with a template or configuration group, follow a deployment from variables to verification, and match common failures to their causes.

Technical definition

Device association is the link the Manager keeps between one WAN Edge and the template or configuration group that supplies its configuration. Deploying sends the configuration built from that source, plus the values filled in for that device, to the router.

What is being associated

The Manager (formerly vManage) sends configuration in one of two styles. In the classic style a device template is built from feature templates and attached to a device. In the newer style a configuration group collects feature profiles and is associated with devices, often with rules or tags that choose them. Either way the idea is the same: shared structure from one source, per-router values from a short form or file.

Diagram
Classic and newer style
Classic and newer style

Two ways to hold the shared part.

Device templateFeature templatesattached to a device
Configuration groupFeature profilesassociated with devices
Both keep one source for many routers. Your release decides which are available.

From choice to a running router

Associating a router starts with picking the source and the router, which must already be on the device list and reachable by the Manager. The Manager then asks for each variable the template contains. After the values are accepted, a preview shows the configuration that will be sent, and the deployment is queued. A task page shows the progress and the result for each router.

Diagram
A deployment
A deployment

Choose, fill, preview, push, verify.

  1. Choosesource and router
  2. Fillvariable values
  3. Previewsee the config
  4. Pushtask runs
  5. Verifyon the router
Every stage can stop the deployment with an error that names the cause.
Diagram
Values that differ for every router
Values that differ for every router
VariableExample for BR-01A wrong value shows as
System IP10.255.2.1Duplicate or rejected device
Site ID101Two sites treated as one, or policy applied to the wrong site
HostnameBR-01Cosmetic, but confusing in monitoring
WAN interface address and gateway192.0.2.10/24, 192.0.2.1Control connection stays down
Tunnel colourbiz-internetTunnels do not form, or form with the wrong peers
LAN interface address192.168.20.1/24 in VPN 10Prefix missing or wrong in OMP
Values here are teaching examples from the course lab plan.

A file of values, such as a CSV, is often used to fill many routers at once. The risk is the same as with any spreadsheet: a copied row with a repeated system IP or site ID. Check those two columns first.

Diagram
Check the file before the push
Check the file before the push

Export the file of values, check that system IPs and site IDs are unique, preview the configuration for one router, push to a pilot router, and only then push the rest.

  1. Filevalues forall routers
  2. Uniquesystem IP andsite ID
  3. Previewone router'sconfig
  4. Pilotpush one,verify
  5. Restthe otherrouters
The preview shows what one router will receive. It does not compare one router's values with another's.

Reading the result

After a deployment the Manager shows a status per router. Names differ by release, but they describe the same few states: in sync, out of sync, pending or failed. On the router, the best proof is the running configuration and the control connection state, because a successful task page only says the Manager finished sending.

Example output written for this lesson, simplified; real output has more fields and a different layout
BR-01#show sdwan running-config | include system-ip|site-id|host-name
host-name BR-01
system-ip 10.255.2.1
site-id 101
The three values match what was entered in the Manager for BR-01. If they differ, the router may be following a different association, or the deployment did not finish. Command options and output layout vary by release.
Diagram
What a status means
What a status means

In sync means the router matches what the Manager would send, so there is nothing to do. Out of sync means the router differs, so read the difference before pushing. Pending means the task is queued or running, so wait for the result. Failed means the task stopped with an error, so read the task detail, fix the cause and retry.

  1. In syncRouter matches what the Manager would sendNothing to do
  2. Out of syncRouter differs from the ManagerRead the difference before pushing
  3. PendingTask queued or runningWait for the result
  4. FailedTask stopped with an errorRead the task detail, fix, retry
Names differ by release. A finished task still needs proof on the router.

When a deployment fails

Diagram
Failure groups
Failure groups

Input, reachability or conflict.

Deployment did not finish
  • Inputmissing orinvalid variable
  • Reachabilityrouter offlineor control down
  • Conflictduplicate IP,old CLI lines
The task page names the group. Fix that before retrying.
  • A missing or invalid variable blocks the push before it is sent. Fix the value and try again.
  • An unreachable router cannot receive a push. Check its control connections from the device side before retrying the same push.
  • A duplicate system IP or site ID is rejected, or worse, accepted and later confusing. Keep a list of used values.
  • Lines left from an earlier CLI configuration can conflict with the pushed configuration. Where the release has a CLI add-on, use it for deliberate extra lines, and keep the rest in the template.
  • Retrying a failed push without reading the error repeats the failure. Read the task detail first.

A worked case: two branches with one site ID

Priya prepares the file of values for the next two branches, BR-02 and BR-03, by copying the BR-02 row and editing it. She changes the hostname, the system IP and the interface addresses, but the site ID column keeps its old value. The preview for each router looks correct and both pushes finish. A week later the branches report that they cannot reach each other, although both reach the hub.

Diagram
The variable file as pushed (example data)
The variable file as pushed (example data)
HostnameSystem IPSite IDLAN prefix
BR-0210.255.2.2102192.168.20.0/24
BR-0310.255.2.3102192.168.30.0/24
Example data. The system IPs differ, so nothing looks wrong, but the site ID is repeated.
Example output written for this lesson, simplified; real output has more fields and a different layout
BR-02#show sdwan omp routes
VPN  PREFIX            FROM PEER    TLOC                     STATUS
10   192.168.10.0/24   10.255.0.11  10.255.1.1 mpls          C,I,R
10   192.168.10.0/24   10.255.0.11  10.255.1.1 biz-internet  C,I,R
BR-02 learns the data centre prefix from the hub. The LAN prefix of BR-03, 192.168.30.0/24, is not in the list. Routers with the same site ID are treated as one site, so the overlay does not carry routes or tunnels between them, and the two branches cannot reach each other through it.
Diagram
Evidence from the case
Evidence from the case

The two branches reach the hub but not each other. The route table of one branch lacks the other branch's prefix. The variable file shows the same site ID on both rows. A copied row kept the old site ID, and the preview of each router looked correct because it only shows one router at a time.

  1. SymptomBR-02 and BR-03 cannot reach each otherBoth reach the hub
  2. RoutesBR-03's prefix is missing at BR-02The hub prefix is present
  3. FileSite ID 102 on both rowsSystem IPs differ
  4. FixGive BR-03 its own site IDPush, then read the routes again
The preview was right for each router and wrong for the pair. Only a check across rows finds that.
Diagram
What each check can see
What each check can see

The preview shows the configuration one router will receive, so it cannot tell that another router has the same site ID. A check across the rows of the file compares every row with every other row, so it finds a repeated site ID before the push.

PreviewOne router at a timeShows what it will get
File checkRow against rowFinds repeated values
Keep both checks: the preview for one router, the file check for the pair.

Priya changes the site ID of BR-03 to 103, pushes to that router only, and reads the routes again. She also adds a check to the bulk-import routine: before any push, look for repeated values in the system IP and site ID columns. A short command on her own computer does it for a file that has a header row and the columns hostname, system IP and site ID.

cut -d, -f2 sites.csv | tail -n +2 | sort | uniq -d cut -d, -f3 sites.csv | tail -n +2 | sort | uniq -d

Run on a computer, not on the router. The first line prints any system IP that appears twice, the second any site ID. No output means no repeats.

Example output written for this lesson, simplified; real output has more fields and a different layout
BR-02#show sdwan omp routes
VPN  PREFIX            FROM PEER    TLOC                     STATUS
10   192.168.10.0/24   10.255.0.11  10.255.1.1 mpls          C,I,R
10   192.168.10.0/24   10.255.0.11  10.255.1.1 biz-internet  C,I,R
10   192.168.30.0/24   10.255.0.11  10.255.2.3 biz-internet  C,I,R
After the correction BR-02 has a route to 192.168.30.0/24 with the TLOC of BR-03, so the overlay now carries traffic between the two branches.

One repeated site ID is small in the file and large in the network. Every pair of routers that share the value loses the overlay path between them, and the number of pairs grows much faster than the number of routers.

Diagram
Branch pairs lost to one repeated site ID (computed)
Branch pairs lost to one repeated site ID (computed)
Routers sharing one site IDPairs that cannot reach each otherShare of all pairs among 20 branchesCells to correct
2 routers10.5 percent1
3 routers31.6 percent2
5 routers105.3 percent4
10 routers4523.7 percent9
Pairs are k(k-1)/2 for k routers, out of 190 possible pairs among 20 branches, calculated by script. Assumes, as this lesson describes, that routers with the same site ID are not joined by the overlay; one router keeps the original value and the other k-1 each need a new one.
Diagram
Symptoms and the first check
Symptoms and the first check
SymptomFirst checkLikely cause
Two branches cannot reach each otherSite IDs of both in the variable fileA repeated site ID
A router will not register or is rejectedSystem IP against the device listA repeated system IP
Task finished but a setting is missingThe router's running configurationThe router follows a different association
Push blocked before it is sentThe task detail for the variable nameA missing or invalid variable
Check the values across rows, not only the preview of one router.

Learn more: Templates, Configuration Groups and Feature ProfilesOnboarding Verification and Rollback

Test yourself

Predict · scenario 1

Two branches show the same site ID after a bulk import from a CSV. Which risk is most direct?

Predict · scenario 2

The task page says a deployment finished, but the router does not have the new setting. What should you check first?

Predict · scenario 3

BR-02 and BR-03 both have site ID 102 and different system IPs. Both reach the hub. What happens between the two branches?

Predict · scenario 4

The preview of each router in a bulk deployment looks correct. Why can a repeated site ID still reach the push?

Predict · scenario 5

You have a CSV with a header row and the columns hostname, system IP and site ID. Which command lists repeated site IDs?

Predict · scenario 6

What is the purpose of a variable in a template?

Predict · scenario 7

A file for 20 branches repeats the same site ID on 5 of them. How many pairs of those branches lose the overlay path between them?

Predict · scenario 8

The Manager shows a router as out of sync after a deployment. What does that mean?

Predict · scenario 9

Which statement fits a configuration group?

FAQ

What is the difference between a template and its variables?
The template holds what is the same for many routers, such as which features are on. Variables hold what differs per router, such as the system IP, site ID, interface address and hostname. Each router needs its own set of values.
What does it mean when a device is out of sync?
The configuration on the router no longer matches what the Manager would send. The cause may be a local CLI change, an edit to the template that has not been pushed, or a failed deployment. The exact status names depend on the release.
Can I change a managed router from its CLI?
It is possible on some releases for limited items, but the Manager may overwrite the change or flag the device as out of sync. Make changes in the Manager, so there is one source of truth.