Re: [netconf] Error to make a NETCONF action call without including an action node?

Martin Björklund <mbj+ietf@4668.se> Thu, 30 April 2020 16:00 UTC

Return-Path: <mbj+ietf@4668.se>
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 58D523A0B2E for <netconf@ietfa.amsl.com>; Thu, 30 Apr 2020 09:00:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.101
X-Spam-Level:
X-Spam-Status: No, score=-0.101 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, PDS_NAKED_TO_NUMERO=1.999, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=4668.se header.b=WyWBe7cI; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=bl2j96er
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zEhi2Utqd3W1 for <netconf@ietfa.amsl.com>; Thu, 30 Apr 2020 09:00:09 -0700 (PDT)
Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4172A3A0B1E for <netconf@ietf.org>; Thu, 30 Apr 2020 09:00:09 -0700 (PDT)
Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 9FCED5C012B; Thu, 30 Apr 2020 12:00:08 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 30 Apr 2020 12:00:08 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=4668.se; h=date :message-id:to:cc:subject:from:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=fm1; bh= oYqojnV2XfuE8t7MGgjnY9KShw5U3y+TqKgGNbrTpf0=; b=WyWBe7cIcm9RPpzq rqgfoFxrLKTIb2RWYLb57FcEt9VjlyWDaVO8yahJeu0UeU4M8WvZs1XkATuzwTnY FQcADu+TtCriu31Q+434SQOLY8AvwOchynnwzVlIBzwXK1eEZ5YWTSbhQsiV3GdQ bMi/w1KTEfoqwefEblwljGFGPPbJD90LxsCqpoeirBKGE8XFPhLfBkqA7ZMcGDqO MHdEkasoKBaemITo1xLK3ql3l/rjCFZ4RXZ1Y0OXJpmKbH+H96QutiCMBPn/UVLL smQooqxNv1dZcncK2NTgg2diIsv8larnvA4ccifjoPwvTk2h0Fz7RHWCu4QIdkj2 8joOYw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=oYqojnV2XfuE8t7MGgjnY9KShw5U3y+TqKgGNbrTp f0=; b=bl2j96ersawN8Hk+w2a4CwGdyeLpwDNgPHAzqjfcqEMGvHIHSF6U+g6EL 9R4FdGjKt4Xve+RAPXVdJik7wbzrFV5P+8ixz4pkSSr9ehGvPgBIv8q2+n+mV8md k1HzACIUPaWiqkXYd8VVf5due8+ChffRXaNmV/Of0tki7dwAVXu6kxpbTczooinr UggagsT4Nt48M3TQWNZ1NqENU2lqBK+iHVuOMrVGrMnAJIdqpJf75mPXJ6hDZTZB OqY1o9VCT8RUNbcLN63yCSs6LgegY9KODzBKq9uWU+FQqa/Hf29m7g5a3yhkO9Dl WFq2IvaIB5TGYU9hh4CxU5A370Bag==
X-ME-Sender: <xms:CPaqXhVnzhUj3xKA0ChWoNvRR6WY0skuSFUuPBho8CgJRkOOFmDdNg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrieehgdelgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffkvffuhfgjfhfogggtgfesthejre dtredtvdenucfhrhhomhepofgrrhhtihhnuceujhpnrhhklhhunhguuceomhgsjhdoihgv thhfseegieeikedrshgvqeenucggtffrrghtthgvrhhnpedtgefgtdduudejkeelvedvie dvveehieegfeefteefgfeffeekheffvdefveffgfenucfkphepudehkedrudejgedrgedr geegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmh gsjhdoihgvthhfseegieeikedrshgv
X-ME-Proxy: <xmx:CPaqXtjXB3AVRPdrGHQayTuIv12fo2yYjfAqbcfdpfb8hzO-0Q98mA> <xmx:CPaqXgcU9KcCPq0pA4RRJXI8dMf_GKmIBKptpCrEv5GfTgG_mbleNw> <xmx:CPaqXvuALoXNJv-DB1FHkNtRP8jw6vie1etgp1uNo73wb9YdRF-GoQ> <xmx:CPaqXlorDXR-5c3K0G0noVbAAUOkzPYCQ5sGWxB5pRqEkKbOWBK3Qw>
Received: from localhost (unknown [158.174.4.44]) by mail.messagingengine.com (Postfix) with ESMTPA id CCA7E328007E; Thu, 30 Apr 2020 12:00:07 -0400 (EDT)
Date: Thu, 30 Apr 2020 18:00:05 +0200
Message-Id: <20200430.180005.214046190709664243.id@4668.se>
To: jason.sterne@nokia.com
Cc: netconf@ietf.org
From: Martin Björklund <mbj+ietf@4668.se>
In-Reply-To: <DM5PR08MB2633076DF9F65D3DE7035AA59BAA0@DM5PR08MB2633.namprd08.prod.outlook.com>
References: <DM5PR08MB2633076DF9F65D3DE7035AA59BAA0@DM5PR08MB2633.namprd08.prod.outlook.com>
X-Mailer: Mew version 6.8 on Emacs 25.2
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/5z91mLPtYBmcgP4qkGBkw_MQQl0>
Subject: Re: [netconf] Error to make a NETCONF action call without including an action node?
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 30 Apr 2020 16:00:11 -0000

"Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com> wrote:
> Hi all,
> 
> If we have this YANG model (omitting some details):
> 
>    module test {
>        container foo {
>          leaf bar { type uint8; }
>          action reset {
>            input {
>              leaf reset-at {
>                type yang:date-and-time;
>                mandatory true;
>               }
>             }
>             output {
>               leaf reset-finished-at {
>                 type yang:date-and-time;
>                 mandatory true;
>               }
>             }
>          } // action reset
>        } // container foo
>    } // module
> 
> Should NETCONF return an error (which one?) for this request or
> would the server simply do nothing an return "OK" (like doing a
> get-data on a non-existent list entry) ?
> 
>      <rpc message-id="101"
>           xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
>        <action xmlns="urn:ietf:params:xml:ns:yang:1">
>          <foo xmlns="urn:example:test">
>          </foo>
>        </action>
>      </rpc>

Yes, it should return an error, since the contents of <action> doesn't
contain any "action" node (no "reset").  It would probably send
"operation-failed".


/martin