Re: [Netconf] rfc5277:one session can only support one <create-subscription>?

"Eric Voit (evoit)" <evoit@cisco.com> Wed, 05 August 2015 16:42 UTC

Return-Path: <evoit@cisco.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DB4EF1B31BA for <netconf@ietfa.amsl.com>; Wed, 5 Aug 2015 09:42:52 -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_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham
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 sLiIBfCFNLYG for <netconf@ietfa.amsl.com>; Wed, 5 Aug 2015 09:42:50 -0700 (PDT)
Received: from rcdn-iport-8.cisco.com (rcdn-iport-8.cisco.com [173.37.86.79]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AC6C21B31B7 for <netconf@ietf.org>; Wed, 5 Aug 2015 09:42:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=21800; q=dns/txt; s=iport; t=1438792968; x=1440002568; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=i/Gnk64jAC5SVFb5OXihqntgmtLLYNbWusVdKQJv2l8=; b=Srd42P/G6fqkzZYZafChECav68CCvFNjhQjnURCd3Q8uHloAta/7uqns n1dDIMxf2ziIVT9a8Iev8gDMF315yYq3tSt8zTy47wcNrJPkXteBMCi8s IsvhjBCnyeTL/A+CELpkFHICr8s1zRACH4rs+HCPCtraijl0gni0K4g29 4=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0BTAwCoPMJV/4MNJK1bgk5NVGkGgx25YQmBegEJhS9KAhyBLDgUAQEBAQEBAX8LhCMBAQEEAQEBIApBBAcQAgEIFQ0DGgMCAgIlCxQRAgQOBQiIJg22SZY7AQEBAQEBAQEBAQEBAQEBAQEBAQEBEwSLT4Q3AQEFGhYXBAYBgmkvgRQFhxkChl6EAoMEAYongi+BRhWEDpAYg2Qmg31vgQ46gQQBAQE
X-IronPort-AV: E=Sophos; i="5.15,618,1432598400"; d="scan'208,217"; a="16099765"
Received: from alln-core-1.cisco.com ([173.36.13.131]) by rcdn-iport-8.cisco.com with ESMTP; 05 Aug 2015 16:42:47 +0000
Received: from XCH-RCD-007.cisco.com (xch-rcd-007.cisco.com [173.37.102.17]) by alln-core-1.cisco.com (8.14.5/8.14.5) with ESMTP id t75GglBs025315 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 5 Aug 2015 16:42:47 GMT
Received: from xch-rcd-007.cisco.com (173.37.102.17) by XCH-RCD-007.cisco.com (173.37.102.17) with Microsoft SMTP Server (TLS) id 15.0.1104.5; Wed, 5 Aug 2015 11:42:46 -0500
Received: from xhc-aln-x06.cisco.com (173.36.12.80) by xch-rcd-007.cisco.com (173.37.102.17) with Microsoft SMTP Server (TLS) id 15.0.1104.5 via Frontend Transport; Wed, 5 Aug 2015 11:42:46 -0500
Received: from xmb-aln-x11.cisco.com ([169.254.6.68]) by xhc-aln-x06.cisco.com ([173.36.12.80]) with mapi id 14.03.0248.002; Wed, 5 Aug 2015 11:42:46 -0500
From: "Eric Voit (evoit)" <evoit@cisco.com>
To: "du.baowei23@zte.com.cn" <du.baowei23@zte.com.cn>
Thread-Topic: [Netconf] rfc5277:one session can only support one <create-subscription>?
Thread-Index: AQHQzlxegxsRQ0QNHEWR9HpNeNpDqZ39msrg
Date: Wed, 05 Aug 2015 16:42:46 +0000
Message-ID: <EF64FF31F4C4384DBCE5D513A791C2B121B1E92D@xmb-aln-x11.cisco.com>
References: <OF61DE7910.A6569B4D-ON48257E97.00086045-48257E97.000A455E@zte.com.cn> <CABCOCHRayCNPWxPxR=ZOWq49QA7sqfpsthBwXGaZ=oew9OEDdA@mail.gmail.com>
In-Reply-To: <CABCOCHRayCNPWxPxR=ZOWq49QA7sqfpsthBwXGaZ=oew9OEDdA@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [173.36.7.22]
Content-Type: multipart/alternative; boundary="_000_EF64FF31F4C4384DBCE5D513A791C2B121B1E92Dxmbalnx11ciscoc_"
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/netconf/qmeiPVTv59-rj2dIJJ-gHIW4Wr0>
Cc: Netconf <netconf@ietf.org>
Subject: Re: [Netconf] rfc5277:one session can only support one <create-subscription>?
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.15
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: Wed, 05 Aug 2015 16:42:53 -0000

draft-clemm-netconf-yang-push is intended to support many subscriptions on a NETCONF session.  This draft was verbally approved for WG status a couple weeks ago in Prague, although the formal mailing list vote is still pending.

Can you take a look at section 3.8 of that draft above and see if it meets your needs?   And if not, suggest what else might be necessary?

Thanks,
Eric

From: Andy Bierman, August 03, 2015 10:22 PM


On Mon, Aug 3, 2015 at 6:52 PM, <du.baowei23@zte.com.cn<mailto:du.baowei23@zte.com.cn>> wrote:
Hello!

I was confused by the RFC5277 relationship between the session and subscription numbers.

In RFC5277:

2.  Notification-Related Operations
2.1.  Subscribing to Receive Event Notifications

   The event notification subscription is initiated by the NETCONF
   client and responded to by the NETCONF server.  A subscription is
   bound to a single stream for the lifetime of the subscription.  When
   the event notification subscription is created, the events of
   interest are specified.

QUESTION:a session can contain subscription.
          May a session contain several subscriptions?


no

6.  Interleave Capability
6.5.  Modifications to Existing Operations

   When a <create-subscription> is sent while another subscription is
   active on that session, the following error will be returned:

      Tag: operation-failed

      Error-type: protocol

      Severity: error

      Error-info: none

      Description: Request could not be completed because the requested
      operation failed for some reason not covered by any other error
      condition.

QUESTION: when interleave capability is active, a session can only support
          one <create-subscription> at one time.
          Does it imply that
          when a subscription is active, if there is no interleave capability
          and agent receive another <create-subscription>, session will
          support both two subscription?


the :interleave capability means the server will accept commands on
the same session that notifications are being sent.  The server has
to interleave complete <rpc-reply> and <notification> messages

Another <create-subscription> is not allowed.

thanks :)

Andy





--------------------------------------------------------

ZTE Information Security Notice: The information contained in this mail (and any attachment transmitted herewith) is privileged and confidential and is intended for the exclusive use of the addressee(s).  If you are not an intended recipient, any disclosure, reproduction, distribution or other dissemination or use of the information contained is strictly prohibited.  If you have received this mail in error, please delete it and notify us immediately.




_______________________________________________
Netconf mailing list
Netconf@ietf.org<mailto:Netconf@ietf.org>
https://www.ietf.org/mailman/listinfo/netconf