Re: [Netconf] I-D Action: draft-ietf-netconf-subscribed-notifications-19.txt

"Reshad Rahman (rrahman)" <rrahman@cisco.com> Thu, 20 December 2018 13:28 UTC

Return-Path: <rrahman@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 753CA1277D2 for <netconf@ietfa.amsl.com>; Thu, 20 Dec 2018 05:28:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.501
X-Spam-Level:
X-Spam-Status: No, score=-14.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, 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 oCWsCH_EUHDn for <netconf@ietfa.amsl.com>; Thu, 20 Dec 2018 05:28:43 -0800 (PST)
Received: from rcdn-iport-4.cisco.com (rcdn-iport-4.cisco.com [173.37.86.75]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C4ADD12426E for <netconf@ietf.org>; Thu, 20 Dec 2018 05:28:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=5350; q=dns/txt; s=iport; t=1545312522; x=1546522122; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=IOwOfUO+rPjuCMJC+Xyzo+FNDP1LDWWo9S1TDdLdwtE=; b=R9J7UkGjKYUttVP+BJzlAnIsUbzQV4L/VVvkvu0RHMryucMM+J6z0oBj uYz6QodsFdmLKrw4CEef+gLF6Dmlpn3gS0tKpaEAqyYfP+RwDj03QnzBB QiGfyLla78JRBjg0keWLYC+LYvO0CVcScgOBZpi/ZZjYKfpwzGEMM6Qt5 M=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0ADAAD0lxtc/4QNJK1kGQEBAQEBAQEBAQEBAQcBAQEBAQGBUQQBAQEBAQsBggNmgQInCoNziBmLe4FoJZddgXsLAQEYDQeDekYCF4JVIjQJDQEDAQECAQECbRwMhTwBAQEDAQEBIRE6CQIQAgEIDgoCAiYCAgIlCxUQAgQOBYMiAYF5CA+nQYEviiqBC4s0F4FAP4E4DBOCTIMeAQECAYFRJIJxMYImAolBOYVigVGQEAkChw+KVBiCLI8xjkiLHgIRFIEnHziBVnAVOyoBgkEJhX+FFIU/cgGBJ4p0K4EBAYEeAQE
X-IronPort-AV: E=Sophos;i="5.56,377,1539648000"; d="scan'208";a="497539733"
Received: from alln-core-10.cisco.com ([173.36.13.132]) by rcdn-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Dec 2018 13:28:41 +0000
Received: from XCH-ALN-003.cisco.com (xch-aln-003.cisco.com [173.36.7.13]) by alln-core-10.cisco.com (8.15.2/8.15.2) with ESMTPS id wBKDSf3v030978 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 20 Dec 2018 13:28:41 GMT
Received: from xch-rcd-005.cisco.com (173.37.102.15) by XCH-ALN-003.cisco.com (173.36.7.13) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 20 Dec 2018 07:28:40 -0600
Received: from xch-rcd-005.cisco.com ([173.37.102.15]) by XCH-RCD-005.cisco.com ([173.37.102.15]) with mapi id 15.00.1395.000; Thu, 20 Dec 2018 07:28:40 -0600
From: "Reshad Rahman (rrahman)" <rrahman@cisco.com>
To: Carl Moberg <calle@tail-f.com>
CC: "netconf@ietf.org" <netconf@ietf.org>, Martin Björklund <mbj@tail-f.com>, "lhotka@nic.cz" <lhotka@nic.cz>
Thread-Topic: [Netconf] I-D Action: draft-ietf-netconf-subscribed-notifications-19.txt
Thread-Index: AQHUlvtyiIAPgkY8IUe2KPTAUo4ZuKWGeqcAgAA1X4CAACv6gIAAQimA//+uqACAAFbpAIAABHgAgACITIA=
Date: Thu, 20 Dec 2018 13:28:40 +0000
Message-ID: <76000823-F35C-4421-BD98-0B2D9ABD6CF8@cisco.com>
References: <154515596361.5411.7153657725124836233@ietfa.amsl.com> <20181219.145202.1027346732573212384.mbj@tail-f.com> <91e0bc7bee2e4b56bc968565fa43d78c@XCH-RTP-013.cisco.com> <20181219.204027.1134533539828819405.mbj@tail-f.com> <3C140E32-5CD1-4F13-A025-F22ABAE54CBB@tail-f.com> <7D59A993-EE20-429C-B5A0-C18F8B405EE8@cisco.com> <B6F8FE35-B713-4EB1-9E9A-88873126908D@tail-f.com> <3E762C43-7F3A-4EB3-A6CB-22006950D57B@tail-f.com>
In-Reply-To: <3E762C43-7F3A-4EB3-A6CB-22006950D57B@tail-f.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.10.4.181110
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [161.44.212.53]
Content-Type: text/plain; charset="utf-8"
Content-ID: <7E1980CA9561EC41879600522029C518@emea.cisco.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Outbound-SMTP-Client: 173.36.7.13, xch-aln-003.cisco.com
X-Outbound-Node: alln-core-10.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/G_Nm3uHKZ3D_itjWn_3VDs8-oXo>
Subject: Re: [Netconf] I-D Action: draft-ietf-netconf-subscribed-notifications-19.txt
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
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, 20 Dec 2018 13:28:45 -0000

Thanks Carl. What is interesting is that pyang shows no errors, while confdc and yanglint do.

Regards,
Reshad.


On 2018-12-19, 7:13 PM, "Carl Moberg" <calle@tail-f.com> wrote:

    
     Actually, and to put a finer point on the below. I do extract YANG modules from drafts, but only store those that pass extraction and validation. And it turns out that validation of the module extracted from https://www.ietf.org/id/draft-ietf-netmod-schema-mount-12.txt fails because the file name in the CODE BEGINS marker is missing the “.yang” suffix which violates https://tools.ietf.org/html/rfc6087#section-3.1.
    
    
    > On Dec 20, 2018, at 12:57 AM, Carl Moberg <calle@tail-f.com> wrote:
    > 
    > Reshad,
    > 
    > Yes, so the YANG modules in the draft tries to import the 'ietf-yang-schema-mount’ and 'ietf-network-instance' YANG modules which are not available in the repo in the validator. The reason why we don’t keep them in the repo is that the specification that defines those modules (draft-ietf-netmod-schema-mount, and draft-ietf-rtgwg-ni-model respectively) are not published yet and we only keep published YANG modules.
    > 
    > The easiest way forward is probably to extract the YANG modules from your draft (perhaps using the https://github.com/xym-tool/xym tool), zip up your module with the imported modules and validate them using the “Upload multiple YANG files or a zip archive” option.
    > 
    > I am considering storing draft-level YANG files (they are many and broken :-) in the validator repo as well. Maybe time to revisit that.
    > 
    >> On Dec 20, 2018, at 12:46 AM, Reshad Rahman (rrahman) <rrahman@cisco.com> wrote:
    >> 
    >> Hi Carl,
    >> 
    >> Yangvalidator.org has the following errors for -20, pyang is fine though.
    >> 
    >> Regards,
    >> Reshad.
    >> 
    >> Confdc Output
    >> ietf-network-instance@2018-03-20.yang:18: error: module 'ietf-yang-schema-mount' not found
    >> yanglint Validation
    >> err : Data model "ietf-yang-schema-mount" not found.
    >> err : Importing "ietf-yang-schema-mount" module into "ietf-network-instance" failed.
    >> err : Module "ietf-network-instance" parsing failed.
    >> err : Importing "ietf-network-instance" module into "ietf-subscribed-notifications" failed.
    >> err : Module "ietf-subscribed-notifications" parsing failed.
    >> 
    >> 
    >> On 2018-12-19, 6:37 PM, "Netconf on behalf of Carl Moberg" <netconf-bounces@ietf.org on behalf of calle@tail-f.com> wrote:
    >> 
    >> 
    >> 
    >>> On Dec 19, 2018, at 8:40 PM, Martin Bjorklund <mbj@tail-f.com> wrote:
    >>> 
    >>> "Eric Voit (evoit)" <evoit@cisco.com> wrote:
    >>>> Thanks Martin,
    >>>> 
    >>>> 
    >>>> 
    >>>> I have the version addressing the double quotes here:
    >>>> 
    >>>> https://github.com/netconf-wg/rfc5277bis/blob/master/draft-ietf-netconf-subscribed-notifications-20.xml
    >>>> 
    >>>> 
    >>>> 
    >>>> Before I upload this -20, I want to see if you have concerns with the Pyang Validation issue shown below.   Reshad mentioned that other users have seen it.  Is this something which should stop me from posting?
    >>>> 
    >>> 
    >>> You get this error b/c you are running an old version of pyang that
    >>> isn't compatible with the (newer) version of pip on your system.  I
    >>> suggest you upgrade pyang.
    >>> 
    >> 
    >>    Yup, thanks. Upgraded and yangvalidator.org now works (better).
    >> 
    >>   _______________________________________________
    >>   Netconf mailing list
    >>   Netconf@ietf.org
    >>   https://www.ietf.org/mailman/listinfo/netconf
    >> 
    >> 
    > 
    > _______________________________________________
    > Netconf mailing list
    > Netconf@ietf.org
    > https://www.ietf.org/mailman/listinfo/netconf