mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 21:40:01 +08:00
Network
This commit is contained in:
parent
8a94f9b94a
commit
746d8e86cc
@ -91,6 +91,7 @@ cidr2mask() {
|
|||||||
# of the given IP/MASK
|
# of the given IP/MASK
|
||||||
# usage: getNonConflictingIP IP MASK
|
# usage: getNonConflictingIP IP MASK
|
||||||
# returns NEWIP MASK
|
# returns NEWIP MASK
|
||||||
|
|
||||||
getNonConflictingIP () {
|
getNonConflictingIP () {
|
||||||
local IP="$1"
|
local IP="$1"
|
||||||
local CIDR="$2"
|
local CIDR="$2"
|
||||||
@ -110,6 +111,7 @@ getNonConflictingIP () {
|
|||||||
# returns:
|
# returns:
|
||||||
# - bridgeXXXXXX if DEVICETYPE is 'bridge'
|
# - bridgeXXXXXX if DEVICETYPE is 'bridge'
|
||||||
# - macvlanXXXXXX, macvtapXXXXXX if DEVICETYPE is 'macvlan'
|
# - macvlanXXXXXX, macvtapXXXXXX if DEVICETYPE is 'macvlan'
|
||||||
|
|
||||||
generateNetdevNames () {
|
generateNetdevNames () {
|
||||||
devicetype=$1
|
devicetype=$1
|
||||||
|
|
||||||
@ -166,6 +168,7 @@ setupBridge () {
|
|||||||
|
|
||||||
# Setup macvtap device to connect later the VM and setup a new macvlan devide
|
# Setup macvtap device to connect later the VM and setup a new macvlan devide
|
||||||
# to connect the host machine to the network
|
# to connect the host machine to the network
|
||||||
|
|
||||||
configureNetworks () {
|
configureNetworks () {
|
||||||
|
|
||||||
local IP
|
local IP
|
||||||
|
Loading…
x
Reference in New Issue
Block a user