CORD-433 Add virtual fabric to CiaB
Change-Id: I8fbea8c85f309a4c226951e0cde96a9b7394d6eb
diff --git a/ansible/roles/spineswitch/tasks/bridge.yml b/ansible/roles/spineswitch/tasks/bridge.yml
new file mode 100644
index 0000000..3e2cbfc
--- /dev/null
+++ b/ansible/roles/spineswitch/tasks/bridge.yml
@@ -0,0 +1,14 @@
+- name: Ensure brctl
+ apt:
+ name: bridge-utils
+ state: present
+
+- name: Ensure bridge
+ template:
+ src: templates/spinebr.cfg.j2
+ dest: /etc/network/interfaces.d/spinebr.cfg
+
+- name: Ensure bridge is up
+ command: ifup spinebr
+ tags:
+ - skip_ansible_lint # running a sub job