def filter(interface=None, attr=None, value=None):
    """Return directives by filter.

        interface
            Interface to be searched
        attr
            Attribute name to be searched
        value
            Attribute value to be searched
        """
