Configuring the policy map – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 496

Advertising
background image

464

Network OS NETCONF Operations Guide

53-1003231-02

Port-based Policier

29

</rpc-reply>

Configuring the policy map

A policy map can contain multiple classification maps. Configure a policy map to associate QoS and
policing parameters to traffic belonging to these classification maps. You can apply only one policy
map per interface per direction (ingress and egress).

To configure a policy map, add a class map, and configure QoS and policing parameters for the
class map, perform the following steps. For a complete description of all the policy map attributes,
refer to the brocade-policer YANG module and the Network OS Administrator’s Guide.

1. Issue the <edit-config> RPC to configure the <policy-map> node in the

urn:brocade.com:mgmt:brocade-policer namespace.

2. Under the <policy-map> node, include the <po-name> leaf element and specify a name for the

policy map.

The name for the policy map must be a character string up to 64 characters.

To delete a policy map, include the delete operation in the <policy-map> element tag.

3. Under the <policy-map> node, include a <class> node element for each policy map you want

to configure.

4. Under the <class> node, include the <cl-name> node and specify a name for the class.

Note that the class map name in the following example matches the name provided when you
create the class map (refer to

“Configuring a class map”

on page 461).

5. Under the <police> node, configure the QoS and policing attributes for the class map using the

following leaf node elements:

a. In the <cir> element, specify the committed information rate (CIR).

b. In the <cbs> element, specify the committed burst size (CBS).

c. In the <eir> element, specify the exceeded information rate (EIR).

d. In the <ebs> element, specify the exceeded burst size (EBS).

e. In the <set-priority> element, specify the police priority map name.

f.

In the <conform-set-dscp> element, specify the DSCP priority for conforming traffic.

g. In the <conform-set-prec> element, specify the IP precedence value for conforming traffic.

h. In the <conform-set-tc> element, specify the traffic class value for conforming traffic.

i.

In the <exceed-set-dscp> element, specify the DCSP priority for exceeded traffic.

j.

In the <exceed-set-prec> element, specify the IP precedence value for exceeded traffic.

k. In the <exceed-set-tc> element, specify the traffic class value for exceeded traffic.

To delete any parameter include the delete operation in the element tag.

6. Issue the <bna-config-cmd> RPC to save the running-config file to the startup-config file.

<?xml version="1.0" encoding="UTF-8"?>

<rpc message-id="2345" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<edit-config>

<target>

<running/>

Advertising