Adding workaround for trusty network init

Change-Id: Ice46e784b3348290597b5fa56108004ef5b941f9
diff --git a/openstack-compute-install.groovy b/openstack-compute-install.groovy
index 535cde0..a43c2b9 100644
--- a/openstack-compute-install.groovy
+++ b/openstack-compute-install.groovy
@@ -37,6 +37,17 @@
             common.infoMsg("Selected nodes: ${targetLiveAll}")
         }
 
+        stage("Trusty workaround") {
+            if(salt.getGrain(saltMaster, minions[0], "oscodename")['return'][0].values()[0]["oscodename"] == "trusty") {
+                common.infoMsg("First node %nodename% has trusty")
+                common.infoMsg("Assuming trusty on all cluster, running extra network states...")
+                common.infoMsg("Network iteration #1. Bonding")
+                salt.enforceState(saltMaster, targetLiveAll, 'linux.network', true)
+                common.infoMsg("Network iteration #2. Vlan tagging and bridging")
+                salt.enforceState(saltMaster, targetLiveAll, 'linux.network', true)
+            }
+        }
+
         stage("Setup repositories") {
             salt.enforceState(saltMaster, targetLiveAll, 'linux.system.repo', true)
         }