@requires_auth<EOL><INDENT>def add_asn(self, args):<DEDENT>
try:<EOL><INDENT>return self.nip.add_asn(args.get('<STR_LIT>'), args.get('<STR_LIT>'))<EOL><DEDENT>except (AuthError, NipapError) as exc:<EOL><INDENT>self.logger.debug(unicode(exc))<EOL>raise Fault(exc.error_code, unicode(exc))<EOL><DEDENT>
Add a new ASN.

            Valid keys in the `args`-struct:

            * `auth` [struct]
                Authentication options passed to the :class:`AuthFactory`.
            * `attr` [struct]
                ASN attributes.

            Returns the ASN.