Adding additional members to an existing alias – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 138

Advertising
background image

106

Network OS NETCONF Operations Guide

53-1003231-02

Zone aliases

10

Adding additional members to an existing alias

1. Issue the <show>/<name-server>/<detail> custom action mechanism that resides in the

urn:brocade.com:mgmt:brocade-nameserver namespace to list the WWNs of devices and
targets available in the Brocade VCS Fabric. The available WWNs appear in the
<name-server>/<name-server-portname> and <name-server>/<nameserver-nodename>
fields in the reply message.

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

<nca:action xmlns:nca="http://tail-f.com/ns/netconf/actions/1.0">

<nca:data>

<show xmlns="urn:brocade.com:mgmt:brocade-common-def">

<name-server xmlns="urn:brocade.com:mgmt:brocade-nameserver">

<detail>

<rbridge-id>66</rbridge-id>

</detail>

</name-server>

</show>

</nca:data>

</nca:action>

</rpc>

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

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

<name-server xmlns="urn:brocade.com:mgmt:brocade-nameserver">

<nameserver-portid>013200</nameserver-portid>

<nameserver-portname>20:00:00:00:00:00:00:02</nameserver-portname>

<nameserver-nodename>10:00:00:05:00:00:00:02</nameserver-nodename>

(output truncated)

<name-server xmlns="urn:brocade.com:mgmt:brocade-nameserver">

<nameserver-portid>013300</nameserver-portid>

<nameserver-portname>20:00:00:00:00:00:00:03</nameserver-portname>

<nameserver-nodename>10:00:00:05:00:00:00:03</nameserver-nodename>

(output truncated)

2. Issue the <edit-config> RPC to configure the <zoning> node in the

urn:brocade.com:mgmt:brocade-zone namespace, and specify the following elements.

a. Under the <zoning> element, specify the <defined-configuration> node element.

b. Under the <defined-configuration> node, specify the <alias> node element.

c. Under the <alias> node, specify the <alias-name> element and set its value to the name

of the alias to which you want to add a member.

d. Under the <alias> node, specify the <member-entry> list node.

e. Under the <member-entry> node, specify the <alias-entry-name> leaf element, and set its

value to a WWN returned in the output of the <show>/<name-server>/<detail> action
issued in

step 1

.

f.

Repeat

step d

and

step e

for each additional member you want to add to the alias.

g. Under the <zoning> element, specify the <enabled-configuration> node element.

h. Under the <enabled-configuration> node. specify the <cfg-action> node element and set

its value to “cfg-save”, to save the configuration to nonvolatile memory.

The following example adds two member nodes to an alias.

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

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

Advertising