Enabling a zone configuration – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 154

Advertising
background image

122

Network OS NETCONF Operations Guide

53-1003231-02

Zone configuration management

10

</member-zone>

</cfg>

</defined-configuration>

<enabled-configuration>

<cfg-action>cfg-save</cfg-action>

</enabled-configuration>

</zoning>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

Enabling a zone configuration

Only one zone configuration can be enabled. This procedure selects a configuration from the
defined configuration and makes it the enabled configuration. This procedure replaces the
currently enabled configuration, if one exists.

In addition to enabling the specified configuration, this procedure also saves any changes made to
the zoning database in volatile memory to nonvolatile memory. This saved configuration will persist
following reboot.

To enable a zone configuration, issue an <edit-config> RPC to configure the
<zoning>/<enabled-configuration> node in the urn:brocade.com:mgmt:brocade-zone namespace
and specify the configuration you want to enable in the <cfg-name> element.

If the configuration refers to a nonexistent zone or a zone with no members assigned to it, the
operation fails and the <rpc-reply> returns an error.

The following example enables cfg3.

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

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

<edit-config>

<target>

<running/>

</target>

<config>

<zoning xmlns="urn:brocade.com:mgmt:brocade-zone">

<enabled-configuration>

<cfg-name>cfg3</cfg-name>

</enabled-configuration>

</zoning>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

If the configuration you are trying to enable contains a zone with no member, the server will return
an <rpc-reply> with an error similar to the following message.

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

<rpc-error>

<error-type>application</error-type>

Advertising