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

Kent Watsen <kwatsen@juniper.net> Mon, 21 August 2017 16:22 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 BED57132A84; Mon, 21 Aug 2017 09:22:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.011
X-Spam-Level:
X-Spam-Status: No, score=-3.011 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_NONE=-0.0001, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-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 KVm7EW5Ie86K; Mon, 21 Aug 2017 09:22:53 -0700 (PDT)
Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0129.outbound.protection.outlook.com [104.47.41.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A2053132A78; Mon, 21 Aug 2017 09:22:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=TwQm/rV2gBo6l7xIXm9IeHGRLvuFWWD4JN3X2+pInw4=; b=NY2LDcwKRNGznpxPLExPLDs5kLXkv4N2bGPYN+F144p3MJirKwIlbgyr5PUcmPJ1bGU9C387RfYLtmKiQxSUVoMRaw53dKS2tggpZzQx1dKE/VoJz+qwbIkz308y/NnMfKxr6rwve++OKuMuskkveOzdxGg1ZZBHNLI02N+KPh4=
Received: from CY1PR0501MB1450.namprd05.prod.outlook.com (10.160.149.11) by CY1PR0501MB1276.namprd05.prod.outlook.com (10.160.225.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.4; Mon, 21 Aug 2017 16:22:51 +0000
Received: from CY1PR0501MB1450.namprd05.prod.outlook.com ([10.160.149.11]) by CY1PR0501MB1450.namprd05.prod.outlook.com ([10.160.149.11]) with mapi id 15.01.1385.008; Mon, 21 Aug 2017 16:22:51 +0000
From: Kent Watsen <kwatsen@juniper.net>
To: Andy Bierman <andy@yumaworks.com>
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>
Thread-Topic: Yangdoctors last call review of draft-ietf-netconf-restconf-client-server-04
Thread-Index: AQHTB+8y29TveGyQA0qavQMqV/nni6JuTX8AgAGcVwCADGTdgIABkngAgAaaqACAAEmEgIAKGzaA
Date: Mon, 21 Aug 2017 16:22:51 +0000
Message-ID: <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>
In-Reply-To: <CABCOCHTr_jd8FsfHBbOrCfQfoi-TZyPW2NxRNWjyFRG691_VaQ@mail.gmail.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
authentication-results: spf=none (sender IP is ) smtp.mailfrom=kwatsen@juniper.net;
x-originating-ip: [66.129.241.14]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; CY1PR0501MB1276; 6:vi+pNWIKbF7cOUvRch9VR71z1eJ0g7MH+sWwPScy9n/ZtODHdCxFJk6tbNADUckt2/3OjL9qFPzoyosGowvWHTsZPkBoM8Gf/MuEDZnf5chGpcvWWvGIDDEDipYnWdaYlSQSDnRgfJmTEEXJghD+JtX9p0j+uLTC9oaCmwnNFRLswL3lbwyvXOLJc2cxFgrpbCVJNi+ENIb2lZjAxGZK7ZUvtM2ntPw4qivwtdMd8MPjSHkDVlEHh/67ixa9qyvY1FwcIbvmWfH6jAXMtcMFQQkIWTcUNZd4LiP+L8tAOKq/10+hufbI6VgJOiuwwPcjHS7Xzy42sh08F8x3aEEOsQ==; 5:TzsUMeoFNWqkbbc+tF0BQw86bYSOERlzkgZYBAlMybg2fgGKFei62USZbon8eACRPIi21ZVsL0DDkcOJ7pGmFNRzeCrkwG3Js6vm/6iSMqjhHmr3ojOL1TXMiOseEgslfXsv7L5sPAGnLFHI1Gpfjg==; 24:UJlcccHw44bxJX1QQan0cFglPPpB4Kt5+/tYVkOix2JUhrO1TWTNe0q0NeWr87ls2bhWpITNG6aEJl/23qgGlr5DIBBd8iBeUp/zX66LvYc=; 7:/AyI016NTnEcD3ZdJTNGME9MjQ6EbWt9nbU3RDY693W6X243K2hGMm5gcx9W8TTKbntNg3mEHl7Ic3yJK8cV21MYLIECvhqF9ATa1qixKKgcYjtZBMPH5uzcNe985AhmyKHY0yxqfYXB9papCXSdiXvAcdYkWDVC4LcSlkKg1gbOQxxOObhOv5LZ7kbf08bVs+Eozm5ZEYigHs2mw5nJ//sfc85LJd/JUidqIk9ON5s=
x-ms-exchange-antispam-srfa-diagnostics: SSOS;
x-ms-office365-filtering-correlation-id: 0ef22762-b27b-405c-761c-08d4e8b0dee3
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY1PR0501MB1276;
x-ms-traffictypediagnostic: CY1PR0501MB1276:
x-exchange-antispam-report-test: UriScan:(158342451672863)(21532816269658);
x-microsoft-antispam-prvs: <CY1PR0501MB12766EC28161B07693435A72A5870@CY1PR0501MB1276.namprd05.prod.outlook.com>
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123564025)(20161123558100)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR0501MB1276; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR0501MB1276;
x-forefront-prvs: 040655413E
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(39860400002)(189002)(199003)(83506001)(14454004)(106356001)(478600001)(105586002)(66066001)(83716003)(6436002)(68736007)(4001350100001)(110136004)(4326008)(97736004)(6246003)(81166006)(8936002)(82746002)(6506006)(6116002)(3846002)(25786009)(102836003)(93886005)(86362001)(230783001)(81156014)(53936002)(3660700001)(54356999)(36756003)(3280700002)(54906002)(76176999)(50986999)(5660300001)(6512007)(99286003)(6486002)(77096006)(101416001)(8676002)(2906002)(305945005)(229853002)(189998001)(33656002)(6916009)(7736002)(2950100002)(2900100001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0501MB1276; H:CY1PR0501MB1450.namprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en;
received-spf: None (protection.outlook.com: juniper.net does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <B9EA60C4DA853445BEF9967996204DE4@namprd05.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Aug 2017 16:22:51.6638 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0501MB1276
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/OaC4MGUMWDEunzLKSD4Sv5ivVDQ>
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:22:57 -0000

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? 
 






>>>>> 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