Logo Search packages:      
Sourcecode: ufw version File versions

def src::common::UFWRule::set_action (   self,
  action 
)

Sets action of the rule

Definition at line 136 of file common.py.

00136                                 :
        '''Sets action of the rule'''
        if action.lower() == "allow":
            self.action = action
        elif action.lower() == "limit":
            self.action = "limit"
        else:
            self.action = "deny"

    def set_port(self, port, loc="dst"):


Generated by  Doxygen 1.6.0   Back to index