<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><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></blockquote><div>FYI the oVirt project uses this field to identify ports it creates and manages.<br></div><div>So if you're going to constrain it to something, it should probably be configurable so that managers other than Nova can continue to use Neutron.<br></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><div dir="ltr"><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" data-mce-href="mailto:yalei.wang@intel.com">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" data-mce-style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;"><div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left">Hi all,</div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left">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 style="text-align:justify" data-mce-style="text-align: justify;" align="left">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 style="text-align:justify" data-mce-style="text-align: justify;" align="left"><span style="font-family: Times New Roman;" data-mce-style="font-family: Times New Roman;" face="Times New Roman"> </span></div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left">What is its function? For indicating the using of the port, and seems horizon also use it to show the topology.</div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left">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 style="text-align:justify" data-mce-style="text-align: justify;" align="left"><span style="font-family: Times New Roman;" data-mce-style="font-family: Times New Roman;" face="Times New Roman"> </span></div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left">I got these using from the code(maybe not complete, pls point it out):</div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left"><span style="font-family: Times New Roman;" data-mce-style="font-family: Times New Roman;" face="Times New Roman"> </span></div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left">From constants.py,</div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left">DEVICE_OWNER_ROUTER_HA_INTF = "network:router_ha_interface"</div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left">DEVICE_OWNER_ROUTER_INTF = "network:router_interface"</div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left">DEVICE_OWNER_ROUTER_GW = "network:router_gateway"</div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left">DEVICE_OWNER_FLOATINGIP = "network:floatingip"</div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left">DEVICE_OWNER_DHCP = "network:dhcp"</div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left">DEVICE_OWNER_DVR_INTERFACE = "network:router_interface_distributed"</div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left">DEVICE_OWNER_AGENT_GW = "network:floatingip_agent_gateway"</div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left">DEVICE_OWNER_ROUTER_SNAT = "network:router_centralized_snat"</div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left">DEVICE_OWNER_LOADBALANCER = "neutron:LOADBALANCER"</div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left"><span style="font-family: Times New Roman;" data-mce-style="font-family: Times New Roman;" face="Times New Roman"> </span></div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left">And from debug_agent.py</div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left">DEVICE_OWNER_NETWORK_PROBE = 'network:probe'</div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left">DEVICE_OWNER_COMPUTE_PROBE = 'compute:probe'</div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left"><span style="font-family: Times New Roman;" data-mce-style="font-family: Times New Roman;" face="Times New Roman"> </span></div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left">And setting from nova/network/neutronv2/api.py,</div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left">'compute:%s' % instance.availability_zone</div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left"><span style="font-family: Times New Roman;" data-mce-style="font-family: Times New Roman;" face="Times New Roman"> </span></div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left"><span style="font-family: Times New Roman;" data-mce-style="font-family: Times New Roman;" face="Times New Roman"> </span></div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left">Thanks all!</div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left">/Yalei</div><div style="text-align:justify" data-mce-style="text-align: justify;" align="left"><span style="font-family: Times New Roman;" data-mce-style="font-family: Times New Roman;" face="Times New Roman"> </span></div></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" data-mce-href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">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" data-mce-href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br><br></blockquote></div><br></div><br>__________________________________________________________________________<br>OpenStack Development Mailing List (not for usage questions)<br>Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<br></blockquote><div><br></div></div></body></html>