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

124
Network OS NETCONF Operations Guide
53-1003231-02
Zone configuration management
10
1. Issue an <edit-config> RPC to configure the <zoning>/<defined-configuration>/<zone> node
in the urn:brocade.com:mgmt:brocade-zone namespace and include the following elements.
a. Include the <cfg-name> element containing the name of the zone you want to delete.
b. Include the delete operation in the <cfg> tag.
2. Issue the <edit-config> RPC to configure the <zoning>/<enabled-configuration> node in the
urn:brocade.com:mgmt:brocade-zone namespace and set the value of the <cfg-action>
element to “cfg-save” to save the modified configuration to nonvolatile memory.
The following example deletes cfg3 and saves the defined configuration to nonvolatile memory.
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="622">
<edit-config>
<target>
<running></running>
</target>
<config>
<zoning xmlns="urn:brocade.com:mgmt:brocade-zone">
<defined-configuration>
<cfg xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
operation="delete">
<cfg-name>cfg1</cfg-name>
</cfg>
</defined-configuration>
</zoning>
</config>
</edit-config>
</rpc>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="622">
<ok></ok>
</rpc-reply>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="623">
<edit-config>
<target>
<running></running>
</target>
<config>
<zoning xmlns="urn:brocade.com:mgmt:brocade-zone">
<enabled-configuration>
<cfg-action>cfg-save</cfg-action>
</enabled-configuration>
</zoning>
</config>
</edit-config>
</rpc>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="623">
<ok></ok>
</rpc-reply>