Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 495

Network OS NETCONF Operations Guide
463
53-1003231-02
Port-based Policier
29
To configure a priority map, perform the following steps. For a complete description of all the
priority 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 <police-priority-map> in the
urn:brocade.com:mgmt:brocade-policer namespace.
2. Under the <police-priority-map> node, include the <name> leaf element, and specify the
priority map name.
The name for the priority map can be a character string up to 64 characters.
3. Under the <police-priority-map> node, include the <conform> and <exceed> node elements.
4. Under the <conform> node, include <map-prin-conform> leaf elements to configure the
color-based mapping for CIR for each class of service.
To delete a priority map, include the delete operation in the <conform> element tag.
5. Under the <exceed> node, include <map-prin-exceed> leaf elements to configure the
color-based mapping for EIR for each class of service.
To delete a priority map, include the delete operation in the <exceed> 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="2344" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<police-priority-map xmlns="urn:brocade.com:mgmt:brocade-policer">
<name>pmap1</name>
<conform>
<map-pri0-conform>1</map-pri0-conform>
<map-pri1-conform>1</map-pri1-conform>
<map-pri2-conform>2</map-pri2-conform>
<map-pri3-conform>1</map-pri3-conform>
<map-pri4-conform>2</map-pri4-conform>
<map-pri5-conform>2</map-pri5-conform>
<map-pri6-conform>1</map-pri6-conform>
<map-pri7-conform>1</map-pri7-conform>
</conform>
<exceed>
<map-pri0-exceed>1</map-pri0-exceed>
<map-pri1-exceed>1</map-pri1-exceed>
<map-pri2-exceed>1</map-pri2-exceed>
<map-pri3-exceed>1</map-pri3-exceed>
<map-pri4-exceed>1</map-pri4-exceed>
<map-pri5-exceed>1</map-pri5-exceed>
<map-pri6-exceed>1</map-pri6-exceed>
<map-pri7-exceed>1</map-pri7-exceed>
</exceed>
</police-priority-map>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="2344" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>