[netconf] Augmenting rpc-reply

"Jan Lindblad (jlindbla)" <jlindbla@cisco.com> Thu, 10 September 2020 08:27 UTC

Return-Path: <jlindbla@cisco.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 BED993A1218 for <netconf@ietfa.amsl.com>; Thu, 10 Sep 2020 01:27:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.597
X-Spam-Level:
X-Spam-Status: No, score=-9.597 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, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=Uq4nctbo; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=mPAeQlPo
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 1MZZmjLm5IAP for <netconf@ietfa.amsl.com>; Thu, 10 Sep 2020 01:27:52 -0700 (PDT)
Received: from alln-iport-1.cisco.com (alln-iport-1.cisco.com [173.37.142.88]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 303073A120D for <netconf@ietf.org>; Thu, 10 Sep 2020 01:27:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=5506; q=dns/txt; s=iport; t=1599726472; x=1600936072; h=from:to:subject:date:message-id:mime-version; bh=hvkYh0Xbo9T3rDqHl56kvcdQZGDAPn8vo9Q53bzcUJU=; b=Uq4nctboWWQz4bAk2Ns62aOwMHK1N11tSbJktPJvoUZCDaDxb6dcrOxG o4d88l1bukaUrmFGne1ylVSt4ZJtfTfU4p661gnaOINw2nMAGkDDM3dSE 8WDTP8y/dYaRWsY1ZJAN/TvtHispOGd/9j2u9mDGY9hR8pGwnEoi0/Ht3 s=;
IronPort-PHdr: =?us-ascii?q?9a23=3ANF362hOxfzzmh4YKA1Ql6mtXPHoupqn0MwgJ65?= =?us-ascii?q?Eul7NJdOG58o//OFDEvKw33l7EQYud7OhL2KLasKHlDGoH55vJ8HUPa4dFWB?= =?us-ascii?q?JNj8IK1xchD8iIBQyeTrbqYiU2Ed4EWApj+He2YklYBMi4YEfd8TW+6DcIEU?= =?us-ascii?q?D5Mgx4bu3+Bo/ViZGx0Oa/s53eaglFnnyze7R3eR63tg7W8MIRhNhv?=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0BzBwDy4llf/5hdJa1fHgE8DAILFYF?= =?us-ascii?q?PgSMvUQeBSS8sCod0A41KlCmEboEuFIERA1ULAQEBDAEBLQIEAQGGaQIkNAk?= =?us-ascii?q?OAgMBAQsBAQUBAQECAQYEbYVcAQuGCy4BATgRAYEAJwQ1gwSBf00DLgEDqEM?= =?us-ascii?q?CgTmIYXSBNIMBAQEFgkuCTxiCEAmBOIJxijkbgUE/gTgMEIcOIoNigi2aCZx?= =?us-ascii?q?rCoJlBJovAx6gWIhEig+fVwIEAgQFAg4BAQWBVDqBV3AVOyoBgj5QFwINkhC?= =?us-ascii?q?KVnQ3AgYKAQEDCXyNOAGBEAEB?=
X-IronPort-AV: E=Sophos;i="5.76,412,1592870400"; d="scan'208,217";a="539161955"
Received: from rcdn-core-1.cisco.com ([173.37.93.152]) by alln-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 10 Sep 2020 08:27:50 +0000
Received: from XCH-ALN-001.cisco.com (xch-aln-001.cisco.com [173.36.7.11]) by rcdn-core-1.cisco.com (8.15.2/8.15.2) with ESMTPS id 08A8RoM0010601 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL) for <netconf@ietf.org>; Thu, 10 Sep 2020 08:27:50 GMT
Received: from xhs-rtp-001.cisco.com (64.101.210.228) by XCH-ALN-001.cisco.com (173.36.7.11) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 10 Sep 2020 03:27:49 -0500
Received: from xhs-rtp-002.cisco.com (64.101.210.229) by xhs-rtp-001.cisco.com (64.101.210.228) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 10 Sep 2020 04:27:48 -0400
Received: from NAM11-DM6-obe.outbound.protection.outlook.com (64.101.32.56) by xhs-rtp-002.cisco.com (64.101.210.229) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Thu, 10 Sep 2020 04:27:48 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h2LZe7XVMh6ifjS7zdpIuUlDRU/Wv/m9TM5X0v3qhiTwQ6R4OIQnrb7YHVuY9bx6d6xFmQjjShnCPhpitnlLbVVgsyJYOmsUr0jG1lUKMuXmH3X9I277WVVbb0+e/l5TDH9CjzYoFijpY47hzWl3gY2teSaVgfBoG9AcpVBndQgMB/scnPAEpMEhsmY7RMSps8s3weE43RBscJcaiVKwwVIeIvQw/Gf08zIifnBBwacclBLayCcnOQgRh1/0p2NRrf0nL+jUDAaUlXwc9hLJ32TEi7/2bBjfZj4bUprezhSMK32NxwYIs/yJPBi16lqNtG+8yD2bf49krbGYJnSz0w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LZMBLIzWU3EzDZI8afZB9c0klBTMopCsWN1lPS1Y7cI=; b=iLeb3rqGtukcVFGn8yV2OG4rt4Q4YF4jw92q6GX6U268FGyfZxZaG7wPJ5DJ7a9u0TKq567jgUD7uS9e0w6jf/tOWiwuU9Td4EQIcwroHTjrjCGkk7VEF+TTaVPpvOPsQauo/kLWmyQ0OVPFPIuNwwYU+e6mNB4zNUlaUMYaPRl5SENKI4f+MDONBd6Jba6Z8udNWtQWgt89ZGFIHsCSIDocPYQZ0ULYcRYI0vyeNtHP1kmGylP/hlSAa+bDXcpRZjEd4kxS7zjOdkC6/rPPOd1v7055R3y/DJZNCSY6CFL8NLvQUc9/G+g76mNZaehNg95jC7XqpChQoDSUeX4y0w==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LZMBLIzWU3EzDZI8afZB9c0klBTMopCsWN1lPS1Y7cI=; b=mPAeQlPoN2+pIOQpN2yhjrJ8Hs1c+cz6+V0qn4Ve8MgtUUQ3ew+7YZbt/B60agymnRiHOTodBK+8a3SGA/E7jTDMK9nRvoSz1cq2SA0C7SbNQM+rXxXZ3IvqjiAnrD/hkp6vzKIA3KmpB+9ur/dCTNWPOc6wMjOCF8prpTNRLAA=
Received: from DM6PR11MB2841.namprd11.prod.outlook.com (2603:10b6:5:c8::32) by DM6PR11MB2939.namprd11.prod.outlook.com (2603:10b6:5:70::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.21; Thu, 10 Sep 2020 08:27:47 +0000
Received: from DM6PR11MB2841.namprd11.prod.outlook.com ([fe80::fd62:3aa7:c332:92b2]) by DM6PR11MB2841.namprd11.prod.outlook.com ([fe80::fd62:3aa7:c332:92b2%7]) with mapi id 15.20.3370.016; Thu, 10 Sep 2020 08:27:47 +0000
From: "Jan Lindblad (jlindbla)" <jlindbla@cisco.com>
To: "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: Augmenting rpc-reply
Thread-Index: AQHWh0xDDlljk9JqNkqcIGaQ8Ze9jg==
Date: Thu, 10 Sep 2020 08:27:47 +0000
Message-ID: <FC898DB0-8306-4E23-BD34-88657D36C98B@cisco.com>
Accept-Language: sv-SE, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=cisco.com;
x-originating-ip: [213.67.237.150]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: c2d916e1-9519-4630-ab20-08d855636650
x-ms-traffictypediagnostic: DM6PR11MB2939:
x-microsoft-antispam-prvs: <DM6PR11MB2939EBAEB42411174B80AABDCA270@DM6PR11MB2939.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:8882;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: nKVo4yUANOXiyL/7Q0pRoznRpyXrflB90J8qU8vFPueFvhD8RlADDutGFwpaJDTW4KqxJhchRq5x+dq5F4GdM6N3lMrM75J12d2cLeLFa0x8Z9EOPKWl6PoqT+mqOWaBhonaqqqaLg/28xx8R8fgWOugTS1JzsnbhJBZb6Xg1pjZizoqWXUmsYobDbB3cUXzxXkaKNYHvy+YmL/NT+r6juqkxN64aT9vIlh0thbQMqk4r3JooZhFD0qfbNp23mPUFD4VVswHn9suP8hqy/WsMndT7VaW/OnrA9FIOnwGpWIRnhAZVDtd6OCT6UX+EX0QjDXgpt8jJs7xDpoiHNTqy+Y6nr0SdDrQeslKTi+gBB+V14EoN9c1nuOHEi4Lt3hG
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB2841.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(376002)(396003)(39860400002)(346002)(136003)(8676002)(2616005)(26005)(186003)(36756003)(8936002)(71200400001)(6916009)(33656002)(6506007)(5660300002)(66556008)(316002)(66476007)(64756008)(83380400001)(66946007)(3480700007)(2906002)(66446008)(6486002)(6512007)(86362001)(91956017)(478600001)(76116006); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: 0JjCKDvYOXimgV0u9tLZW4Ojtjv8ByoyAZp2n8k4kChPjOvpOHRVvcl6Os7yIxRm6hTpDsVBy051BVPC2+JFPbEwYpEcVhJwhBdDiRgOxHLa9im0XAXzWfEt0xBb+ptPY369WdTLmplW0JdqtWD2z8E1AubmyGxT0k1+8L1dt/IfEVEaPC+HtXhbqgIDp2R76XpFEBS1P/yi8hc+ey7sDvlpZ6PH9A1vQD7JYGN3SLAjxXeSVCygPy1UIKlTfMXaSHB7QlwF2pLjBUwjXkhzssIzh2v67q89ZnIKb7Y94s0pPE8FRFhAskz+FKlayKNvgSpZQwy54o2SQ5ZnqpUgFuCAEfUPcrY7ZSoSmEAlRGWaOYoHiRjmXfLkR+3bTlIay61PAhKL2kxrHRXAPkxccbZ+bat3k/MGiIJLm6ognnQdTsecTaXPs+6KTq99VL5D7IlVDI9P9ONOHIaD7fS1PoE43vmDhwmZP+zDok9HeCZvfDbOv6078SarhuDRGUbQeBKDSgM6VP63ocqTDLLAjpahPuOg6r58DtoPISkz6CjWKYY4sOU6z0Ce/X9DptuioZCLktCE04D+LEa+thz3jZ/SP1NnX1oRUCmpS0OhHPHKnveAD3chxRcgFv02t47adwwgXjngTZ6WPuf6l+vsXA==
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_FC898DB083064E23BD3488657D36C98Bciscocom_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB2841.namprd11.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: c2d916e1-9519-4630-ab20-08d855636650
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Sep 2020 08:27:47.8002 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: wCmStgqFfK8e7TZUVBXmqvGs+M6MjEbT5jpkp84IBapitYm7g/v3Bznha08S/KCO0qkJeaJolhubl81N9qQ0hw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB2939
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.11, xch-aln-001.cisco.com
X-Outbound-Node: rcdn-core-1.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/0vD0xIvney7fMEtAxKBQzB6RDww>
Subject: [netconf] Augmenting rpc-reply
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, 10 Sep 2020 08:27:55 -0000

Dear NETCONF WG,

We have been discussing back and forth, and several interpretations of the relevant RFCs (4741/6241 and 6020/7950) have come up. We would very much like to hear the opinions on this list to settle the question.

When a client issues an <edit-config>, a server would respond with an <ok> or <rpc-error> like this:


     <rpc-reply message-id="101"
                xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
       <ok/>
     </rpc-reply>


or


     <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
       <rpc-error>
         <error-type>rpc</error-type>
         <error-tag>missing-attribute</error-tag>
         <error-severity>error</error-severity>
         <error-info>
           <bad-attribute>message-id</bad-attribute>
           <bad-element>rpc</bad-element>
         </error-info>
       </rpc-error>
     </rpc-reply>


If the NETCONF server would like to augment additional information into the rpc-reply, is that legal? If so, what would that look like? For the sake of the example, let's say the server would like to add something like this to the operation result:

<note xmlns="my-namespace">abc...</note>

While this example was for edit-config and a <note> tag, we expect this discussion should be equally applicable to other NETCONF operations with other tags or attributes in both the success (<ok>) and failure (<rpc-error>) cases.

Best Regards,
/Jan Lindblad