Logo Search packages:      
Sourcecode: ufw version File versions

def src::common::UFWRule::dup_rule (   self  ) 

Return a duplicate of a rule

Definition at line 67 of file common.py.

00067                       :
        '''Return a duplicate of a rule'''
        rule = UFWRule(self.action, self.protocol)
        rule.dport = self.dport
        rule.sport = self.sport
        rule.dst = self.dst
        rule.src = self.src
        rule.remove = self.remove
        rule.updated = self.updated
        rule.v6 = self.v6
        rule.multi = self.multi
        rule.dapp = self.dapp
        rule.sapp = self.sapp

        return rule

    def format_rule(self):


Generated by  Doxygen 1.6.0   Back to index