
In preparation for Liberty, which removes some networks and adds a new type of network interface configuration (manual), this patch refactors the osbash networking code. - fewer hardcoded settings (e.g., removed hardcoded list of networks from osbash.sh) - eliminated code duplication for client-side network configuration and split remaining code into separate libraries (functions.ubuntu.sh, functions.fedora.sh) - simplify code, e.g. by removing some magic that deduced network names for KVM from variable names like MGMT_NET - universal functions for reading network and network interface configuration into arrays (get_host_network_config, get_node_netif_config) - the number of networks is no longer hardcoded in the template for Windows hostnet creation - renamed some variables, functions and files to (hopefully) be easier to understand Change-Id: Ib0ed26e24d07e093f7a2bf29723b53b558cd769b
10 lines
344 B
Batchfile
10 lines
344 B
Batchfile
ECHO VBoxManage hostonlyif create
|
|
VBoxManage hostonlyif create
|
|
IF %errorlevel% NEQ 0 GOTO :vbm_error
|
|
|
|
ECHO VBoxManage hostonlyif ipconfig "%IFNAME%" --ip %IFIP% --netmask 255.255.255.0
|
|
VBoxManage hostonlyif ipconfig "%IFNAME%" --ip %IFIP% --netmask 255.255.255.0
|
|
IF %errorlevel% NEQ 0 GOTO :vbm_error
|
|
|
|
REM vim: set ai ts=4 sw=4 et ft=dosbatch:
|