Use unless condition for contrail_vrouter_flow_hold_limit to check
whether the vrouter module is already enabled.
Change-Id: If89001365b884831cf940cf2c0d3b62fd3a5b85f
Closes-Bug: PROD-20022
diff --git a/opencontrail/compute.sls b/opencontrail/compute.sls
index 117ca83..27839e1 100644
--- a/opencontrail/compute.sls
+++ b/opencontrail/compute.sls
@@ -181,6 +181,7 @@
- name: "vrouter --flow_hold_limit {{ compute.flow_hold_limit }}"
- onchanges:
- file: /etc/modprobe.d/vrouter.conf
+ - unless: "lsmod | ( ! grep -q vrouter )"
{%- endif %}