From da38df12ffea39bd522d5346b72486f545635aa8 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Wed, 19 Mar 2025 22:43:48 +0100 Subject: [PATCH] Fix Bindings renderring for admin With new neutronclient objects are immutable to changes, thus writing down properties like binding__* does not work like expected. In the meanwhile regular binding_* are available for ports and populated properly by the client. This patch switching to usage of such properties for the template only to make the patch backportable. Further rehauwling and renaming of properties is expected to be done in follow-up patches. Closes-Bug: #2095150 Change-Id: I57cba985d427507a4177e9b919cfae0a8188395a --- .../templates/networks/ports/_detail_overview.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 44a460e98a..89757a3f07 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 @@ -104,19 +104,19 @@
{% trans "VNIC Type" %}
-
{{ port.binding__vnic_type }}
- {% if port.binding__host_id %} +
{{ port.binding_vnic_type }}
+ {% if port.binding_host_id %}
{% trans "Host" %}
-
{{ port.binding__host_id|default:_("None") }}
+
{{ port.binding_host_id|default:_("None") }}
{% trans "Profile" %}
-
{{ port.binding__profile|default:_("None") }}
+
{{ port.binding_profile|default:_("None") }}
{% trans "VIF Type" %}
-
{{ port.binding__vif_type|replace_underscores }}
+
{{ port.binding_vif_type|replace_underscores }}
{% trans "VIF Details" %}
- {% if port.binding__vif_details.items %} + {% if port.binding_vif_details.items %}
    - {% for key,value in port.binding__vif_details.items %} + {% for key,value in port.binding_vif_details.items %}
  • {{ key }} {{ value }}
  • {% endfor %}