@requires_auth<EOL><INDENT>def list_asn(self, args):<DEDENT>
try:<EOL><INDENT>return self.nip.list_asn(args.get('<STR_LIT>'), args.get('<STR_LIT>') or {})<EOL><DEDENT>except (AuthError, NipapError) as exc:<EOL><INDENT>self.logger.debug(unicode(exc))<EOL>raise Fault(exc.error_code, unicode(exc))<EOL><DEDENT>
List ASNs.

            Valid keys in the `args`-struct:

            * `auth` [struct]
                Authentication options passed to the :class:`AuthFactory`.
            * `asn` [struct]
                Specifies ASN attributes to match (optional).

            Returns a list of ASNs matching the ASN spec as a list of structs.