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

Mark T. Voelker mvoelker at cisco.com
Sat May 11 05:32:24 UTC 2013


Off the top of my head: I believe the Cisco plugin only sends the
"switchport" and "switchport mode trunk" commands if the port isn't
already in trunking mode.  Were there any vlans already configured on
the port in question before you created a network?  If not, you may be
running into:

https://bugs.launchpad.net/quantum/+bug/1174852

There's a workaround mentioned in the bug.

At Your Service,

Mark T. Voelker
Systems Development Unit


On 05/10/2013 10:52 PM, codeoedoc wrote:
> 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>
> 
> 
> 
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 891 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130511/909ed754/attachment.pgp>


More information about the OpenStack-dev mailing list