[openstack-dev] [neutron] Should we document the using of "device:owner" of the PORT ?

Wang, Yalei yalei.wang at intel.com
Mon Jul 13 09:52:44 UTC 2015


Hi all,

The device:owner the port is defined as a 255 byte string, and is widely used now, indicating the use of the port.
Seems we can fill it freely, and user also could update/set it from cmd line(port-update $PORT_ID --device_owner), and I don't find the guideline for using.

What is its function? For indicating the using of the port, and seems horizon also use it to show the topology.
And nova really need it editable, should we at least document all of the possible values into some guide to make it clear? If yes, I can do it.


I got these using from the code(maybe not complete, pls point it out):

>From constants.py,
DEVICE_OWNER_ROUTER_HA_INTF = "network:router_ha_interface"
DEVICE_OWNER_ROUTER_INTF = "network:router_interface"
DEVICE_OWNER_ROUTER_GW = "network:router_gateway"
DEVICE_OWNER_FLOATINGIP = "network:floatingip"
DEVICE_OWNER_DHCP = "network:dhcp"
DEVICE_OWNER_DVR_INTERFACE = "network:router_interface_distributed"
DEVICE_OWNER_AGENT_GW = "network:floatingip_agent_gateway"
DEVICE_OWNER_ROUTER_SNAT = "network:router_centralized_snat"
DEVICE_OWNER_LOADBALANCER = "neutron:LOADBALANCER"

And from debug_agent.py
DEVICE_OWNER_NETWORK_PROBE = 'network:probe'
DEVICE_OWNER_COMPUTE_PROBE = 'compute:probe'

And setting from nova/network/neutronv2/api.py,
'compute:%s' % instance.availability_zone


Thanks all!

/Yalei

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150713/61b77d6c/attachment.html>


More information about the OpenStack-dev mailing list