'Create domain of authorization'

def create_authorization_domain(self, **kwargs):

    domain_name = kwargs['domain_name']
    author_scheme_name = kwargs['author_scheme_name']
    module = kwargs['module']
    conf_str = (CE_CREATE_AUTHORIZATION_DOMAIN % (domain_name, author_scheme_name))
    xml = self.netconf_set_config(module=module, conf_str=conf_str)
    if ('<ok/>' not in xml):
        module.fail_json(msg='Error:    Create    authorization    domain    failed.')
    cmds = []
    cmd = ('domain    %s' % domain_name)
    cmds.append(cmd)
    cmd = ('authorization-scheme    %s' % author_scheme_name)
    cmds.append(cmd)
    return cmds
