associate policy
Syntax
associate policy <POLICY-NAME>
no associate policy <POLICY-NAME>
Description
Associates the policy with the current role.
The
no
form of this command dissociates the policy from the role.
Command context
config-pa-role
The
port-access role
command takes you into the
config-pa-role
context.
Parameters
<POLICY-NAME>
Specifies the policy name to associate with the current role. The maximum number of characters allowed is 64.
NOTE:Only those policies created by using the
port-access policy
command are allowed to be associated with a role.Policies created using the
policy
command are not allowed to be associated with a role.Policies that are of the downloaded type are not allowed to be associated with a role.
Authority
Administrators or local user group members with execution rights for this command.
Examples
Associating a policy with a role:
switch(config)# port-access role role01 switch(config-pa-role)# associate policy policy01
Dissociating a policy from the role:
switch(config-pa-role)# no associate policy poilcy01