mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Make IP_LEARNING optional
This commit is contained in:
parent
7f56b8bf44
commit
a4905b0e5d
1 changed files with 2 additions and 1 deletions
|
@ -371,7 +371,8 @@ def create(vm_):
|
|||
for iface_xml in domain_xml.findall('./devices/interface'):
|
||||
iface_xml.remove(iface_xml.find('./mac'))
|
||||
# enable IP learning, this might be a default behaviour...
|
||||
if iface_xml.find("./filterref/parameter[@name='CTRL_IP_LEARNING']") is None:
|
||||
# Don't always enable since it can cause problems through libvirt-4.5
|
||||
if ip_source == 'ip-learning' and iface_xml.find("./filterref/parameter[@name='CTRL_IP_LEARNING']") is None:
|
||||
iface_xml.append(ElementTree.fromstring(IP_LEARNING_XML))
|
||||
|
||||
# If a qemu agent is defined we need to fix the path to its socket
|
||||
|
|
Loading…
Add table
Reference in a new issue