print(
            "ERROR: No localsettings module defined. Please run the "
            " 'bootstrap_local_settings' command if you have not yet "
            "created a localsettings module and add the parent "
            "directory to your PYTHONPATH. Proceeding with missing "
            "required settings."
        )
    else:
        raise

# Logging
from expedient.common import loggingconf
import logging

if DEBUG:
    loggingconf.set_up(logging.DEBUG, LOGGING_LEVELS)
else:
    loggingconf.set_up(logging.INFO, LOGGING_LEVELS)


#GENI CONTROL FRAMEWORK SETTINGS (NOT NEEDED AT THIS MOMENT)
GCF_BASE_NAME = "expedient//your_affiliation"
GCF_URN_PREFIX = "expedient:your_afiliation"

#OFREG URL
OFREG_URL = " https://register.fp7-ofelia.eu"
OFREG_RESET_PATH = '/password_reset/forgotten'


OPENFLOW_GAPI_RSC_URN_PREFIX = "urn:publicid:IDN+expedient:your_affiliation:openflow"
OPENFLOW_GAPI_AM_URN = OPENFLOW_GAPI_RSC_URN_PREFIX+"+am"
예제 #2
0
파일: tests.py 프로젝트: HalasNet/felix
from os.path import join, dirname
import random

PYTHON_DIR = join(dirname(__file__), "../../../")
sys.path.append(PYTHON_DIR)

from unittest import TestCase
from expedient.common.utils.certtransport import SafeTransportWithCert
import xmlrpclib
from openflow.tests.helpers import parse_rspec, Flowspace
from openflow.tests.helpers import create_random_resv
from expedient.common.tests.utils import drop_to_shell
import logging
from expedient.common import loggingconf

loggingconf.set_up(logging.DEBUG)  # Change logging.INFO for less output

logger = logging.getLogger("PostDeploymentTest")

# Set this to "http" if you know the server uses HTTP instead of HTTPS.
SCHEME = "https"

# Settings for the flowvisor to verify slice creation and opt-in.
FLOWVISOR = dict(
    host="beirut.stanford.edu",  # host for flowvisor's interface
    xmlrpc_port=8080,  # XMLRPC port for the flowvisor
    username="******",  # The username to use to connect to the FV
    password="******",  # The password to use to connect to the FV
)

# The URL for the GAPI proxy you want to use to communicate with Expedient
예제 #3
0
MININET_SWITCH_TYPE = "user"

NUM_EXPERIMENTS = 2  # Number of Slices

NUM_DUMMY_OMS = 3  # Number of Dummy OMs to use for GAPI tests.
NUM_SWITCHES_PER_AGG = 10  # Number of dummy switches for GAPI tests
NUM_LINKS_PER_AGG = 20  # Number of dummy links for GAPI tests

NUM_DUMMY_FVS = 1  # Don't change. Num of Dummy FVs for OM tests

USE_HTTPS = True  # Run using HTTPS or HTTP to expedient & OM?
# WARNING: This is experimental and untested

SHOW_PROCESSES_IN_XTERM = True
# the test suites will popup on separate
# xterms. xterm must be installed.

PAUSE_AFTER_TESTS = False  # If true, each test will wait for an Enter
# from the user before tearing down (useful
# to look at xterm output).

TIMEOUT = 20  # Time to wait for processes to run and for
# communication to work.

# basic settings sanity checks
assert (len(FLOWVISORS) == len(MININET_VMS))

from expedient.common import loggingconf
import logging
loggingconf.set_up(logging.DEBUG)  # Change logging.INFO for less output
예제 #4
0
파일: settings.py 프로젝트: cargious/ocf
except ImportError as e:
    if "No module named localsettings" in "%s" % e:
        print("ERROR: No localsettings module defined. Please run the "
              " 'bootstrap_local_settings' command if you have not yet "
              "created a localsettings module and add the parent "
              "directory to your PYTHONPATH. Proceeding with missing "
              "required settings.")
    else:
        raise

# Logging
from expedient.common import loggingconf
import logging

if DEBUG:
    loggingconf.set_up(logging.DEBUG, LOGGING_LEVELS)
else:
    loggingconf.set_up(logging.INFO, LOGGING_LEVELS)

#GENI CONTROL FRAMEWORK SETTINGS (NOT NEEDED AT THIS MOMENT)
GCF_BASE_NAME = "expedient//your_affiliation"
GCF_URN_PREFIX = "expedient:your_afiliation"

#OFREG URL
OFREG_URL = " https://register.fp7-ofelia.eu"
OFREG_RESET_PATH = '/password_reset/forgotten'

OPENFLOW_GAPI_RSC_URN_PREFIX = "urn:publicid:IDN+expedient:your_affiliation:openflow"
OPENFLOW_GAPI_AM_URN = OPENFLOW_GAPI_RSC_URN_PREFIX + "+am"

#Openflow Test (NOT NEEDED, BUT KEPT HERE JUST IN CASE)