def status():
    with settings(hide('running', 'stdout', 'warnings'), warn_only=True):
        res = run_as_root('shorewall status')
    return re.search(r'\nShorewall is (\w+)', res).group(1)
Get the firewall status.
dataset/ETHPy150Open ronnix/fabtools/fabtools/shorewall.py/status