

def get_rule(name='all'):
    "\n    .. versionadded:: 2015.5.0\n\n    Get firewall rule(s) info\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' firewall.get_rule 'MyAppPort'\n    "
    ret = {
        
    }
    cmd = ['netsh', 'advfirewall', 'firewall', 'show', 'rule', 'name={0}'.format(name)]
    ret[name] = __salt__['cmd.run'](cmd, python_shell=False)
    if (ret[name].strip() == 'No rules match the specified criteria.'):
        ret = False
    return ret

dataset/ETHPy150Open saltstack/salt/salt/modules/win_firewall.py get_rule/original