Ensure br-int exists on the compute node before creating subscriber

Change-Id: I900fbad1b9c9a49b20261f8b7105ca0f27268c42
diff --git a/roles/test-vsg/tasks/main.yml b/roles/test-vsg/tasks/main.yml
index 51028ae..fa0502b 100644
--- a/roles/test-vsg/tasks/main.yml
+++ b/roles/test-vsg/tasks/main.yml
@@ -13,6 +13,21 @@
     chdir: "{{ service_profile_repo_dest }}/{{ xos_configuration }}"
     target: vtn
 
+- name: Get name of compute node
+  shell: bash -c "source ~/admin-openrc.sh; nova service-list|grep nova-compute|cut -d '|' -f 3"
+  register: node_name
+  tags:
+    - skip_ansible_lint # running a sub job
+
+- name: Ensure br-int has been created on compute node
+  shell: ssh -l ubuntu {{ node_name.stdout }} sudo ovs-vsctl br-exists br-int
+  register: result
+  until: result | success
+  retries: 10
+  delay: 10
+  tags:
+    - skip_ansible_lint # running a sub job
+
 - name: Wait for vSG VM to come up
   shell: bash -c "source ~/admin-openrc.sh; nova list --all-tenants|grep 'vsg.*ACTIVE' > /dev/null"
   register: result
@@ -34,12 +49,6 @@
   tags:
     - skip_ansible_lint # running a sub job
 
-- name: Get name of compute node
-  shell: bash -c "source ~/admin-openrc.sh; nova service-list|grep nova-compute|cut -d '|' -f 3"
-  register: node_name
-  tags:
-    - skip_ansible_lint # running a sub job
-
 - name: Wait for Docker container inside VM to come up
   shell: ssh -o ProxyCommand="ssh -W %h:%p -l ubuntu {{ node_name.stdout }}" ubuntu@{{ mgmt_ip.stdout }} "sudo docker ps|grep vcpe" > /dev/null
   register: result