[netconf] netconf-config-change notification & YANG push for ordered-by user list

"Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com> Fri, 14 August 2020 17:25 UTC

Return-Path: <jason.sterne@nokia.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 C8AC83A0E71 for <netconf@ietfa.amsl.com>; Fri, 14 Aug 2020 10:25:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level:
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nokia.onmicrosoft.com
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 iNC18COej69z for <netconf@ietfa.amsl.com>; Fri, 14 Aug 2020 10:25:06 -0700 (PDT)
Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2104.outbound.protection.outlook.com [40.107.93.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4506E3A0E67 for <netconf@ietf.org>; Fri, 14 Aug 2020 10:25:05 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oeab3697zXhvHoGZpjyAy/nf0ijzI+SZ7LA1tqEEVBGknmjsR9myq/4zHCQgof5OosEwfMjOGVy276PNcsH2OMzrJgDdbFQto/8UEg4Q3OC7Cw4nQLk7Pn1QwQpdjLB3qxR3DH8PJ5tqgpUDmnamcE0AIC8GBRB0ivrglFgyGAzf77NEEFMcpBtrOibWf35YxNiCaeuWSH/FzG1RyPOmTnifyvk3gJ8SnFQvpg5sJSYCHGiowocQMsaz/BRu0WD4oIj29A9lmxNfTtauGUzG4H0l0JNeqdwBuaSYjqmIf6lMsIbnb5rEAC9JNRT4wPp5kZYjhAoJPQXjkzysiRArAA==
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=z/nH4Vgp9fMMbbIq6WVDAYg8U7yZA6V4qv91iIr1cSM=; b=XWa0IAbHtHfy1F4WzogQBo0q5HPQ9macVkzLRSYWd3V0RQsQBKvv3THSB2KrUBVYIcI7r3pQSEDhv3gsvxhu98q1inWayJnyC/uJLBu1MPYef5wU3n8Jb7jpPl4eIo46NyNOhQrURraIyoqZj/KzerMYd7ktrdVloIuEabtlUaG8o9ebEkmBjqdHcW5i2U4xx3/FuRA6hF20OHLOdW9iDWpOdSek8O7QEoQi7+bUaPWm0o6DK5GLAR7OAQDoGARPexldfX5WhT5bJ3P1q/yp7S3EZhqUHEvqAhWKn+LG7viKGVZYuKAv1CK9ofV6a++5/3Ha3lvnswBK2+yfHcHtOw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=z/nH4Vgp9fMMbbIq6WVDAYg8U7yZA6V4qv91iIr1cSM=; b=uDseXacegCvNc+hzJXIcVTF4iQQgKidDxBHUOefJ3s5b67+kd5E5oJZz3u+qu9erwAZdbQ/nAo+mCsTw2B7ETfeo9xXkdNyVksphTwWC7sATo8IHZZKuGHy3F/AyBHPSJLonHGx3UtTvHpt8QFLOO6mPTyiZPkaC2imWYhQMauM=
Received: from DM5PR08MB2633.namprd08.prod.outlook.com (2603:10b6:3:ca::21) by DM5PR08MB2633.namprd08.prod.outlook.com (2603:10b6:3:ca::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.15; Fri, 14 Aug 2020 17:25:03 +0000
Received: from DM5PR08MB2633.namprd08.prod.outlook.com ([fe80::6dd9:bee1:e7b5:2238]) by DM5PR08MB2633.namprd08.prod.outlook.com ([fe80::6dd9:bee1:e7b5:2238%8]) with mapi id 15.20.3283.015; Fri, 14 Aug 2020 17:25:01 +0000
From: "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com>
To: "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: netconf-config-change notification & YANG push for ordered-by user list
Thread-Index: AdZyX2sUC5WA1FoDRneo88GhsYp6wA==
Date: Fri, 14 Aug 2020 17:25:01 +0000
Message-ID: <DM5PR08MB26334AC7FE1B5FE0DBCB071B9B400@DM5PR08MB2633.namprd08.prod.outlook.com>
Accept-Language: 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=nokia.com;
x-originating-ip: [174.112.3.120]
x-ms-publictraffictype: Email
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: 6fb94e35-2972-4234-fdba-08d84076f9fe
x-ms-traffictypediagnostic: DM5PR08MB2633:
x-microsoft-antispam-prvs: <DM5PR08MB2633737A7B74A3EED63957879B400@DM5PR08MB2633.namprd08.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: AFKLZaCrpsepAqsCi28JhUcOENfNFafwwn9rbD1agHUJ4k8l/W3BftvXvR8A1w8hzr+p55LxqonJEuPp1G24uk/oSU6YMLv6cTHQUI7odCYRtWugWjGMYCO0l1PBX6arBIwWCs2HLV0WfBcQqViK7gOPf3nGEO4G4AHiMWbq9F5meA9TFNjmIjhkb84IMQZnkPGxIOcEwKGO/hKnLry8Y6L4kFeyNNP8PwyoaLHkprkAzcemIDPwzAGwDUSIfnCAcBgCEvMI5MKw9Hcpb8IbTL4WZe2dfKAczWflt5vy7AyJcdDZYtWb1f8fdfa+5XPGMI9i3dQzxZq967boTxZqJpYz4YYN2dI3uaBymbvUGsdPXLFU36HM3DWbLBxPeG0K
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR08MB2633.namprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(376002)(396003)(136003)(346002)(366004)(7696005)(64756008)(66446008)(6506007)(33656002)(186003)(83380400001)(52536014)(66946007)(76116006)(26005)(15650500001)(5660300002)(8936002)(6916009)(66556008)(66476007)(9686003)(2906002)(8676002)(316002)(86362001)(55016002)(71200400001)(478600001)(19870200002); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: d35gQGzSK3eipjOewf6nFIeQPAHX7S1rmke/d3zdTTAKq/JA/rpN2mRxyfNcbX40N0KzTs0XkEnF+FZnn+G3wODuhAdwSp+eBEA3Ly3xypGkxgJp4Cjc63/idBwKctMED4L+TxzZA6bLHqIYIYYovd14bb8cvfgCG4bIwS7teN1IEwoWh8UT9I8TRkAhmdcodQvH6LXy2GgOFB5Sn61zCNMHPyiK0/rntSvO+KPb0yvGNiD/1JsPw0Mr7cZ2q+b/RsHpMdwjfB9ErkMUDvnG4Do3TjW7fZP3N9lZ90l1OFrGmpEede7hwv76yl+PqHaF2IJ3sY8XjWrZrWyAL7rPHAPz25LjweSXjUdGvum7FA9JG3JUTPoyrf1Eir2yb/N65p38Wev8VhxAVrm02OYOXvPo+/RAHNMEex05nhS8Opq1YX3ICkzkc78wrMGpyg7AhzQpLfngHQYv+wDloRhWIuUmF36tEiNbeuKql1C0rjZ85Y/xL7qbsTF+LWYKsK467956ifUoID4RK9PwPVQRS5PeOIA4AJtcc0BLFCLsv7UJMgse+crlWsO7EmG7pY2VftQeciv8dtKqSJI4S6+8YPTDlUZ4vDTLNduIsdezMCcoRMDFZ19UEPX8UgejaAl8MQHO+YDEkAkQtKQkQkgXcw==
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_DM5PR08MB26334AC7FE1B5FE0DBCB071B9B400DM5PR08MB2633namp_"
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DM5PR08MB2633.namprd08.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 6fb94e35-2972-4234-fdba-08d84076f9fe
X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Aug 2020 17:25:01.5612 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: CDWGjkQPLjCmJ8rV63c38KM2QkWcFsqbNYWNzQ57z5eQYoUetnRy3JAM1uDKLrcAkuFJrYDXv8bwmMLkeY8IFg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR08MB2633
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/mSQbb7NaenwmCRqFv09xJ8d5B8o>
Subject: [netconf] netconf-config-change notification & YANG push for ordered-by user list
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: Fri, 14 Aug 2020 17:25:08 -0000

Hi all,

What is the expected output for the RFC 6470 netconf-config-change notification in the following situation (after the commit) ? Note that the notification is not an edit-time notification. It is a notification intended to be sent after a commit (and actual change to the running).

Similar question -> what YANG Push notification(s) would we expect if someone had subscribed "on-change" to the running config?

A) YANG model

list foo {
   ordered-by user
   key "foo-name";
   leaf foo-name { type string; }
   leaf bar { type unit16; }
}

B) initial contents of running

foo red {
    bar 55
}
foo blue {
    bar 66
}
foo yellow {
    bar 77
}

C) edit the candidate so it contains this (change the order of blue and red)

foo blue {
    bar 66
}
foo red {
    bar 55
}
foo yellow {
    bar 77
}

D) commit

Questions:
Q1) contents of the netconf-config-change notification?
Q2) YANG PUSH notifications for an on-change subscription to the running config?

I see that RFC8072 (patch) has a concept of a "move" operation (RFC 6470 / 6241 doesn't have that). But patch could describe this change in a few different ways in theory (option 1 seems most ideal, but maybe it depends what the underlying system will do with the change).

OPTION 1:
--------------
- operation=move, target = foo red, point = foo blue, where = after

OPTION 2:
--------------
- delete foo red
- insert foo red after foo blue

OPTION 3:
-------------
- delete foo blue
- insert foo blue before foo red

RFC 6470 doesn't really seem to have those semantics.

Rgds,
Jason