[Netconf] Advertisement of imported features

Muly Ilan <muly_i@rad.com> Tue, 08 January 2019 20:02 UTC

Return-Path: <muly_i@rad.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 EFA4B13115A for <netconf@ietfa.amsl.com>; Tue, 8 Jan 2019 12:02:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_FONT_LOW_CONTRAST=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=rad365.onmicrosoft.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 BYnoODoSTKfH for <netconf@ietfa.amsl.com>; Tue, 8 Jan 2019 12:02:03 -0800 (PST)
Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-db5eur03on060c.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0a::60c]) (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 114B713112B for <netconf@ietf.org>; Tue, 8 Jan 2019 12:02:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rad365.onmicrosoft.com; s=selector1-rad-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=M9ik//wPXwvOHYDQE8dWAlVyoTTsTijLwtMC2oCnvYU=; b=Fu81D2IBGDNsYTsXvblImHEmi86LJNDs/4jV/VEK7XjeWkasSEDZqlATOamO9t4WkHHvtXLCKDz3YgmavIpho34UTuX49ewRNsWrT+dQrA3gqiJTH+RH7P27PKFfnaGZxgs40vPxAKn13IC0hfMvwDI4mdlK+7bs+jQ7aFl0LBc=
Received: from AM6PR03MB4552.eurprd03.prod.outlook.com (20.177.34.27) by AM6PR03MB5127.eurprd03.prod.outlook.com (20.178.91.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1516.14; Tue, 8 Jan 2019 20:02:00 +0000
Received: from AM6PR03MB4552.eurprd03.prod.outlook.com ([fe80::f0b1:7a5e:6586:3baa]) by AM6PR03MB4552.eurprd03.prod.outlook.com ([fe80::f0b1:7a5e:6586:3baa%3]) with mapi id 15.20.1495.011; Tue, 8 Jan 2019 20:02:00 +0000
From: Muly Ilan <muly_i@rad.com>
To: "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: Advertisement of imported features
Thread-Index: AdSnjQMY5eKp8OomTrui8VBeVcm7yQ==
Date: Tue, 8 Jan 2019 20:01:59 +0000
Message-ID: <AM6PR03MB45528D27D49E7F090012326BF98A0@AM6PR03MB4552.eurprd03.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=muly_i@rad.com;
x-originating-ip: [37.142.37.251]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; AM6PR03MB5127; 6:iNEwhy788JXWG+UvGYdaVeDS+DQNjwMPBFbJLVKySejEunyqw+Q96IBEnOwn4K5d1UJrPoY4jHsvd15xXf2VTVw5r5QhtZ8bNGf5ClbOgi2b8dYjdV6WXv+vRkLtHRzv6Vqsz52QnlVODu1YoTfOtkD7Utm2C2yT3gUsdAFU0ES75qARqCI5VGuKVrz5HtTKMitDa/GlRmiK0lYRlITRob91pJXCZgRoWFee2/fjxymT6DkAkBtdim5JtLsbtEGVWH5iNdLce0hRA3e120TKKTXIM8TGa+Hb0rl76JZbcT3es8B7dTL49O8RTjio2ABXOWEWqcmE0HT2P1HUej3JHX2ZsIoPPAFOIxsGdwk8FT83YH8hZVTn3BqzJi0q//W9k8nT3IckyA6JlDCN15+olWjGvDWOE7rdSs6ffIChik3nA4KdtYdF890Rd/7PHao1ZrO1qadNrfITO4krlbWqyg==; 5:B4CBjrVcYuNtba/ZeQLTokW30T4yf33yjOECJ+KfQ3K29523Osg4Cv3cYcX/TpTxcpxzGOiEFLWG6RxYMLMjsdFKXjv51RNvnt+kW01G4wXZdlVTSQ436g9ECLXv1h04gXIvlLFtp/EDX5+qLww8y8Xu1ZlhDHNEhqYMx0/+Xm8qeTnXaFFMvMJNU8Y+TkXKa5mmopywqjc4b/wVAh7rfg==; 7:+Q8O0gCAmnMEQ3J9nWr32OD7jUPwVniDtB4CjUY722NZ2wgjHR2nIQKZZhT8gPT2JkLdVJT5FjXhSzw9jfLnBi5PUdk8uKx+XHiy/wrGAvEn1Ay4uSLOuoHHuu2i/j9ukd7jEcHFsMM+kQ1/YgdPLA==
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: 0307ecc0-5c60-4daa-e7e4-08d675a42688
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(4618075)(2017052603328)(7153060)(49563074)(7193020); SRVR:AM6PR03MB5127;
x-ms-traffictypediagnostic: AM6PR03MB5127:
x-microsoft-antispam-prvs: <AM6PR03MB5127D7EEE13592FDFF88496CF98A0@AM6PR03MB5127.eurprd03.prod.outlook.com>
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(3230021)(908002)(999002)(5005026)(102415395)(6040522)(8220060)(2401047)(8121501046)(3002001)(3231475)(944501520)(4983020)(4982022)(52105112)(93006095)(93001095)(10201501046)(6055026)(6041310)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:AM6PR03MB5127; BCL:0; PCL:0; RULEID:; SRVR:AM6PR03MB5127;
x-forefront-prvs: 0911D5CE78
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(376002)(346002)(366004)(396003)(136003)(189003)(199004)(256004)(33656002)(966005)(5660300001)(45080400002)(106356001)(86362001)(97736004)(186003)(7066003)(25786009)(316002)(26005)(486006)(478600001)(53936002)(71200400001)(6306002)(9686003)(105586002)(3480700005)(54896002)(236005)(54556002)(71190400001)(53376002)(53386004)(2351001)(7696005)(14454004)(476003)(81156014)(81166006)(3846002)(6116002)(1730700003)(7736002)(606006)(99936001)(99286004)(55016002)(6916009)(74316002)(6506007)(66066001)(733005)(102836004)(2906002)(68736007)(2501003)(8676002)(8936002)(861006)(6436002)(9326002)(5640700003)(45103001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR03MB5127; H:AM6PR03MB4552.eurprd03.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: rad.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: JdRnv6j8B6GjByA4RMRvPFr/069tDVHSaS9113VF3jIXzLPhfSsB7cVGxnnKzXJFeTgQXEyHLuj8qHqAk9Axo0ycrVUcPf97yh2RUF/zKJmx/lI1QdrX6oil3aYBIzPg9RzibGs/ZTAiuMYY/lwTldZZ8qMHokDFlI8gsm1mkSQlGkBuu2lpyCn7FQoBzjYsx9TUwPU0bb4/6YyMScPlm8AGVQZRo3p5HXh9EZyqDH9BvGr0zxyw5IpqHwd0fdKxguHHgYBDsHbtv7JFWZGE1DrMpbZXkz0pmod/5QkWmVkdpKDbM9A6jwcFPh43IH0s
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/related; boundary="_004_AM6PR03MB45528D27D49E7F090012326BF98A0AM6PR03MB4552eurp_"; type="multipart/alternative"
MIME-Version: 1.0
X-OriginatorOrg: rad.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 0307ecc0-5c60-4daa-e7e4-08d675a42688
X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jan 2019 20:01:59.9665 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: f9047108-cc2c-4e48-97a3-43fad1b3bf9d
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR03MB5127
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/nEo8RC4FpBRWPyeCC8DiLmADLsw>
Subject: [Netconf] Advertisement of imported features
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: Tue, 08 Jan 2019 20:02:14 -0000

Hi,

Not sure whether import of features from one module to the other is fully supported by YANG and NETCONF.

For example, with these modules:

module alpha {
  namespace "http://example.com/alpha";
  prefix "a";

  feature a-feature;

  leaf aoo {
    if-feature a-feature;
    type string;
  }

  leaf a2 {
    type string;
  }

}


module beta {
  namespace "http://example.com/beta";
  prefix "b";

  import alpha {
    prefix a;
  }

  leaf boo {
    if-feature a:a-feature;
    type string;
  }

  leaf b2 {
    type string;
  }

}

The intension is re-use of the feature "a-feature" in the importing module "beta".

Now, how should a server advertise the support of "a-feature" in module "beta"?


1.      YANG 1.0
According to section 5.6.4 of RFC6020 the NETCONF <hello> message is used.
So, I assume the <hello> should contain the following:
<capability>
  http://example.com/beta?module=beta&amp;features=a:a-feature
</capability>

Is the above a valid capability?


2.      YANG 1.1
According to section 5.6.4 of RFC7950 the "ietf-yang-library" defined in RFC7895 must be implemented.

The relevant node definition from RFC7895:

       leaf-list feature {
         type yang:yang-identifier;
         description
           "List of all YANG feature names from this module that are
            supported by the server, regardless whether they are defined
            in the module or any included submodule.";
       }

But the pattern of the typedef "yang:yang-identifier" does not permit a prefix.

Can this be fixed in draft-ietf-netconf-rfc7895bis ?


Regards,

Muly


[RAD.jpg]

Muly Ilan
Senior System Architect
M: +972-54-470-1004 | muly_i@rad.com<mailto:muly_i@rad.com>
T:  +972-3-765-7035   | F: +972-3-644-0898

www.rad.com<http://www.rad.com>  |  Follow RAD on LinkedIn<http://www.linkedin.com/company/7369/>  |  Facebook<http://www.facebook.com/pages/RAD-Data-Communications/72479223117>  |  Twitter<http://twitter.com/raddatacomms>  |  YouTube<http://www.youtube.com/user/radwebmaster#g/u>