Ask Your Question

Port and VIF association

asked 2012-07-10 23:48:01 -0600

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?

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted

answered 2012-08-07 03:23:53 -0600

neelugaddam gravatar image


Is the MAC address unique across different tenants/networks?


edit flag offensive delete link more

answered 2012-07-11 08:13:41 -0600

Thanks Salvatore and Dan for your answers.

edit flag offensive delete link more

answered 2012-07-11 00:00:13 -0600

salvatore-orlando gravatar image

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.

edit flag offensive delete link more

answered 2012-07-11 00:11:40 -0600

danwent gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2012-07-10 23:48:01 -0600

Seen: 34 times

Last updated: Aug 07 '12