@requires_auth<EOL><INDENT>def add_vrf(self, args):<DEDENT>
try:<EOL><INDENT>res = self.nip.add_vrf(args.get('<STR_LIT>'), args.get('<STR_LIT>'))<EOL>for val in ( '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>'):<EOL><INDENT>res[val] = unicode(res[val])<EOL><DEDENT>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 new VRF.

            Valid keys in the `args`-struct:

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

            Returns the internal database ID for the VRF.