[openstack-dev] [nova] why do we have os-attach-interfaces in the v3 API?
Matt Riedemann
mriedem at linux.vnet.ibm.com
Thu Oct 2 21:43:54 UTC 2014
On 10/2/2014 4:34 PM, Vishvananda Ishaya wrote:
> os-attach-interfacees is actually a a forward port of:
>
> http://git.openstack.org/cgit/openstack/nova/tree/nova/api/openstack/compute/contrib/attach_interfaces.py
>
> which is a compute action that is valid for both nova-network and neutron:
>
> http://git.openstack.org/cgit/openstack/nova/tree/nova/compute/api.py#n2991
>
> On Oct 2, 2014, at 1:57 PM, Matt Riedemann <mriedem at linux.vnet.ibm.com> wrote:
>
>> The os-interface (v2) and os-attach-interfaces (v3) APIs are only used for the neutron network API, you'll get a NotImplemented if trying to call the related methods with nova-network [1].
>>
>> Since we aren't proxying to neutron in the v3 API (v2.1), why does os-attach-interfaces [2] exist? Was this just an oversight? If so, please allow me to delete it. :)
>>
>> [1] http://git.openstack.org/cgit/openstack/nova/tree/nova/network/api.py?id=2014.2.rc1#n310
>> [2] http://git.openstack.org/cgit/openstack/nova/tree/nova/api/openstack/compute/plugins/v3/attach_interfaces.py?id=2014.2.rc1
>>
>> --
>>
>> Thanks,
>>
>> Matt Riedemann
>>
>>
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
OK so create/delete call the compute_api to attach/detach, but show and
index are calling the network_api on port methods which are neutron
only, so I guess that's what I'm talking about as far as removing.
Personally I don't think it hurts anything, but I'm getting mixed
signals about the stance on neutron proxying in the v2.1 API.
--
Thanks,
Matt Riedemann
More information about the OpenStack-dev
mailing list