Esempio n. 1
0
    def __init__(self):
        """Loader ctor - initialization method.

        All data is read from configuration each time Loader instance is
        created. It is up to creator to maintain object life cycle if this
        behavior is unwanted.
        """
        self._trafficgen_loader = LoaderServant(
            settings.getValue('TRAFFICGEN_DIR'),
            settings.getValue('TRAFFICGEN'),
            ITrafficGenerator)

        self._metrics_loader = LoaderServant(
            settings.getValue('COLLECTOR_DIR'),
            settings.getValue('COLLECTOR'),
            ICollector)

        self._vswitch_loader = LoaderServant(
            settings.getValue('VSWITCH_DIR'),
            settings.getValue('VSWITCH'),
            IVSwitch)

        self._vnf_loader = LoaderServant(
            settings.getValue('VNF_DIR'),
            settings.getValue('VNF'),
            IVnf)

        self._pktfwd_loader = LoaderServant(
            settings.getValue('PKTFWD_DIR'),
            settings.getValue('PKTFWD'),
            IPktFwd)
Esempio n. 2
0
    def __init__(self):
        """Loader ctor - initialization method.

        All data is read from configuration each time Loader instance is
        created. It is up to creator to maintain object life cycle if this
        behavior is unwanted.
        """
        self._vswitch_loader = LoaderServant(
            settings.getValue('VSWITCH_DIR'),
            settings.getValue('VSWITCH'),
            IVSwitch)
Esempio n. 3
0
    def __init__(self):
        """Loader ctor - initialization method.

        All data is read from configuration each time Loader instance is
        created. It is up to creator to maintain object life cycle if this
        behavior is unwanted.
        """
        self._k8scontroller_loader = LoaderServant(
            settings.getValue('K8S_CONTROL_DIR'),
            settings.getValue('K8S_CONTROLLER'),
            IK8sController)
Esempio n. 4
0
    def __init__(self):
        """Loader ctor - initialization method.

        All data is read from configuration each time Loader instance is
        created. It is up to creator to maintain object life cycle if this
        behavior is unwanted.
        """
        self._swpreurlsvalidator_loader = LoaderServant(
            settings.getValue('SW_PRE_URLS_VALID_DIR'),
            settings.getValue('SW_PRE_URLS_VALIDATOR'), ISwPreUrlsValidator)
        self._swpreconfigvalidator_loader = LoaderServant(
            settings.getValue('SW_PRE_CONFIG_VALID_DIR'),
            settings.getValue('SW_PRE_CONFIG_VALIDATOR'),
            ISwPreConfigValidator)
        self._swpoststatevalidator_loader = LoaderServant(
            settings.getValue('SW_POST_STATE_VALID_DIR'),
            settings.getValue('SW_POST_STATE_VALIDATOR'),
            ISwPostStateValidator)
        self._swpostsecurityvalidator_loader = LoaderServant(
            settings.getValue('SW_POST_SECURITY_VALID_DIR'),
            settings.getValue('SW_POST_SECURITY_VALIDATOR'),
            ISwPostSecurityValidator)
        self._nwlinksvalidator_loader = LoaderServant(
            settings.getValue('NW_LINKS_VALID_DIR'),
            settings.getValue('NW_LINKS_VALIDATOR'), INwLinksValidator)
        self._resmodvalidator_loader = LoaderServant(
            settings.getValue('RES_MOD_VALID_DIR'),
            settings.getValue('RES_MOD_VALIDATOR'), IResModValidator)