intracom-telecom-sdn/nstat

View on GitHub

Showing 544 of 544 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

if (time.time() - t_discovery_start) > \
self.nbgen.flows_ds_discovery_deadline:
logging.info('[NB_emulator] [Poll_flows thread] Deadline of '
'{0} seconds passed'
.format(self.nbgen.flows_ds_discovery_deadline))
Severity: Major
Found in stress_test/monitor.py and 1 other location - About 1 day to fix
stress_test/monitor.py on lines 796..829

Similar blocks of code found in 2 locations. Consider refactoring.
Open

if (time.time() - t_discovery_start) > \
self.nbgen.flows_ds_discovery_deadline:
logging.info('[NB_emulator] [Poll_flows_confirm thread] '
' Deadline of {0} seconds passed'
.format(self.flows_ds_discovery_deadline))
Severity: Major
Found in stress_test/monitor.py and 1 other location - About 1 day to fix
stress_test/monitor.py on lines 743..776

Similar blocks of code found in 2 locations. Consider refactoring.
Open

def multiplot_errorbar_json(results_file, x_axis_key, y_axis_key, z_axis_key,
plot_subtitle_keys, plot_options):
"""
Draw multiple collection of errorbars over a set of samples from a \
JSON file. \
Severity: Major
Found in util/plot_json.py and 1 other location - About 1 day to fix
util/plot_json.py on lines 288..351

Similar blocks of code found in 2 locations. Consider refactoring.
Open

def multiplot_scatter_json(results_file, x_axis_key, y_axis_key, z_axis_key,
plot_subtitle_keys, plot_options):
"""
Draw multiple scatter-plots over a set of samples from a JSON file. \
Each scatter-plot is determined by a specific value of the z_axis_key \
Severity: Major
Found in util/plot_json.py and 1 other location - About 1 day to fix
util/plot_json.py on lines 156..217

Similar blocks of code found in 3 locations. Consider refactoring.
Open

def init_ssh(self):
"""
Initializes a new SSH client object, with the nb_emulator node and \
assigns it to the protected attribute _ssh_conn. If a connection \
already exists it returns a new SSH client object to the \
Severity: Major
Found in stress_test/nbemu.py and 2 other locations - About 1 day to fix
stress_test/controller.py on lines 107..135
stress_test/sbemu.py on lines 97..124

Similar blocks of code found in 3 locations. Consider refactoring.
Open

def init_ssh(self):
"""
Initializes a new SSH client object, with the controller node and \
assigns it to the protected attribute _ssh_conn. If a connection \
already exists it returns a new SSH client object to the \
Severity: Major
Found in stress_test/controller.py and 2 other locations - About 1 day to fix
stress_test/nbemu.py on lines 100..127
stress_test/sbemu.py on lines 97..124

Similar blocks of code found in 3 locations. Consider refactoring.
Open

def init_ssh(self):
"""
Initializes a new SSH client object, with the emulator node and \
assigns it to the protected attribute _ssh_conn. If a connection \
already exists it returns a new SSH client object to the \
Severity: Major
Found in stress_test/sbemu.py and 2 other locations - About 1 day to fix
stress_test/controller.py on lines 107..135
stress_test/nbemu.py on lines 100..127

Similar blocks of code found in 2 locations. Consider refactoring.
Open

[stress_test.report_spec.TableSpec(
'2d',
'Test results',
[('global_sample_id', 'Sample ID'),
('timestamp', 'Sample timestamp (seconds)'),
Severity: Major
Found in stress_test/report_spec_templates.py and 1 other location - About 1 day to fix
stress_test/report_spec_templates.py on lines 550..592

Similar blocks of code found in 2 locations. Consider refactoring.
Open

[stress_test.report_spec.TableSpec(
'2d', 'Test results',
[('global_sample_id', 'Sample ID'),
('timestamp', 'Sample timestamp (seconds)'),
('date', 'Sample timestamp (date)'),
Severity: Major
Found in stress_test/report_spec_templates.py and 1 other location - About 1 day to fix
stress_test/report_spec_templates.py on lines 259..313

Similar blocks of code found in 2 locations. Consider refactoring.
Open

try:
if not util.netutil.isfile(self.ip, self.ssh_port,
self.ssh_user, self.ssh_pass,
[self.clean_hnd]):
raise(IOError(
Severity: Major
Found in stress_test/controller.py and 1 other location - About 1 day to fix
stress_test/nbemu.py on lines 177..197

Similar blocks of code found in 2 locations. Consider refactoring.
Open

try:
if not util.netutil.isfile(self.ip, self.ssh_port,
self.ssh_user, self.ssh_pass,
[self.clean_hnd]):
raise(IOError(
Severity: Major
Found in stress_test/nbemu.py and 1 other location - About 1 day to fix
stress_test/controller.py on lines 147..168

Similar blocks of code found in 2 locations. Consider refactoring.
Open

def __del__(self):
"""
Method called when object is destroyed
"""
try:
Severity: Major
Found in stress_test/oftraf.py and 1 other location - About 1 day to fix
stress_test/controller.py on lines 506..529

Similar blocks of code found in 2 locations. Consider refactoring.
Open

def __del__(self):
"""
Method called when object is destroyed. Cleanup activities are
triggered and open connections closed
"""
Severity: Major
Found in stress_test/controller.py and 1 other location - About 1 day to fix
stress_test/oftraf.py on lines 288..310

Similar blocks of code found in 7 locations. Consider refactoring.
Open

elif nstat_test_type_run == 'sb_active_scalability_multinet':
if not args.bypass_test:
logging.info('[nstat] running test: {0}'.
format(nstat_test_type_run))
self.total_samples = \
Severity: Major
Found in stress_test/test_type.py and 6 other locations - About 1 day to fix
stress_test/test_type.py on lines 102..122
stress_test/test_type.py on lines 124..144
stress_test/test_type.py on lines 168..188
stress_test/test_type.py on lines 190..210
stress_test/test_type.py on lines 211..231
stress_test/test_type.py on lines 233..253

Similar blocks of code found in 7 locations. Consider refactoring.
Open

elif nstat_test_type_run == 'nb_active_scalability_multinet':
if not args.bypass_test:
logging.info('[nstat] running test: {0}'.
format(nstat_test_type_run))
self.total_samples = \
Severity: Major
Found in stress_test/test_type.py and 6 other locations - About 1 day to fix
stress_test/test_type.py on lines 102..122
stress_test/test_type.py on lines 124..144
stress_test/test_type.py on lines 146..166
stress_test/test_type.py on lines 168..188
stress_test/test_type.py on lines 190..210
stress_test/test_type.py on lines 211..231

Similar blocks of code found in 7 locations. Consider refactoring.
Open

elif nstat_test_type_run == 'sb_active_stability_mtcbench':
if not args.bypass_test:
logging.info('[nstat] running test:{0}'.
format(nstat_test_type_run))
self.total_samples = \
Severity: Major
Found in stress_test/test_type.py and 6 other locations - About 1 day to fix
stress_test/test_type.py on lines 102..122
stress_test/test_type.py on lines 146..166
stress_test/test_type.py on lines 168..188
stress_test/test_type.py on lines 190..210
stress_test/test_type.py on lines 211..231
stress_test/test_type.py on lines 233..253

Similar blocks of code found in 7 locations. Consider refactoring.
Open

if nstat_test_type_run == 'sb_active_scalability_mtcbench':
if not args.bypass_test:
logging.info('[nstat] running test: {0}'.
format(nstat_test_type_run))
self.total_samples = \
Severity: Major
Found in stress_test/test_type.py and 6 other locations - About 1 day to fix
stress_test/test_type.py on lines 124..144
stress_test/test_type.py on lines 146..166
stress_test/test_type.py on lines 168..188
stress_test/test_type.py on lines 190..210
stress_test/test_type.py on lines 211..231
stress_test/test_type.py on lines 233..253

Similar blocks of code found in 7 locations. Consider refactoring.
Open

elif nstat_test_type_run == 'sb_idle_stability_multinet':
if not args.bypass_test:
logging.info('[nstat] running test: {0}'.
format(nstat_test_type_run))
self.total_samples = \
Severity: Major
Found in stress_test/test_type.py and 6 other locations - About 1 day to fix
stress_test/test_type.py on lines 102..122
stress_test/test_type.py on lines 124..144
stress_test/test_type.py on lines 146..166
stress_test/test_type.py on lines 168..188
stress_test/test_type.py on lines 190..210
stress_test/test_type.py on lines 233..253

Similar blocks of code found in 7 locations. Consider refactoring.
Open

elif nstat_test_type_run == 'sb_idle_scalability_mtcbench':
if not args.bypass_test:
logging.info('[nstat] running test: {0}'.
format(nstat_test_type_run))
self.total_samples = \
Severity: Major
Found in stress_test/test_type.py and 6 other locations - About 1 day to fix
stress_test/test_type.py on lines 102..122
stress_test/test_type.py on lines 124..144
stress_test/test_type.py on lines 146..166
stress_test/test_type.py on lines 190..210
stress_test/test_type.py on lines 211..231
stress_test/test_type.py on lines 233..253

Similar blocks of code found in 7 locations. Consider refactoring.
Open

elif nstat_test_type_run == 'sb_idle_scalability_multinet':
if not args.bypass_test:
logging.info('[nstat] running test: {0}'.
format(nstat_test_type_run))
self.total_samples = \
Severity: Major
Found in stress_test/test_type.py and 6 other locations - About 1 day to fix
stress_test/test_type.py on lines 102..122
stress_test/test_type.py on lines 124..144
stress_test/test_type.py on lines 146..166
stress_test/test_type.py on lines 168..188
stress_test/test_type.py on lines 211..231
stress_test/test_type.py on lines 233..253
Severity
Category
Status
Source
Language