관리-도구
편집 파일: fw_service.cpython-36.pyc
3 @)�fg � @ s2 d gZ ddlmZ ddlmZ G dd � d e�ZdS )�FirewallService� )�errors)� FirewallErrorc @ sL e Zd Zdd� Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z dS )r c C s || _ i | _d S )N)Z_fw� _services)�self�fw� r � /usr/lib/python3.6/fw_service.py�__init__ s zFirewallService.__init__c C s d| j | jf S )Nz%s(%r))� __class__r )r r r r �__repr__ s zFirewallService.__repr__c C s | j j� d S )N)r �clear)r r r r �cleanup# s zFirewallService.cleanupc C s t | jj� �S )N)�sortedr �keys)r r r r �get_services( s zFirewallService.get_servicesc C s || j krttj|��d S )N)r r r ZINVALID_SERVICE)r �servicer r r � check_service+ s zFirewallService.check_servicec C s | j |� | j| S )N)r r )r r r r r �get_service/ s zFirewallService.get_servicec C s || j |j<