(self, enable=True)
Enable or disable the iptable rule
Enable or disable the iptable rule
Enable or disable the iptable rule
def modip(self, enable=True):
        """ Enable or disable the iptable rule
        """
        if enable:
            util.init_app(self.iptable)
        else:
            util.init_app(self.iptable.replace('-A', '-D'))
def modip ( self , enable = True ) : if enable : util . init_app ( self . iptable ) else : util . init_app ( self . iptable . replace ( '-A' , '-D' ) )