match (for CDP groups)

Syntax

match [seq <SEQ-ID>] {platform <PLATFORM> | sw-version <SWVERSION> | 
     voice-vlan-query <VLAN-ID>}

no match [seq <SEQ-ID>] {platform <PLATFORM> | sw-version <SWVERSION> | 
     voice-vlan-query <VLAN-ID>}

Description

Defines a rule to match devices for a CDP group. Up to 64 match/ignore rules can be defined for a group.

The no form of this command removes a rule for adding devices to a CDP group.

Command context

config-cdp-group

Parameters

seq <SEQ-ID>
Specifies the ID of the rule to create or modify. If no ID is specified when adding a rule, an ID is automatically assigned in increments of 10 in the order in which rules are added. When more than one rule matches the command entered, the rule with the lowest ID takes precedence.
platform <PLATFORM>

Specifies the hardware or model details of the neighbor. Range: 1 to 128 alphanumeric characters.

sw-version <SWVERSION>

Specifies the software version of the neighbor. Range: 1 to 128 alphanumeric characters.

voice-vlan-query <VLAN-ID>

Specifies the VLAN query value of the neighbor. Range: 1 to 65535.

Authority

Administrators or local user group members with execution rights for this command.

Examples

Adding rules to match a Cisco device with a specific software version on VLAN 512 to the CDP group grp01:

switch(config)# port-access cdp-group grp01
switch(config-cdp-group)# match platform CISCO
switch(config-cdp-group)# match sw-version 11.2(12)P
switch(config-cdp-group)# match voice-vlan-query 512
switch(config-cdp-group)# match seq 50 platform cisco sw-version 11.2(12)P voice-vlan-query 512
switch(config-cdp-group)# exit
switch(config)# do show running-config

Current configuration:
!
!Version ArubaOS-CX Virtual.10.0X.000
!export-password: default
led locator on
!
!
vlan 1
port-access cdp-group grp01
     seq 10 match platform CISCO
     seq 20 match sw-version 11.2(12)P
     seq 30 match voice-vlan-query 512
     seq 50 match platform cisco sw-version 11.2(12)P voice-vlan-query 512

Removing a rule that matches the sequence number 25 from the CDP group named grp01:

switch(config)# port-access cdp-group grp01
switch(config-cdp-group)# no match seq 25