This command is used
to configure the conditions which trigger the ruledef event.
Privilege:
Security Administrator, Administrator
Mode:
Exec > Global Configuration
> Local Policy Service Configuration > Local Policy Ruledef Configuration
configure > local-policy-service service_name > ruledef ruledef_name
Entering the above
command sequence results in the following prompt:
[context_name]host_name(config-local-policy-ruledef)#
Syntax
condition priority priority { variable { eq | ge | gt | le | lt | match | ne | nomatch } regex | string_value | int_value | set }no condition priority priority
priority priority
Specifies a priority
for the specified condition.
priority must
be unique and an integer from 1 to 2048.
variable
The following variables
are supported:
-
The APN associated
with the current session expressed as an alphanumeric string of
1 through 63 characters.
-
The APN associated
with the current session expressed as an integer from 1 through 15.
-
Total bandwidth associated
with the QCI and ARP value associated with the request, expresed
as an integer from 0 through 1000000000.
-
Base Station Identifier
associated with the subscriber as expressed as an alphanumeric string of
1 through 63 characters.
-
Failure Cause Code
associated with the subscriber as expressed as an alphanumeric string
of 1 through 63 characters.
-
Cell Global Identification
associated with the subscriber as expressed as an alphanumeric string
of 1 through 63 characters.
IMPORTANT:
This variable is available
only in 15.0 and earlier releases. In 16.0
and later releases, it is deprecated.
-
Date value to match. <Clock
in format YYYY:MM:DD>
-
The day of the month
to match the rule to, expressed as an integer from 1 through 31.
-
Sunday...Saturday, expressed
as an integer from 1 to 7.
-
E-UTRAN Cell
Global Identification associated with the subscriber as expressed
as an alphanumeric string of 1 through 63 characters.
IMPORTANT:
This variable is available
only in 15.0 and earlier releases. In 16.0
and later releases, it is deprecated.
-
IMEISV of the user
equipment expressed as an alphanumeric string of 1 through 63 characters.
-
IMSI associated with
the subscriber expressed as an alphanumeric string of 1 through
63 characters.
-
MEID associated with
the subscriber expressed as an alphanumeric string of 1 through
63 characters.
-
Jan, Feb….Dec, expressed
as an integer from 1 through 12.
-
MSISDN associated
with the session expressed as an alphanumeric string of 1 through
63 characters.
-
NAI associated with
the session expressed as an alphanumeric string of 1 through 63 characters.
-
Type of PDNs associated
with the same APN.
-
IPV4: IPv4
PDN Type
-
IPV4V6: IPv4v6
PDN Type
-
IPV6: IPv6
PDN Type
-
QCI associated with
the current event expressed as an nteger from 1 through 254.
-
Radio access technology
associated with the subscriber:
-
cdma-1xrtt: CDMA
1X RTT radio access technology
-
cdma-evdo: CDMA-EVDO
radio access technology
-
cdma-evdo-reva: CDMA
EVDO REVA radio access technology
-
cdma-other: Other
CDMA radio access technologies
-
ehrpd: EHRPD
radio access technology
-
eutran: EUTRAN
radio access technology
-
gan: GAN
radio access technology
-
gprs-geran: GPRS
GERAN radio access technology
-
gprs-other: Other
GPRS radio access technology
-
hspa: HSPA
radio access technology
-
unknown: Unknown
radio access technology
-
wcdma-utran: WCDMA
UTRAN radio access technology
-
wimax: WiMax
radio access technology
-
wireless-lan: Wireless
LAN radio access technology
-
Routing Area Identification
associated with the subscriber as expressed as an alphanumeric string
of 1 through 63 characters.
-
Serving Area Identification
associated with the subscriber as expressed as an alphanumeric string
of 1 through 63 characters.
IMPORTANT:
This variable is available
only in 15.0 and earlier releases. In 16.0
and later releases, it is deprecated.
-
IP address associated
with the current node serving the subscriber entered using IPv4
dotted-decimal or IPv6 colon-separated-hexadecimal
notation.
-
PLMN associated with
the current node serving the subscribe expressed as an alphanumeric string
of 1 through 63 characters.
-
Tracking Area Identification
associated with the subscriber as expressed as an alphanumeric string
of 1 through 63 characters.
IMPORTANT:
This variable is available
only in 15.0 and earlier releases. In 16.0
and later releases, it is deprecated.
-
Time associated with
the change. <Clock in format HH:mm:ss
or HH:mm >
-
Timer name as expressed
as an alphanumeric string of 1 through 63 characters.
IMPORTANT:
This variable is available
only in 15.0 and earlier releases. In 16.0
and later releases, it is deprecated.
eq | ge | gt | le | lt | match | ne | nomatch
eq: Operation
equal to
ge: Operation
greater than or equal to
gt: Operation
greater than
le: Operation
less than or equal to
lt: Operation
less than
match: Operation
match
ne: Operation
not equal to
nomatch: Operation
nomatch
no condition priority priority
Deletes the specified
condition.
Usage:
Use this command to
configure the conditions which trigger the ruledef event. A
ruledef represents a set of matching conditions.
This command can be
entered multiple times to configure multiple conditions for a ruledef. The
conditions are examined in priority order until a match is found
and the corresponding condition is applied.
Example:
The following command
creates a condition with priority set to
5 and configured
match apn
myapn*:
condition priority
5 apn match myapn*