Deleting a span connection from a session – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 529

Advertising
background image

Network OS NETCONF Operations Guide

497

53-1003231-02

Deleting a SPAN connection from a session

32

</session>

</monitor>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

Deleting a SPAN connection from a session

To remove a single connection from a SPAN session, perform the following steps.

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

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

2. Under the <monitor> node, include the <session> node.

3. Under the <session> node, include the following leaf elements.

a. In the <session-number> field, identify the session with a unique session number.

b. Optional: In the <description> field, provide a descriptive text for the session.

4. Under the <session> node, include the <span-command> node element and include the

delete operation in the element tag.

5. Under the <span-command> element, provide the parameters of the existing command.

a. In the <source> element, specify “source” to designate subsequent parameters as

pertaining to the source port.

b. In the <src-tengigabitethernet> element, specify “tengigabitethernet”,

“fortygigabitethernet”, or “gigabitethernet”, depending on the source port type.

c. In the <src-tengigabitethernet-val> element, specify the source port in

[rbridge-id/]slot/port format.

d. In the <destination> element, specify “destination” to designate subsequent parameters

as pertaining to the destination port.

e. In the <dest-tengigabitethernet> element, specify “tengigabitethernet”.

f.

In the <dest-tengigabitethernet-val> element, specify the destination port in
[rbridge-id/]slot/port format.

g. In the <direction> element, specify “rx” to configure ingress SPAN.

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

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

<edit-config>

<target>

<running/>

</target>

<config>

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

<session>

<session-number>1</session-number>

<description>Hello Wrold</description>

<span-command

Advertising