Zone configuration management, Creating a zone configuration – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 151

Network OS NETCONF Operations Guide
119
53-1003231-02
Zone configuration management
10
<cfg-action>cfg-save</cfg-action>
</enabled-configuration>
</zoning>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="616" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Zone configuration management
The following sections describe zoning configuration and management.
Creating a zone configuration
The following procedure adds a new zone configuration to the defined configuration and saves it to
nonvolatile memory.
NOTE
Zone configurations without any member zones can exist in volatile memory. They are deleted when
the transaction commits successfully.
1. Issue an <edit-config> RPC to configure the <zoning>/<defined-configuration> node in the
urn:brocade.com:mgmt:brocade-zone namespace and add a <cfg> node with the following
elements:
a. Include the <cfg-name> element containing the name of the new zoning configuration.
b. Include a <member-zone> element for each zone you want to include in the configuration.
Each <member-zone> element must contain a <zone-name> element containing the
name of a zone.
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 creates cfg3 with zoneA and zoneD as member zones and saves the defined
configuration to nonvolatile memory.
?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="617" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<zoning xmlns="urn:brocade.com:mgmt:brocade-zone">
<defined-configuration>
<cfg>
<cfg-name>cfg3</cfg-name>
<member-zone>
<zone-name>zoneA</zone-name>
</member-zone>
<member-zone>
<zone-name>zoneD</zone-name>