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

This command is available only to users with the admin role.

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.

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