Network OS NETCONF Operations Guide 467
53-1003231-02
Port-based Policier
29
<running/>
</target>
<config>
<interface xmlns="urn:brocade.com:mgmt:brocade-interface">
<tengigabitethernet>
<name>22/0/2</name>
<shutdown xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
operation="delete"/>
<service-policy xmlns=”urn:brocade.com:mgmt:brocade-policer”>
<in>policymap1</in>
<out>policymap1</out>
</service-policy>
</tengigabitethernet>
</interface>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="2346" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Retrieving policing settings and policy maps
Use the following RPCs to display policies configured in policy, class, and priority maps.
Policy maps
The following example returns the running Policer policies and parameters set for the 10 Gb
Ethernet interface 22/0/1. It uses the <get-config> RPC and a subtree filter to restrict the output to
<service-policy> node for port 22/0/1 under the <interface>/<tengigabitethernet> node in the
urn:brocade.com:mgmt:brocade-interface namespace.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="2347" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get-config>
<source>
<running/>
</source>
<filter type="subtree">
<interface xmlns="urn:brocade.com:mgmt:brocade-interface">
<tengigabitethernet>
<name>22/0/1</name>
<service-policy
xmlns="urn:brocade.com:mgmt:brocade-policer"/>
</tengigabitethernet>
</interface>
</filter>
</get-config>
</rpc>
<rpc-reply message-id="2347" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<interface xmlns="urn:brocade.com:mgmt:brocade-interface">
<tengigabitethernet>
<name>22/0/1</name>
<service-policy xmlns="urn:brocade.com:mgmt:brocade-policer">
<in>policymap1</in>
<out>policymap1</out>
Komentarze do niniejszej Instrukcji