def set_sysctl(key, value):
    """
    Set a kernel parameter.

    Example::

        import fabtools

        # Protect from SYN flooding attack
        fabtools.system.set_sysctl('net.ipv4.tcp_syncookies', 1)

    """
    run_as_root(locals() % '/sbin/sysctl -n -e -w %(key)s=%(value)s')
dataset/ETHPy150Open ronnix/fabtools/fabtools/system.py/set_sysctl/swapped operands of `%`