[openstack-dev] Question on Cisco Quantum Plugin towards N7K switch

codeoedoc codeoedoc at gmail.com
Sat May 11 02:52:20 UTC 2013


Hi guys,

I tried out Cisco Quantum Plugin towards a N7K switch. There seems to be a
bug, but I'm not sure because I might have missed something. I tried
devstack with the plugin. Below is the log that I get from q-svc. It seems
the plugin tries to send netconf xml to the switch to configure a port. On
a N7K switch, one need to issue two commands:

switchport <CR>
switchport trunk allowed vlan add 232 <CR>

to be able to configure a port. However the plugin only sends the second
command, resulting in the switch not being able to successfully execute it.

Please help. Thanks!
Xin

2013-05-10 17:07:10     INFO [ncclient.operations.rpc] Requesting
'EditConfig'
2013-05-10 17:07:10    DEBUG [ncclient.transport.session] queueing <?xml
version='1.0' encoding='UTF-8'?>
<rpc message-id="urn:uuid:b97a869c-b9ce-11e2-8059-ee0f9c74da93"
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:if="
http://www.cisco.com/nxos:1.0:if_manager" xmlns:nxos="
http://www.cisco.com/nxos:1.0"><edit-config><target><running
/></target><config>
        <configure>
          <__XML__MODE__exec_configure>
          <interface>
            <ethernet>
              <interface>4/5</interface>
              <__XML__MODE_if-ethernet-switch>
                <switchport>
                  <trunk>
                    <allowed>
                      <vlan>
                        <add>
                          <add_vlans>232</add_vlans>
                        </add>
                      </vlan>
                    </allowed>
                  </trunk>
                </switchport>
              </__XML__MODE_if-ethernet-switch>
            </ethernet>
          </interface>

          </__XML__MODE__exec_configure>
        </configure>
      </config></edit-config></rpc>
2013-05-10 17:07:10    DEBUG [ncclient.operations.rpc] Sync request, will
wait for timeout=30
2013-05-10 17:07:10    DEBUG [quantum.openstack.common.rpc.amqp] UNIQUE_ID
is 6f8739a290464e88ac47520ba1113553.
2013-05-10 17:07:10    DEBUG [ncclient.transport.ssh] Sending message
2013-05-10 17:07:10    DEBUG [ncclient.transport.ssh] parsed new message
2013-05-10 17:07:10    DEBUG [ncclient.transport.session] dispatching
message to <ncclient.operations.rpc.RPCReplyListener object at 0x3630890>:
<?xml version="1.0" encoding="ISO-8859-1"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:if="
http://www.cisco.com/nxos:1.0:if_manager" xmlns:nxos="
http://www.cisco.com/nxos:1.0"
message-id="urn:uuid:b97a869c-b9ce-11e2-8059-ee0f9c74da93">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>invalid-value</error-tag>
    <error-severity>error</error-severity>
    <error-message>Syntax error while parsing 'switchport trunk allowed
vlan add 232'

</error-message>
  </rpc-error>
</rpc-reply>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130510/3b993f30/attachment.html>


More information about the OpenStack-dev mailing list