macro moved
diff --git a/opencontrail/compute.sls b/opencontrail/compute.sls
index 7b73c2c..54e4a2d 100644
--- a/opencontrail/compute.sls
+++ b/opencontrail/compute.sls
@@ -1,3 +1,8 @@
+{%- macro set_param(param_name, param_dict) -%}
+{%- if param_dict.get(param_name, False) -%}
+- {{ param_name }}: {{ param_dict[param_name] }}
+{%- endif -%}
+{%- endmacro -%}
{%- from "opencontrail/map.jinja" import compute with context %}
{%- from "linux/map.jinja" import network with context %}
{%- if compute.enabled %}
@@ -52,12 +57,6 @@
{%- if network.interface.get('vhost0', {}).get('enabled', False) %}
-{%- macro set_param(param_name, param_dict) -%}
-{%- if param_dict.get(param_name, False) -%}
-- {{ param_name }}: {{ param_dict[param_name] }}
-{%- endif -%}
-{%- endmacro -%}
-
contrail_load_vrouter_kernel_module:
cmd.run:
- name: modprobe vrouter
@@ -66,6 +65,8 @@
- require:
- pkg: opencontrail_compute_packages
+{#
+
{% set interface_params = [
'gateway',
'mtu',
@@ -120,6 +121,7 @@
{%- endif %}
{%- endfor %}
+#}
{%- endif %}