<div dir="ltr">Yes please.<div><br></div><div>This would be a good starting point.</div><div>I also think that the ability of editing it, as well as the value it could be set to, should be constrained.</div><div><br></div><div>As you have surely noticed, there are several code path which rely on an appropriate value being set in this attribute.</div><div>This means a user can potentially trigger malfunctioning by sending PUT requests to edit this attribute.</div><div><br></div><div>Summarizing, I think that document its usage is a good starting point, but I believe we should address the way this attribute is exposed at the API layer as well.</div><div><br></div><div>Salvatore</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 13 July 2015 at 11:52, Wang, Yalei <span dir="ltr"><<a href="mailto:yalei.wang@intel.com" target="_blank">yalei.wang@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div>
<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><span class="HOEnZb"><font color="#888888">
<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>
</font></span></span></font>
</div>

<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>