Changing a rule, Deleting a rule – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 217

Advertising
background image

Network OS NETCONF Operations Guide

185

53-1003231-02

Command access rules

15

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

Changing a rule

Changing a rule is like adding a rule, only the rule already exists. The following example changes
the previously created rule (index number 155).

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

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

<edit-config>

<target>

<running/>

</target>

<config>

<rule xmlns="urn:brocade.com:mgmt:brocade-aaa">

<index>155</index>

<command>

<enumList>role</enumList>

</command>

</rule>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

After changing the rule 155, SecAdminUser can log in to the switch and execute the role command
and not the username command.

Deleting a rule

To delete a rule, perform the following steps.

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

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

2. In the <rule> node element tag, include the delete operation.

3. Under the <rule> node, include the <index> element and specify the rule you want to delete.

The following example deletes rule 155. After you delete rule 155, the SecAdminUser can no longer
access the role command.

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

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

<edit-config>

<target>

<running/>

</target>

<config>

<rule xmlns="urn:brocade.com:mgmt:brocade-aaa"

xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"

operation="delete">

Advertising