Re: [Netconf] Anyone want just Configured Subscriptions?

Kent Watsen <kwatsen@juniper.net> Sun, 08 July 2018 20:19 UTC

Return-Path: <kwatsen@juniper.net>
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 340A1130E6C for <netconf@ietfa.amsl.com>; Sun, 8 Jul 2018 13:19:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.701
X-Spam-Level:
X-Spam-Status: No, score=-2.701 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=juniper.net
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 Z0xvKlyDwLhf for <netconf@ietfa.amsl.com>; Sun, 8 Jul 2018 13:19:25 -0700 (PDT)
Received: from mx0a-00273201.pphosted.com (mx0a-00273201.pphosted.com [208.84.65.16]) (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 62CB4130E66 for <netconf@ietf.org>; Sun, 8 Jul 2018 13:19:24 -0700 (PDT)
Received: from pps.filterd (m0108156.ppops.net [127.0.0.1]) by mx0a-00273201.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w68KJN2N022087; Sun, 8 Jul 2018 13:19:23 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=PPS1017; bh=16SAB6jJJ35VIo5lOR4wIXMidDwQlhCuMjcpWhycZ4g=; b=TEIC4g6ANfUwTnDWA3Ze4LSZSREANk4jJyz1XrwI1WodEIrng+4WiGStT7mIipj6ItEc YmeEIh026Pam7f78CpUior5VfXrLhg2c+F9hY87qqoxIXIobc7vtmCljOJcYuDHWrqm3 MXbIQqhc/PQRrgiNoWcWkvtuWiJZjuMRLD/CfWndw/S+tWN8gdoFUE422a9CyG8Foby4 PwUffKBz6/KcJLt+5edjLMqorfH2hUdwAGYaauY7P/ZX521tMTH1v6DMS9q1Wm0cH2oq svUSKUnqoYCzwD5+8jVzJDPCLMrXt6XfhDYuoACF2hR8mJS7eAIl56sxU2ao37unjt3y PA==
Received: from nam02-bl2-obe.outbound.protection.outlook.com (mail-bl2nam02lp0088.outbound.protection.outlook.com [207.46.163.88]) by mx0a-00273201.pphosted.com with ESMTP id 2k2vhk9wj1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 08 Jul 2018 13:19:23 -0700
Received: from BYAPR05MB4230.namprd05.prod.outlook.com (52.135.200.153) by BYAPR05MB4229.namprd05.prod.outlook.com (52.135.200.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.952.8; Sun, 8 Jul 2018 20:19:20 +0000
Received: from BYAPR05MB4230.namprd05.prod.outlook.com ([fe80::959d:9fbe:90e4:3cc]) by BYAPR05MB4230.namprd05.prod.outlook.com ([fe80::959d:9fbe:90e4:3cc%4]) with mapi id 15.20.0952.008; Sun, 8 Jul 2018 20:19:20 +0000
From: Kent Watsen <kwatsen@juniper.net>
To: Martin Bjorklund <mbj@tail-f.com>, "j.schoenwaelder@jacobs-university.de" <j.schoenwaelder@jacobs-university.de>
CC: "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: [Netconf] Anyone want just Configured Subscriptions?
Thread-Index: AQHUFdzgMgOM7HOBqEO/3ZzYZXUeNKSDugSAgABHKwCAAA3RgIAA6BaAgAAi8ACAAGVWAIAAHjWAgAAJWoD//9wzgA==
Date: Sun, 08 Jul 2018 20:19:20 +0000
Message-ID: <B0DEB8BF-A652-43E5-8F35-A9732F4FE04A@juniper.net>
References: <20180708100310.gn3xaol66f7c7lo5@anna.jacobs.jacobs-university.de> <20180708.180552.1582913595227099806.mbj@tail-f.com> <20180708175359.mdcjgvddb453e2fc@anna.jacobs.jacobs-university.de> <20180708.202727.1096638437748786994.mbj@tail-f.com>
In-Reply-To: <20180708.202727.1096638437748786994.mbj@tail-f.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/f.20.0.170309
x-originating-ip: [66.129.241.11]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; BYAPR05MB4229; 7:2mAklYkE4nxs+OlBuo1EJUxwjVzq32FYiObO3056HFeOaezivsZ4z4HhfmSc1MvJprw+hHA36/iT99Y0KAmtE4BSuQiAgMYBbHWY8Jb3tPqSUDj59N43F6htyOzKxjYePGwP+4bSVSjR4cH8UqHsokFmXiyHN9gzvTuJap+Le7/kusYtKHAh7/Cjh4R2QHIPnDxVNgp0poNbLVNP+xD5syE2B/Xsx+wnTTF/GbSEKUHhoZEVcRJIZ7Mq0J5wYGlN
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: 5797cb54-9614-44b5-846b-08d5e51016a4
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(48565401081)(2017052603328)(7153060)(7193020); SRVR:BYAPR05MB4229;
x-ms-traffictypediagnostic: BYAPR05MB4229:
x-microsoft-antispam-prvs: <BYAPR05MB422998734BEFDFC16DA3E964A5450@BYAPR05MB4229.namprd05.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:;
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231311)(944501410)(52105095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:BYAPR05MB4229; BCL:0; PCL:0; RULEID:; SRVR:BYAPR05MB4229;
x-forefront-prvs: 0727122FC6
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39860400002)(396003)(366004)(346002)(136003)(376002)(199004)(189003)(106356001)(478600001)(14454004)(25786009)(4326008)(305945005)(93886005)(33656002)(76176011)(99286004)(7736002)(53936002)(110136005)(68736007)(6246003)(82746002)(105586002)(2906002)(58126008)(316002)(2900100001)(5250100002)(5660300001)(486006)(3846002)(66066001)(256004)(14444005)(229853002)(97736004)(2501003)(6512007)(6436002)(6486002)(86362001)(186003)(36756003)(8936002)(6506007)(81166006)(8676002)(476003)(26005)(102836004)(6116002)(83716003)(11346002)(81156014)(2616005)(446003); DIR:OUT; SFP:1102; SCL:1; SRVR:BYAPR05MB4229; H:BYAPR05MB4230.namprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: juniper.net does not designate permitted sender hosts)
x-microsoft-antispam-message-info: sIwnOMaG2PpUEhARaUnCi3a3IizrEggKl7iXRa7fD0UhBx5EikLRnU9QM5goYyzKsflTb383zLZDXQn+FEBdsldNNgIrmqEnRaomCxtiKMM0wdusVBGfysOpIk5O5cQnA9RjAxubXEVrtuBRUxKgdWp7Z2iaKsbaWEFQYQXkOnS1wvxjpKnBBS6U1fP2ovJ9XKFNL/N9WUseIXn8/L2SXdrUdwM4mDx3xpPOJGYIDZkH+oo4o11xRqXE70jl/XYhC1OBQg5gWRl9aUrfY1XYlv6skjH9/kYKPoKDhz/6onuMfwV1d/2CM6qS4W04ESljhaOZgM4ywqvIYcN0gV9fzxaTU/rocr6ETA8nYz6s+8U=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <D075B39D30EF8D448F321139237EA68E@namprd05.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-Network-Message-Id: 5797cb54-9614-44b5-846b-08d5e51016a4
X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jul 2018 20:19:20.3810 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR05MB4229
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-07-08_12:, , signatures=0
X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807080245
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/R4nuyJ05gQi7I6sOsWPE2_Py03k>
Subject: Re: [Netconf] Anyone want just Configured Subscriptions?
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.26
Precedence: list
List-Id: Network Configuration WG mailing 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: Sun, 08 Jul 2018 20:19:28 -0000


> > > > If you do this, why does the client, after receiving a call home, not
> > > > simply create dynamic subscriptions? ;-)
> > > 
> > > Well, the configured subscription is needed anyway in order for the
> > > device to call home, so having the client create all configured
> > > subscriptions as dynamic subscriptions as well doesn't seem quite
> > > right.
> > 
> > To call home, all you need is call home configuration, not configured
> > subscriptions.
>
> Yes, but the configured subscription defines parameters (stream and
> filter) to trigger the call home action.

I think Juergen's idea is to just configure /netconf-server/call-home/
netconf-client instances, and for those instances that are for 
notifications, the client can do a dynamic subscription;  no need to
configure anything under the /subscriptions/subscription/receivers...

Another idea is to have a separate notifications-specific list of
call-home clients, which might be defined as MUST needing to advertise
a new capability indicating that the flow of <notifications> can
occur immediately:

  module ietf-netconf-notifications {
    prefix nn;
    import ietf-netconf-server { prefix ncs; }
    import ietf-subscribed-notifications { prefix sn; }

    // define a *local* netconf-server instance
    container "netconf-server" {
      uses "ncs:netconf-server-grouping" {
        // prune out the "listen" subtree
        refine "listen" {
          when "false()";
        }
      }
    }

    // add leafref to above locally-configured call-home instances
    augment "/sn:subscriptions/sn:subscription/sn:receivers/sn:receiver" {
      leaf netconf-endpoint {
        type leafref {
          path "/nn:netconf-server/nn:call-home/nn:netconf-client/nn:name";
        }
      }
    }
  }


Kent // contributor