Krikri::PluginHelpers::VirshNet
VirshNet - command construction and output parsing for community.libvirt.virt_net (see plugins/virt_net.cr). Pure string plumbing mirroring the real module's LibvirtConnection/VirtNetwork helpers, unit-testable without a libvirt daemon.
Class methods
modify's virsh net-update mapping for a <host/> DHCP entry -
the one section the real module implements (ADD_LAST /
IP_DHCP_HOST), applied live+config when the network is active
and config-only when it isn't.
forward_mode / domain / macaddress come from the network's XML
(the real module xpath-scans XMLDesc) - regex equivalents over
virsh net-dumpxml output, nil when the element is absent
(matching the real module's "skip the fact" behavior).