Re: [Netconf] Yangdoctors last call review of draft-ietf-netconf-restconf-client-server-04

Andy Bierman <andy@yumaworks.com> Mon, 21 August 2017 16:26 UTC

Return-Path: <andy@yumaworks.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 E1F3D132A80 for <netconf@ietfa.amsl.com>; Mon, 21 Aug 2017 09:26:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 8AJtbVD67ncM for <netconf@ietfa.amsl.com>; Mon, 21 Aug 2017 09:26:20 -0700 (PDT)
Received: from mail-wr0-x234.google.com (mail-wr0-x234.google.com [IPv6:2a00:1450:400c:c0c::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 15B2C132A76 for <netconf@ietf.org>; Mon, 21 Aug 2017 09:26:18 -0700 (PDT)
Received: by mail-wr0-x234.google.com with SMTP id p8so39574853wrf.5 for <netconf@ietf.org>; Mon, 21 Aug 2017 09:26:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=iWP2T82Cvb4FmoTPRlUGR01bZtTtG92d+C6ANlmJfIk=; b=oRtB4IuiQf2dyskYJDhkCTWAmzo7kRCtp5mB3hqaUM/dAhm+968gLBQPdwDKV9HWRc btedxovl/j95zAYUfaov5HMLxFtJ1Jugneg4tkx4ThkavfubW8OBXqEdqY4VxfVTslv1 m1AhCto+0kvVL0sV0lbzOmipkhFRNtocsTXsGgf3wXqTGC2dT7uHi2TEDPMv7taG4m+A CD+4NbUWid/a9u9d2gQq2nK2+HlqAHIqPyVP+Md5JXgk+k2FEijADgtQMrvMxTKNgRoH 2hMVEAQfxdU/pMAjApkDjv+x1p4vlRR+nFj164a0sZopJ9pXCssYy3F/EViW9PaEjgCy I5qA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=iWP2T82Cvb4FmoTPRlUGR01bZtTtG92d+C6ANlmJfIk=; b=DIRq3J5SfMa50HROLuXdqWohoRpIwySe7ocar1phIDkNtJ0p0BOFVh3VYUhZ3Z7ZA2 CxFdorNeUa12FjzF4TeGFcM3iee/U+dtuegEH1Tp+bLRLn4JpW5TmRVhyck7RWyMOr9v /mu+fBOzhyXhTAeW7kdnvUFdo9gTCm+ePb17BX2EX6dz15nJ3Avk+wIQ70j5GSDVDLMk OZgLUFGUZmSa1H13uJXUD7GVPj/lI19y/KW3hLB5F9nMW2IrpvPIIHasbrSIpH8Dcdzi z/bJPuPeEDM3sX2U7ma0BwmLrNq0biMcmGAIQ1TSDCFw65a7CHM/VCMWyLyLi35q5TmQ H5Uw==
X-Gm-Message-State: AHYfb5j7CdTW5cIMfudbSq5l5E1pENFlGj4ZlOIG4SamxB2sioW5Us4L N+EBVZ293/k18IzAvVATEXJ7gMg8IY2x
X-Received: by 10.223.163.20 with SMTP id c20mr12313704wrb.173.1503332776515; Mon, 21 Aug 2017 09:26:16 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.223.164.129 with HTTP; Mon, 21 Aug 2017 09:26:15 -0700 (PDT)
In-Reply-To: <FFE6D82C-857E-4890-94AB-1CC28BD1C786@juniper.net>
References: <150128020275.20726.13027423171798327745@ietfa.amsl.com> <A9F2ED3F-6AC5-4AEF-8EBF-1C4F89A6F0F7@juniper.net> <CABCOCHTmNdi7ZGPL_R8vyZTOKeVwJgtrqsT0ZNBCbMUT4Qo9tA@mail.gmail.com> <30CD19F8-6441-4EA3-A340-8CEDD6D4FD6A@juniper.net> <CABCOCHQrgYOUGXo1g3LGn9t8rL3-MoJwNmSG2amgAkxMp_Prhw@mail.gmail.com> <C8D279C6-B735-453D-92BF-09886CAFF403@juniper.net> <CABCOCHTr_jd8FsfHBbOrCfQfoi-TZyPW2NxRNWjyFRG691_VaQ@mail.gmail.com> <FFE6D82C-857E-4890-94AB-1CC28BD1C786@juniper.net>
From: Andy Bierman <andy@yumaworks.com>
Date: Mon, 21 Aug 2017 09:26:15 -0700
Message-ID: <CABCOCHS+G15GzcwgMSJnguYERcrCNu735JE9LavjtYJ4Gyq0cw@mail.gmail.com>
To: Kent Watsen <kwatsen@juniper.net>
Cc: "yang-doctors@ietf.org" <yang-doctors@ietf.org>, "draft-ietf-netconf-restconf-client-server.all@ietf.org" <draft-ietf-netconf-restconf-client-server.all@ietf.org>, "netconf@ietf.org" <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="f403045f219c1faeac055745f046"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/FaYZYl5543_HcLhd632Aok1vSV0>
Subject: Re: [Netconf] Yangdoctors last call review of draft-ietf-netconf-restconf-client-server-04
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.22
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: Mon, 21 Aug 2017 16:26:22 -0000

On Mon, Aug 21, 2017 at 9:22 AM, Kent Watsen <kwatsen@juniper.net> wrote:

> Hi Andy,
>
> Trimming down to just the still-open discussion points.
>
> Thanks,
> Kent
>
>
> >>> You know I am not a big fan of YANG conformance.
> >>> We have nothing in between "always mandatory" and "purely optional,
> >>> server developer's choice".  We have nothing like conditionally
> >>> mandatory "If the RESTCONF server supports listening on TLS , then
> >>> the listen-tls feature MUST be supported."
> >>
> >>This seems unnecessary.  Already the 'if-feature' statements will
> >>force the server to advertise the features - or else they're not
> >>configurable!
> >
> > Nothing forces the server to developer to implement a particular object,
> > because features are purely optional. The description-stmt in the feature
> > can make this conditional requirement.  But not a big deal
> > because the IETF is too server-centric to care about the client POV
> > of YANG conformance.
>
> I don't see this as a big deal.  Regardless, it's not for this draft
> to resolve, right?
>
>
>
right


>
>
>
>
>
> >>>>> C5:
> >>>>
> >>>> It should be clear that the client would have to issue a GET
> >>>> or maybe POST to initiate the sending of stored data like logs
> >>>
> >>> Okay, how about this?
> >>>
> >>>   "Periodically connect to the RESTCONF server, so that,
> >>>    e.g., the RESTCONF client can collect data (logs)
> >>>    from the RESTCONF server.  The RESTCONF client must
> >>>    close the connection when it is ready to release it.
> >>>    Once the connection is closed, the RESTCONF client
> >>>    restarts its timer until the next connection.";
> >>
> >> Not sure this is needed.
> >> RESTCONF does not define any interactions that are not initiated
> >> by the client, but if that changes, then no reason to constrain
> >> this text. I would change 'must' to 'SHOULD' in the 2nd sentence.
> >
> > Oh, now I see your concern, how about this?  (I removed the sentence
> > altogether):
> >
> >     "Periodically connect to the RESTCONF client, so that
> >      the RESTCONF client may deliver messages pending for
> >      the RESTCONF server.  Once the connection has been
> >      closed, for whatever reason, the server will restart
> >      its timer until the next connection.";
> >
> > I would change messages to requests
>
> Done.
>
>
>
>
> >>>>> This is 1 exception -- another is close-session.
> >>>>>
> >>>>>   POST /restconf/operations/ietf-netconf:close-session
> >>>>>
> >>>>> Is this supposed to do anything in RESTCONF?
> >>>>
> >>>> First, I don't view the above as an exception.  With regards to
> >>>> 'close-session', does it even have a meaning in RESTCONF?  - and
> >>>> is this actually an issue for RFC 8040?
> >>>
> >>> RESTCONF does not specify any behavior for specific operation
> >>> resources.  It is left as an implementation detail.  Our server
> >>> treats each RESTCONF request as a new management session, so a
> >>> NETCONF operation like <lock> is granted and then released right
> >>> afterwards by the server because the session is terminated.  I
> >>> think any standard behavior for application layer sessions would
> >>> need to be defined in a new versions of RESTCONF.
> >>
> >> Okay, but can you connect this to the draft?  Are you asking for
> >> a change, or are you actually thinking about a clarification
> >> needed for RFC 8040?
> >
> > not asking for a change.
> > It is currently up to the implementation.
> > For example CGI will call the server once for each request but
> > Fast-CGI will call the thin-client once for each HTTP session
> > and call the server over and over for each request on that
> > session.
>
> Okay, I'll consider this issue closed then.
>
>
>
> > Andy
>
> Kent
>
>
>
>