qos-mpls

Configures, retrieves, and modifies MPLS Quality of Service (QoS).

Resource URIs

URI Description
<base_URI>/config/running/qos-mpls Configures MPLS Quality of Service (QoS).
GET URIs Description
<base_URI>/config/running/qos-mpls Retrieves and displays the information on all configured qos-mpls maps, and the details on applied maps.
<base_URI>/config/running/qos-mpls/map Retrieves and displays the information on all configured qos-mpls maps.
<base_URI>/config/running/qos-mpls/map/exp-traffic-class/{exp-traffic-class-map-name} Retrieves and displays the EXP-to-Traffic-Class map information for the map name specified in the URI.
<base_URI>/config/running/qos-mpls/map/exp-traffic-class/{exp-traffic-class-map-name}/exp/{exp-in-values} Specify the map name and exp value in the URI to retrieve the configured traffic-class and drop-precedence value.
<base_URI>/config/running/qos-mpls/map/exp-traffic-class/{exp-traffic-class-map-name}/exp/{exp-in-values}/to Specify the map name and exp value in the URI to retrieve the configured traffic-class and drop-precedence value.
<base_URI>/config/running/qos-mpls/map/traffic-class-exp/{traffic-class-exp-map-name} Retrieves and displays Traffic-Class-to-EXP map information for the map name specified in the URI.
<base_URI>/config/running/qos-mpls/map/traffic-class-exp/{traffic-class-exp-map-name}/traffic-class/{priority-in-values},{drop-precedence} Specify the map name, traffic-class and drop-precedence values in the URI to retrieve the configured exp value.
<base_URI>/config/running/qos-mpls/map/dscp-exp/{dscp-exp-map-name} Retrieves and displays the DSCP-to-EXP map information for the map name specified in the URI.
<base_URI>/config/running/qos-mpls/map/dscp-exp/{dscp-exp-map-name}/dscp/{dscp-in-values} Specify the map name and DSCP value in the URI to retrieve the configured exp value.
<base_URI>/config/running/qos-mpls/map/dscp-exp/{dscp-exp-map-name}/dscp/{dscp-in-values}/to Specify the map name and DSCP value in the URI to retrieve the configured exp value.
<base_URI>/config/running/qos-mpls/map/exp-dscp/{exp-dscp-map-name} Retrieves and displays the EXP-to-DSCP map information for the map name specified in the URI.
<base_URI>/config/running/qos-mpls/map/exp-dscp/{exp-dscp-map-name}/exp/{exp-in-values} Specify the map name and exp value in the URI to retrieve the configured dscp value.
<base_URI>/config/running/qos-mpls/map/exp-dscp/{exp-dscp-map-name}/exp/{exp-in-values}/to Specify the map name and exp value in the URI to retrieve the configured dscp value.
<base_URI>/config/running/qos-mpls/map-apply Retrieves information about the qos-mpls map applied on the device.
<base_URI>/config/running/qos-mpls/map-apply/exp-traffic-class Retrieves information about the qos-mpls map of type exp-traffic-class applied on the device.
<base_URI>/config/running/qos-mpls/map-apply/exp-traffic-class/All If the qos-mpls map of type exp-traffic-class is applied, the value of the field "All" will be always true, which indicates that the map is globally applied. If the map is not applied, a "Not found" error will be returned.
<base_URI>/config/running/qos-mpls/map-apply/traffic-class-exp Retrieves information about the qos-mpls map of type traffic-class-exp applied on the device.
<base_URI>/config/running/qos-mpls/map-apply/traffic-class-exp/All If the qos-mpls map of type traffic-class-exp is applied. The value of the field "All" will be always true, which indicates that the map is globally applied. If the map is not applied, a "Not found" error will be returned.
<base_URI>/config/running/qos-mpls/map-apply/dscp-exp Retrieves information about the qos-mpls map of type dscp-exp applied on the device.
<base_URI>/config/running/qos-mpls/map-apply/dscp-exp/All If the qos-mpls map of type dscp-exp is applied, the value of the field "All" will be always true, which indicates that the map is globally applied. If the map is not applied, a "Not found" error will be returned.
<base_URI>/config/running/qos-mpls/map-apply/exp-dscp Retrieves information about the qos-mpls map of type exp-dscp applied on the device.
<base_URI>/config/running/qos-mpls/map-apply/exp-dscp/All If the qos-mpls map of type exp-dscp is applied, the value of the field "All" will be always true, which indicates that the map is globally applied. If the map is not applied, a "Not found" error will be returned.
POST URIs Payload Description
<base_URI>/config/running/qos-mpls/map <exp-traffic-class><exp-traffic-class-map-name>{map-name-type}</exp-traffic-class-map-name></exp-traffic-class> Configures EXP traffic class
<base_URI>/config/running/qos-mpls/map/exp-traffic-class/{exp-traffic-class-map-name} <exp><exp-in-values>{uint32}</exp-in-values><to><traffic-class>{uint32}</traffic-class><drop-precedence>{uint32}</drop-precedence></to></exp> Maps EXP values to Traffic Class Value.
<base_URI>/config/running/qos-mpls/map <traffic-class-exp><traffic-class-exp-map-name>{map-name-type}</traffic-class-exp-map-name></traffic-class-exp> Configures Traffic class EXP
<base_URI>/config/running/qos-mpls/map/traffic-class-exp/{traffic-class-exp-map-name} <traffic-class><priority-in-values>{uint32}</priority-in-values><drop-precedence>{uint32}</drop-precedence><to>{enumeration}</to><exp>{uint32}</exp></traffic-class> Maps Traffic class value to EXP value
<base_URI>/config/running/qos-mpls/map <dscp-exp><dscp-exp-map-name>{map-name-type}</dscp-exp-map-name></dscp-exp> Configures DSCP EXP.
<base_URI>/config/running/qos-mpls/map/dscp-exp/{dscp-exp-map-name} <dscp><dscp-in-values>{uint32}</dscp-in-values><to><exp>{uint32}</exp></to></dscp> Maps DSCP value to EXP value.
<base_URI>/config/running/qos-mpls/map <exp-dscp><exp-dscp-map-name>{map-name-type}</exp-dscp-map-name></exp-dscp> Configures EXP DSCP.
<base_URI>/config/running/qos-mpls/map/exp-dscp/{exp-dscp-map-name} <exp><exp-in-values>{uint32}</exp-in-values><to><dscp>{uint32}</dscp></to></exp> Maps EXP value to DSCP value
PATCH URIs Payload Description
<base_URI>/config/running/qos-mpls/map/exp-traffic-class/{exp-traffic-class-map-name}/exp/{exp-in-values}/to <to><traffic-class>{uint32}</traffic-class><drop-precedence>{uint32}</drop-precedence></to> Updates the configured traffic-class and drop-precedence value in the exp-traffic-Class map specified.
<base_URI>/config/running/qos-mpls/map/traffic-class-exp/{traffic-class-exp-map-name}/traffic-class/{priority-in-values},{drop-precedence}/to <to><exp>{uint32}</exp></to> Updates the configured exp value in traffic-class-exp map specified.
<base_URI>/config/running/qos-mpls/map/dscp-exp/{dscp-exp-map-name}/dscp/{dscp-in-values}/to <to><exp>{uint32}</exp></to> Updates the configured exp value in the dscp-exp map specified.
<base_URI>/config/running/qos-mpls/map/exp-dscp/{exp-dscp-map-name}/exp/{exp-in-values}/to <to><dscp>{uint32}</dscp></to> Updates the configured dscp value in the exp-dscp map specified.
PUT URIs Payload Description
<base_URI>/config/running/qos-mpls/map-apply/traffic-class-exp <traffic-class-exp><map-name-cmd2>{map-name-type}</map-name-cmd2><All>{enumeration}</All></traffic-class-exp> Applies the qos-mpls map name provided in payload of type traffic-class-exp globally.
<base_URI>/config/running/qos-mpls/map-apply/traffic-class-exp <traffic-class-exp><all-zero-map>{enumeration}</all-zero-map><All>{enumeration}</All></traffic-class-exp> Applies the qos-mpls all-zero-map of type traffic-class-exp globally.
<base_URI>/config/running/qos-mpls/map-apply/traffic-class-exp <traffic-class-exp><default-map>{enumeration}</default-map><All>{enumeration}</All></traffic-class-exp> Applies the qos-mpls default-map of type traffic-class-exp globally.
<base_URI>/config/running/qos-mpls/map-apply/dscp-exp <dscp-exp><map-name-cmd3>{map-name-type}</map-name-cmd3><All>{enumeration}</All></dscp-exp> Applies the qos-mpls map name provided in payload of type dscp-exp globally.
<base_URI>/config/running/qos-mpls/map-apply/dscp-exp <dscp-exp><all-zero-map>{enumeration}</all-zero-map><All>{enumeration}</All></dscp-exp> Applies the qos-mpls all-zero-map of type traffic-class-exp globally.
<base_URI>/config/running/qos-mpls/map-apply/dscp-exp <dscp-exp><default-map>{enumeration}</default-map><All>{enumeration}</All></dscp-exp> Applies the qos-mpls default-map of type traffic-class-exp globally.
<base_URI>/config/running/qos-mpls/map-apply/exp-dscp <exp-dscp><map-name-cmd4>{map-name-type}</map-name-cmd4><All>{enumeration}</All></exp-dscp> Applies the qos-mpls map name provided in payload of type exp-dscp globally.
<base_URI>/config/running/qos-mpls/map-apply/exp-dscp <exp-dscp><all-zero-map>{enumeration}</all-zero-map><All>{enumeration}</All></exp-dscp> Applies the qos-mpls all-zero-map of type exp-dscp globally.
<base_URI>/config/running/qos-mpls/map-apply/exp-dscp <exp-dscp><default-map>{enumeration}</default-map><All>{enumeration}</All></exp-dscp> Applies the qos-mpls default-map of type exp-dscp globally.
<base_URI>/config/running/qos-mpls/map-apply/exp-traffic-class <exp-traffic-class><map-name-cmd1>{map-name-type}</map-name-cmd1><All>true</All></exp-traffic-class> Applies the qos-mpls map name provided in payload of type exp-traffic-class globally.
<base_URI>/config/running/qos-mpls/map-apply/exp-traffic-class <exp-traffic-class><all-zero-map>true</all-zero-map><All>true</All></exp-traffic-class> Applies the qos-mpls all-zero-map of type exp-traffic-class globally.
<base_URI>/config/running/qos-mpls/map-apply/exp-traffic-class <exp-traffic-class><default-map>true</default-map><All>true</All></exp-traffic-class> Applies the qos-mpls default-map of type exp-traffic-class globally.
DELETE URIs
<base_URI>/config/running/qos-mpls/map/exp-traffic-class/{exp-traffic-class-map-name}
<base_URI>/config/running/qos-mpls/map/exp-traffic-class/{exp-traffic-class-map-name}/exp/{exp-in-values}
<base_URI>/config/running/qos-mpls/map/traffic-class-exp/{traffic-class-exp-map-name}
<base_URI>/config/running/qos-mpls/map-apply
<base_URI>/config/running/qos-mpls/map-apply/exp-traffic-class
<base_URI>/config/running/qos-mpls/map-apply/traffic-class-exp
<base_URI>/config/running/qos-mpls/map-apply/dscp-exp
<base_URI>/config/running/qos-mpls/map-apply/exp-dscp

Parameters

<exp-in-values>
Specifies the EXP Traffic Class value. Valid values range from 0 through 7.
<traffic-class>
Specifies the traffic class value. The range is from 0 through 7.
<drop-precedence>
Specifies the drop precedence value. Valid values range from 0 through 3.
<exp>
Specifies the exp value. Valid values range from 0 through 7.
<priority-in-values>
Specifies the traffic class (priority queue) value. Valid values range from 0 through 7.
<dscp-in-values>
Specifies the DSCP value. Valid values range from 0 through 63.
<dscp>
Specifies the DSCP value. Valid values range from 0 through 63.

Usage Guidelines

GET, POST, PUT, PATCH, DELETE, OPTIONS, and HEAD operations are supported.

Examples

URI

The following example uses the GET option to retrieve the configuration details.

http://host:80/rest/config/running/qos-mpls

None

<qos-mpls xmlns="urn:brocade.com:mgmt:brocade-qos-mpls" xmlns:y="http://brocade.com/ns/rest" y:self="/rest/config/running/qos-mpls">
  <map y:self="/rest/config/running/qos-mpls/map">
    <exp-traffic-class y:self="/rest/config/running/qos-mpls/map/exp-traffic-class/e2tc1">
      <exp-traffic-class-map-name>e2tc1</exp-traffic-class-map-name>
      <exp y:self="/rest/config/running/qos-mpls/map/exp-traffic-class/e2tc1/exp/3">
        <exp-in-values>3</exp-in-values>
        <to y:self="/rest/config/running/qos-mpls/map/exp-traffic-class/e2tc1/exp/3/to">
          <traffic-class>5</traffic-class>
          <drop-precedence>1</drop-precedence>
        </to>
      </exp>
    </exp-traffic-class>
    <traffic-class-exp y:self="/rest/config/running/qos-mpls/map/traffic-class-exp/tc2e1">
      <traffic-class-exp-map-name>tc2e1</traffic-class-exp-map-name>
      <traffic-class y:self="/rest/config/running/qos-mpls/map/traffic-class-exp/tc2e1/traffic-class/5%2C0">
        <priority-in-values>5</priority-in-values>
        <drop-precedence>0</drop-precedence>
        <to y:self="/rest/config/running/qos-mpls/map/traffic-class-exp/tc2e1/traffic-class/5%2C0/to">
          <exp>7</exp>
        </to>
      </traffic-class>
      <traffic-class y:self="/rest/config/running/qos-mpls/map/traffic-class-exp/tc2e1/traffic-class/5%2C2">
        <priority-in-values>5</priority-in-values>
        <drop-precedence>2</drop-precedence>
        <to y:self="/rest/config/running/qos-mpls/map/traffic-class-exp/tc2e1/traffic-class/5%2C2/to">
          <exp>7</exp>
        </to>
      </traffic-class>
    </traffic-class-exp>
    <dscp-exp y:self="/rest/config/running/qos-mpls/map/dscp-exp/d2e1">
      <dscp-exp-map-name>d2e1</dscp-exp-map-name>
      <dscp y:self="/rest/config/running/qos-mpls/map/dscp-exp/d2e1/dscp/1">
        <dscp-in-values>1</dscp-in-values>
        <to y:self="/rest/config/running/qos-mpls/map/dscp-exp/d2e1/dscp/1/to">
          <exp>4</exp>
        </to>
      </dscp>
    </dscp-exp>
    <exp-dscp y:self="/rest/config/running/qos-mpls/map/exp-dscp/e2d1">
      <exp-dscp-map-name>e2d1</exp-dscp-map-name>
      <exp y:self="/rest/config/running/qos-mpls/map/exp-dscp/e2d1/exp/5">
        <exp-in-values>5</exp-in-values>
        <to y:self="/rest/config/running/qos-mpls/map/exp-dscp/e2d1/exp/5/to">
          <dscp>34</dscp>
        </to>
      </exp>
    </exp-dscp>
  </map>
  <map-apply xmlns="urn:brocade.com:mgmt:brocade-apply-qos-mpls" y:self="/rest/config/running/qos-mpls/map-apply">
    <exp-traffic-class y:self="/rest/config/running/qos-mpls/map-apply/exp-traffic-class">
      <map-name-cmd1>e2tc1</map-name-cmd1>
      <All>true</All>
    </exp-traffic-class>
    <traffic-class-exp y:self="/rest/config/running/qos-mpls/map-apply/traffic-class-exp">
      <map-name-cmd2>tc2e1</map-name-cmd2>
      <All>true</All>
    </traffic-class-exp>
    <dscp-exp y:self="/rest/config/running/qos-mpls/map-apply/dscp-exp">
      <map-name-cmd3>d2e1</map-name-cmd3>
      <All>true</All>
    </dscp-exp>
    <exp-dscp y:self="/rest/config/running/qos-mpls/map-apply/exp-dscp">
      <map-name-cmd4>e2d1</map-name-cmd4>
      <All>true</All>
    </exp-dscp>
  </map-apply>
</qos-mpls>

URI

The following example uses the POST option to configure EXP traffic class.

http://host:80/rest/config/running/qos-mpls/map

<exp-traffic-class><exp-traffic-class-map-name>plsmap</exp-traffic-class-map-name></exp-traffic-class>

None

URI

The following example uses the DELETE option to remove dot1x.

http://host:80/rest/config/running/qos-mpls/map/exp-traffic-class/plsmap

None

None