Beispiel #1
0
def retore_nets_init(*args):
    """
    restore-nets-init

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

    Restore IP+link configuration on persisted OVS networks.
    """
    netrestore.init_nets()
Beispiel #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])
Beispiel #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])
Beispiel #5
0
    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])