associate role

Syntax

associate role <ROLE-NAME>

no associate role <ROLE-NAME>

Description

Associates a role with a device profile. Only one role can be associated with a device profile. For information on how to configure a role, see the port access role information in the Security Guide.

The no form of this command removes a role from a device profile.

Command context

config-device-profile

Parameters

<ROLE-NAME>
Specifies the name of the role to associate with the device profile. Range: 1 to 64 alphanumeric characters.

Authority

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

Examples

Associating the role my-role with the device profile profile01:

switch(config)# port-access device-profile profile01
switch(config-device-profile)# associate role my-role

Removing the role my-role from the device profile profile01:

switch(config)# port-access device-profile profile01
switch(config-device-profile)# no associate role my-role