intracom-telecom-sdn/nstat

View on GitHub

Showing 544 of 544 total issues

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

def sb_active_stability_mtcbench_run(self,
json_conf,
json_output,
output_dir):
"""
Severity: Major
Found in stress_test/test_run.py and 1 other location - About 4 days to fix
stress_test/test_run.py on lines 176..254

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

def sb_active_scalability_mtcbench_run(self,
json_conf,
json_output,
output_dir):
"""
Severity: Major
Found in stress_test/test_run.py and 1 other location - About 4 days to fix
stress_test/test_run.py on lines 94..174

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

def sb_active_scalability_mtcbench(self, results_json_file):
"""
Returns the report specification for the Southbound active scalability
test with MT-Cbench
 
Severity: Major
Found in stress_test/report_spec_templates.py and 1 other location - About 3 days to fix
stress_test/report_spec_templates.py on lines 114..206

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

def sb_active_stability_mtcbench(self, results_json_file):
"""
Returns the report specification object for SouthBound active
stabiility test with MT-Cbench.
 
Severity: Major
Found in stress_test/report_spec_templates.py and 1 other location - About 3 days to fix
stress_test/report_spec_templates.py on lines 21..112

File monitor.py has 971 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# Copyright (c) 2016 Intracom S.A. Telecom Solutions. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v1.0 which accompanies this distribution,
# and is available at http://www.eclipse.org/legal/epl-v10.html
Severity: Major
Found in stress_test/monitor.py - About 2 days to fix

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

    def get_oper_switches(self, new_ssh_conn=None):
    """
    Wrapper to the controller oper_switches handler. Makes a REST call \
    to the NB interface of the controller and returns the number of \
    switches of the topology, recorded in operational datastore of the \
    Severity: Major
    Found in stress_test/controller.py and 3 other locations - About 2 days to fix
    stress_test/controller.py on lines 698..746
    stress_test/controller.py on lines 800..849
    stress_test/controller.py on lines 851..900

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

    def get_oper_links(self, new_ssh_conn=None):
    """
    Wrapper to the controller oper_links handler. Makes a REST call \
    to the NB interface of the controller and returns the number of \
    links of the topology, recorded in operational datastore of the \
    Severity: Major
    Found in stress_test/controller.py and 3 other locations - About 2 days to fix
    stress_test/controller.py on lines 698..746
    stress_test/controller.py on lines 748..798
    stress_test/controller.py on lines 851..900

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

    def get_oper_hosts(self, new_ssh_conn=None):
    """
    Wrapper to the controller oper_hosts handler. Makes a REST call to \
    the NB interface of the controller and returns the number of hosts \
    of the topology, recorded in operational datastore of the controller
    Severity: Major
    Found in stress_test/controller.py and 3 other locations - About 2 days to fix
    stress_test/controller.py on lines 748..798
    stress_test/controller.py on lines 800..849
    stress_test/controller.py on lines 851..900

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

    def get_oper_flows(self, new_ssh_conn=None):
    """
    Wrapper to the controller oper_flows handler. Makes a REST call \
    to the NB interface of the controller and returns the number of \
    flows of the topology, recorded in operational datastore of the \
    Severity: Major
    Found in stress_test/controller.py and 3 other locations - About 2 days to fix
    stress_test/controller.py on lines 698..746
    stress_test/controller.py on lines 748..798
    stress_test/controller.py on lines 800..849

    File controller.py has 866 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    # Copyright (c) 2016 Intracom S.A. Telecom Solutions. All rights reserved.
    #
    # This program and the accompanying materials are made available under the
    # terms of the Eclipse Public License v1.0 which accompanies this distribution,
    # and is available at http://www.eclipse.org/legal/epl-v10.html
    Severity: Major
    Found in stress_test/controller.py - About 2 days to fix

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

      def generate_traffic(self):
      """
      Wrapper to the Multinet SB-Emulator traffic_gen handler
       
      :raises IOError: if the handler does not exist on the remote host
      Severity: Major
      Found in stress_test/sbemu.py and 4 other locations - About 2 days to fix
      stress_test/sbemu.py on lines 674..711
      stress_test/sbemu.py on lines 713..750
      stress_test/sbemu.py on lines 752..788
      stress_test/sbemu.py on lines 790..827

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

      def init_topos(self):
      """
      Wrapper to the Multinet SB-Emulator init_topos handler
       
      :raises IOError: if the handler does not exist on the remote host
      Severity: Major
      Found in stress_test/sbemu.py and 4 other locations - About 2 days to fix
      stress_test/sbemu.py on lines 713..750
      stress_test/sbemu.py on lines 752..788
      stress_test/sbemu.py on lines 790..827
      stress_test/sbemu.py on lines 829..868

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

      def stop_topos(self):
      """
      Wrapper to the Multinet SB-Emulator stop_topos handler
       
      :raises IOError: if the handler does not exist on the remote host
      Severity: Major
      Found in stress_test/sbemu.py and 4 other locations - About 2 days to fix
      stress_test/sbemu.py on lines 674..711
      stress_test/sbemu.py on lines 713..750
      stress_test/sbemu.py on lines 790..827
      stress_test/sbemu.py on lines 829..868

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

      def cleanup(self):
      """
      Wrapper to the Multinet SB-Emulator cleanup handler
       
      :raises IOError: if the handler does not exist on the remote host
      Severity: Major
      Found in stress_test/sbemu.py and 4 other locations - About 2 days to fix
      stress_test/sbemu.py on lines 674..711
      stress_test/sbemu.py on lines 713..750
      stress_test/sbemu.py on lines 752..788
      stress_test/sbemu.py on lines 829..868

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

      def start_topos(self):
      """
      Wrapper to the Multinet SB-Emulator start_topos handler
       
      :raises IOError: if the handler does not exist on the remote host
      Severity: Major
      Found in stress_test/sbemu.py and 4 other locations - About 2 days to fix
      stress_test/sbemu.py on lines 674..711
      stress_test/sbemu.py on lines 752..788
      stress_test/sbemu.py on lines 790..827
      stress_test/sbemu.py on lines 829..868

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

      def getcontroller(self):
      """
      Wrapper to the get controller handler
       
      :raises IOError: if the handler does not exist on the remote host
      Severity: Major
      Found in stress_test/controller.py and 1 other location - About 2 days to fix
      stress_test/controller.py on lines 396..432

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

      def build(self):
      """
      Wrapper to the controller build handler
       
      :raises IOError: if the handler does not exist on the remote host
      Severity: Major
      Found in stress_test/controller.py and 1 other location - About 2 days to fix
      stress_test/controller.py on lines 357..394

      File sbemu.py has 800 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      # Copyright (c) 2016 Intracom S.A. Telecom Solutions. All rights reserved.
      #
      # This program and the accompanying materials are made available under the
      # terms of the Eclipse Public License v1.0 which accompanies this distribution,
      # and is available at http://www.eclipse.org/legal/epl-v10.html
      Severity: Major
      Found in stress_test/sbemu.py - About 1 day to fix

        File test_run.py has 775 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        # Copyright (c) 2015 Intracom S.A. Telecom Solutions. All rights reserved.
        #
        # This program and the accompanying materials are made available under the
        # terms of the Eclipse Public License v1.0 which accompanies this distribution,
        # and is available at http://www.eclipse.org/legal/epl-v10.html
        Severity: Major
        Found in stress_test/test_run.py - About 1 day to fix

          File report_spec_templates.py has 674 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          # Copyright (c) 2015 Intracom S.A. Telecom Solutions. All rights reserved.
          #
          # This program and the accompanying materials are made available under the
          # terms of the Eclipse Public License v1.0 which accompanies this distribution,
          # and is available at http://www.eclipse.org/legal/epl-v10.html
          Severity: Major
          Found in stress_test/report_spec_templates.py - About 1 day to fix
            Severity
            Category
            Status
            Source
            Language