Configuring a User-Defined Network QoS Policy

Configuring Dynamic Packet Prioritization

Configuring Dynamic Packet Prioritization
POST http://<mgmt0_IP>/api/mo/sys/ipqos/nw/p.json
{
  "ipqosPMapEntity": {
    "children": [
      {
        "ipqosPMapInst": {
          "attributes": {
            "name": "dme-policy"
          },
          "children": [
            {
              "ipqosMatchCMap": {
                "attributes": {
                  "name": "c-8q-nq3"
                },
                "children": [
                  {
                    "ipqosDpp": {
                      "attributes": {
                        "setQosGroup": "3"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <ipqos-items>
    <nw-items>
      <p-items>
        <name-items>
          <PMapInst-list>
            <name>dme-policy</name>
            <cmap-items>
              <MatchCMap-list>
                <name>c-8q-nq3</name>
                <dpp-items>
                  <setQosGroup>3</setQosGroup>
                </dpp-items>
              </MatchCMap-list>
            </cmap-items>
          </PMapInst-list>
        </name-items>
      </p-items>
    </nw-items>
  </ipqos-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

policy-map type network-qos dme-policy
  class type network-qos c-8q-nq3
   dpp set-qos-group 3


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
ipqosPMapEntity sys/ipqos/nw/p
ipqosPMapInst sys/ipqos/nw/p/name-dme-policy
ipqosMatchCMap sys/ipqos/nw/p/name-dme-policy/cmap-c-8q-nq3
ipqosDpp sys/ipqos/nw/p/name-dme-policy/cmap-c-8q-nq3/dpp


ipqosPMapInst Properties

The following table contains information about the ipqosPMapInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
nameipqos:PMapName
(string:Basic)
Name of policy-map
MAX SIZE: 39


ipqosMatchCMap Properties

The following table contains information about the ipqosMatchCMap properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
nameipqos:CMapName
(string:Basic)
Match using class-map
MAX SIZE: 39


ipqosDpp Properties

The following table contains information about the ipqosDpp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
setQosGroupipqos:CosNewNone
(scalar:Enum8)
QoS Group ValueSELECTION:
0 - 0
1 - 1
2 - 2
3 - 3
4 - 4
5 - 5
6 - 6
7 - 7
8 - None
DEFAULT: None


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting Dynamic Packet Prioritization

Deleting Dynamic Packet Prioritization
POST http://<mgmt0_IP>/api/mo/sys/ipqos/nw/p.json
{
  "ipqosPMapEntity": {
    "children": [
      {
        "ipqosPMapInst": {
          "attributes": {
            "name": "dme-policy"
          },
          "children": [
            {
              "ipqosMatchCMap": {
                "attributes": {
                  "name": "c-8q-nq3"
                },
                "children": [
                  {
                    "ipqosDpp": {
                      "attributes": {
                        "status": "deleted"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <ipqos-items>
    <nw-items>
      <p-items>
        <name-items>
          <PMapInst-list>
            <name>dme-policy</name>
            <cmap-items>
              <MatchCMap-list>
                <name>c-8q-nq3</name>
                <dpp-items nc:operation="delete">
                </dpp-items>
              </MatchCMap-list>
            </cmap-items>
          </PMapInst-list>
        </name-items>
      </p-items>
    </nw-items>
  </ipqos-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

policy-map type network-qos dme-policy
  class type network-qos c-8q-nq3
   no dpp set-qos-group 3


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
ipqosPMapEntity sys/ipqos/nw/p
ipqosPMapInst sys/ipqos/nw/p/name-dme-policy
ipqosMatchCMap sys/ipqos/nw/p/name-dme-policy/cmap-c-8q-nq3
ipqosDpp sys/ipqos/nw/p/name-dme-policy/cmap-c-8q-nq3/dpp


ipqosPMapInst Properties

The following table contains information about the ipqosPMapInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
nameipqos:PMapName
(string:Basic)
Name of policy-map
MAX SIZE: 39


ipqosMatchCMap Properties

The following table contains information about the ipqosMatchCMap properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
nameipqos:CMapName
(string:Basic)
Match using class-map
MAX SIZE: 39


ipqosDpp Properties

The following table contains information about the ipqosDpp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
statusmo:ModificationStatus
(scalar:Bitmask32)
The upgrade status. This property is for internal use only.SELECTION:
2 - created
4 - modified
8 - deleted
16 - replaced


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring MTU for the CoS

Configuring MTU for the CoS
POST http://<mgmt0_IP>/api/mo/sys/ipqos/nw/p.json
{
  "ipqosPMapEntity": {
    "children": [
      {
        "ipqosPMapInst": {
          "attributes": {
            "name": "dme-policy"
          },
          "children": [
            {
              "ipqosMatchCMap": {
                "attributes": {
                  "name": "c-8q-nq3"
                },
                "children": [
                  {
                    "ipqosSetMTU": {
                      "attributes": {
                        "value": "1600"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <ipqos-items>
    <nw-items>
      <p-items>
        <name-items>
          <PMapInst-list>
            <name>dme-policy</name>
            <cmap-items>
              <MatchCMap-list>
                <name>c-8q-nq3</name>
                <mtu-items>
                  <value>1600</value>
                </mtu-items>
              </MatchCMap-list>
            </cmap-items>
          </PMapInst-list>
        </name-items>
      </p-items>
    </nw-items>
  </ipqos-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

policy-map type network-qos dme-policy
  class type network-qos c-8q-nq3
   mtu 1600


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
ipqosPMapEntity sys/ipqos/nw/p
ipqosPMapInst sys/ipqos/nw/p/name-dme-policy
ipqosMatchCMap sys/ipqos/nw/p/name-dme-policy/cmap-c-8q-nq3
ipqosSetMTU sys/ipqos/nw/p/name-dme-policy/cmap-c-8q-nq3/mtu


ipqosPMapInst Properties

The following table contains information about the ipqosPMapInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
nameipqos:PMapName
(string:Basic)
Name of policy-map
MAX SIZE: 39


ipqosMatchCMap Properties

The following table contains information about the ipqosMatchCMap properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
nameipqos:CMapName
(string:Basic)
Match using class-map
MAX SIZE: 39


ipqosSetMTU Properties

The following table contains information about the ipqosSetMTU properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
valueipqos:MTU
(scalar:Uint16)
Set MTU value
RANGE: [576 , 9216]
DEFAULT: 1500


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Unconfiguring MTU for the CoS

Unconfiguring MTU for the CoS
POST http://<mgmt0_IP>/api/mo/sys/ipqos/nw/p.json
{
  "ipqosPMapEntity": {
    "children": [
      {
        "ipqosPMapInst": {
          "attributes": {
            "name": "dme-policy"
          },
          "children": [
            {
              "ipqosMatchCMap": {
                "attributes": {
                  "name": "c-8q-nq3"
                },
                "children": [
                  {
                    "ipqosSetMTU": {
                      "attributes": {
                        "value": "1500"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <ipqos-items>
    <nw-items>
      <p-items>
        <name-items>
          <PMapInst-list>
            <name>dme-policy</name>
            <cmap-items>
              <MatchCMap-list>
                <name>c-8q-nq3</name>
                <mtu-items>
                  <value>1500</value>
                </mtu-items>
              </MatchCMap-list>
            </cmap-items>
          </PMapInst-list>
        </name-items>
      </p-items>
    </nw-items>
  </ipqos-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

policy-map type network-qos dme-policy
  class type network-qos c-8q-nq3
   no mtu 1600


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
ipqosPMapEntity sys/ipqos/nw/p
ipqosPMapInst sys/ipqos/nw/p/name-dme-policy
ipqosMatchCMap sys/ipqos/nw/p/name-dme-policy/cmap-c-8q-nq3
ipqosSetMTU sys/ipqos/nw/p/name-dme-policy/cmap-c-8q-nq3/mtu


ipqosPMapInst Properties

The following table contains information about the ipqosPMapInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
nameipqos:PMapName
(string:Basic)
Name of policy-map
MAX SIZE: 39


ipqosMatchCMap Properties

The following table contains information about the ipqosMatchCMap properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
nameipqos:CMapName
(string:Basic)
Match using class-map
MAX SIZE: 39


ipqosSetMTU Properties

The following table contains information about the ipqosSetMTU properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
valueipqos:MTU
(scalar:Uint16)
Set MTU value
RANGE: [576 , 9216]
DEFAULT: 1500


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring an IEEE 802.1Q class of Service for a Network QoS Policy

Configuring an IEEE 802.1Q class of Service for a Network QoS Policy
POST http://<mgmt0_IP>/api/mo/sys/ipqos/nw/p.json
{
  "ipqosPMapEntity": {
    "children": [
      {
        "ipqosPMapInst": {
          "attributes": {
            "name": "dme-policy-pmap"
          },
          "children": [
            {
              "ipqosMatchCMap": {
                "attributes": {
                  "name": "newdme"
                },
                "children": [
                  {
                    "ipqosSetCos": {
                      "attributes": {
                        "val": "7"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <ipqos-items>
    <nw-items>
      <p-items>
        <name-items>
          <PMapInst-list>
            <name>dme-policy-pmap</name>
            <cmap-items>
              <MatchCMap-list>
                <name>newdme</name>
                <setCos-items>
                  <val>7</val>
                </setCos-items>
              </MatchCMap-list>
            </cmap-items>
          </PMapInst-list>
        </name-items>
      </p-items>
    </nw-items>
  </ipqos-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

policy-map type network-qos dme-policy-pmap
  class type network-qos newdme
   set cos 7


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
ipqosPMapEntity sys/ipqos/nw/p
ipqosPMapInst sys/ipqos/nw/p/name-dme-policy-pmap
ipqosMatchCMap sys/ipqos/nw/p/name-dme-policy-pmap/cmap-newdme
ipqosSetCos sys/ipqos/nw/p/name-dme-policy-pmap/cmap-newdme/setCos


ipqosPMapInst Properties

The following table contains information about the ipqosPMapInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
nameipqos:PMapName
(string:Basic)
Name of policy-map
MAX SIZE: 39


ipqosMatchCMap Properties

The following table contains information about the ipqosMatchCMap properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
nameipqos:CMapName
(string:Basic)
Match using class-map
MAX SIZE: 39


ipqosSetCos Properties

The following table contains information about the ipqosSetCos properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
valipqos:CosNewNone
(scalar:Enum8)
Cos valueSELECTION:
0 - 0
1 - 1
2 - 2
3 - 3
4 - 4
5 - 5
6 - 6
7 - 7
None
DEFAULT: None


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting an IEEE 802.1Q class of Service for a Network QoS Policy

Deleting an IEEE 802.1Q class of Service for a Network QoS Policy
POST http://<mgmt0_IP>/api/mo/sys/ipqos/nw/p.json
{
  "ipqosPMapEntity": {
    "children": [
      {
        "ipqosPMapInst": {
          "attributes": {
            "name": "dme-policy-pmap"
          },
          "children": [
            {
              "ipqosMatchCMap": {
                "attributes": {
                  "name": "newdme"
                },
                "children": [
                  {
                    "ipqosSetCos": {
                      "attributes": {
                        "status": "deleted"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <ipqos-items>
    <nw-items>
      <p-items>
        <name-items>
          <PMapInst-list>
            <name>dme-policy-pmap</name>
            <cmap-items>
              <MatchCMap-list>
                <name>newdme</name>
                <setCos-items nc:operation="delete">
                </setCos-items>
              </MatchCMap-list>
            </cmap-items>
          </PMapInst-list>
        </name-items>
      </p-items>
    </nw-items>
  </ipqos-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

policy-map type network-qos dme-policy-pmap
  class type network-qos newdme
   no set cos 7


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
ipqosPMapEntity sys/ipqos/nw/p
ipqosPMapInst sys/ipqos/nw/p/name-dme-policy-pmap
ipqosMatchCMap sys/ipqos/nw/p/name-dme-policy-pmap/cmap-newdme
ipqosSetCos sys/ipqos/nw/p/name-dme-policy-pmap/cmap-newdme/setCos


ipqosPMapInst Properties

The following table contains information about the ipqosPMapInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
nameipqos:PMapName
(string:Basic)
Name of policy-map
MAX SIZE: 39


ipqosMatchCMap Properties

The following table contains information about the ipqosMatchCMap properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
nameipqos:CMapName
(string:Basic)
Match using class-map
MAX SIZE: 39


ipqosSetCos Properties

The following table contains information about the ipqosSetCos properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
statusmo:ModificationStatus
(scalar:Bitmask32)
The upgrade status. This property is for internal use only.SELECTION:
2 - created
4 - modified
8 - deleted
16 - replaced


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring a Congestion Notification

Configuring a Congestion Notification 
POST http://<mgmt0_IP>/api/mo/sys/ipqos/nw/p.json
{
  "ipqosPMapEntity": {
    "children": [
      {
        "ipqosPMapInst": {
          "attributes": {
            "name": "nw-policy-no-drop"
          },
          "children": [
            {
              "ipqosMatchCMap": {
                "attributes": {
                  "name": "nc4"
                },
                "children": [
                  {
                    "ipqosDctcp": {
                      "attributes": {
                        "ecnThreshold": "2000"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <ipqos-items>
    <nw-items>
      <p-items>
        <name-items>
          <PMapInst-list>
            <name>nw-policy-no-drop</name>
            <cmap-items>
              <MatchCMap-list>
                <name>nc4</name>
                <dctcp-items>
                  <ecnThreshold>2000</ecnThreshold>
                </dctcp-items>
              </MatchCMap-list>
            </cmap-items>
          </PMapInst-list>
        </name-items>
      </p-items>
    </nw-items>
  </ipqos-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

policy-map type network-qos nw-policy-no-drop
  class type network-qos nc4
   congestion-control dctcp ecn-threshold 2000 bytes


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
ipqosPMapEntity sys/ipqos/nw/p
ipqosPMapInst sys/ipqos/nw/p/name-nw-policy-no-drop
ipqosMatchCMap sys/ipqos/nw/p/name-nw-policy-no-drop/cmap-nc4
ipqosDctcp sys/ipqos/nw/p/name-nw-policy-no-drop/cmap-nc4/dctcp


ipqosDctcp Properties

The following table contains information about the ipqosDctcp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ecnThresholdipqos:ecnThresh
(scalar:Uint32)
Set ecn-threshold value
RANGE: [1 , 500000]


ipqosPMapInst Properties

The following table contains information about the ipqosPMapInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
nameipqos:PMapName
(string:Basic)
Name of policy-map
MAX SIZE: 39


ipqosMatchCMap Properties

The following table contains information about the ipqosMatchCMap properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
nameipqos:CMapName
(string:Basic)
Match using class-map
MAX SIZE: 39


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting a Congestion Notification

Deleting a Congestion Notification 
POST http://<mgmt0_IP>/api/mo/sys/ipqos/nw/p.json
{
  "ipqosPMapEntity": {
    "children": [
      {
        "ipqosPMapInst": {
          "attributes": {
            "name": "nw-policy-no-drop"
          },
          "children": [
            {
              "ipqosMatchCMap": {
                "attributes": {
                  "name": "nc4"
                },
                "children": [
                  {
                    "ipqosDctcp": {
                      "attributes": {
                        "status": "deleted"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <ipqos-items>
    <nw-items>
      <p-items>
        <name-items>
          <PMapInst-list>
            <name>nw-policy-no-drop</name>
            <cmap-items>
              <MatchCMap-list>
                <name>nc4</name>
                <dctcp-items nc:operation="delete">
                </dctcp-items>
              </MatchCMap-list>
            </cmap-items>
          </PMapInst-list>
        </name-items>
      </p-items>
    </nw-items>
  </ipqos-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

policy-map type network-qos nw-policy-no-drop
  class type network-qos nc4
   no congestion-control dctcp ecn-threshold 2000 bytes


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
ipqosPMapEntity sys/ipqos/nw/p
ipqosPMapInst sys/ipqos/nw/p/name-nw-policy-no-drop
ipqosMatchCMap sys/ipqos/nw/p/name-nw-policy-no-drop/cmap-nc4
ipqosDctcp sys/ipqos/nw/p/name-nw-policy-no-drop/cmap-nc4/dctcp


ipqosPMapInst Properties

The following table contains information about the ipqosPMapInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
nameipqos:PMapName
(string:Basic)
Name of policy-map
MAX SIZE: 39


ipqosMatchCMap Properties

The following table contains information about the ipqosMatchCMap properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
nameipqos:CMapName
(string:Basic)
Match using class-map
MAX SIZE: 39


ipqosDctcp Properties

The following table contains information about the ipqosDctcp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
statusmo:ModificationStatus
(scalar:Bitmask32)
The upgrade status. This property is for internal use only.SELECTION:
2 - created
4 - modified
8 - deleted
16 - replaced


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring Global Congestion Control Thresholds

Configuring Global Congestion Control Thresholds
POST http://<mgmt0_IP>/api/mo/sys/pltfm.json
{
  "platformEntity": {
    "children": [
      {
        "platformGlobalRandomDetect": {
          "attributes": {
            "maxThreshold": "1785",
            "maxThresholdUnit": "kbytes",
            "minThreshold": "1785",
            "minThresholdUnit": "kbytes"
}}}]}}
{
    imdata:[]
}
<System>
  <pltfm-items>
    <globalrandomdetect-items>
      <maxThreshold>1785</maxThreshold>
      <maxThresholdUnit>kbytes</maxThresholdUnit>
      <minThreshold>1785</minThreshold>
      <minThresholdUnit>kbytes</minThresholdUnit>
    </globalrandomdetect-items>
  </pltfm-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

congestion-control random-detect global-buffer minimum-threshold 1785 kbytes maximum-threshold 1785 kbytes


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
platformEntity sys/pltfm
platformGlobalRandomDetect sys/pltfm/globalrandomdetect


platformGlobalRandomDetect Properties

The following table contains information about the platformGlobalRandomDetect properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
maxThresholdscalar:Uint32
Global-buffer max ThresholdRANGE: [0, 50000]
DEFAULT: 13631280
maxThresholdUnitplatform:ThresUnit
(scalar:Enum8)
Global-buffer min Threshold unitSELECTION:
1 - packets
2 - bytes
3 - kbytes
4 - mbytes
DEFAULT: bytes
minThresholdscalar:Uint32
Global-buffer min ThresholdRANGE: [0, 50000]
DEFAULT: 13631280
minThresholdUnitplatform:ThresUnit
(scalar:Enum8)
Global-buffer max Threshold unitSELECTION:
1 - packets
2 - bytes
3 - kbytes
4 - mbytes
DEFAULT: bytes


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Unconfiguring Global Congestion Control Thresholds

Unconfiguring Global Congestion Control Thresholds 
POST http://<mgmt0_IP>/api/mo/sys/pltfm.json
{
  "platformEntity": {
    "children": [
      {
        "platformGlobalRandomDetect": {
          "attributes": {
            "maxThreshold": "13631280",
            "maxThresholdUnit": "bytes",
            "minThreshold": "13631280",
            "minThresholdUnit": "bytes"
}}}]}}
{
    imdata:[]
}
<System>
  <pltfm-items>
    <globalrandomdetect-items>
      <maxThreshold>13631280</maxThreshold>
      <maxThresholdUnit>bytes</maxThresholdUnit>
      <minThreshold>13631280</minThreshold>
      <minThresholdUnit>bytes</minThresholdUnit>
    </globalrandomdetect-items>
  </pltfm-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

no congestion-control random-detect global-buffer minimum-threshold 1785 mbytes maximum-threshold 1785 kbytes


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
platformEntity sys/pltfm
platformGlobalRandomDetect sys/pltfm/globalrandomdetect


platformGlobalRandomDetect Properties

The following table contains information about the platformGlobalRandomDetect properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
maxThresholdscalar:Uint32
Global-buffer max ThresholdRANGE: [0, 4294967295]
DEFAULT: 13631280
maxThresholdUnitplatform:ThresUnit
(scalar:Enum8)
Global-buffer min Threshold unitSELECTION:
1 - packets
2 - bytes
3 - kbytes
4 - mbytes
DEFAULT: bytes
minThresholdscalar:Uint32
Global-buffer min ThresholdRANGE: [0, 4294967295]
DEFAULT: 13631280
minThresholdUnitplatform:ThresUnit
(scalar:Enum8)
Global-buffer max Threshold unitSELECTION:
1 - packets
2 - bytes
3 - kbytes
4 - mbytes
DEFAULT: bytes


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring Non-ECN-Capable-Traffic Forwarding Without WRED Drops

Configuring Non-ECN-Capable-Traffic Forwarding Without WRED Drops
POST http://<mgmt0_IP>/api/mo/sys/pltfm.json
{
  "platformEntity": {
    "children": [
      {
        "platformGlobalRandomDetect": {
          "attributes": {
            "forwardNonEcn": "Enabled"
}}}]}}
{
    imdata:[]
}
<System>
  <pltfm-items>
    <globalrandomdetect-items>
      <forwardNonEcn>Enabled</forwardNonEcn>
    </globalrandomdetect-items>
  </pltfm-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

congestion-control random-detect forward-nonecn


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
platformEntity sys/pltfm
platformGlobalRandomDetect sys/pltfm/globalrandomdetect


platformGlobalRandomDetect Properties

The following table contains information about the platformGlobalRandomDetect properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
forwardNonEcnplatform:ConfigState
(scalar:Enum8)
Forward non ECN capable traffic without WRED droppingSELECTION:
0 - Disabled
1 - Enabled
DEFAULT: Disabled


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting Non-ECN-Capable-Traffic Forwarding Without WRED Drops

Deleting Non-ECN-Capable-Traffic Forwarding Without WRED Drops
POST http://<mgmt0_IP>/api/mo/sys/pltfm.json
{
  "platformEntity": {
    "children": [
      {
        "platformGlobalRandomDetect": {
          "attributes": {
            "forwardNonEcn": "Disabled"
}}}]}}
{
    imdata:[]
}
<System>
  <pltfm-items>
    <globalrandomdetect-items>
      <forwardNonEcn>Disabled</forwardNonEcn>
    </globalrandomdetect-items>
  </pltfm-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

no congestion-control random-detect forward-nonecn


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
platformEntity sys/pltfm
platformGlobalRandomDetect sys/pltfm/globalrandomdetect


platformGlobalRandomDetect Properties

The following table contains information about the platformGlobalRandomDetect properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
forwardNonEcnplatform:ConfigState
(scalar:Enum8)
Forward non ECN capable traffic without WRED droppingSELECTION:
0 - Disabled
1 - Enabled
DEFAULT: Disabled


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring Pause Characteristics (CBFC)

Configuring Pause Characteristics (CBFC)
POST http://<mgmt0_IP>/api/mo/sys/ipqos/nw/p.json
{
  "ipqosPMapEntity": {
    "children": [
      {
        "ipqosPMapInst": {
          "attributes": {
            "name": "dme-policy"
          },
          "children": [
            {
              "ipqosMatchCMap": {
                "attributes": {
                  "name": "c-8q-nq3"
                },
                "children": [
                  {
                    "ipqosPause": {
                      "attributes": {
                        "bufferSize": "12582913",
                        "noDrop": "yes",
                        "pauseThreshold": "0",
                        "pfcCos0": "no",
                        "pfcCos1": "no",
                        "pfcCos2": "no",
                        "pfcCos3": "no",
                        "pfcCos4": "no",
                        "pfcCos5": "no",
                        "pfcCos6": "no",
                        "pfcCos7": "no",
                        "receive": "no",
                        "resumeThreshold": "0"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <ipqos-items>
    <nw-items>
      <p-items>
        <name-items>
          <PMapInst-list>
            <name>dme-policy</name>
            <cmap-items>
              <MatchCMap-list>
                <name>c-8q-nq3</name>
                <pause-items>
                  <bufferSize>12582913</bufferSize>
                  <noDrop>true</noDrop>
                  <pauseThreshold>0</pauseThreshold>
                  <pfcCos0>false</pfcCos0>
                  <pfcCos1>false</pfcCos1>
                  <pfcCos2>false</pfcCos2>
                  <pfcCos3>false</pfcCos3>
                  <pfcCos4>false</pfcCos4>
                  <pfcCos5>false</pfcCos5>
                  <pfcCos6>false</pfcCos6>
                  <pfcCos7>false</pfcCos7>
                  <receive>false</receive>
                  <resumeThreshold>0</resumeThreshold>
                </pause-items>
              </MatchCMap-list>
            </cmap-items>
          </PMapInst-list>
        </name-items>
      </p-items>
    </nw-items>
  </ipqos-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

policy-map type network-qos dme-policy
  class type network-qos c-8q-nq3
   pause no-drop


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
ipqosPMapEntity sys/ipqos/nw/p
ipqosPMapInst sys/ipqos/nw/p/name-dme-policy
ipqosMatchCMap sys/ipqos/nw/p/name-dme-policy/cmap-c-8q-nq3
ipqosPause sys/ipqos/nw/p/name-dme-policy/cmap-c-8q-nq3/pause


ipqosPMapInst Properties

The following table contains information about the ipqosPMapInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
nameipqos:PMapName
(string:Basic)
Name of policy-map
MAX SIZE: 39


ipqosMatchCMap Properties

The following table contains information about the ipqosMatchCMap properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
nameipqos:CMapName
(string:Basic)
Match using class-map
MAX SIZE: 39


ipqosPause Properties

The following table contains information about the ipqosPause properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
bufferSizeipqos:BuffSize
(scalar:Uint64)
size in bytes
RANGE: [5000 , 12582913]
DEFAULT: 12582913
noDropscalar:Bool
Configure pause no-drop modeSELECTION: true or false
pauseThresholdipqos:XoffBytes
(scalar:Uint64)
xoff bytes
RANGE: [0 , 12582912]
pfcCos0scalar:Bool
Configure pfc-cos 0 valueSELECTION: true or false
pfcCos1scalar:Bool
Configure pfc-cos 1 valueSELECTION: true or false
pfcCos2scalar:Bool
Configure pfc-cos 2 valueSELECTION: true or false
pfcCos3scalar:Bool
Configure pfc-cos 3 valueSELECTION: true or false
pfcCos4scalar:Bool
Configure pfc-cos 4 valueSELECTION: true or false
pfcCos5scalar:Bool
Configure pfc-cos 5 valueSELECTION: true or false
pfcCos6scalar:Bool
Configure pfc-cos 6 valueSELECTION: true or false
pfcCos7scalar:Bool
Configure pfc-cos 7 valueSELECTION: true or false
receivescalar:Bool
Configure pause receive only modeSELECTION: true or false
resumeThresholdipqos:XonBytes
(scalar:Uint64)
xon bytes
RANGE: [0 , 12582912]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting Pause Characteristics (CBFC)

Deleting Pause Characteristics (CBFC)
POST http://<mgmt0_IP>/api/mo/sys/ipqos/nw/p.json
{
  "ipqosPMapEntity": {
    "children": [
      {
        "ipqosPMapInst": {
          "attributes": {
            "name": "dme-policy"
          },
          "children": [
            {
              "ipqosMatchCMap": {
                "attributes": {
                  "name": "c-8q-nq3"
                },
                "children": [
                  {
                    "ipqosPause": {
                      "attributes": {
                        "status": "deleted"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <ipqos-items>
    <nw-items>
      <p-items>
        <name-items>
          <PMapInst-list>
            <name>dme-policy</name>
            <cmap-items>
              <MatchCMap-list>
                <name>c-8q-nq3</name>
                <pause-items nc:operation="delete">
                </pause-items>
              </MatchCMap-list>
            </cmap-items>
          </PMapInst-list>
        </name-items>
      </p-items>
    </nw-items>
  </ipqos-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

policy-map type network-qos dme-policy
  class type network-qos c-8q-nq3
   no pause no-drop


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
ipqosPMapEntity sys/ipqos/nw/p
ipqosPMapInst sys/ipqos/nw/p/name-dme-policy
ipqosMatchCMap sys/ipqos/nw/p/name-dme-policy/cmap-c-8q-nq3
ipqosPause sys/ipqos/nw/p/name-dme-policy/cmap-c-8q-nq3/pause


ipqosPMapInst Properties

The following table contains information about the ipqosPMapInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
nameipqos:PMapName
(string:Basic)
Name of policy-map
MAX SIZE: 39


ipqosMatchCMap Properties

The following table contains information about the ipqosMatchCMap properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
nameipqos:CMapName
(string:Basic)
Match using class-map
MAX SIZE: 39


ipqosPause Properties

The following table contains information about the ipqosPause properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
statusmo:ModificationStatus
(scalar:Bitmask32)
The upgrade status. This property is for internal use only.SELECTION:
2 - created
4 - modified
8 - deleted
16 - replaced


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html