Creates or removes a listener policy.
Config mode
Valid listener policy name must be provided.
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.Attempts to remove any listener policy that is not configured are ignored.
Message | Reason |
---|---|
Error: listener-policy name identifier must be an arbitrary sequence of alphabets, numerals, underscores, hyphens or dots | Name begins with non-alphabetic character, contains invalid characters, or does not begin with an underscore. |
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 cannot exceed 64 characters | Name is longer than 64 characters. |
Error: listener-policy name identifier must not be reserved keyword | Name includes the reserved word indicated. |
The following examples show how to configure a listener policy.
device# configure terminal device(config)# listener-policy lp1 4 13 device(config)# listener-policy lp2 5 device(config)# no listener-policy lp1 4 13 device(config)# no listener-policy lp2 5
The following example removes the configured listener policy.
device# configure terminal device(config)# no listener-policy lp1 4 243
The following examples show error messages for the listener policy command.
device(config)# listener-policy #abc1 100 Error: listener-policy name identifier must start with an alphabetic character or an underscore device(config-listener-policy)# listener-policy abcdefghijklmnopqrstuvwxyz_abcdefghijklmnopqrstuvwxyz_abcdefghijklmnopqrstuvwxyz Error: listener-policy name identifier cannot exceed 64 characters device(config-listener-policy)# listener-policy egress 10 23 Error: listener-policy name identifier must not be reserved keyword "egress"