blob: 8a262112e8d3b355d6b7042616c65e3b8c8b2009 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
from reconfigure.configs.base import Reconfig
from reconfigure.parsers import IPTablesParser
from reconfigure.builders import BoundBuilder
from reconfigure.items.iptables import IPTablesData
class IPTablesConfig (Reconfig):
"""
``iptables-save`` and ``iptables-restore``
"""
def __init__(self, **kwargs):
k = {
'parser': IPTablesParser(),
'builder': BoundBuilder(IPTablesData),
}
k.update(kwargs)
Reconfig.__init__(self, **k)
|