[yang-doctors] Question about yang2dsdl error.

Christian Hopps <chopps@chopps.org> Fri, 08 November 2019 11:29 UTC

Return-Path: <chopps@chopps.org>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost []) by ietfa.amsl.com (Postfix) with ESMTP id 662B01200B6 for <yang-doctors@ietfa.amsl.com>; Fri, 8 Nov 2019 03:29:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([]) by localhost (ietfa.amsl.com []) (amavisd-new, port 10024) with ESMTP id Een102pDa63T for <yang-doctors@ietfa.amsl.com>; Fri, 8 Nov 2019 03:29:40 -0800 (PST)
Received: from smtp.chopps.org (smtp.chopps.org []) by ietfa.amsl.com (Postfix) with ESMTP id 5B5E6120041 for <yang-doctors@ietf.org>; Fri, 8 Nov 2019 03:29:40 -0800 (PST)
Received: from stubbs.int.chopps.org (172-222-100-236.res.spectrum.com []) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by smtp.chopps.org (Postfix) with ESMTPSA id E1BBC600E7; Fri, 8 Nov 2019 11:29:39 +0000 (UTC)
From: Christian Hopps <chopps@chopps.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3594.4.19\))
Message-Id: <18331DE5-81EE-4A9A-A404-957A24225333@chopps.org>
Date: Fri, 8 Nov 2019 06:29:38 -0500
To: YANG Doctors <yang-doctors@ietf.org>
X-Mailer: Apple Mail (2.3594.4.19)
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/irQEiM6BQlWTSjYF-6RTbSFPEFk>
Subject: [yang-doctors] Question about yang2dsdl error.
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 08 Nov 2019 11:29:41 -0000

Hi yang-doctors,

I've got an example which yang2dsdl complains about (in it's expected unhelpful way :) In trying to figure out what was wrong, I gave yanglint a try, and it said the example was fine (no errors no output with --strict). Can anyone shed some light on what might be the issue. I'd really like yang2dsdl to pass here as well.


(default) [06:23:07 dak:~/w/reverse-metric-yang]$ cat test-xml-example2.xml
<config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
        <type xmlns:isis="urn:ietf:params:xml:ns:yang:ietf-isis">
        <isis xmlns="urn:ietf:params:xml:ns:yang:ietf-isis">

yang2dsdl Error:

(default) [06:23:05 dak:~/w/reverse-metric-yang]$ yang2dsdl -x -t config -d .validate -v test-xml-example2.xml ietf-routing@2016-11-04.yang ietf-isis@2019-10-15.yang
== Generating RELAX NG schema '.validate/ietf-routing_ietf-isis-config.rng'

== Generating Schematron schema '.validate/ietf-routing_ietf-isis-config.sch'

== Generating DSRL schema '.validate/ietf-routing_ietf-isis-config.dsrl'

== Validating grammar and datatypes ...
Relax-NG validity error : Extra element control-plane-protocols in interleave
test-xml-example2.xml:4: element control-plane-protocols: Relax-NG validity error : Element routing failed to validate content
test-xml-example2.xml fails to validate