[baremetal] Add two interfaces to the opnfv vm 93/63193/3
authorManuel Buil <mbuil@suse.com>
Fri, 5 Oct 2018 07:52:06 +0000 (09:52 +0200)
committerManuel Buil <mbuil@suse.com>
Mon, 15 Oct 2018 15:57:32 +0000 (15:57 +0000)
commitb9b00f336f20bad8bc58b325172ebf9c71c83b6a
treeef647fabc31ab694bbd5966d09e9064ebbf0d4bb
parenteab5448287464ca3900a3e7495e27ac1a2cf1dc9
[baremetal] Add two interfaces to the opnfv vm

opnfv vm requires connectivity to two physical interfaces of the host.
These interfaces are:
 1 - admin, where DHCP requests will arrive from blades to do PXE boot
 2 - mgmt, which connects to the mgmt of the blades to do the ansible
   configuration

To achive this, it is required:
 1 - Two libvirt networks that connect to two different linux bridges.
   The important physical interfaces are connected to them. The
   interfaces name is fetched from the idf
 2 - Two templates representing the new libvirt networks
   (net-mgmt.xml.j2 and net-admin.xml.j2)
 3 - Two interfaces defined in vm.xml.j2

Change-Id: I9037aa36802cfde44717b9394bab79b22d7dfaab
Signed-off-by: Manuel Buil <mbuil@suse.com>
xci/infra/bifrost/playbooks/xci-setup-nodes.yml
xci/playbooks/roles/create-nodes/defaults/main.yml
xci/playbooks/roles/create-nodes/tasks/create_vm.yml
xci/playbooks/roles/create-nodes/tasks/main.yml
xci/playbooks/roles/create-nodes/tasks/prepare_libvirt.yml
xci/playbooks/roles/create-nodes/templates/net-admin.xml.j2 [new file with mode: 0644]
xci/playbooks/roles/create-nodes/templates/net-mgmt.xml.j2 [new file with mode: 0644]
xci/playbooks/roles/create-nodes/templates/vm.xml.j2