PacketShaper "class show" command indicates non-existing partition

book

Article ID: 168651

calendar_today

Updated On:

Products

PacketShaper S-Series PacketShaper

Issue/Introduction

Class show command indicates non-existing partition if you create a partition in the following conditions:
  • Class has hierarchic structure.
  • The leaf class name is the same name as parent class..
  • There is another leaf class on the same hierarchy.
  • Added partition for leaf class that has the same class name as the parent class.

Example.
  • Example class has hierarchic structure
  • The leaf class of Inbound/BlueCoat/BlueCoat is same name parent class inbound/BlueCoat
  • There is another leaf class Inbound/BlueCoat/AAA,Inbound/BlueCoat/BlueCoat,Inbound/BlueCoat/BBB.
  • Added partition for Inbound/BlueCoat/BlueCoat
---------------------------------------
  Class Name
  Inbound
    Localhost
    BlueCoat
      |-AAA
      |-BlueCoat
      |-BBB
    PacketShaper
      |-CCC
      |-DDD
      |-EEE
    Default
---------------------------------------


The class show output shows that the class Inbound/BlueCoat/BBB uses the /Inbound/BlueCoat partition (which doesn't exist).

PacketShaper# class show
  Class Name                              Flags      Partition Name

  Inbound                                       m    /Inbound
    Localhost                               E P      /Inbound
    BlueCoat                                     o   /Inbound
      AAA                                        a   /Inbound
      BlueCoat                                   a   /Inbound/BlueCoat/BlueCoat
      BBB                                            /Inbound/BlueCoat
    PacketShaper                                 a   /Inbound
      CCC                                      C a   /Inbound
      DDD                                      C a   /Inbound
      EEE                                      C a   /Inbound
      Default                                  Cma   /Inbound
    Default                                  IP m    /Inbound

Cause

This is actually a cosmetic issue.
  • This non-existing partition does not appear in the partition show command output.
  • And the non-existing partition is not counted in the partition count shown in sys limits command output.

Resolution

Workaround

To fix this cosmetic issue, rename the leaf class.
In this example, renamed Inbound/BlueCoat/BlueCoat to Inbound/BlueCoat/BlueCoat1
That result is the class show output correctly shows that Inbound/BlueCoat/BBB uses the /Inbound partition.

PacketShaper# class show

  Class Name                              Flags      Partition Name

  Inbound                                       m    /Inbound
    Localhost                               E P      /Inbound
    BlueCoat                                     o   /Inbound
      AAA                                        a   /Inbound
      BlueCoat1                                  a   /Inbound/BlueCoat/BlueCoat1
      BBB                                            /Inbound <--
    PacketShaper                                 a   /Inbound
      CCC                                      C a   /Inbound
      DDD                                      C a   /Inbound
      EEE                                      C a   /Inbound
      Default                                  Cma   /Inbound
    Default                                  IP m    /Inbound