Setting interface parameters on a port – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 269

Advertising
background image

Network OS NETCONF Operations Guide

237

53-1003231-02

Configuring edge-loop detection

18

</rpc-reply>

Setting interface parameters on a port

Perform this procedure for every port you want monitored by ELD.

To set interface parameters on a port, connect to any switch in a Brocade VCS Fabric cluster, and
perform the following steps.

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

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

2. Under the <interface> node, include a <gigabitethernet>, <tengigabitethernet>,

<fortygigabitethernet>, <hundredgigabitethernet>, or <port-channel> node element.

3. Under the <gigabitethernet>, <tengigabitethernet>, <fortygigabitethernet>,

<hundredgigabitethernet>, or <port-channel> node element, include the <name> element,
and set it to the name of the interface you want to configure.

Specify the name in rbridge-id/slot/port format or port-channel number.

4. Under the <gigabitethernet>, <tengigabitethernet>, <fortygigabitethernet>,

<hundredgigabitethernet>, or <port-channel> node element, include the
<edge-loop-detection> node element.

5. Under the <edge-loop-detection> element, include following leaf elements.

a. In the <eldprio> element, specify the ELD port priority of the specified port for the selected

VLAN.

The value must be in the range 0 through 255. The default value is 128.

b. In the <eldvlan> element, specify the VLAN you want ELD to monitor on this port.

If you do not specify a VLAN, the operation fails.

6. Issue the <bna-config-cmd> RPC to save the running-config file to the startup-config file.

This example sets the ELD port priority on two port/VLAN pairs: port 1/0/7 VLAN 10 and port
4/0/6 VLAN 10. If both these ports are detected in the same loop, ELD shuts down port 4/0/6
when the pdu-rx-limit for the Brocade VCS Fabric cluster is reached. Port 4/0/6 is chosen for shut
down because it has been assigned the lower priority (higher number) than port 1/0/7.

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

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

<edit-config>

<target>

<running/>

</target>

<config>

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

<tengigabitethernet>

<name>1/0/7</name>

<edge-loop-detection>

<eldprio>5</eldprio>

<eldvlan>10</eldvlan>

</edge-loop-detection>

</tengigabitethernet>

<tengigabitethernet>

<name>4/0/6</name>

<edge-loop-detection>

Advertising