Port and VIF association

Asked by Sumit Naiksatam

Hi, in the v2 resource model, the port has an attribute device_id which refers to the VM. Is there a way on the Quantum side to find out which VIF this port is associated with?

Question information

Language:
English Edit question
Status:
Solved
For:
neutron Edit question
Assignee:
No assignee Edit question
Solved by:
Sumit Naiksatam
Solved:
Last query:
Last reply:
Revision history for this message
Salvatore Orlando (salvatore-orlando) said :
#1

Hi Sumit,

at the moment the Quantum v2 API does not store the nova-side uuid of the VIF plugged in a particular port.
However, Quantum API generates, and stores, the MAC that will be assigned to such VIF - so you can probably use the MAC to associate Quantum ports to instances' VIFs.

Revision history for this message
dan wendlandt (danwent) said :
#2

Yes, MAC should be unique on the VM.

Sumit, are you talking from the perspective of code that is running within Nova, or as a tenant? If its the former, I believe the current quantum/nova implementation populates the vif-id in the nw-info object using the quantum port-uuid.

Revision history for this message
Sumit Naiksatam (snaiksat) said :
#3

Thanks Salvatore and Dan for your answers.

Revision history for this message
Neelakantam (neelugaddam) said :
#4

Hi,

Is the MAC address unique across different tenants/networks?

thanks