You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
virt_net with command modify only affects the current/running version of the network being modified and not the actual startup config. There is no way to make changes made by modify permanent.
Linux 4.18.0-80.11.2.el8_0.x86_64 #1 SMP Sun Sep 15 11:24:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
STEPS TO REPRODUCE
call something like the following from a playbook
virt_net:
command: modify
name: default
xml: "<host mac='de:ad:be:ef:00:00' name='deadbeef' ip='192.168.122.50'/>"
' virsh net-dumpxml default' will show the current running config with the modifcation, however doing a virsh net-edit default will not reflect the changes as the update method in the module only affects the running config.
eg
# virsh net-update --help
NAME
net-update - update parts of an existing network's configuration
SYNOPSIS
net-update <network> <command> <section> <xml> [--parent-index <number>] [--config] [--live] [--current]
OPTIONS
[--network] <string> network name or uuid
[--command] <string> type of update (add-first, add-last (add), delete, or modify)
[--section] <string> which section of network configuration to update
[--xml] <string> name of file containing xml (or, if it starts with '<', the complete xml element itself) to add/modify, or to be matched for search
--parent-index <number> which parent object to search through
--config affect next network startup <--- this
--live affect running network
--current affect current state of network
see above
EXPECTED RESULTS
that both the startup config and the running/current be updated .. or there be some way to specify which config to modify
ACTUAL RESULTS
n/a
The text was updated successfully, but these errors were encountered:
SUMMARY
virt_net with command modify only affects the current/running version of the network being modified and not the actual startup config. There is no way to make changes made by modify permanent.
community.libvirt/plugins/modules/virt_net.py
Lines 242 to 244 in 0e7873a
community.libvirt/plugins/modules/virt_net.py
Lines 256 to 258 in 0e7873a
ISSUE TYPE
COMPONENT NAME
virt_net
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Linux 4.18.0-80.11.2.el8_0.x86_64 #1 SMP Sun Sep 15 11:24:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
STEPS TO REPRODUCE
' virsh net-dumpxml default' will show the current running config with the modifcation, however doing a virsh net-edit default will not reflect the changes as the update method in the module only affects the running config.
eg
EXPECTED RESULTS
that both the startup config and the running/current be updated .. or there be some way to specify which config to modify
ACTUAL RESULTS
n/a
The text was updated successfully, but these errors were encountered: