예제 #1
0
파일: config.py 프로젝트: cboling-zz/SDNdbg
    def _load_site(self, site_configs):
        """
        Create a collection of Site objects based on the configuration provided

        :param site_configs:

        :return: (list) Site configuration objects
        """
        from site import Config as SiteConfig
        sites = []

        for site_config in site_configs:
            sites.append(SiteConfig.create(site_config, self))

        return sites
예제 #2
0
파일: config.py 프로젝트: cboling/SDNdbg
    def _load_site(self, site_configs):
        """
        Create a collection of Site objects based on the configuration provided

        :param site_configs:

        :return: (list) Site configuration objects
        """
        from site import Config as SiteConfig
        sites = []

        for site_config in site_configs:
            sites.append(SiteConfig.create(site_config, self))

        return sites
예제 #3
0
파일: config.py 프로젝트: cboling-zz/SDNdbg
 def _load_env_vars():
     from site import Config as SiteConfig
     return {'sites': [SiteConfig.load_env_vars()]}
예제 #4
0
파일: config.py 프로젝트: cboling/SDNdbg
 def _load_env_vars():
     from site import Config as SiteConfig
     return {'sites': [SiteConfig.load_env_vars()]}