<div dir="ltr"><div><div><div><div><div>Hi guys, <br><br>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:<br>
</div><br></div>switchport <CR><br>switchport trunk allowed vlan add 232 <CR><br><br></div>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. <br>
<br></div>Please help. Thanks!<br></div>Xin <br><div><div><div><div><div><div><br>2013-05-10 17:07:10     INFO [ncclient.operations.rpc] Requesting 'EditConfig'<br>2013-05-10 17:07:10    DEBUG [ncclient.transport.session] queueing <?xml version='1.0' encoding='UTF-8'?><br>
<rpc message-id="urn:uuid:b97a869c-b9ce-11e2-8059-ee0f9c74da93" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:if="<a href="http://www.cisco.com/nxos:1.0:if_manager">http://www.cisco.com/nxos:1.0:if_manager</a>" xmlns:nxos="<a href="http://www.cisco.com/nxos:1.0">http://www.cisco.com/nxos:1.0</a>"><edit-config><target><running /></target><config><br>
        <configure><br>          <__XML__MODE__exec_configure><br>          <interface><br>            <ethernet><br>              <interface>4/5</interface><br>              <__XML__MODE_if-ethernet-switch><br>
                <switchport><br>                  <trunk><br>                    <allowed><br>                      <vlan><br>                        <add><br>                          <add_vlans>232</add_vlans><br>
                        </add><br>                      </vlan><br>                    </allowed><br>                  </trunk><br>                </switchport><br>              </__XML__MODE_if-ethernet-switch><br>
            </ethernet><br>          </interface><br><br>          </__XML__MODE__exec_configure><br>        </configure><br>      </config></edit-config></rpc><br>2013-05-10 17:07:10    DEBUG [ncclient.operations.rpc] Sync request, will wait for timeout=30<br>
2013-05-10 17:07:10    DEBUG [quantum.openstack.common.rpc.amqp] UNIQUE_ID is 6f8739a290464e88ac47520ba1113553.<br>2013-05-10 17:07:10    DEBUG [ncclient.transport.ssh] Sending message<br>2013-05-10 17:07:10    DEBUG [ncclient.transport.ssh] parsed new message<br>
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"?><br>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:if="<a href="http://www.cisco.com/nxos:1.0:if_manager">http://www.cisco.com/nxos:1.0:if_manager</a>" xmlns:nxos="<a href="http://www.cisco.com/nxos:1.0">http://www.cisco.com/nxos:1.0</a>" message-id="urn:uuid:b97a869c-b9ce-11e2-8059-ee0f9c74da93"><br>
  <rpc-error><br>    <error-type>application</error-type><br>    <error-tag>invalid-value</error-tag><br>    <error-severity>error</error-severity><br>    <error-message>Syntax error while parsing 'switchport trunk allowed vlan add 232'<br>
<br></error-message><br>  </rpc-error><br></rpc-reply><br><br></div></div></div></div></div></div></div>