VTP
NX-OSVLAN Trunking Protocol (VTP) configuration manages the global VTP settings on NX-OS devices. VTP propagates VLAN definitions across switches that share the same VTP domain over trunk links. Settings include the VTP domain name, the operating mode (server, client, transparent or off), the protocol version, an optional domain password and the file used to store the VLAN database. VTP is enabled with feature vtp, and individual Ethernet and port-channel interfaces can opt out with no vtp.
Diagram
Section titled “Diagram”Classes
Section titled “Classes”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| devices | List | devices | No | |
| device_groups | List | device_groups | No | |
| global | Class | global | No | |
| templates | List | templates | No |
devices (nxos)
Section titled “devices (nxos)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
device_groups (nxos)
Section titled “device_groups (nxos)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
global (nxos)
Section titled “global (nxos)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
templates (nxos)
Section titled “templates (nxos)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
configuration (nxos.devices)
Section titled “configuration (nxos.devices)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| vtp | Class | vtp | No |
vtp (nxos.devices.configuration)
Section titled “vtp (nxos.devices.configuration)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| domain | String | No | ||
| mode | Choice | client, server, transparent, off | No | |
| version | Integer | min: 1, max: 2 | No | |
| password | String | No | ||
| file | String | No |
Examples
Section titled “Examples”Example 1: VTP server with domain, version 2 and password
nxos: devices: - name: LEAF1 configuration: feature: vtp: true vtp: domain: CAMPUS mode: server version: 2 password: VtpSecret123Example 2: VTP transparent mode with a custom VLAN database file and VTP disabled on an uplink
nxos: devices: - name: LEAF1 configuration: feature: vtp: true vtp: domain: CAMPUS mode: transparent file: bootflash:/vtp.dat interfaces: ethernets: - id: 1/49 switchport: mode: trunk vtp: false