[openstack-dev] [Neuton][ml2][Manila] API to query segments used during port binding

Koderer, Marc marc at koderer.com
Mon Feb 29 08:04:00 UTC 2016

Hi Neutron team,

I am currently working on a feature for hierarchical port binding support in
Manila [1] [2]. Just to give some context: In the current implementation Manila
creates a neutron port but let it unbound (state DOWN). Therefore Manila uses
the port create only retrieve an IP address and segmentation ID (some drivers
only support VLAN here).

My idea is to change this behavior and do an actual port binding action so that
the configuration of VLAN isn’t a manual job any longer. And that multi-segment
and HPB is supported on the long-run.

My current issue is: How can Manila retrieve the segment information for a
bound port? Manila only is interested in the last (bottom) segmentation ID
since I assume the storage is connected to a ToR switch.

Database-wise it’s possible to query it using ml2_port_binding_levels table.
But AFAIK there is no API to query this. The only information that is exposed
are all segments of a network. But this is not sufficient to identify which
segments actually used for a port binding.


[1]: https://wiki.openstack.org/wiki/Manila/design/manila-newton-hpb-support <https://wiki.openstack.org/wiki/Manila/design/manila-newton-hpb-support>
[2]: https://review.openstack.org/#/c/277731/ <https://review.openstack.org/#/c/277731/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160229/d4840305/attachment.html>

More information about the OpenStack-dev mailing list