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 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)
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() 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 func(): # raise SkipTest("removed from regression") for i in range(0, self.loop): log_to_console( "\n******* controller node failover: %s *******" % i) T5Torture().controller_node_event_reload_active() sleep(self.in_event_sleep)
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******* controller node failover: %s *******" % i) T5Torture().controller_node_event_ha_failover() sleep(self.in_event_sleep)