Plug libvirt network into physical interface

Change-Id: I53923346faf3b599102b1b219ff80b9c81b08780
This commit is contained in:
Kostiantyn Kalynovskyi 2021-06-11 03:00:03 +00:00
parent 728741dbd1
commit ecda7b1791
3 changed files with 9 additions and 7 deletions

View File

@ -40,7 +40,7 @@ const (
// VinoNetworkDataTemplateDefaultKey expected template key networkdata template secret for vino node
VinoNetworkDataTemplateDefaultKey = "template"
// VinoDefaultRootDeviceName is default root device for the underlying libvirt VM
VinoDefaultRootDeviceName = "/dev/sda"
VinoDefaultRootDeviceName = "/dev/vda"
)
// Constants for BasicAuth

View File

@ -13,16 +13,12 @@
# generate_baremetal_macs method ripped from
# openstack/tripleo-incubator/scripts/configure-vm
import math
import random
import sys
import fnmatch
import os
import socket
import struct
from itertools import chain
import json
import netaddr
DOCUMENTATION = '''
---
module: ipam

View File

@ -33,3 +33,9 @@
autostart: yes
name: "{{ network.name }}"
uri: "{{ libvirt_uri }}"
# these are idempotent so require no conditional checks
- name: plug network into physical interface
shell: |
brctl addif vm-infra-bridge "{{ network.physicalInterface }}"
when: "network.physicalInterface is defined"