コード例 #1
0
def retore_nets_init(*args):
    """
    restore-nets-init

    Restore IP+link configuration on persisted OVS networks.
    """
    netrestore.init_nets()
コード例 #2
0
def retore_nets_init(*args):
    """
    restore-nets-init

    Restore IP+link configuration on persisted OVS networks.
    """
    netrestore.init_nets()
コード例 #3
0
    def test_restore_bond(self, adapter, nic0, nic1):
        BONDCREATE = {BOND_NAME: {'nics': [nic0, nic1], 'switch': 'ovs'}}

        with adapter.reset_persistent_config():
            with adapter.setupNetworks({}, BONDCREATE, NOCHK):
                adapter.setSafeNetworkConfig()

                Bond(BOND_NAME).destroy()

                netrestore.init_nets()

                adapter.update_netinfo()
                adapter.assertBond(BOND_NAME, BONDCREATE[BOND_NAME])
コード例 #4
0
    def test_restore_bond(self):
        with dummy_devices(2) as (nic1, nic2):
            BONDCREATE = {BOND_NAME: {'nics': [nic1, nic2], 'switch': 'ovs'}}

            with self.reset_persistent_config():
                with self.setupNetworks({}, BONDCREATE, NOCHK):
                    self.vdsm_proxy.setSafeNetworkConfig()

                    Bond(BOND_NAME).destroy()

                    netrestore.init_nets()

                    self.update_netinfo()
                    self.assertBond(BOND_NAME, BONDCREATE[BOND_NAME])
コード例 #5
0
ファイル: netrestore_test.py プロジェクト: nirs/vdsm
    def test_restore_bond(self):
        with dummy_devices(2) as (nic1, nic2):
            BONDCREATE = {
                BOND_NAME: {'nics': [nic1, nic2], 'switch': 'ovs'}}

            with adapter.reset_persistent_config():
                with adapter.setupNetworks({}, BONDCREATE, NOCHK):
                    adapter.setSafeNetworkConfig()

                    Bond(BOND_NAME).destroy()

                    netrestore.init_nets()

                    adapter.update_netinfo()
                    adapter.assertBond(BOND_NAME, BONDCREATE[BOND_NAME])