j.system.ovsnetconfig
- /opt/jumpscale7/lib/JumpScale/lib/ovsnetconfig/NetConfigFactory.py
- Properties
Methods
def applyconfig
arguments
- interfacenameToExclude
- backplanename
DANGEROUS, will remove old configuration
arguments
- interfacename = 'eth0'
- ipaddr = '192.168.10.10/24'
- gw
Configure a static address
def createVXLanBridge
arguments
- networkid
- backend
- bridgename
Creates a proper vxlan interface and bridge based on a backplane
def ensureVXNet
arguments
def getConfigFromSystem
arguments
walk over system and get configuration, result is dict
def getType
arguments
def initNetworkInterfaces
arguments
Resets /etc/network/interfaces with a basic configuration
def newBondedBackplane
arguments
Reasonable defaults : mode=balance-tcp, lacp=active,fast, bondname=brname-Bond, all vlans
allowed
def newBridge
arguments
@param interface interface where to connect this bridge to
def newVlanBridge
arguments
- name
- parentbridge
- vlanid
- mtu
def printConfigFromSystem
arguments
def removeOldConfig
arguments
def setBackplane
arguments
- interfacename = 'eth0'
- backplanename = 1
- ipaddr = '192.168.10.10/24'
- gw = ''
DANGEROUS, will remove old configuration
def setBackplaneDhcp
arguments
- interfacename = 'eth0'
- backplanename = 'Public'
DANGEROUS, will remove old configuration
def setBackplaneNoAddress
arguments
- interfacename = 'eth0'
- backplanename = 1
DANGEROUS, will remove old configuration
def setBackplaneNoAddressWithBond
arguments
- bondname
- bondinterfaces
- backplanename = 'backplane'
DANGEROUS, will remove old configuration
def setBackplaneWithBond
arguments
- bondname
- bondinterfaces
- backplanename = 'backplane'
- ipaddr = '192.168.10.10/24'
- gw = ''
DANGEROUS, will remove old configuration