Sets the listener policy to be used at egress for forwarding matched packets.
Config mode
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.
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 |
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