Python Openstack中子:如何使用update_port()api更新端口vif模型
我想更新已创建端口的vif_模型。我在CLI中使用以下命令Python Openstack中子:如何使用update_port()api更新端口vif模型,python,openstack,openstack-neutron,Python,Openstack,Openstack Neutron,我想更新已创建端口的vif_模型。我在CLI中使用以下命令 neutron port-update --binding:vif_model=avp <port_id> 给出以下提示: 有关模块NeutonClient.v2\u 0.client中带有参数的函数的帮助: 带参数(*args,**kwargs) 我在源代码中查看了一个如何使用update\u port调用的示例,看起来您可以这样称呼它: client.update_port('1fe691a6-f3a0-4586-b1
neutron port-update --binding:vif_model=avp <port_id>
给出以下提示:
有关模块NeutonClient.v2\u 0.client中带有参数的函数的帮助:
带参数(*args,**kwargs)
我在源代码中查看了一个如何使用update\u port
调用的示例,看起来您可以这样称呼它:
client.update_port('1fe691a6-f3a0-4586-b126-9fabb11e962a',
{'port':
{'binding:vif_type': 'avp'}})
这是有效的命令行吗?通过查看我看到了对
binding:vnic_type
、binding:host_id
和binding:profile
的支持,但对binding:vif_model
没有任何支持。我使用的是Windriver Openstack Havana发行版。这是windriver对端口的补充,因为它们支持加速虚拟端口(avp)
client.update_port('1fe691a6-f3a0-4586-b126-9fabb11e962a',
{'port':
{'binding:vif_type': 'avp'}})