<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:10.5pt;">
<div align="left" style="text-align:justify;">Hi all,</div>
<div align="left" style="text-align:justify;"> </div>
<div align="left" style="text-align:justify;">The device:owner the port is defined as a 255 byte string, and is widely used now, indicating the use of the port.</div>
<div align="left" style="text-align:justify;">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.</div>
<div align="left" style="text-align:justify;"><font face="Times New Roman"> </font></div>
<div align="left" style="text-align:justify;">What is its function? For indicating the using of the port, and seems horizon also use it to show the topology.</div>
<div align="left" style="text-align:justify;">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.</div>
<div align="left" style="text-align:justify;"> </div>
<div align="left" style="text-align:justify;"><font face="Times New Roman"> </font></div>
<div align="left" style="text-align:justify;">I got these using from the code(maybe not complete, pls point it out):</div>
<div align="left" style="text-align:justify;"><font face="Times New Roman"> </font></div>
<div align="left" style="text-align:justify;">From constants.py,</div>
<div align="left" style="text-align:justify;">DEVICE_OWNER_ROUTER_HA_INTF = "network:router_ha_interface"</div>
<div align="left" style="text-align:justify;">DEVICE_OWNER_ROUTER_INTF = "network:router_interface"</div>
<div align="left" style="text-align:justify;">DEVICE_OWNER_ROUTER_GW = "network:router_gateway"</div>
<div align="left" style="text-align:justify;">DEVICE_OWNER_FLOATINGIP = "network:floatingip"</div>
<div align="left" style="text-align:justify;">DEVICE_OWNER_DHCP = "network:dhcp"</div>
<div align="left" style="text-align:justify;">DEVICE_OWNER_DVR_INTERFACE = "network:router_interface_distributed"</div>
<div align="left" style="text-align:justify;">DEVICE_OWNER_AGENT_GW = "network:floatingip_agent_gateway"</div>
<div align="left" style="text-align:justify;">DEVICE_OWNER_ROUTER_SNAT = "network:router_centralized_snat"</div>
<div align="left" style="text-align:justify;">DEVICE_OWNER_LOADBALANCER = "neutron:LOADBALANCER"</div>
<div align="left" style="text-align:justify;"><font face="Times New Roman"> </font></div>
<div align="left" style="text-align:justify;">And from debug_agent.py</div>
<div align="left" style="text-align:justify;">DEVICE_OWNER_NETWORK_PROBE = 'network:probe'</div>
<div align="left" style="text-align:justify;">DEVICE_OWNER_COMPUTE_PROBE = 'compute:probe'</div>
<div align="left" style="text-align:justify;"><font face="Times New Roman"> </font></div>
<div align="left" style="text-align:justify;">And setting from nova/network/neutronv2/api.py,</div>
<div align="left" style="text-align:justify;">'compute:%s' % instance.availability_zone</div>
<div align="left" style="text-align:justify;"><font face="Times New Roman"> </font></div>
<div align="left" style="text-align:justify;"><font face="Times New Roman"> </font></div>
<div align="left" style="text-align:justify;">Thanks all!</div>
<div align="left" style="text-align:justify;"> </div>
<div align="left" style="text-align:justify;">/Yalei</div>
<div align="left" style="text-align:justify;"><font face="Times New Roman"> </font></div>
</span></font>
</body>
</html>