# Local Policy Service Configuration Mode Commands

The Local Policy Service Configuration Mode is used to configure the local QoS policy for one or more services.

IMPORTANT:

A maximum of 16 local QoS policy services are supported.

IMPORTANT:

The commands or keywords/variables that are available are dependent on platform type, product version, and installed license(s).
actiondef

This command enables creating, configuring, or deleting action definitions for an event.
Platform:

ASR 5000
Product:

P-GW
Privilege:

Security Administrator, Administrator
Syntax

    actiondef actiondef_name [ -noconfirm ]no actiondef actiondef_name

no

Deletes the specified actiondef from the local QoS policy service.
actiondef_name

Specifies name of the actiondef.

actiondef_name must be unique within the service expressed as an alphanumeric string of 1 through 63 characters.

If the named actiondef does not exist, it is created, and the CLI mode changes to the Local Policy Actiondef Configuration Mode wherein the actiondef can be configured.

If the named actiondef already exists, the CLI mode changes to the Local Policy Actiondef Configuration Mode for that actiondef.
-noconfirm

Specifies that the command must execute without prompting for confirmation.
Usage:

Use this command to create, configure, or delete an actiondef. The actiondef configuration is used to configure the action definitions for an event. The event ruledef will have one or more rules and associated action(s).

This command can be entered multiple times to specify multiple actiondefs.

IMPORTANT:

A maximum of 256 actiondefs are suggested in a local QoS policy service for performance reasons. An actiondef can be referenced by multiple eventbases.

Entering this command results in the following prompt:

    [context_name]hostname(config-local-policy-actiondef)#

Local Policy Actiondef Configuration Mode commands are defined in the Local Policy Actiondef Configuration Mode Commands chapter.
Example:
The following command creates an actiondef named actiondef1 and enters the Local Policy Actiondef Configuration Mode:

    actiondef actiondef1

end

Exits the current configuration mode and returns to the Exec mode.
Product:

All
Privilege:

Security Administrator, Administrator
Syntax

    end

Usage:

Use this command to return to the Exec mode.
exit

Exits the current mode and returns to the parent configuration mode.
Product:

All
Privilege:

Security Administrator, Administrator
Syntax

    exit

Usage:

Use this command to return to the parent configuration mode.
eventbase

This command enables creating, configuring, or deleting an eventbase.
Platform:

ASR 5000
Product:

P-GW
Privilege:

Security Administrator, Administrator
Syntax

    eventbase eventbase_name [ -noconfirm ]no eventbase eventbase_name

no

Deletes the specified eventbase from the local QoS policy service.
eventbase_name

Specifies name of the eventbase.

eventbase_name must be unique within the service expressed as an alphanumeric string of 1 through 63 characters.

IMPORTANT:

Currently, only one eventbase is supported, and it must be named “default”.

If the named eventbase does not exist, it is created, and the CLI mode changes to the Local Policy Eventbase Configuration Mode wherein the eventbase can be configured.

If the named eventbase already exists, the CLI mode changes to the Local Policy Eventbase Configuration Mode for that eventbase.
-noconfirm

Specifies that the command must execute without prompting for confirmation.
Usage:

Use this command to create, configure, or delete an eventbase.

Entering this command results in the following prompt:

    [context_name]hostname(config-local-policy-eventbase)#

Local Policy Eventbase Configuration Mode commands are defined in the Local Policy Eventbase Configuration Mode Commands chapter.
Example:
The following command creates an eventbase named default and enters the Local Policy Eventbase Configuration Mode:

    eventbase default

ruledef

This command enables creating, configuring, or deleting a rule definition.
Platform:

ASR 5000
Product:

P-GW
Privilege:

Security Administrator, Administrator
Syntax

    ruledef ruledef_name [ -noconfirm ]no ruledef ruledef_name

no

Deletes the specified ruledef from the local QoS policy service.
ruledef_name

Specifies name of the ruledef.

ruledef_name must be unique within the service expressed as an alphanumeric string of 1 through 63 characters.

If the named ruledef does not exist, it is created, and the CLI mode changes to the Local Policy Ruledef Configuration Mode wherein the ruledef can be configured.

If the named ruledef already exists, the CLI mode changes to the Local Policy Ruledef Configuration Mode for that ruledef.
-noconfirm

Specifies that the command must execute without prompting for confirmation.
Usage:

Use this command to create, configure, or delete a ruledef. A ruledef represents a set of matching conditions.

This command can be entered multiple times to specify multiple ruledefs.

IMPORTANT:

A maximum 256 ruledefs are suggested in a local QoS policy service for performance reasons.

Entering this command results in the following prompt:

    [context_name]hostname(config-local-policy-ruledef)#

Local Policy Ruledef Configuration Mode commands are defined in the Local Policy Ruledef Configuration Mode Commands chapter.
Example:
The following command creates a ruledef named rule5 and enters the Local Policy Ruledef Configuration Mode:

    ruledef rule5