def ipset_supported():
    try:
        cmd = ['ipset', '--version']
        agent_utils.execute(cmd)
        return True
    except (OSError, RuntimeError, __HOLE__, ValueError) as e:
        LOG.debug("Exception while checking for installed ipset. "
                  "Exception: %s", e)
        return False
dataset/ETHPy150Open openstack/neutron/neutron/cmd/sanity/checks.py/ipset_supported