Plug libvirt network into physical interface
Change-Id: I53923346faf3b599102b1b219ff80b9c81b08780
This commit is contained in:
parent
728741dbd1
commit
ecda7b1791
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue