[netmod] Hi Benoit. I am the author of draft-ietf-pim-igmp-mld-snooping-yang. Now datatracker shows YANG validation errors, and it augments IEEE YANG model. Could you please help me how to deal with them? Thanks a lot!

Hongji Zhao <hongji.zhao@ericsson.com> Sun, 09 February 2020 09:18 UTC

Return-Path: <hongji.zhao@ericsson.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CBC4A120058; Sun, 9 Feb 2020 01:18:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, PLING_QUERY=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.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 Od9RNurqu3BI; Sun, 9 Feb 2020 01:18:55 -0800 (PST)
Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150042.outbound.protection.outlook.com [40.107.15.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4F98112001E; Sun, 9 Feb 2020 01:18:55 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZbzLgh8dPS/x/o2BUUgeUJWgQSOlgzW/811+7CGUQqbXKGn7SvZ7B8rzodDAzmuxuGoW0in0ymjjRlwOiLzl8RPXjTHIn4CQbI6J5VgezYsliETHokRMKKV3RuMp/tZZe47c8hCf6MGj3kYHv5OGijg1ZkOna1B/L/G4SEx5Km+PNHiXYor4EQiKQhoBIdBBAnzc8kP8dhSupHHVQEFTByJ5Jp3OBlMrBNWyEw/ocvqHVYjJvwRic5uaHLl54s/UKsywtYdifVRzMafyv5aS8uPAeKXL5QcnbhQZhrSZAIxRvfLssmgQ0P7RQ5VdNH9NCRqq+YGwaP0uGaGakgOXZA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QtlTyyFqG+NDe246CpOLszskuEfF6GaOUWYzZypMTsU=; b=LvAp+KzR4TzrECN2X2yJM7Gl8/LzjLP48o0WNgW+ADzuQfgmi/wZH3WDgnvjV/2wB1UIQgyqmZwoasSAJX6ALBj8T8K3Gr7ODWRcZxNML+2a6c6+tZ20bda33F0E7eddKLIulRrEdxHl67EvBDTy64c52POaa0H8z44ab5oTTYV69h44R9V9RjaU81HaASqWg4Y/RW/i5hzosahYLaJcDC3yenlwvrFCrmhLdz87UBvwnqZqzclbAQNk6uqbYXunb+ZD5JQKxMzh1adj2XJYcQvCzla+ZXy6cHzGpR6TRqb2joIadU6fTzlqJzMn2dquPIELJ89mij/q2mvuRErpFQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QtlTyyFqG+NDe246CpOLszskuEfF6GaOUWYzZypMTsU=; b=mP4IJbS1MMqiLoQS0bubL6+MCh1hGy1hYujdX5EXFFDL4KAJbQWiZVwOso2I7KdyCW8OlDca/g8sD5VCBC8LesUiw1I3Rh9qRD0V4ZN3LGbIzlHro9VLIskRnCXdLv77+UZeuU2dS6ChMflLPzoNrggrWddpv0wpUGAwhyWPKEY=
Received: from HE1PR07MB3148.eurprd07.prod.outlook.com (10.170.247.15) by VE1SPR01MB0008.eurprd07.prod.outlook.com (20.179.193.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.12; Sun, 9 Feb 2020 09:18:50 +0000
Received: from HE1PR07MB3148.eurprd07.prod.outlook.com ([fe80::95b6:84d4:100f:8760]) by HE1PR07MB3148.eurprd07.prod.outlook.com ([fe80::95b6:84d4:100f:8760%5]) with mapi id 15.20.2729.010; Sun, 9 Feb 2020 09:18:50 +0000
From: Hongji Zhao <hongji.zhao@ericsson.com>
To: Benoit Claise <bclaise@cisco.com>
CC: "netmod@ietf.org" <netmod@ietf.org>, Alvaro Retana <aretana.ietf@gmail.com>, "pim-chairs@ietf.org" <pim-chairs@ietf.org>, Xufeng Liu <xufeng.liu.ietf@gmail.com>, "draft-ietf-pim-igmp-mld-snooping-yang@ietf.org" <draft-ietf-pim-igmp-mld-snooping-yang@ietf.org>, "ibagdona@gmail.com" <ibagdona@gmail.com>
Thread-Topic: Hi Benoit. I am the author of draft-ietf-pim-igmp-mld-snooping-yang. Now datatracker shows YANG validation errors, and it augments IEEE YANG model. Could you please help me how to deal with them? Thanks a lot!
Thread-Index: AdXfKF+4HqQo3AynShqa+4tkUoSoyQ==
Date: Sun, 9 Feb 2020 09:18:50 +0000
Message-ID: <HE1PR07MB3148E2D48C70155648CBC4F7961E0@HE1PR07MB3148.eurprd07.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=hongji.zhao@ericsson.com;
x-originating-ip: [120.244.62.150]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 668a7728-8254-4424-c4af-08d7ad41134b
x-ms-traffictypediagnostic: VE1SPR01MB0008:
x-microsoft-antispam-prvs: <VE1SPR01MB00080B7765BE846D677A841F961E0@VE1SPR01MB0008.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 0308EE423E
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(396003)(376002)(346002)(39860400002)(136003)(199004)(189003)(9326002)(66476007)(64756008)(966005)(66556008)(66446008)(478600001)(7696005)(55016002)(9686003)(6916009)(2906002)(5660300002)(44832011)(76116006)(52536014)(66946007)(316002)(54906003)(8936002)(8676002)(81156014)(81166006)(26005)(86362001)(6506007)(33656002)(4326008)(186003)(71200400001)(182903001); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1SPR01MB0008; H:HE1PR07MB3148.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 8sIA3kTuQgZcIII2l0LMEPFlnbyfqgqwxf3vFV00nW8ySNhYDy1J4k98mUVNC7Xa1ON3qWiBS6g35jPZluhA+5vhkQwyr7LhVzUuTfOvPOSBtT9ATzcaaEpJsXQnPlPIlWRh1F0Gn6SeFKirNHJ0Iw82Z0XptDtTi1HA0L7/OYjbr+eim+ZcUWwZ8xvfh8IiOEfZgs75PQqi7HBkqB8mevPwADCw6UDPTtp9M/bSEADufbP3RFwseIqL9xhRnfsvcwXY3OEXrMICu2RWlCREBNu7jRMQ7MYVpZIASUPedaZtLrmnt/xkJsIYk+PgjmOC422Do4mmOokTZCAxmLs4Z3tMcFIq9lCUOH/HELf2Cpsea39I3Sf5BDrrggS/OxXIQWrwD+EjSpz3ASrFg5MFd88i6BUBckdh1gOaWjRVouVDpg88d8ZnRl8npE238WIr92qWK64rnlg5rKTVmJvRa/wBd0n8Y04gepgnwg+vAkeAwxEF56hIqev7MGYzKfzGxvGoqilmiI+BhPlstUMWOpBfj7/3+EpFqd4Xwko5+v6lXTtXvvY1K1Lfekkm119W
x-ms-exchange-antispam-messagedata: QsgxVjenpBblywt6v59Ej/p5L6oATpneBCdq52yc6MYzTWWGe0WnqHJ3b4lgZfeHQnaeCoDzLBt3HRN95bB2EreQaqltWUQx1ktvr9asaN2unO3WhSoSRO2/qZQCeS1Y4iSmr2jxMus8rLp6XZ4stQ==
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_HE1PR07MB3148E2D48C70155648CBC4F7961E0HE1PR07MB3148eurp_"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 668a7728-8254-4424-c4af-08d7ad41134b
X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Feb 2020 09:18:50.3667 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: +iIIAQx/hfsTIlyVIuEtlFbQrcmwJAwkQlksWCl5RT9oHmAnGaPY0d9UYg1ccKY/Liw91bJXfg+1gtohmiImQWnd5UaJNBc5Rrf6TcfYqsg=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1SPR01MB0008
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/Bx7GY6PE_bzznNyT9fLEDWAF0Y0>
Subject: [netmod] Hi Benoit. I am the author of draft-ietf-pim-igmp-mld-snooping-yang. Now datatracker shows YANG validation errors, and it augments IEEE YANG model. Could you please help me how to deal with them? Thanks a lot!
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 09 Feb 2020 09:18:59 -0000

Hi Benoit,

The draft-ietf-pim-igmp-mld-snooping-yang is about IGMP & MLD Snooping yang module.
https://datatracker.ietf.org/doc/draft-ietf-pim-igmp-mld-snooping-yang/


1) Now this draft has passed WGLC, but datatracker is still showing several YANG Validation errors. It's saying it can't find the ietf-l2vpn, ietf-pseudowires, ieee802-dot1q-bridge module.
   It was suggested that the errors are a tool issue.   How to deal with it?

2) This draft imports and augments an IEEE YANG model (ieee802-dot1q-bridge module). Is there any specific process we need to follow when augments an IEEE YANG model?

Thanks a lot!


*********************************************************************************************************************************************
Error details:
draft-ietf-pim-igmp-mld-snooping-yang-09.txt:
xym 0.4:
Extracting 'ietf-igmp-mld-snooping'
   Getting YANG file name from module name: ietf-igmp-mld-snooping.yang
   Removed 10 empty lines


ietf-igmp-mld-snooping@2019-06-04.yang:
pyang 2.1.1: pyang --verbose --ietf -p {libs} {model}:
# read ietf-igmp-mld-snooping@2019-06-04.yang (CL)
# read /a/www/ietf-datatracker/6.117.0/env/share/yang/modules/ietf/ietf-inet-types.yang
# read /a/www/ietf-ftp/yang/draftmod/ietf-inet-types@2019-11-04.yang
# read /a/www/ietf-datatracker/6.117.0/env/share/yang/modules/ietf/ietf-yang-types.yang
# read /a/www/ietf-ftp/yang/draftmod/ietf-yang-types@2019-11-04.yang
# read /a/www/ietf-datatracker/6.117.0/env/share/yang/modules/ietf/ietf-interfaces.yang
# read /a/www/ietf-ftp/yang/rfcmod/ietf-interfaces@2018-02-20.yang
# read /a/www/ietf-datatracker/6.117.0/env/share/yang/modules/ietf/ietf-routing.yang
# read /a/www/ietf-ftp/yang/rfcmod/ietf-routing@2018-03-13.yang
# read /a/www/ietf-datatracker/6.117.0/env/share/yang/modules/ietf/ietf-routing-types.yang
# read /a/www/ietf-ftp/yang/rfcmod/ietf-routing-types@2017-12-04.yang
# read /a/www/ietf-datatracker/6.117.0/env/share/yang/modules/ietf/ietf-network-instance.yang
# read /a/www/ietf-ftp/yang/rfcmod/ietf-network-instance@2019-01-21.yang
# read /a/www/ietf-datatracker/6.117.0/env/share/yang/modules/ietf/ietf-ip.yang
# read /a/www/ietf-ftp/yang/rfcmod/ietf-ip@2018-02-22.yang
# read /a/www/ietf-datatracker/6.117.0/env/share/yang/modules/ietf/ietf-yang-schema-mount.yang
# read /a/www/ietf-ftp/yang/rfcmod/ietf-yang-schema-mount@2019-01-14.yang
ietf-igmp-mld-snooping@2019-06-04.yang:27: error: module "ietf-l2vpn" not found in search path
ietf-igmp-mld-snooping@2019-06-04.yang:34: error: module "ietf-pseudowires" not found in search path
ietf-igmp-mld-snooping@2019-06-04.yang:38: error: module "ieee802-dot1q-bridge" not found in search path

yanglint 0.14.80: yanglint --verbose -p {rfclib} -p {draftlib} -p {tmplib} {model} -i:
err : Data model "ietf-l2vpn" not found.
err : Importing "ietf-l2vpn" module into "ietf-igmp-mld-snooping" failed.
err : Module "ietf-igmp-mld-snooping" parsing failed.

*********************************************************************************************************************************************

module ietf-igmp-mld-snooping {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-igmp-mld-snooping";

  prefix ims;

  import ietf-inet-types {
    prefix "inet";
  }

  ...

  import ieee802-dot1q-bridge {
    prefix "dot1q";
  }

  ...


  augment "/dot1q:bridges/dot1q:bridge" {
    description
      "Reference IGMP & MLD snooping instance in BRIDGE scenario";

    leaf igmp-snooping-instance {
      type igmp-mld-snooping-instance-ref;

      description
        "Configure IGMP snooping instance under bridge view";
    }
    leaf mld-snooping-instance {
      type igmp-mld-snooping-instance-ref;

      description
        "Configure MLD snooping instance under bridge view";
    }
  }


BR/Hongji