Re: [Netconf] configuration models status and timeline

NICK HANCOCK <nick.hancock@adtran.com> Thu, 02 August 2018 09:07 UTC

Return-Path: <nick.hancock@adtran.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 B2F70130EF3 for <netconf@ietfa.amsl.com>; Thu, 2 Aug 2018 02:07:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
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 KyJrGrCtUY65 for <netconf@ietfa.amsl.com>; Thu, 2 Aug 2018 02:07:49 -0700 (PDT)
Received: from us-smtp-delivery-128.mimecast.com (us-smtp-delivery-128.mimecast.com [63.128.21.128]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 64FEE130E19 for <netconf@ietf.org>; Thu, 2 Aug 2018 02:07:49 -0700 (PDT)
Received: from ex-hc2.corp.adtran.com (ex-hc3.adtran.com [76.164.174.83]) (Using TLS) by us-smtp-1.mimecast.com with ESMTP id us-mta-232-OtCPFnPCPDyrKq5XjvTNXw-1; Thu, 02 Aug 2018 05:07:46 -0400
Received: from ex-mb1.corp.adtran.com ([fe80::51a3:972d:5f16:9952]) by ex-hc2.corp.adtran.com ([fe80::a019:449b:3f62:28e5%10]) with mapi id 14.03.0382.000; Thu, 2 Aug 2018 04:07:44 -0500
From: NICK HANCOCK <nick.hancock@adtran.com>
To: Ariel Otilibili Anieli <otilibil@eurecom.fr>, "Beauville, Yves (Nokia - BE/Antwerp)" <yves.beauville@nokia.com>
CC: "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: [Netconf] configuration models status and timeline
Thread-Index: AQHUHqMtUr4n/rFpCkSPbMCiwjJcf6SVZzsAgAAyEoCAAJwsAIAAyesAgBASZ4CABS6AUA==
Date: Thu, 02 Aug 2018 09:07:44 +0000
Message-ID: <BD6D193629F47C479266C0985F16AAC7011E9F839C@ex-mb1.corp.adtran.com>
References: <20180718112108.hqgetzfebhqpdpsk@anna.jacobs.jacobs-university.de> <AD20F795-CBD3-4054-BD09-4F7DD45CFACB@juniper.net> <20180718150228.e2vcccd34sivmz3h@anna.jacobs.jacobs-university.de> <CABCOCHTtfTNCJiT-aU96sVrzm2-pHFGi5eATvKcTbdbQ-Whd1A@mail.gmail.com> <991B70D8B4112A4699D5C00DDBBF878A6BBDEF0C@dggeml510-mbx.china.huawei.com> <2b52b279-9f9a-45f0-fa86-6931d0393274@nokia.com> <20180729224921.9u6y9jyx0gos0swg@webmail.eurecom.fr>
In-Reply-To: <20180729224921.9u6y9jyx0gos0swg@webmail.eurecom.fr>
Accept-Language: en-US, en-GB
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0FEVFJBTiIsImlkIjoiYjc5OWZkNGUtZGVmOC00NWM5LWI0MTMtYjRjMmU5NDEyOWZiIiwicHJvcHMiOlt7Im4iOiJDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiR0IifV19LHsibiI6IlF1ZXN0aW9uMSIsInZhbHMiOltdfSx7Im4iOiJRdWVzdGlvbjIiLCJ2YWxzIjpbXX0seyJuIjoiUXVlc3Rpb24zIiwidmFscyI6W119XX0sIlN1YmplY3RMYWJlbHMiOltdLCJUTUNWZXJzaW9uIjoiMTcuMi4xMS4wIiwiVHJ1c3RlZExhYmVsSGFzaCI6ImtSMjBheWtxV2oxMlVFRmg4Z2hpWjZlUFdlWmxIbnBoN0NWTnVrWGNxTG9oeGRBSm14Y2dcLzBXM3g1UlFqYUIrIn0=
x-originating-ip: [172.20.60.220]
MIME-Version: 1.0
X-MC-Unique: OtCPFnPCPDyrKq5XjvTNXw-1
Content-Type: multipart/alternative; boundary="_000_BD6D193629F47C479266C0985F16AAC7011E9F839Cexmb1corpadtr_"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/VShXD5mDSbwAwC7LY3i2W-gBWO8>
Subject: Re: [Netconf] configuration models status and timeline
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.27
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: Thu, 02 Aug 2018 09:07:54 -0000

Hi Ariel,

To quote RFC 6241 Section 6.4.2:

6.4.2. Empty Filter
An empty filter will select nothing because no content match or
selection nodes are present. This is not an error. The <filter>
element's "type" attribute used in these examples is discussed
further in Section 7.1.

<rpc message-id="101"
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get>
<filter type="subtree">
</filter>
</get>
</rpc>

<rpc-reply message-id="101"
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<data>
</data>
</rpc-reply>

My understanding is that a <get> without a subtree filter will retrieve the whole configuration, but a <get> with an empty subtree filter will return nothing.
This is exactly the behaviour we see in our NETCONF server. This is lightweight and requires no protocol changes. Or am I missing something?

Regards
Nick

From: Netconf [mailto:netconf-bounces@ietf.org] On Behalf Of Ariel Otilibili Anieli
Sent: Sunday, July 29, 2018 10:49 PM
To: Beauville, Yves (Nokia - BE/Antwerp)
Cc: netconf@ietf.org
Subject: Re: [Netconf] configuration models status and timeline

Hi Yves,

Below my comments.

Regards,
Ariel

Quoting "Beauville, Yves (Nokia - BE/Antwerp)" <yves.beauville@nokia.com>:

> Kent, Andy and Rohit,
>
> Could we use a get request with an empty filter, as defined in section
> 6.4.2 <https://tools.ietf.org/html/rfc6241#section-6.4.2<https://tools.ietf.org/html/rfc6241#section-6.4.2>> of RFC6241?
>
> This looks like the smallest and less impacting RPC defined in the RFC.
>
> Isn't it a good candidate for an aliveness check?
An empty filter retrieves the whole configuration; which can take a
lot space and time.

I would rather use, as filter of the RPC 'get', the 'current-datetime'
or the 'boot-datetime'.

[1] https://tools.ietf.org/html/rfc7317#section-3.2<https://tools.ietf.org/html/rfc7317#section-3.2>
>
> Yves
>
> On 19-07-18 05:20, Rohit R Ranade wrote:
>>
>> *From:*Netconf [mailto:netconf-bounces@ietf.org] *On Behalf Of *Andy Bierman
>> *Sent:* 18 July 2018 23:32
>> *To:* Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>;
>> Kent Watsen <kwatsen@juniper.net>; netconf@ietf.org
>> *Subject:* Re: [Netconf] configuration models status and timeline
>>
>> <snip>
>>
>> Ideally, the keep alive would just be handled at the session
>> layer. I am
>> not sure where the NC spec allows
>>
>> C: <rpc message-id="101"
>> C: xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"/>
>> S: <rpc-reply message-id="101"
>> S: xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"/>
>>
>> otherwise one could define a noop RPC (I am not sure invoking a fake
>> edit-config is necessarily a good idea).
>>
>> I prefer an <no-op> RPC for this purpose.
>>
>> It would be better if the session counters were not affected,
>>
>> but that would require protocol changes.
>>
>> Causing error counters to increment for keep-alives is bad.
>>
>> */[Rohit R Ranade] /*+1
>>
>> Andy
>>
>>
>>
>> _______________________________________________
>> Netconf mailing list
>> Netconf@ietf.org
>> https://www.ietf.org/mailman/listinfo/netconf<https://www.ietf.org/mailman/listinfo/netconf>



-------------------------------------------------------------------------------
This message was sent using EURECOM Webmail: http://webmail.eurecom.fr<http://webmail.eurecom.fr>

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