Package expedient :: Package clearinghouse :: Package defaultsettings :: Module openflowtests
[hide private]
[frames] | no frames]

Source Code for Module expedient.clearinghouse.defaultsettings.openflowtests

  1  '''Contains default settings for the testing environment. 
  2  Created on Aug 22, 2010 
  3   
  4  @author: jnaous 
  5  ''' 
  6  from os.path import join, dirname 
  7   
  8  PYTHON_DIR = join(dirname(__file__), "../../..") 
  9  OM_PROJECT_DIR = join(PYTHON_DIR, "openflow/optin_manager") 
 10  CH_PROJECT_DIR = join(PYTHON_DIR, "expedient/clearinghouse") 
 11  GCF_DIR = join(PYTHON_DIR, "gcf") 
 12  SSL_DIR = join(dirname(__file__), "ssl") 
 13   
 14  FLOWVISOR_DIR = join(PYTHON_DIR, "../../../../flowvisor") 
 15  '''Location of the testing Flowvisor source directory.''' 
 16   
 17  USE_RANDOM = False 
 18  '''Randomize the tests where possible?''' 
 19   
 20  SITE_IP_ADDR = '192.168.126.128' 
 21  '''The IP address of the host where Expedient and the OM are running.''' 
 22   
 23  OM_PORT = 8443 
 24  '''Port on which the Opt-In manager is running.''' 
 25   
 26  CH_PORT = 443 
 27  '''Port on which Expedient is running.''' 
 28   
 29  PREFIX = "" 
 30   
 31  FV_CONFIG = 'fv_vm_config.xml' 
 32  '''Name of the Flowvisor config file.''' 
 33   
 34  GCH_PORT = 8001 
 35  '''The port on which the GENI Clearinghouse should run.''' 
 36   
 37  FLOWVISORS = [ 
 38      dict( 
 39          of_port=6633,             # openflow port 
 40          xmlrpc_port=8080,         # XMLRPC port for the flowvisor 
 41          username="root",          # The username to use to connect to the FV 
 42          password='rootpassword',  # The password to use to connect to the FV 
 43          path=(FLOWVISOR_DIR, FV_CONFIG), # configuration file 
 44      ), 
 45  ] 
 46  '''Information about where the test flowvisor should run. 
 47   
 48  This should be a list of dicts with the following keys: 
 49   
 50      - C{of_port}: The openflow port number the Flowvisor will use. 
 51      - C{xmlrpc_port}: The port number for XMLRPC calls to the Flowvisor. 
 52      - C{username}: The username to use for accessing the xmlrpc calls. 
 53      - C{password}: The password to use for accessing the xmlrpc calls. 
 54      - C{path}: The location of the flowvisor config file. 
 55   
 56  ''' 
 57   
 58  MININET_VMS = [('172.16.77.131', 22)] 
 59  '''Information about where the Mininet VM is running. 
 60   
 61  This should be a list of tuples (IP address, SSH port number) 
 62   
 63  ''' 
 64   
 65  MININET_SWITCH_TYPE = "user" 
 66  '''Type of switch to use. One of "user", "ovsk", "kernel"''' 
 67   
 68  NUM_EXPERIMENTS = 2 
 69  '''Number of Slices to instantiate during testing.''' 
 70   
 71  NUM_DUMMY_OMS = 3 
 72  '''Number of Dummy OMs to use for GAPI tests.''' 
 73   
 74  NUM_SWITCHES_PER_AGG = 10 
 75  '''Number of dummy switches for GAPI tests.''' 
 76   
 77  NUM_LINKS_PER_AGG = 20 
 78  '''Number of dummy links for GAPI tests.''' 
 79   
 80  NUM_DUMMY_FVS = 1 
 81  '''Don't change. Num of Dummy FVs for OM tests.''' 
 82   
 83  USE_HTTPS = True 
 84  '''Run using HTTPS or HTTP to expedient & OM?''' 
 85   
 86  SHOW_PROCESSES_IN_XTERM = True 
 87  '''Don't change. Should forked processes run in an xterm?''' 
 88   
 89  PAUSE_AFTER_TESTS = False 
 90  '''If true, each test will wait for an Enter from the user 
 91  before tearing down (useful to look at xterm output). 
 92   
 93  ''' 
 94   
 95  TIMEOUT = 20 
 96  '''Time to wait for processes to run and for communication to work.''' 
 97   
 98  # basic settings sanity checks 
 99  assert(len(FLOWVISORS) == len(MININET_VMS)) 
100