def static_parser(static):
        """Parse object describing static routes.

        Might be a list, a dict or a list of dicts.
        """
        if static is None:
            return

        if isinstance(static, dict):
            static = static.items()

        for group in static:
            if not isinstance(group, dict):
                yield group
                continue

            for item in group.items():
                yield item
Parse object describing static routes.

        Might be a list, a dict or a list of dicts.