Restoring the default password policy – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 227

Network OS NETCONF Operations Guide
195
53-1003231-02
Password policies
15
<get-config>
<source>
<running/>
</source>
<filter type="subtree">
<password-attributes xmlns="urn:brocade.com:mgmt:brocade-aaa"/>
</filter>
</get-config>
</rpc>
<rpc-reply message-id="823" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<password-attributes xmlns="urn:brocade.com:mgmt:brocade-aaa"/>
<max-retry>4</max-retry>
<character-restriction>
<upper>1</upper>
<lower>2</lower>
<numberic>1</numeric>
<shpecial-char>1</special-char>
</character-restriction>
</password-attributes>
</rpc-reply>
Restoring the default password policy
To reset all password attributes to default values, perform the following steps.
1. Issue the <edit-config> RPC to configure the <password-attributes> node in the
urn:brocade.com:mgmt:brocade-aaa namespace.
2. In the <password-attributes> element tag, include the delete operation.
?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="824" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<password-attributes xmlns="urn:brocade.com:mgmt:brocade-aaa"
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
operation="delete"/>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="824" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
To restore the default value of just one password attribute, perform the same operation, but
include the attribute element under the <password-attributes> node and apply the delete
operation to that element instead of to the entire <password-attributes> node. All other password
attributes remain unchanged.