Command Reference Guide
DiffServ Class Commands
CLI Command Reference
September 2014 Page 629
HP Moonshot Switch Module CLI Command Reference
class-map
This command defines a DiffServ class of type match-all. When used without any match condition, this
command enters the class-map mode. The
class-map-name is a case sensitive alphanumeric string from 1 to 31
characters uniquely identifying an existing DiffServ class.
The class type of
match-all indicates all of the individual match conditions must be true for a packet to be
considered a member of the class.This command may be used without specifying a class type to enter the
Class-Map Config mode for an existing DiffServ class.
no class-map
This command eliminates an existing DiffServ class. The class-map-name is the name of an existing DiffServ
class. (The class name default is reserved and is not allowed here.) This command may be issued at any time;
if the class is currently referenced by one or more policies or by any other class, the delete action fails.
class-map rename
This command changes the name of a DiffServ class. The class-map-name is the name of an existing DiffServ
class. The
new-class-map-name parameter is a case-sensitive alphanumeric string from 1 to 31 characters
uniquely identifying the class.
Note: The class-map-name 'default' is reserved and must not be used.
Note: The optional keywords [{ipv4 | ipv6}] specify the Layer 3 protocol for this class. If not
specified, this parameter defaults to
ipv4. This maintains backward compatibility for configurations
defined on systems before IPv6 match items were supported.
Note: The CLI mode is changed to Class-Map Config or Ipv6-Class-Map Config when this command is
successfully executed depending on the [
{ipv4 | ipv6}] keyword specified.
Format
class-map match-all class-map-name [{ipv4 | ipv6}]{}
Mode Global Config
Format
no class-map class-map-name
Mode Global Config
Default none
Format
class-map rename class-map-name new-class-map-name
Mode Global Config