def version():
    cmd = '{0} --version' . format(_nftables_cmd())
    out = __salt__['cmd.run'](cmd).split()
    return out[1]
Return version from nftables --version
dataset/ETHPy150Open saltstack/salt/salt/modules/nftables.py/version