From d29cc08b7593c3af108f4ada81bfbec902c3ade8 Mon Sep 17 00:00:00 2001 From: Ivan Anfimov Date: Fri, 28 Feb 2025 21:43:31 +0000 Subject: [PATCH] Create QoS Policy - add description And for Shared option + fix for few mistakes Change-Id: I5b49b37f22b18cce7bbc0aea0223b65b61b3b94d --- .../templates/networks/ports/_detail_overview.html | 2 +- .../network_qos/actions/add-rule.action.service.js | 2 +- .../core/network_qos/actions/create.action.service.js | 7 +++++-- .../core/network_qos/actions/create.description.html | 10 ++++++++++ 4 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 openstack_dashboard/static/app/core/network_qos/actions/create.description.html diff --git a/openstack_dashboard/dashboards/project/networks/templates/networks/ports/_detail_overview.html b/openstack_dashboard/dashboards/project/networks/templates/networks/ports/_detail_overview.html index 89757a3f07..3082e6e41b 100644 --- a/openstack_dashboard/dashboards/project/networks/templates/networks/ports/_detail_overview.html +++ b/openstack_dashboard/dashboards/project/networks/templates/networks/ports/_detail_overview.html @@ -31,7 +31,7 @@
{{ port.mac_state }}
{% endif %} {% if port.qos_policy_id %} -
{% trans "QOS Policy ID" %}
+
{% trans "QoS Policy ID" %}
{{ port.qos_policy_id }}
{% endif %} diff --git a/openstack_dashboard/static/app/core/network_qos/actions/add-rule.action.service.js b/openstack_dashboard/static/app/core/network_qos/actions/add-rule.action.service.js index 50f4f6da74..eff4a91adc 100644 --- a/openstack_dashboard/static/app/core/network_qos/actions/add-rule.action.service.js +++ b/openstack_dashboard/static/app/core/network_qos/actions/add-rule.action.service.js @@ -53,7 +53,7 @@ type: "object", properties: { qospolicy: { - title: gettext('QoS Policy Id'), + title: gettext('QoS Policy ID'), type: 'string', readOnly: true }, diff --git a/openstack_dashboard/static/app/core/network_qos/actions/create.action.service.js b/openstack_dashboard/static/app/core/network_qos/actions/create.action.service.js index a44b6051b5..0c2c07d16c 100644 --- a/openstack_dashboard/static/app/core/network_qos/actions/create.action.service.js +++ b/openstack_dashboard/static/app/core/network_qos/actions/create.action.service.js @@ -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); } diff --git a/openstack_dashboard/static/app/core/network_qos/actions/create.description.html b/openstack_dashboard/static/app/core/network_qos/actions/create.description.html new file mode 100644 index 0000000000..bebfda1e05 --- /dev/null +++ b/openstack_dashboard/static/app/core/network_qos/actions/create.description.html @@ -0,0 +1,10 @@ +
+
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.
+ +
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.
+
Shared
+
Make the QoS policy accessible by other projects.
+