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)
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)