Verifying a rule – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 218

186
Network OS NETCONF Operations Guide
53-1003231-02
Command access rules
15
<index>155</index>
</rule>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="813" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Verifying a rule
Issue the <get-config> RPC with a subtree filter to return information under the <rule> node in the
urn:brocade.com:mgmt:brocade-aaa namespace. Include lower-level elements to further filter the
output; for example, include the <index> node to return information about a specific rule.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="814" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get-config>
<source>
<running/>
</source>
<filter type="subtree">
<rule xmlns="urn:brocade.com:mgmt:brocade-aaa">
</filter>
</get-config>
</rpc>
<rpc-reply message-id="814" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<rule xmlns="urn:brocade.com:mgmt:brocade-aaa">
<index>30</index>
<action>accept</action>
<operation>read-write</operation>
<role>NetworkSecurityAdmin</role>
<command>
<enumList>role</enumList>
</command>
</rule>
<rule xmlns="urn:brocade.com:mgmt:brocade-aaa">
<index>31</index>
<action>accept</action>
<operation>read-write</operation>
<role>NetworkSecurityAdmin</role>
<command>
<enumList>rule</enumList>
</command>
</rule>
<rule xmlns="urn:brocade.com:mgmt:brocade-aaa">
<index>32</index>
<action>accept</action>
<operation>read-write</operation>
<role>NetworkSecurityAdmin</role>
<commsand>
<enumList>username</enumList>
</command>
</rule>
</rpc-reply>