<div dir="ltr">Mike,<div>As per QoS spec  [1], the behavior is:</div><div>``<span style="color:rgb(62,67,73);font-family:arial,sans-serif;font-size:14.4px;line-height:1.5em">QoS policies could be applied:</span></div><ul style="color:rgb(62,67,73);font-family:arial,sans-serif;font-size:14.4px"><li style="line-height:1.5em"><dl class="gmail-first gmail-docutils" style="margin-bottom:15px"><dt>Per network: All the ports plugged on the network where the QoS policy is</dt><dd style="margin-top:3px;margin-bottom:10px;margin-left:30px;line-height:1.5em"><p class="gmail-first gmail-last" style="margin-top:0px;line-height:1.5em">applied get the policy applied to them.</p></dd></dl></li><li style="line-height:1.5em"><dl class="gmail-first gmail-docutils" style="margin-bottom:15px"><dt>Per port: The specific port gets the policy applied, when the port had any</dt><dd style="margin-top:3px;margin-bottom:10px;margin-left:30px;line-height:1.5em"><p class="gmail-first gmail-last" style="margin-top:0px;line-height:1.5em">network policy that one is overridden.<span style="line-height:1.5em;font-size:14.4px">``</span></p></dd></dl></li></ul><font color="#3e4349"><span style="font-size:14.4px;line-height:21.6px">As David mentioned, empty policy is probably the way to deal with the case that there is qos network policy defined, but for some reason specific port should be kept without the policy.  There is an option to have certain port types to be left without policy and you can define such behavior in the plugin. </span></font><div><font color="#3e4349"><span style="font-size:14.4px;line-height:21.6px">But anyway, this is not something that is reflected at the DB or Plugin layer, and should be handled by the QoS backend driver. </span></font></div><div><font color="#3e4349"><span style="font-size:14.4px;line-height:21.6px">[1] <a href="https://specs.openstack.org/openstack/neutron-specs/specs/liberty/qos-api-extension.html">https://specs.openstack.org/openstack/neutron-specs/specs/liberty/qos-api-extension.html</a></span></font></div><div><span style="font-size:14.4px;line-height:21.6px;color:rgb(62,67,73)"><br></span></div><div><span style="font-size:14.4px;line-height:21.6px;color:rgb(62,67,73)">BR,</span></div><div><font color="#3e4349"><span style="font-size:14.4px;line-height:21.6px">Irena</span></font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 2, 2016 at 11:58 AM, Shaughnessy, David <span dir="ltr"><<a href="mailto:david.shaughnessy@intel.com" target="_blank">david.shaughnessy@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Michael.<br>
When you update a network with a qos_policy_id it updates all ports on that network too [1].<br>
If you want to have a port on that network without any QoS features on it you can make a policy with no rules attached.<br>
This empty policy would override the networks QoS policy when it's attached to a port.<br>
Hope that answers your question.<br>
Regards.<br>
David.<br>
<br>
[1] <a href="https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py#L427-L437" rel="noreferrer" target="_blank">https://github.com/openstack/<wbr>neutron/blob/master/neutron/<wbr>plugins/ml2/drivers/<wbr>openvswitch/agent/ovs_neutron_<wbr>agent.py#L427-L437</a><br>
<div><div class="h5"><br>
-----Original Message-----<br>
From: Michael Micucci [mailto:<a href="mailto:micucci@midokura.com">micucci@midokura.com</a>]<br>
Sent: Friday, September 2, 2016 8:28 AM<br>
To: <a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.<wbr>org</a><br>
Subject: Re: [openstack-dev] [Neutron][qos] Question about behavior expectations if network policy is set<br>
<br>
<br>
Hey all,<br>
<br>
Quick question: If I have a network and a port, and neither has any QOS policy set, and then I change the network to set the qos_policy_id, should this new QOS policy affect traffic on the already-created port?<br>
In other words, is this a network default for future ports (like with<br>
port_security_enabled) which would only affect ports created on this network from here on out (but leave already-created ports untouched)?<br>
Or is this a network setting which takes effect for all ports, regardless if they were already created or not?<br>
<br>
If the latter, the question had come up, this seems to mean that if a net policy is set, then there is no way a port can be set to have no policy, because if you unset a port's specific policy, it will fallback to the network policy, rather than skip policy calculations altogether.<br>
So, what does one do if they want all ports on a net to follow Policy X, EXCEPT for a single port?<br>
<br>
I would say the first question is the most important for me to understand the behavior, with the second question as a further clarification.<br>
<br>
Thanks a bunch!<br>
<br>
Sincerely,<br>
<br>
Michael Micucci<br>
<br>
<br>
______________________________<wbr>______________________________<wbr>______________<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.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
</div></div>------------------------------<wbr>------------------------------<wbr>--<br>
Intel Research and Development Ireland Limited<br>
Registered in Ireland<br>
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare<br>
Registered Number: 308263<br>
<br>
<br>
This e-mail and any attachments may contain confidential material for the sole<br>
use of the intended recipient(s). Any review or distribution by others is<br>
strictly prohibited. If you are not the intended recipient, please contact the<br>
sender and delete all copies.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<wbr>______________________________<wbr>______________<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.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
</div></div></blockquote></div><br></div>