Re: [Netconf] stream-filter list in draft-ietf-netconf-subscribed-notifications

"Eric Voit (evoit)" <evoit@cisco.com> Fri, 15 June 2018 15:23 UTC

Return-Path: <evoit@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 345A4130E2C; Fri, 15 Jun 2018 08:23:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.51
X-Spam-Level:
X-Spam-Status: No, score=-14.51 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01, 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
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 UpTW8Lyn6zFS; Fri, 15 Jun 2018 08:23:19 -0700 (PDT)
Received: from rcdn-iport-3.cisco.com (rcdn-iport-3.cisco.com [173.37.86.74]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F0E3B130F2C; Fri, 15 Jun 2018 08:23:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=13960; q=dns/txt; s=iport; t=1529076198; x=1530285798; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=zn5c0/i6m3qPXMVvIMr9AlbJQtNKz3U1eb77KKDgMWM=; b=UrGrIM4v69c6rO05PHJLZTk0ywRED7BI+aJOyurvfzT8PTCImQCGrQ9T ErRhw68mMDaJiee6mKgfJI45VodJNd6j/dSIZg6YLCkr/yeSQbyFwukkY 0yJWbVESK9cwrQpuQhRj8eaE1wJdlVndsyvz1jeI8cT1JEVp0HcEbEfuX Y=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0CZAQCl2CNb/4YNJK1bGQEBAQEBAQE?= =?us-ascii?q?BAQEBAQcBAQEBAYJTdWJ/MoNvlFaBf49whncLhGwCF4I7ITcVAQIBAQEBAQE?= =?us-ascii?q?CbSiFKAEBAQQjCkoCEAIBCBUtAgICMCUCBAENDYMcgRtkqVqCHIhGgWiITIF?= =?us-ascii?q?UP4QbhQMJgmqCVQKRPIdSCQKOd41AkRoCERMBgSQzIoFScBU7gkSQTpAugRo?= =?us-ascii?q?BAQ?=
X-IronPort-AV: E=Sophos;i="5.51,227,1526342400"; d="scan'208,217";a="400427292"
Received: from alln-core-12.cisco.com ([173.36.13.134]) by rcdn-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jun 2018 15:23:17 +0000
Received: from XCH-RTP-004.cisco.com (xch-rtp-004.cisco.com [64.101.220.144]) by alln-core-12.cisco.com (8.14.5/8.14.5) with ESMTP id w5FFNHxf026690 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Fri, 15 Jun 2018 15:23:17 GMT
Received: from xch-rtp-013.cisco.com (64.101.220.153) by XCH-RTP-004.cisco.com (64.101.220.144) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Fri, 15 Jun 2018 11:23:17 -0400
Received: from xch-rtp-013.cisco.com ([64.101.220.153]) by XCH-RTP-013.cisco.com ([64.101.220.153]) with mapi id 15.00.1320.000; Fri, 15 Jun 2018 11:23:17 -0400
From: "Eric Voit (evoit)" <evoit@cisco.com>
To: "Reshad Rahman (rrahman)" <rrahman@cisco.com>, "draft-ietf-netconf-subscribed-notifications@ietf.org" <draft-ietf-netconf-subscribed-notifications@ietf.org>
CC: "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: stream-filter list in draft-ietf-netconf-subscribed-notifications
Thread-Index: AQHUBLhL2E/DTySvS0ezm0kgqZ0mbKRhbFzA
Date: Fri, 15 Jun 2018 15:23:16 +0000
Message-ID: <410193112a21443c9315a20198cf73d4@XCH-RTP-013.cisco.com>
References: <44E5BF61-4C13-4940-B7F2-B5BD72DDA130@cisco.com>
In-Reply-To: <44E5BF61-4C13-4940-B7F2-B5BD72DDA130@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.118.56.228]
Content-Type: multipart/alternative; boundary="_000_410193112a21443c9315a20198cf73d4XCHRTP013ciscocom_"
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/JHvuAp9fP0PNexDGAfuL8kqUkeA>
Subject: Re: [Netconf] stream-filter list in draft-ietf-netconf-subscribed-notifications
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: Fri, 15 Jun 2018 15:23:21 -0000

Hi Reshad,

From: Reshad Rahman, June 15, 2018 10:51 AM

Minor question: why don’t the names of the container wrapper (filters) and the list (stream-filter) match (e.g. filters and filter or stream-filters and stream-filter), is it because we could have another list with other types of filters?

<Eric>  This is exactly why.  YANG-Push augments in selection-filters.

If that’s the case, shouldn’t there be a container wrapper stream-filters for the list stream-filter. Looked in the archive and didn’t find discussions on this.

<Eric> The container “filters” is because there it is a top level container.  It doesn’t seem necessary to have independent containers underneath for the lists of stream-filters and selection-filters.

Eric

Regards,
Reshad.

  container filters {
    description
      "This container contains a list of configurable filters
       that can be applied to subscriptions.  This facilitates
       the reuse of complex filters once defined.";
    list stream-filter {
      key "identifier";
      description
        "A list of pre-configured filters that can be applied to
        subscriptions.";
      leaf identifier {
        type filter-id;
        description
          "An identifier to differentiate between filters.";
      }
      uses stream-filter-elements;
    }
  }