default_rules

Author: Athanasios Gkaraliakos email: a.gkaraliakos@gmail.com email: athanasios.gkaraliakos@cern.ch

The script is written on python >=2.6

class iptables_manager_modules.default_rules.DefaultConfiguration(mode, path, interface)[source]

Here is defined the default configuration that is gonna be applied on all the machines, if there no other additional configuration to be added.

perform_action()[source]

This method calls almost all the other methods to apply the default configuration on a machine. If the member ‘self.action’ is ‘deploy’ it creates and run all the rules specified above. If the member ‘self.action’ is ‘simulate’ it creates a list with all the rules that will be applied in case you make ‘self.action’ deploy :return: Void or list of rules to be applied