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