Create domain resolver and prevent it from being overwritten automatically. Other arguments include domain resolver configuration file resolvconf, resolver address resolvip and domain name domainname.
write_network_bridge_device_config(name => $name [, ipaddr => $ipaddr,
bootproto => $bootproto, startmode => $startmode, zone => $zone,
bridge_type => $bridge_type, _bridge_ports => $bridge_ports,
bridge_stp => $bridge_stp, bridge_forwarddelay => $bridge_forwarddelay,
backup_folder => $backup_folder])
Write network device settings to conventional /etc/sysconfig/network/ifcfg-* or /etc/NetworkManager/system-connections/*.nmconnection depends on whether system network is managed by NetworkManager or not. The supported arguments are listed out as below: $ipaddr: IP address/mask length pair of the interface $name: Identifier of the interface $bootproto: DHCP automatic or manual configuration, 'static', 'dhcp' or 'none' $startmode: Auto start up or connection: 'auto', 'manual' or 'off' $zone: The trust level of this network connection $bridge_type: 'master' or 'slave' to indicate master or slave interface $bridge_port: Specify interface's master or slave interface name $bridge_stp: 'on' or 'off' to turn stp on or off $bridge_forwarddelay: The stp forwarding delay in seconds If $ipaddr given is empty, it means there is no associated specific ip address to this interface which might be attached to another bridge interface or will not be assigned one ip address from dhcp, so set $ipaddr to '0.0.0.0'.If $ipaddr given is non-empty but not in ip address format,for example, 'host',it means the interface will not use a ip address from pre-defined subnet and will automically accept dhcp ip address from public facing host network.
write_network_bridge_device_ifcfg(name => $name [, ipaddr => $ipaddr,
name => $name, bootproto => $bootproto, startmode => $startmode,
zone => $zone, bridge_type => $bridge_type, bridge_ports => $bridge_ports,
bridge_stp => $bridge_stp, bridge_forwarddelay => $bridge_forwarddelay,
backup_folder => $backup_folder])
Write bridge device config file to /etc/sysconfig/network/ifcfg-*. Please refer to https://github.com/openSUSE/sysconfig/blob/master/config/ifcfg.template for config file content. This subroutine is supposed to be used by calling subroutine write_network_bridge_device_config.
write_network_bridge_device_nmconnection(name => $name [, ipaddr => $ipaddr,
name => $name, bootproto => $bootproto, startmode => $startmode,
zone => $zone, bridge_type => $bridge_type, bridge_ports => $bridge_ports,
bridge_stp => $bridge_stp, bridge_forwarddelay => $bridge_forwarddelay,
backup_folder => $backup_folder])
Write bridge device config file to /etc/NetworkManager/system-connections/*. NM settings are a little bit different from ifcfg settings, but there are definite mapping between them. So translation from well-known and default ifcfg settings to NM settings is necessary. Please refer to nm-settings explanation as below: https://developer-old.gnome.org/NetworkManager/stable/nm-settings-keyfile.html. This subroutine is supposed to be used by calling write_network_bridge_device_config.
activate_network_bridge_device(host_device => $host_device,
bridge_device => $bridge_device, network_mode => $network_mode)
Activate guest network bridge device by using wicked or NetworkManager depends on system configuration. And also validate whether activation is successful or not.
config_virtual_network_device(driver => 'driver', transport => 'transport',
user => 'user', host => 'host', port => 'port', path => 'path',
extra => 'extra', fwdmode => 'fwdmode', name => 'name', device => 'device',
ipaddr => 'ip', netmask => 'mask', startaddr => 'start', endaddr => 'end',
domainname => 'domainname', confdir => 'confdir')
Create virtual network to be used. This subroutine also calls construct_uri to determine the desired URI to be connected if the interested party is not localhost. Please refer to subroutine construct_uri for the arguments related. The network to be created based on arguments fwdmode, name, device, ipaddr, netmask, startaddr , endaddr and domainname. The configuration file is constructed from arguments name and confdir.