Example #1
0
 def disable(self):
     """Close firewall ports when the component is disabled."""
     super().disable()
     firewall.try_with_reload(self._disable)
Example #2
0
 def enable(self):
     """Open firewall ports when the component is enabled."""
     super().enable()
     firewall.try_with_reload(self._enable)