def METHOD_NAME(self, tablename):
    """ Collecting iptables rules for a table loads either kernel module
    of the table name (for kernel <= 3), or nf_tables (for kernel >= 4).
    If neither module is present, the rules must be empty."""
    modname = "iptable_" + tablename
    cmd = "iptables -t " + tablename + " -nvL"
    self.add_cmd_output(
        cmd,
        pred=SoSPredicate(self, kmods=[modname, 'nf_tables']))