Comment 2 for bug 1649517

Revision history for this message
Miguel Angel Ajo (mangelajo) wrote :

QoS policy and port-security are very similar, but have different behaviour,

while with port-security, if you set it to False on a network, created ports will inherit the network value, and keep it set on the database.

So if you have net-A with port-security:False, and you create port-B on net-A, port-B will have port-security:False on the API and the database. If you then set net-A port-security:True, port-B will remain to port-security:False, since it was inherited at creation time.

In QoS, the behaviour is different:

If you have net-A with qos-policy:C, and you create port-B in net-A, your port will effectively behave with policy "C", but, that won't be inherited on the port-B database. When net-A is updated, for example to qos-policy:D, all ports in network (with no specific policy) will change to policy:D.

Given current behaviour, I would not expose the network-policy as qos-policy-id in the port. Because that'd be confusing, you couldn't look at the port, and know if it's overriding any network policy, or if it's just that it matches to have the same policy as the network.

I wonder if it could make sense to provide a "network-qos-inherited-policy-id" read only field, or something like that.