Re: [netconf] What is the response structure when querying a specific instance object in a list?

Per Andersson <per.ietf@ionio.se> Tue, 16 April 2024 12:22 UTC

Return-Path: <perkietf@gmail.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C225BC14F712 for <netconf@ietfa.amsl.com>; Tue, 16 Apr 2024 05:22:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.65
X-Spam-Level:
X-Spam-Status: No, score=-1.65 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=no autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bhNiQdCe97Mk for <netconf@ietfa.amsl.com>; Tue, 16 Apr 2024 05:22:38 -0700 (PDT)
Received: from mail-il1-f170.google.com (mail-il1-f170.google.com [209.85.166.170]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 70CD3C14F748 for <netconf@ietf.org>; Tue, 16 Apr 2024 05:22:38 -0700 (PDT)
Received: by mail-il1-f170.google.com with SMTP id e9e14a558f8ab-36a261cd6b5so22833265ab.0 for <netconf@ietf.org>; Tue, 16 Apr 2024 05:22:38 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713270157; x=1713874957; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Kdd4IR+XBHYZ7LuXvXfqqDgbYsGkyBlLOlSNMh9vyxo=; b=dNXBvHkX6vRAuMOS+UvkTwI0jgdO5IK2WvsGat2u85ws2QzXmxHhmou+2Jmh3I1CNN XAukbkj0LZhGFvnYkYxe1hMzyqqfqTi+qTCnSGPhqWRVVH1QatCjrkjXDhvYxlliakdX IxEXUc5YcDDtjIeju6K3ir+LpMLaH/8ABpKcWEt5bzZy8NVj0/PlmXoi/y5yjvWNgC0w 59M93DTmKNtodg6pjivTKgkZ7kiSQr5oCQECpxv5hg/z9XocgFIhPZuZ1YYe4JHoEU7p E+3bIWAplAvfgXbQlR9irMU40QrzFmnkBim/zB4gEI/6724bhunAqTZM4X6VmUYK0fB4 m4CA==
X-Gm-Message-State: AOJu0YxcoK/oFShS19CJX0NSRnQwPHuGZdaNRbhiPGIbS7HsBtZZNmBb fIJIw3CtB4fstCelBakkpCNaViQ9D0yKAeB40H8EFjBJMA+BIdNEwIJ+7/RSzv0=
X-Google-Smtp-Source: AGHT+IH6/u9xcFHbz+Poj456MvbE411lkVkatlUzhTz+pg+r+uanF5KS2qCEYCQZGURTQYqKd+dUKA==
X-Received: by 2002:a05:6e02:19cd:b0:36a:a6c4:b6da with SMTP id r13-20020a056e0219cd00b0036aa6c4b6damr16334583ill.4.1713270157610; Tue, 16 Apr 2024 05:22:37 -0700 (PDT)
Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com. [209.85.214.172]) by smtp.gmail.com with ESMTPSA id r27-20020a638f5b000000b005dc1edf7371sm8852441pgn.9.2024.04.16.05.22.37 for <netconf@ietf.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Apr 2024 05:22:37 -0700 (PDT)
Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1e3cf5b171eso35140905ad.0 for <netconf@ietf.org>; Tue, 16 Apr 2024 05:22:37 -0700 (PDT)
X-Received: by 2002:a17:902:c40d:b0:1e2:8c26:3264 with SMTP id k13-20020a170902c40d00b001e28c263264mr18153281plk.36.1713270157325; Tue, 16 Apr 2024 05:22:37 -0700 (PDT)
MIME-Version: 1.0
References: <dec8b1969a8f4511bb99b550407f23d7@huawei.com>
In-Reply-To: <dec8b1969a8f4511bb99b550407f23d7@huawei.com>
From: Per Andersson <per.ietf@ionio.se>
Date: Tue, 16 Apr 2024 12:22:25 +0000
X-Gmail-Original-Message-ID: <CACvbXWEjB=i6T6JoaCKH3a=eFQ00n2tw2nXfUJkJ_LMgaBQCYg@mail.gmail.com>
Message-ID: <CACvbXWEjB=i6T6JoaCKH3a=eFQ00n2tw2nXfUJkJ_LMgaBQCYg@mail.gmail.com>
To: yuchaode <yuchaode=40huawei.com@dmarc.ietf.org>
Cc: "netconf@ietf.org" <netconf@ietf.org>, "yanglin (N)" <yanglin60@huawei.com>, liuzhoulong <liuzhoulong@huawei.com>, "Wangxi(Cordelia)" <wangxi114@huawei.com>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/D92tYQyQWyzqg_c6KIYfzY8z42g>
Subject: Re: [netconf] What is the response structure when querying a specific instance object in a list?
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Apr 2024 12:22:39 -0000

Hi!

I tried looking for support on how to return the JSON result
in RFC 8040 and RFC 7951 but found no text defining it.

However, the examples in Appendix B.3.9 shows that when
adressing a specific list element, it should be enclosed in
square brackets.

FWIW this is also how our system behaves.


--
Per