'Create snmp v3 local user operation'

def create_snmp_v3_local_user(self, **kwargs):

    module = kwargs['module']
    local_user_name = module.params['aaa_local_user']
    auth_protocol = module.params['auth_protocol']
    auth_key = module.params['auth_key']
    priv_protocol = module.params['priv_protocol']
    priv_key = module.params['priv_key']
    conf_str = (CE_CREATE_SNMP_V3_LOCAL_USER % (local_user_name, auth_protocol, auth_key, priv_protocol, priv_key))
    recv_xml = self.netconf_set_config(module=module, conf_str=conf_str)
    if ('<ok/>' not in recv_xml):
        module.fail_json(msg='Error:    Create    snmp    v3    local    user    failed.')
    cmd = ((((('snmp-agent    local-user    v3    %s    ' % local_user_name) + ('authentication-mode    %s    ' % auth_protocol)) + 'cipher    ******    ') + ('privacy-mode    %s    ' % priv_protocol)) + 'cipher        ******')
    return cmd
