set listener-policy

Sets the listener policy to be used at egress for forwarding matched packets.

Syntax

set listener-policy name
no set listener-policy name

Parameters

name
Specifies the configured listener policy to be applied to matching packets at egress for packet forwarding. Name must not exceed 64 characters and must start with an alphabetic character or an underscore followed by an arbitrary sequence of alphabetic or numeric characters, underscores, hyphens, or dots.

Modes

Config mode

Usage Guidelines

You must have the admin role to perform this task.

The following reserved keywords cannot be used as name identifiers: all, ingress-group, egress, egress-group, match, list, access-list, route-map, and listener-policy.

Table 1. Error messages
Message Reason
Error: listener-policy name must start with an alphabetic character or an underscore. Name begins with non-alphabetic character or does not begin with an underscore.
Error: listener-policy name identifier cannot exceed 64 characters Name is longer than 64 characters.
Error: listener-policy name identifier must start with an alphabetic character or an underscore Name begins with non-alphabetic character or does not begin with an underscore.
Error: listener-policy name identifier must be an arbitrary sequence of alphabets, numerals, underscores, hyphens or dots. Name contains invalid characters.
Error: listener-policy name identifier must not be reserved keyword "listener-policy". Name includes the reserved word listener-policy

Examples

The following example configures listener-policy lp100 to be used by egress_1 for packet forwarding.

device# configure terminal
device(config)# egress egress_1
device(config-egress)# set listener-policy lp100
device(config-egress)# end 
device#

The following example verifies the configuration for egress_1.

device# show running-config egress egress_1
egress egress_1
  set listener-policy lp100

The following example unbinds the listener-policy lp100 from egress_1.

device# configure terminal
device(config)# egress egress_1
device(config-egress)# no set listener-policy lp100