예제 #1
0
파일: _linux.py 프로젝트: GrammaB/treadmill
    def initialize(self, params):
        """One time initialization of the Treadmill environment."""
        _LOGGER.info('Initializing once.')

        # TODO: Network initialization. Right now it requires data from the
        # network_svc which isne't running yet.
        # iptables.initialize()

        # Initialize network rules
        self.rules.initialize()

        # Initialize FS plugins.
        image_fs.init_plugins(self)

        # Initialize container plugin hooks
        apphook.init(self)
예제 #2
0
    def initialize(self, params):
        """One time initialization of the Treadmill environment."""
        _LOGGER.info('Initializing once.')

        # Flush all rules in iptables nat and mangle tables (it is assumed that
        # none but Treadmill manages these tables) and bulk load all the
        # Treadmill static rules
        iptables.initialize(params['network']['external_ip'])

        # Initialize network rules
        self.rules.initialize()

        # Initialize FS plugins.
        image_fs.init_plugins(self)

        # Initialize container plugin hooks
        apphook.init(self)