@requires_auth<EOL><INDENT>def add_prefix(self, args):<DEDENT>
try:<EOL><INDENT>res = self.nip.add_prefix(args.get('<STR_LIT>'), args.get('<STR_LIT>'), args.get('<STR_LIT:args>'))<EOL>res = _mangle_prefix(res)<EOL>return res<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 prefix.

            Valid keys in the `args`-struct:

            * `auth` [struct]
                Authentication options passed to the :class:`AuthFactory`.
            * `attr` [struct]
                Attributes to set on the new prefix.
            * `args` [srgs]
                Arguments for addition of prefix, such as what pool or prefix
                it should be allocated from.

            Returns ID of created prefix.