Add OPENCONTRAIL_VERSION configuration option for horizon-contrail-panels plugin
Change-Id: I58ba5dbb2b2919b76db9750f9469190c07bafde9
diff --git a/horizon/files/horizon_settings/_local_settings.py b/horizon/files/horizon_settings/_local_settings.py
index db0f44a..476272a 100644
--- a/horizon/files/horizon_settings/_local_settings.py
+++ b/horizon/files/horizon_settings/_local_settings.py
@@ -200,7 +200,9 @@
AUTO_ASSIGNMENT_ENABLED = False
{%- endif %}
-{%- if plugin_name == "contrail" and app.get("version", "juno") == "juno" %}
+{%- if plugin_name == "contrail" %}
+
+{%- if app.get("version", "juno") == "juno" %}
from openstack_dashboard.settings import STATICFILES_DIRS
import xstatic
from contrail_openstack_dashboard.openstack_dashboard.xstatic.pkg import contrail
@@ -211,6 +213,10 @@
{%- endif %}
+OPENCONTRAIL_VERSION = "{{ plugin.get('opencontrail_version', '3.2') }}"
+
+{%- endif %}
+
{%- if plugin.urls is defined %}
AUTHENTICATION_URLS += {{ plugin.urls|python }}
{%- endif %}