def table_chains(self, table="filter"):
        """
        Get a dict where the keys are all the chains for the given table
        and each value is the set of rules defined for the given chain.

        Args:
            table (str): table name, defaults to ``filter``

        Returns:
            dict: chains with set of defined rules
        """
        return dict((c["name"], self.get_chain(c["name"], table)) for c in self.get_table(table))