コード例 #1
0
ファイル: netupgrade.py プロジェクト: EdDev/vdsm
def _create_unified_configuration(rconfig, net_info):
    """
    Given netinfo report, generate unified configuration and persist it.

    Networks and Bonds detected by the network caps/netinfo are recorded.
    In case there are external bonds (not owned), they are still counted for in
    this regard.

    Note: Unified persistence mode is not activated in this context, it is left
    as a separate step/action.
    """
    kconfig = KernelConfig(net_info)

    rconfig.networks = kconfig.networks
    rconfig.bonds = _filter_owned_bonds(kconfig.bonds)

    rconfig.save()
    ConfigWriter.clearBackups()
    RunningConfig.store()
コード例 #2
0
ファイル: netupgrade.py プロジェクト: vjuranek/vdsm
def _create_unified_configuration(rconfig, net_info):
    """
    Given netinfo report, generate unified configuration and persist it.

    Networks and Bonds detected by the network caps/netinfo are recorded.
    In case there are external bonds (not owned), they are still counted for in
    this regard.

    Note: Unified persistence mode is not activated in this context, it is left
    as a separate step/action.
    """
    kconfig = KernelConfig(net_info)

    rconfig.networks = kconfig.networks
    rconfig.bonds = {}

    rconfig.save()
    ConfigWriter.clearBackups()
    RunningConfig.store()
コード例 #3
0
ファイル: configurator.py プロジェクト: minqf/vdsm
def persist():
    ConfigWriter.clearBackups()
    RunningConfig.store()
コード例 #4
0
ファイル: api.py プロジェクト: asasuou/vdsm
def setSafeNetworkConfig():
    """Declare current network configuration as 'safe'"""
    ConfigWriter.clearBackups()
    netconfpersistence.RunningConfig.store()
コード例 #5
0
ファイル: configurator.py プロジェクト: nirs/vdsm
def persist():
    ConfigWriter.clearBackups()
    RunningConfig.store()
コード例 #6
0
ファイル: api.py プロジェクト: EdDev/vdsm
def setSafeNetworkConfig():
    """Declare current network configuration as 'safe'"""
    ConfigWriter.clearBackups()
    netconfpersistence.RunningConfig.store()