activate
To activate the dynamic template in the class map sub-configuration mode, use the activate command. To deactivate the dynamic template, use the deactivate command.
activate dynamic-template {name aaa list {list_name | default} | service-from-line}
Syntax Description
dynamic-template |
Specifies the actions related to dynamic templates. |
name |
Specifies the name of the dynamic template. |
aaa |
Specifies the AAA parameters. |
list |
Specifies the AAA method list that identifies the radius server from which to acquire the service definition. |
default |
Specifies the default AAA method list. |
list_name |
(Optional) Specifies the name of the AAA method list. If provided, the template is downloaded from radius. If not provided, then the template is expected to be locally configured. |
service-from-line |
Activates the service encoded in the DHCP Remote-Id parameter. |
Command Default
None
Command Modes
Class map sub-configuration
Command History
Release | Modification |
---|---|
Release 4.2.0 |
This command was introduced. |
Release 6.2.1 |
Modified the command to include service-from-line option. |
Usage Guidelines
You must configure decode command to decode (as per the defined AAA attribute format) the service encoded in the DHCP Remote-Id parameter. This particular service is the one referred as service-from-line in this context.
Task ID
Task ID | Operation |
---|---|
qos |
read, write |
Examples
This is an example of configuring the activate command in the Global Configuration mode:
RP/0/RSP0/CPU0:router# configure
RP/0/RSP0/CPU0:router(config)# policy-map type control subscriber PL1
RP/0/RSP0/CPU0:router(config-pmap)# event session-activate match-first
RP/0/RSP0/CPU0:router(config-pmap-e)# class type control subscriber CL2
RP/0/RSP0/CPU0:router(config-pmap-c)# 1 activate dynamic-template DL1 aaa list default
This is an example of activating the service that was encoded in the DHCP Remote-Id parameter:
RP/0/RSP0/CPU0:router# configure
RP/0/RSP0/CPU0:router(config)# policy-map type control subscriber PL1
RP/0/RSP0/CPU0:router(config-pmap)# event session-start match-first
RP/0/RSP0/CPU0:router(config-pmap-e)# class type control subscriber CL2 do-until-failure
RP/0/RSP0/CPU0:router(config-pmap-c)# 1 decode remote-id format my-format
RP/0/RSP0/CPU0:router(config-pmap-c)# 2 activate dynamic-template service-from-line
RP/0/RSP0/CPU0:router(config-pmap-c)# 3 authorize aaa list default identifier remote-id password blank