cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Use the UCS Event Stream to trigger Nexus configuration events

1091
Views
0
Helpful
0
Comments
Advisor
This blog was generated from CDN blog

Created by: John McDonough on 09-03-2011 11:27:23 AM
Overview

The Cisco UCS produces an XML formatted stream of information, the Event Stream, that can be consumed by other applications and utilized in any number of ways. Presented here is an explanation of how the UCS Event Stream can be utilized in conjunction with the Nexus 7000 XML API to create a VLAN on the Nexus 7000. The VLAN creation on the Nexus 7000 is triggered by a VLAN creation on the Cisco UCS.

Details

The UCS Event Stream and VLAN events
The UCS maintains an object database called the Management Information Tree. The objects are XML representations of UCS components (hardware, policies, configurations, etc...)

When an operation is performed on the UCS an object mutation occurs (creation/modification/deletion), for example VLAN creation or deletion. Information about the mutated object is sent to the UCS Event Stream. The UCS Event Stream is an XML stream that can be subscribed to by client applications and watched for object mutations as well as UCS faults, statistics, alerts, etc...

Event Stream subscription is covered in the [url=http://developer.cisco.com/documents/2048839/2049143/Cisco+UCS+Manager+XML+API+Programmer's+Guide.pdf?redirect=http://developer.cisco.com/web/unifiedcomputing/docs%3fp_p_id%3ddoc_library_summary_portlet_WAR_doclibrarysummaryportlet_INSTANCE_DXka%26p_... Manager XML API Programmer's Guide

A VLAN operation, specifically creation would be of interest to upstream network elements. When a VLAN is created on the UCS via the CLI, GUI or API an event is sent to the event stream about the VLAN object that was created.

These are the Event Stream messages for creating VLAN 7k-integ-A with an id of 2222 on fabric A

      <configMoChangeEvent cookie="" inEid="16346268">
        <inConfig>
          <fabricVlan defaultNet="no" dn="fabric/lan/A/net-7k-integ-A" epDn="" id="2222" ifRole="network" ifType="virtual"
           locale="external" name="7k-integ-A" peerDn="" status="created" switchId="A" transport="ether" type="lan"/>
        </inConfig>
      </configMoChangeEvent>

And VLAN 7k-integ-B with an id of 3333 on fabric B

      <configMoChangeEvent cookie="" inEid="16346286">
        <inConfig>
          <fabricVlan defaultNet="no" dn="fabric/lan/B/net-7k-integ-B" epDn="" id="3333" ifRole="network" ifType="virtual"
           locale="external" name="7k-integ-B" peerDn="" status="created" switchId="B" transport="ether" type="lan"/>
        </inConfig>
      </configMoChangeEvent>


Similarly on VLAN deletion Event Stream messages are sent for fabric A and B

      <configMoChangeEvent cookie="" inEid="16346398">
        <inConfig>
          <fabricVlan dn="fabric/lan/A/net-7k-integ-A" status="deleted"/>
        </inConfig>
      </configMoChangeEvent>
      <configMoChangeEvent cookie="" inEid="16346422">
        <inConfig>
          <fabricVlan dn="fabric/lan/B/net-7k-integ-B" status="deleted"/>
        </inConfig>
      </configMoChangeEvent>

The event stream messages are for individual VLANs on the distinct UCS switch fabrics. UCS VLANs are typically created on the global switch fabric, the differentiator for the VLAN is in the object's distinguished name (dn). The dns above are

dn="fabric/lan/A/net-7k-integ-A"
dn="fabric/lan/B/net-7k-integ-B"

A global fabric VLAN called 7k-integ dn would look like

dn="fabric/lan/net-7k-integ"

Regardless of the fabric the event stream message will show the VLAN name and ID with a status of status="created" on creation and the VLAN name with a status of status="deleted" on deletion

The Nexus 7000

Utilizing this information, XML can be constructed to create or delete the VLAN on the N7K. Other integration methods can be utilized with the N7K, expect scripts, web services or ssh command chaining, however the focus here is the N7K XML API that is based on the IETF NETCONF network management protocol. http://tools.ietf.org/html/rfc4741

The N7K XML interface is described in this document N7K XML User's Guide

With an understanding of how to interact with the N7K XML API from the above document, the process to create and delete the VLANs described above are examples shown here are via command line interaction, however the intent would be to create a programmatic interaction utilizing a language's ssh libraries.

Connect to the N7K via ssh invoking the xmlagent

bash-3.00$ ssh admin@192.168.1.100 -s xmlagent
User Access Verification
Password:

The N7K responds with the server hello message

<?xml version="1.0"?>
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <capabilities>
    <capability>urn:ietf:params:xml:ns:netconf:base:1.0</capability>
  </capabilities>
  <session-id>27657</session-id>
</hello>
]]>]]>

The client sends the client hello message

<?xml version="1.0"?>
  <nc:hello xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
    <nc:capabilities>
      <nc:capability>urn:ietf:params:xml:ns:netconf:base:1.0</nc:capability>
    </nc:capabilities>
</nc:hello>]]>]]>

Show the currently defined VLANs

<?xml version="1.0"?>
<rpc message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nxos="http://www.cisco.com/nxos:1.0:ip">
  <get>
    <filter type="subtree">
      <dc3:show>
        <dc3:vlan/>
      </dc3:show>
    </filter>
  </get>
</rpc>]]>]]>

The full response

<?xml version="1.0" encoding="ISO-8859-1"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nxos="http://www.cisco.com/nxos:1.0:ip" message-id="1">
<data>
  <show>
   <vlan>
    <__XML__OPT_Cmd_show_vlan___readonly__>
     <__readonly__>
      <TABLE_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>1</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>default</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13,Ethernet1/30,Ethernet10/41-42</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>10</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0010</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13,Ethernet10/37-38</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>80</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0080</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>100</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0100</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>101</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0101</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>102</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0102</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>103</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0103</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>104</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0104</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>105</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0105</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>106</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0106</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>107</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0107</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>108</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0108</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>109</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0109</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>110</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0110</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>111</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0111</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>401</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0401</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>555</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0555</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,Ethernet10/19</vlanshowplist-ifidx>
       </ROW_vlanbrief>
      </TABLE_vlanbrief>
      <TABLE_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>1</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>10</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>80</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>100</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>101</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>102</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>103</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>104</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>105</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>106</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>107</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>108</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>109</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>110</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>111</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>401</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>555</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
      </TABLE_mtuinfo>
     </__readonly__>
    </__XML__OPT_Cmd_show_vlan___readonly__>
   </vlan>
  </show>
</data>
</rpc-reply>
]]>]]>

Create VLANs 2222 and 3333 in separate XML calls

The request for VLAN 2222 creation

<?xml version="1.0"?>
<nf:rpc message-id="2" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="http://www.cisco.com/nxos:1.0:vlan_mgr_cli">
  <nf:edit-config>
    <nf:target>
      <nf:running/>
    </nf:target>
    <nf:config>
      <configure>
        <__XML__MODE__exec_configure>
          <vlan>
            <vlan-id-create-delete>
              <__XML__PARAM_value>2222</__XML__PARAM_value>
            </vlan-id-create-delete>
          </vlan>
        </__XML__MODE__exec_configure>
      </configure>
    </nf:config>
  </nf:edit-config>
</nf:rpc>]]>]]>

The response for VLAN 2222 creation, notice the message-id attribute value of the response corresponds to the message-id attribute value of the request

<?xml version="1.0"?>
<nf:rpc-reply xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="http://www.cisco.com/nxos:1.0:vlan_mgr_cli" message-id="2">
  <nf:ok/>
</nf:rpc-reply>
]]>]]>

The request for VLAN 3333 creation

<?xml version="1.0"?>
<nf:rpc message-id="3" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="http://www.cisco.com/nxos:1.0:vlan_mgr_cli">
  <nf:edit-config>
    <nf:target>
      <nf:running/>
    </nf:target>
    <nf:config>
      <configure>
        <__XML__MODE__exec_configure>
          <vlan>
            <vlan-id-create-delete>
              <__XML__PARAM_value>3333</__XML__PARAM_value>
            </vlan-id-create-delete>
          </vlan>
        </__XML__MODE__exec_configure>
      </configure>
    </nf:config>
  </nf:edit-config>
</nf:rpc>]]>]]>

The request for VLAN 3333 creation

<?xml version="1.0"?>
<nf:rpc-reply xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="http://www.cisco.com/nxos:1.0:vlan_mgr_cli" message-id="3">
  <nf:ok/>
</nf:rpc-reply>
]]>]]>

Show VLANS full response, notice that VLANS 2222 and 3333 are part of the output

<?xml version="1.0" encoding="ISO-8859-1"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nxos="http://www.cisco.com/nxos:1.0:ip" message-id="1">
<data>
  <show>
   <vlan>
    <__XML__OPT_Cmd_show_vlan___readonly__>
     <__readonly__>
      <TABLE_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>1</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>default</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13,Ethernet1/30,Ethernet10/41-42</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>10</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0010</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13,Ethernet10/37-38</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>80</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0080</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>100</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0100</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>101</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0101</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>102</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0102</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>103</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0103</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>104</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0104</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>105</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0105</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>106</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0106</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>107</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0107</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>108</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0108</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>109</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0109</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>110</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0110</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>111</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0111</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>401</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0401</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>555</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN0555</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel100,Ethernet10/19</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>2222</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN2222</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
       <ROW_vlanbrief>
        <vlanshowbr-vlanid>3333</vlanshowbr-vlanid>
        <vlanshowbr-vlanname>VLAN3333</vlanshowbr-vlanname>
        <vlanshowbr-vlanstate>active</vlanshowbr-vlanstate>
        <vlanshowbr-shutstate>noshutdown</vlanshowbr-shutstate>
        <vlanshowplist-ifidx>port-channel1051,port-channel2001,Ethernet1/1,Ethernet1/13</vlanshowplist-ifidx>
       </ROW_vlanbrief>
      </TABLE_vlanbrief>
      <TABLE_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>1</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>10</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>80</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>100</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>101</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>102</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>103</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>104</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>105</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>106</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>107</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>108</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>109</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>110</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>111</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>401</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>555</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>2222</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
       <ROW_mtuinfo>
        <vlanshowinfo-vlanid>3333</vlanshowinfo-vlanid>
        <media-type>ethernet</media-type>
       </ROW_mtuinfo>
      </TABLE_mtuinfo>
     </__readonly__>
    </__XML__OPT_Cmd_show_vlan___readonly__>
   </vlan>
  </show>
</data>
</rpc-reply>
]]>]]>

The request for VLAN 2222 deletion

<?xml version="1.0"?>
<nf:rpc message-id="4" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="http://www.cisco.com/nxos:1.0:vlan_mgr_cli">
  <nf:edit-config>
    <nf:target>
      <nf:running/>
    </nf:target>
    <nf:config>
      <configure>
        <__XML__MODE__exec_configure>
          <no>
            <vlan>
              <vlan-id-create-delete>2222</vlan-id-create-delete>
            </vlan>
          </no>
        </__XML__MODE__exec_configure>
      </configure>
    </nf:config>
  </nf:edit-config>
</nf:rpc>]]>]]>

The response for VLAN 2222 deletion

<?xml version="1.0"?>
<nf:rpc-reply xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="http://www.cisco.com/nxos:1.0:vlan_mgr_cli" message-id="4">
  <nf:ok/>
</nf:rpc-reply>

The request for VLAN 3333 deletion

<?xml version="1.0"?>
<nf:rpc message-id="5" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="http://www.cisco.com/nxos:1.0:vlan_mgr_cli">
  <nf:edit-config>
    <nf:target>
      <nf:running/>
    </nf:target>
    <nf:config>
      <configure>
        <__XML__MODE__exec_configure>
          <no>
            <vlan>
              <vlan-id-create-delete>3333</vlan-id-create-delete>
            </vlan>
          </no>
        </__XML__MODE__exec_configure>
      </configure>
    </nf:config>
  </nf:edit-config>
</nf:rpc>]]>]]>

The response for VLAN 3333 deletion

<?xml version="1.0"?>
<nf:rpc-reply xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="http://www.cisco.com/nxos:1.0:vlan_mgr_cli" message-id="5">
  <nf:ok/>
</nf:rpc-reply>
]]>]]>

The close session message

<?xml version="1.0"?>
<nc:rpc message-id="6" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="http://www.cisco.com/nxos:1.0">
  <nc:close-session/>
</nc:rpc>]]>]]>

The close session response

<?xml version="1.0"?>
<nc:rpc-reply xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="http://www.cisco.com/nxos:1.0" message-id="6">
  <nc:ok/>
</nc:rpc-reply>
]]>]]>

-bash-3.00$

Running the show vlan XML at this point would yield a response the same as the initial show vlan XML
CreatePlease to create content
This widget could not be displayed.