[netmod] YANG definition of MAC address

"Rob Wilton (rwilton)" <rwilton@cisco.com> Wed, 01 April 2020 10:20 UTC

Return-Path: <rwilton@cisco.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 1C9C83A03ED for <netmod@ietfa.amsl.com>; Wed, 1 Apr 2020 03:20:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.599
X-Spam-Level:
X-Spam-Status: No, score=-9.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, 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 header.b=g3D5cZ96; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=TKHUieJW
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 ZGUkkoEL68nW for <netmod@ietfa.amsl.com>; Wed, 1 Apr 2020 03:20:15 -0700 (PDT)
Received: from alln-iport-2.cisco.com (alln-iport-2.cisco.com [173.37.142.89]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4BBD43A0366 for <netmod@ietf.org>; Wed, 1 Apr 2020 03:20:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=8057; q=dns/txt; s=iport; t=1585736415; x=1586946015; h=from:to:cc:subject:date:message-id:mime-version; bh=YnD4nh4aY3JDgnOR0FhgXF0DkT8apfpQnjEpgoggKJc=; b=g3D5cZ96Dn5/v6AFK4ugQUnOH+DVthTKt2OnDAsm0ol398vyyWggncUO MVHohBnqNWZZi6sWF3kSQ+2ymlqmiUvLUSC+clgW4L8WYtx0VwRgRMJAM YGQvciFsBcXdfwetpQhrgsNJYWvw6omnKfZxQfn7cBwHAeLRbq1V+cU/j s=;
IronPort-PHdr: =?us-ascii?q?9a23=3AI4EiLhfoSQ5C4nT+RE4JsxYLlGMj4e+mNxMJ6p?= =?us-ascii?q?chl7NFe7ii+JKnJkHE+PFxlwGRD57D5adCjOzb++D7VGoM7IzJkUhKcYcEFn?= =?us-ascii?q?pnwd4TgxRmBceEDUPhK/u/dTM7GNhFUndu/mqwNg5eH8OtL1A=3D?=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0DPCwAKaoRe/5tdJa1mg2YvUAVsWCA?= =?us-ascii?q?ECyoKh1UDim2WG4RhglIDVAoBAQEMAQElCAIEAQGERAKCNiQ4EwIDAQELAQE?= =?us-ascii?q?FAQEBAgEFBG2FVgyFcxYbEwEBNwERARpmFw8BBA4NGoMFgX5NAy4BAwuifgK?= =?us-ascii?q?BOYhigieCfwEBBYEvAYNpGIIMAwaBOIwxGoFBP4FYhXIBAQOBZCuDF4Islnq?= =?us-ascii?q?ZdwqCPYdhj1Obbpgzkm0CBAIEBQIOAQEFgWkigVhwFYMnUBgNkhCFFIVBdIE?= =?us-ascii?q?pjFQBgQ8BAQ?=
X-IronPort-AV: E=Sophos;i="5.72,331,1580774400"; d="scan'208,217";a="471379967"
Received: from rcdn-core-4.cisco.com ([173.37.93.155]) by alln-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 01 Apr 2020 10:20:13 +0000
Received: from XCH-ALN-002.cisco.com (xch-aln-002.cisco.com [173.36.7.12]) by rcdn-core-4.cisco.com (8.15.2/8.15.2) with ESMTPS id 031AKBjC014037 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 1 Apr 2020 10:20:13 GMT
Received: from xhs-rcd-001.cisco.com (173.37.227.246) by XCH-ALN-002.cisco.com (173.36.7.12) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 1 Apr 2020 05:20:12 -0500
Received: from xhs-aln-001.cisco.com (173.37.135.118) by xhs-rcd-001.cisco.com (173.37.227.246) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 1 Apr 2020 05:20:12 -0500
Received: from NAM10-MW2-obe.outbound.protection.outlook.com (173.37.151.57) by xhs-aln-001.cisco.com (173.37.135.118) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Wed, 1 Apr 2020 05:20:12 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Zk7dTlY1Hxba199kkX5OF3FW8jGxFCAHuG21fR10HSeouiW7VqkVUJgvcTKRckOX6z0tXkQHvfLmQYM2X69+fR9btk5q+zBF6ZCF74ATMiZvm+1DqeNgeLV40bD2qFVrE4Yna7I4ynvlqFPqrAowXjGCzMHEBKI5q8e4kCo5E/FJ1v/TC5uGAZAqAumDag1JYehDDnwzspAz5SG7V7peR/eC9UYSBBEzmBe9AzOie3O2tS4CZG57vYAAtiswwwgj3I90IC6zno/iXhOUh0vj8Bamb7TF4L8SAhka/6qLivh8LxUxf0SzvNXpX3eJStyWavz57ud/7O//HG7uRaLVSA==
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=N4MljNHsaf6ZTBieXDJnEL1R7KSj66AYdPF3i6AKn1k=; b=nGO71GmvifZGxJZ+3I0+JUX0COE0Os029NtP5OZyzXaoY4G0ftYJegS0jUYKzv4xU1Lr1Cpi4lNwi94zKyrb7M3ACns/BnhYzhQ6XF9Qb1psEAbswWTcIkSzcJBWvYpYKPoGs6KI2PV+He5NnZTcNp+ToI3ec3uQwpukNaimI9D0wTgmEbXXE9QiHgA2CxTNoATuTGAb8uRwgtBeFZ6AuNfogtki7rGxBar38qEtJWTZ4liTGt1Hct3jqWah8is54SqtpzlnwEkEAQYezmPZDzZ3GZ17+sBFlUq8bI4YMZifuiTTlxJ1QyGQK5ehNnIru2aOEvaI9ogl49qsnA7Nig==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=N4MljNHsaf6ZTBieXDJnEL1R7KSj66AYdPF3i6AKn1k=; b=TKHUieJWR9faytm+U52DlX8AZ0KioCKtNSsY5rgXq2ty5MkH5xQCGMX2FWz6ztHHxp1CvHis8HrcvEmtea6NL5HTdApIg9tKtsyCD8U8bzDzOu4V1jwM6uy710bZWayW0CuJQe7FQH55RbYvHypvdwH4PHOoWt4gwfzQhzZ0mOE=
Received: from MN2PR11MB4366.namprd11.prod.outlook.com (2603:10b6:208:190::17) by MN2PR11MB4742.namprd11.prod.outlook.com (2603:10b6:208:26b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.20; Wed, 1 Apr 2020 10:20:11 +0000
Received: from MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::3:2164:a8e2:33b3]) by MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::3:2164:a8e2:33b3%5]) with mapi id 15.20.2856.019; Wed, 1 Apr 2020 10:20:11 +0000
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: NetMod WG <netmod@ietf.org>
Thread-Topic: YANG definition of MAC address
Thread-Index: AdYIDhp8gPhYGk53RUafwJ2D/bEblg==
Date: Wed, 1 Apr 2020 10:20:10 +0000
Message-ID: <MN2PR11MB4366ABF427070927849E4A03B5C90@MN2PR11MB4366.namprd11.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=rwilton@cisco.com;
x-originating-ip: [82.15.79.32]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: c1cf489e-2f27-49bc-f24a-08d7d626429b
x-ms-traffictypediagnostic: MN2PR11MB4742:
x-microsoft-antispam-prvs: <MN2PR11MB4742AD9332E561D677A0FA7CB5C90@MN2PR11MB4742.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:8882;
x-forefront-prvs: 03607C04F0
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4366.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(39860400002)(396003)(376002)(366004)(136003)(346002)(66446008)(81156014)(81166006)(66476007)(66946007)(66556008)(5660300002)(966005)(52536014)(186003)(7696005)(26005)(76116006)(64756008)(8936002)(4326008)(6506007)(8676002)(71200400001)(9686003)(33656002)(2906002)(316002)(6916009)(86362001)(55016002)(478600001); DIR:OUT; SFP:1101;
received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: KsuadtlSVPoYBPnrBnQIszwxL/OecUXyYQO+VfEHyx3rYPX+jwREzqFlxt+ElwHJS/Vdnc/XckzkrOlAFF2u6TvF07FMt9LpSRa1Rw9Sp8mw95bJJU4oXSAvLYXjDhN0ZA5XOPL8bVrJkNfKAXBpySxQcccYggan0m7zB6Mk2BgbOsI3i4s2sEgk/tKZJlRMT221VrjuvJP4VEJ5moPrB9hmQQAqZdvPpu1FF8xY2AAtIi+qnpLVnkCuwzL86GHonsVy0J3B8YGe/JkxURpNWNT4UvpVPa+eO7FJZfDxDEoua2RCfog3V7xLVa2QCNiGAfJKVPhZAx4+V81ES/WutS5XwcqDrmv80GZhZuaY6DeHWk9h61WxY+gRkIc2TsZyPCvVxxUPxeUs4Dbp4r79XdnxBB7A5lwBGceqFurMJk6vqxeTxL2JdXniKTMPq8DI6DhAvfGFsNUqLtdeKucqNAWZAwGksflckfz7fuNlvCePZE7rPjAalE0IfZQlZEB7pmkjjDky/Q2LrKKOIJrFOw==
x-ms-exchange-antispam-messagedata: 3sJUVL2t6pJNCKLWOq0IsiRKBjNSBf4Dp+lkxBGGKqO8hC3WU2YCBMTOGyOtYqVxwuNvJXAA/oeTm8SM48rVjMPNOtJCER2z5BgYFPvCwRN3rzzLo2o9btXxo60XNzL4Uu8DaKjxU8vPqaI+yyBeNQ==
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_MN2PR11MB4366ABF427070927849E4A03B5C90MN2PR11MB4366namp_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: c1cf489e-2f27-49bc-f24a-08d7d626429b
X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Apr 2020 10:20:10.4705 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: RRNKWNmwI6m8QYVaXC3eTAca+KjY5Lz734DC30sP91pTtTI0p0kRPO5hFKRznQ6SFIGkD2r2lGzj9H89SGBNiQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4742
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.12, xch-aln-002.cisco.com
X-Outbound-Node: rcdn-core-4.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/jBoB-H-ki_Y_UbdJpChqtAkDRm0>
Subject: [netmod] YANG definition of MAC address
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: Wed, 01 Apr 2020 10:20:17 -0000

RFC 6991 defines MAC address using colons:


     typedef mac-address {

       type string {

         pattern '[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}';

       }

       description

        "The mac-address type represents an IEEE 802 MAC address.

         The canonical representation uses lowercase characters.



         In the value set and its semantics, this type is equivalent

         to the MacAddress textual convention of the SMIv2.";

       reference

        "IEEE 802: IEEE Standard for Local and Metropolitan Area

                   Networks: Overview and Architecture

         RFC 2579<https://tools.ietf.org/html/rfc2579>79>: Textual Conventions for SMIv2";

     }

IEEE has their own definition using dashes instead of colons, i.e. the pattern is "[0-9a-fA-F]{2}(-[0-9a-fA-F]{2}){5}".

E.g. from https://github.com/YangModels/yang/blob/master/standard/ieee/draft/802/ieee802-types.yang

There has been some suggestion from folks in IEEE that they would like us to deprecate the IETF definition and migrate to the IEEE definition.  However, this would end up being an NBC change and doesn't seem to be great from an interoperability POV.

Another, possibly more pragmatic, suggestion would be the change both definitions to accept either ":" or "-".   I.e. the pattern statement would become:  "[0-9a-fA-F]{2}([-:][0-9a-fA-F]{2}){5}";

What are folk's opinions of including this change in RFC 6991bis?

Thanks,
Rob