You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cvp/plug_and_play/README.md
+68-4Lines changed: 68 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,6 +125,9 @@ Each item in the lists above (e.g., inside `claim_switching_devices`) typically
125
125
| `image_name` | String | No | The name of the software image to provision. |
126
126
| `template_params` | Dictionary | No | Variables required by the Jinja2 template (e.g., VLAN ID, IP). |
127
127
| `device_info` | List | Yes | A list of specific devices to apply this configuration to. |
128
+
| `license_level` | String | No | License level applied when claiming a Catalyst switch / stack switch. Valid values: `Cisco DNA Essentials`, `Cisco DNA Advantage`. Most commonly used with `pnp_type: Default` or `pnp_type: StackSwitch`. |
129
+
| `top_of_stack_serial_number` | String | No | Serial number of the switch to designate as top-of-stack (Member 1 / Active) during stack renumbering. Must match a `serial_number` under `device_info`. Applicable only when `pnp_type: StackSwitch`. |
130
+
| `cabling_scheme` | Enum | No | Physical cabling topology of the Catalyst stack. Accepted values are `1A` and `1B`. Applicable only when `pnp_type: StackSwitch`. |
128
131
129
132
#### Device Info Object
130
133
@@ -137,6 +140,9 @@ The `device_info` list contains the specific identity of the physical devices.
137
140
| `hostname` | String | No | The hostname to assign or identify the device. |
138
141
| `state` | Enum | No | Expected state (e.g., `Unclaimed`, `Claimed`, `Provisioned`). |
139
142
| `authorize` | Boolean | No | **(v2.3.7.9+)** **Galaxy version 6.42.0+** Auto-authorize device if in `Pending Authorization` state. |
143
+
| `is_sudi_required` | Boolean | No | SUDI authentication requirement flag (sent as `sudiRequired`). When `true`, `user_sudi_serial_nos` is required. |
144
+
| `user_sudi_serial_nos` | List | No | List of SUDI serial numbers used for SUDI authorization. Required when `is_sudi_required` is `true`. For stack devices, include all stack member SUDI serial numbers. |
145
+
| `is_stack_device` | Boolean | No | Set to `true` if the device is a stack device. Only applies when `pnp_type` is `Default` or `StackSwitch`; ignored for `AccessPoint` and `CatalystWLC`. Defaults to `false`. |
140
146
141
147
142
148
## Example Input File
@@ -186,14 +192,36 @@ pnp_details:
186
192
pid: C9300-48T
187
193
```
188
194
189
-
### 3. Claim Switch Stack
195
+
### 3. Switch Stack (Add then Claim with Stack Renumbering)
190
196
191
-
Onboard a Cisco Catalyst 9K switch stack by specifying `pnp_type: StackSwitch`.
197
+
Dedicated end-to-end example for a Cisco Catalyst 9K switch **stack**. The CVP
198
+
playbook processes `network_devices` (ADD) before `claim_switching_devices`
199
+
(CLAIM), so this single vars file both adds the stack to PnP and then claims it
200
+
to a site as `pnp_type: StackSwitch`.
201
+
202
+
Stack-specific fields:
203
+
204
+
- `is_stack_device: true` marks the device as a stack member (sent to the API as `stack`).
205
+
- `top_of_stack_serial_number`designates which member becomes stack Member 1 / Active (stack renumbering).
206
+
- `cabling_scheme`(`1A` or `1B`) describes the physical stack cabling topology.
207
+
- `license_level`sets the license applied at claim time.
208
+
- Add `is_sudi_required: true` with `user_sudi_serial_nos` (all stack member SUDI serials) only when SUDI authorization is required.
192
209
193
210
```yaml
194
211
---
195
-
catalystcenter_version: 2.3.7.6
212
+
catalystcenter_version: 2.3.7.9
196
213
pnp_details:
214
+
# Phase 1: ADD the stack device to PnP (Unclaimed)
215
+
network_devices:
216
+
- device_info:
217
+
- serial_number: FJC271925Q1
218
+
hostname: NY-EN-9300
219
+
state: Unclaimed
220
+
pid: C9300-48UXM
221
+
is_sudi_required: false
222
+
is_stack_device: true
223
+
224
+
# Phase 2: CLAIM the stack device as StackSwitch (stack renumbering)
197
225
claim_switching_devices:
198
226
- site_name: Global/USA/New York/NY_BLD1
199
227
project_name: Onboarding Configuration
@@ -202,13 +230,50 @@ pnp_details:
202
230
template_params:
203
231
PNP_VLAN_ID: 2005
204
232
LOOPBACK_IP: 204.1.2.2
233
+
pnp_type: StackSwitch
234
+
license_level: "Cisco DNA Advantage"
235
+
top_of_stack_serial_number: FJC271925Q1
236
+
cabling_scheme: 1B
205
237
device_info:
206
238
- serial_number: FJC271925Q1
207
239
hostname: NY-EN-9300
208
240
state: Unclaimed
209
241
pid: C9300-48UXM
242
+
is_stack_device: true
243
+
```
244
+
245
+
> **Stack renumbering:** `top_of_stack_serial_number` and `cabling_scheme` apply only when `pnp_type: StackSwitch`. `license_level` accepts `Cisco DNA Essentials` or `Cisco DNA Advantage`.
246
+
247
+
#### Switch Stack with SUDI Authorization
248
+
249
+
When SUDI authorization is required, set `is_sudi_required: true` and list **every
250
+
stack member serial number** in `user_sudi_serial_nos` (sent to the API as
251
+
`userSudiSerialNos`).
252
+
253
+
```yaml
254
+
---
255
+
catalystcenter_version: 2.3.7.9
256
+
pnp_details:
257
+
claim_switching_devices:
258
+
- site_name: Global/USA/New York/NY_BLD1
259
+
project_name: Onboarding Configuration
210
260
pnp_type: StackSwitch
261
+
license_level: "Cisco DNA Advantage"
262
+
top_of_stack_serial_number: FJC271925Q1
263
+
cabling_scheme: 1B
264
+
device_info:
265
+
- serial_number: FJC271925Q1
266
+
hostname: NY-EN-9300
267
+
state: Unclaimed
268
+
pid: C9300-48UXM
269
+
is_stack_device: true
270
+
is_sudi_required: true
271
+
user_sudi_serial_nos:
272
+
- FJC271925Q1
273
+
- FJC271925Q2
274
+
- FJC271925Q3
211
275
```
276
+
212
277
### 4. Claim Router Device
213
278
214
279
Onboard a Cisco router with appropriate template and image.
@@ -869,4 +934,3 @@ Use either of these forms:
869
934
870
935
- Relative to the playbook: `../vars/catalyst_center_pnp_vars.yml`
871
936
- Fully resolved from the repo root: `${PWD}/cvp/plug_and_play/vars/catalyst_center_pnp_vars.yml`
-`image_name` / `golden_image`: Software image to provision.
41
+
-`pnp_type`: `Default`, `CatalystWLC`, `AccessPoint`, or `StackSwitch`.
42
+
-`license_level`: License level applied when claiming a switch / stack switch. Valid values: `Cisco DNA Essentials`, `Cisco DNA Advantage`.
43
+
-`top_of_stack_serial_number`: Serial number designated as top-of-stack (Member 1 / Active) for stack renumbering. Applicable only when `pnp_type: StackSwitch`.
44
+
-`cabling_scheme`: Physical cabling topology of the stack. Accepted values: `1A`, `1B`. Applicable only when `pnp_type: StackSwitch`.
0 commit comments