def func():
     for i in range(0, self.loop):
         log_to_console(
             "\n******* big configuration changes vns %s*******" % i)
         T5Torture().vns_configuration_add_remove(
             self.vflapnum,
             sw_dut=BsnCommon().params_global('switch_dut'),
             sw_intf_dut=BsnCommon().params_global(
                 'switch_interface_dut'))
         sleep(self.big_config_sleep)
        def func():
            for i in range(0, self.loop):
                log_to_console("\n******* date link down/up %s*******" % i)

                T5Torture().randomize_leafs()
                T5Torture().cli_event_link_flap(
                    BsnCommon().params_global('leaf_list'),
                    BsnCommon().params_global('leaf_list'),
                    interval=self.link_flap_sleep)

                sleep(self.in_event_sleep)
        def func():
            BsnCommon().base_suite_setup()

            self.spine_list = T5Torture().rest_get_spine_switch_names()
            self.leaf_list = T5Torture().rest_get_leaf_switch_names()

            helpers.log("spine_list: %s" % self.spine_list)
            helpers.log("leaf_list: %s" % self.leaf_list)
 def __init__(self):
     self.link_flap_sleep = BsnCommon().params_global('link_flap_sleep')
     self.in_event_sleep = BsnCommon().params_global('in_event_sleep')
     self.between_event_sleep = BsnCommon().params_global(
         'between_event_sleep')
     self.tflapnum = BsnCommon().params_global('tflapnum')
     self.vflapnum = BsnCommon().params_global('vflapnum')
     self.big_config_sleep = BsnCommon().params_global('big_config_sleep')
     self.loop = BsnCommon().params_global('loop')
     self.repeat = BsnCommon().params_global('repeat')
 def func():
     for i in range(0, self.loop):
         log_to_console(
             "\n******* leaf switch node down/up event: %s ********" %
             i)
         T5Torture().randomize_leafs()
         for leaf in BsnCommon().params_global('leaf_list'):
             T5Torture().switch_node_down_up_event(leaf)
             sleep(self.in_event_sleep)
 def func():
     T5Torture().randomize_spines()
     for i in range(0, self.loop):
         log_to_console(
             "\n******* spine switch node down/up event: %s ********" %
             i)
         for spine in BsnCommon().params_global('spine_list'):
             T5Torture().switch_node_down_up_event(spine)
             sleep(self.in_event_sleep)
Exemple #7
0
 def func():
     result = BsnCommon().cli('c1', 'show version')
     content = result['content']
     match = re.search(r'^Name\s+:\s+(.*)$', content, re.M)
     assert match, "Version string not found"
     version = match.group(1)
     helpers.log("version: %s" % version)
     match = re.match(r'.*Big Cloud Fabric.*', version)
     assert match, "Big Cloud Fabric not found"
        def func():
            BsnCommon().base_suite_setup()

            spines = BsnCommon().params_global('spine_list')
            leafs = BsnCommon().params_global('leaf_list')

            if not spines:
                spines = T5Torture().rest_get_spine_switch_names()
                BsnCommon().params_global('spine_list', spines)
            if not leafs:
                leafs = T5Torture().rest_get_leaf_switch_names()
                BsnCommon().params_global('leaf_list', leafs)

            helpers.log("spine list: %s" %
                        BsnCommon().params_global('spine_list'))
            helpers.log("leaf list: %s" %
                        BsnCommon().params_global('leaf_list'))
 def tc_teardown(self, tc_failed=False):
     BsnCommon().base_test_teardown()
     if tc_failed:
         # Test case failed. You can run additional keywords here,
         # e.g., test postmortem.
         pass
Exemple #10
0
 def tc_setup(self):
     BsnCommon().base_test_setup()
Exemple #11
0
 def func():
     BsnCommon().base_suite_teardown()