[openstack-dev] [nova] os-virtual-interfaces isn't deprecated in 2.36
Matt Riedemann
mriedem at linux.vnet.ibm.com
Thu Jul 28 20:55:00 UTC 2016
I'm not sure if we thought about this before, but the
os-virtual-interfaces API isn't deprecated with the 2.36 microversion:
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/virtual_interfaces.py
Neither is os-attach-interfaces:
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/attach_interfaces.py
Until we had virtual device tagging in 2.32, VirtualInterfaces would
only be used for nova-network, but with vif tags we store those on VIFs
in the nova DB, so os-virtual-interfaces could be used to list those.
However, os-virtual-interfaces doesn't return the VIF tags in the
response....seems we missed that with the 2.32 microversion. I'm not
sure how useful that use case is anyway. Plus get_vifs_by_instance isn't
implemented for neutron, so you'd get a 500 error from this API today
anyway...
For os-attach-interfaces, we need that to attach/detach interfaces to a
server, so those actions don't go away with 2.36. We can also list and
show interfaces (ports) which is a proxy to neutron, but in this case it
seems a tad bit necessary, else to list ports for a given server you
have to know to list ports via neutron CLI and filter on
device_id=server.uuid.
So I think we're OK with os-attach-interfaces (even though it does some
proxying right now), but I'm thinking we should be deprecating
os-virtual-interfaces.
--
Thanks,
Matt Riedemann
More information about the OpenStack-dev
mailing list