Create QoS Policy - add description

And for Shared option

+ fix for few mistakes

Change-Id: I5b49b37f22b18cce7bbc0aea0223b65b61b3b94d
This commit is contained in:
Ivan Anfimov
2025-02-28 21:43:31 +00:00
committed by Dmitriy Chubinidze
parent b8b21100bd
commit d29cc08b75
4 changed files with 17 additions and 4 deletions

View File

@ -31,7 +31,7 @@
<dd>{{ port.mac_state }}</dd>
{% endif %}
{% if port.qos_policy_id %}
<dt>{% trans "QOS Policy ID" %}</dt>
<dt>{% trans "QoS Policy ID" %}</dt>
<dd>{{ port.qos_policy_id }}</dd>
{% endif %}
</dl>

View File

@ -53,7 +53,7 @@
type: "object",
properties: {
qospolicy: {
title: gettext('QoS Policy Id'),
title: gettext('QoS Policy ID'),
type: 'string',
readOnly: true
},

View File

@ -34,7 +34,8 @@
'horizon.app.core.network_qos.resourceType',
'horizon.framework.widgets.form.ModalFormService',
'horizon.framework.widgets.toast.service',
'horizon.framework.util.actions.action-result.service'
'horizon.framework.util.actions.action-result.service',
'horizon.app.core.network_qos.basePath'
];
function createService(
@ -44,7 +45,8 @@
resourceType,
modalFormService,
toast,
actionResultService
actionResultService,
basePath
) {
var service = {
@ -67,6 +69,7 @@
function perform() {
var createPolicy = workflow.init();
createPolicy.title = gettext('Create QoS Policy');
createPolicy.helpUrl = basePath + 'actions/create.description.html';
return modalFormService.open(createPolicy).then(submit);
}

View File

@ -0,0 +1,10 @@
<dl>
<dd translate>QoS is defined as the ability to guarantee certain network requirements like bandwidth, latency, jitter,
and reliability in order to satisfy a Service Level Agreement (SLA) between an application provider and end users.</dd>
<dd translate>Network devices such as switches and routers can mark traffic so that it is handled with a higher priority to fulfill the QoS conditions agreed under the SLA.
In other cases, certain network traffic such as Voice over IP (VoIP) and video streaming needs to be transmitted with minimal bandwidth constraints.
On a system without network QoS management, all traffic will be transmitted in a “best-effort” manner making it impossible to guarantee service delivery to customers.</dd>
<dt translate>Shared</dt>
<dd translate>Make the QoS policy accessible by other projects.</dd>
</dl>