Re: [yang-doctors] A compact way to compare a type in YANG

"Acee Lindem (acee)" <acee@cisco.com> Mon, 16 March 2020 14:14 UTC

Return-Path: <acee@cisco.com>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5BA4F3A08FC for <yang-doctors@ietfa.amsl.com>; Mon, 16 Mar 2020 07:14:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.6
X-Spam-Level:
X-Spam-Status: No, score=-9.6 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, 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=JHEuQ5qj; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=Dgi2TkIR
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 EncQ2Np9bPDK for <yang-doctors@ietfa.amsl.com>; Mon, 16 Mar 2020 07:14:53 -0700 (PDT)
Received: from rcdn-iport-1.cisco.com (rcdn-iport-1.cisco.com [173.37.86.72]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4ACFF3A07FD for <yang-doctors@ietf.org>; Mon, 16 Mar 2020 07:14:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3126; q=dns/txt; s=iport; t=1584368093; x=1585577693; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=XRdUkIHhB4LSt0igVjDag04u0EnVnBd1Z51GKr1ev3g=; b=JHEuQ5qjRYlroNiqTIwBBlj5zQiYflkgWSiOvox6hr6K/+XlMsyGagoj cDZeDaULu2Tbq05N+6WDsjApoOUeYwpu3elwjoJYaWM5Y84YmOXWV+Roj K31tdsVluvTzxAKopNA0XljF/D9/KRX3IVU+ywi6JGMG+/FGtZvIEPwdo g=;
IronPort-PHdr: 9a23:2wsOshUktFvL5Ng59uslZL9hMETV8LGuZFwc94YnhrRSc6+q45XlOgnF6O5wiEPSANiJ8OpK3uzRta2oGXcN55qMqjgjSNRNTFdEwd4TgxRmBceEDUPhK/u/Zic3EexJVURu+DewNk0GUMs=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CxAADjiG9e/4UNJK1lGgEBAQEBAQEBAQMBAQEBEQEBAQICAQEBAYF7gVRQBWxYIAQLKoQWg0UDinGCX5gYglIDVAkBAQEMAQEYCwoCBAEBhEMCF4IKJDgTAgMBAQsBAQUBAQECAQUEbYVWDIVjAQEBAQIBAQEQEREMAQEsCwELBAIBCBEEAQEBAgImAgICJQsVCAgBAQQBDQUigwQBgkoDDiABDqFOAoE5iGJ1gTKCfwEBBYEzAoNdGIIMAwaBDiqMLhqCAIE4IIJNPoJkAQECAYRzMoIKIpBwn1EKgjyHVo8bFgebQ48EiQGSWgIEAgQFAg4BAQWBaSKBWHAVOyoBgkFQGA2OHYNzhRSFQXQCAYEmjW8BAQ
X-IronPort-AV: E=Sophos;i="5.70,560,1574121600"; d="scan'208";a="733742024"
Received: from alln-core-11.cisco.com ([173.36.13.133]) by rcdn-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 16 Mar 2020 14:14:52 +0000
Received: from XCH-RCD-001.cisco.com (xch-rcd-001.cisco.com [173.37.102.11]) by alln-core-11.cisco.com (8.15.2/8.15.2) with ESMTPS id 02GEEqJ8003555 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Mon, 16 Mar 2020 14:14:52 GMT
Received: from xhs-rcd-002.cisco.com (173.37.227.247) by XCH-RCD-001.cisco.com (173.37.102.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 16 Mar 2020 09:14:51 -0500
Received: from xhs-rtp-003.cisco.com (64.101.210.230) by xhs-rcd-002.cisco.com (173.37.227.247) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 16 Mar 2020 09:14:51 -0500
Received: from NAM02-SN1-obe.outbound.protection.outlook.com (64.101.32.56) by xhs-rtp-003.cisco.com (64.101.210.230) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Mon, 16 Mar 2020 10:14:51 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y+MsawQhquL/725mkoSDO4aM57UQW9VIi6tW+U1TlCdSDslaAYrRD4LeG3ZeG7WuwVPtefFarnK0wCtwMFAIEazKUUYGxq6W2W3fOzmStohGYtLw0g9gdBR326PYV2FLtpr0G9+MMqcTUNfBd6av65D0lVymXVKil1lSoi3n0uyeUoUeD9jXUWmoEo353VhpwtWOPRcKskyafqWWbN0KrCA/qigPRBUbjJPyXXWCgV8fj9v8e424RPAZr1jtPUOnf71ab62SMQ8XxyCiaE0hHBfGsJEQbAqU2RcPaWafDoIedXl/zRY2l74avBl+MA/GqcjRBuHhF92+H4rFJ4y0VQ==
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=XRdUkIHhB4LSt0igVjDag04u0EnVnBd1Z51GKr1ev3g=; b=jAOeor5MR4zz7AbJ9AX4dQ5lJA23mUW/vCUr6kc5hemkYfNOSBhY/mBiArVZpTmj/HthkqEuca6v2WrhVmJkXTLEAWsd6ljFb41ZvDCfSO736NicK2dXYgYibEXk/O5i1BXXBV8A1XSr8TzL82fibiHg0t4oo3ZwbWlipgpBNGdZX/ExNrQFwkmEQ9rdzgVEpTrs440xpHBgEOJCWQN6bIlv+Hl8LNRs6PeOWpCGu4WCtYvnsMmFL7H2PJQ0jegDR570lqe1n2N4pr2V7Q1iSYNLab3luNETEDXilxB8aCfuXJkRLU60zq5v+nGt9v1a1GNwQEXRRZwIRD9rOvREHg==
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=XRdUkIHhB4LSt0igVjDag04u0EnVnBd1Z51GKr1ev3g=; b=Dgi2TkIR38EXUPh7c8L/zklIQC4SNE2iJnNAmWX0WT3qaXGybFATPtuCEuhtrUezuUhP9PqfKUN7rcYXHjMTIGFK0chiYN4Jj7/hI5Dfscv/uVgSicQQPQMpttcgquO0Z+tuQh6MCmfAzPNTx2T302WGl/d3643tKg33YqWvhmM=
Received: from BN8PR11MB3794.namprd11.prod.outlook.com (2603:10b6:408:8f::13) by BN8PR11MB3649.namprd11.prod.outlook.com (2603:10b6:408:84::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.14; Mon, 16 Mar 2020 14:14:49 +0000
Received: from BN8PR11MB3794.namprd11.prod.outlook.com ([fe80::55b2:c415:675f:5fb7]) by BN8PR11MB3794.namprd11.prod.outlook.com ([fe80::55b2:c415:675f:5fb7%3]) with mapi id 15.20.2814.021; Mon, 16 Mar 2020 14:14:49 +0000
From: "Acee Lindem (acee)" <acee@cisco.com>
To: "Rob Wilton (rwilton)" <rwilton=40cisco.com@dmarc.ietf.org>, "scott.mansfield=40ericsson.com@dmarc.ietf.org" <scott.mansfield=40ericsson.com@dmarc.ietf.org>
CC: "yang-doctors@ietf.org" <yang-doctors@ietf.org>
Thread-Topic: [yang-doctors] A compact way to compare a type in YANG
Thread-Index: AdX7fruOjGZs2vgKT+ejQsikh43dzAABQBmAAAUw8KD//8ZxgA==
Date: Mon, 16 Mar 2020 14:14:49 +0000
Message-ID: <EDE571CB-3E27-45CD-AC34-7A4DF1F74103@cisco.com>
References: <DM5PR15MB1772345A25C69265D681A5258BF90@DM5PR15MB1772.namprd15.prod.outlook.com> <20200316.121209.2148431500798425289.id@4668.se> <MN2PR11MB43667FA31EDC4434F8D5B426B5F90@MN2PR11MB4366.namprd11.prod.outlook.com>
In-Reply-To: <MN2PR11MB43667FA31EDC4434F8D5B426B5F90@MN2PR11MB4366.namprd11.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.35.20030802
authentication-results: spf=none (sender IP is ) smtp.mailfrom=acee@cisco.com;
x-originating-ip: [2001:420:c0c8:1006::29d]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 4a2002c5-d621-4903-015d-08d7c9b4635b
x-ms-traffictypediagnostic: BN8PR11MB3649:
x-microsoft-antispam-prvs: <BN8PR11MB3649805B2FE8853626EACA10C2F90@BN8PR11MB3649.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:8273;
x-forefront-prvs: 03449D5DD1
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(39860400002)(136003)(346002)(396003)(366004)(199004)(8676002)(66946007)(81166006)(81156014)(8936002)(66446008)(64756008)(66556008)(966005)(66476007)(186003)(33656002)(5660300002)(2616005)(86362001)(53546011)(6506007)(316002)(110136005)(2906002)(36756003)(6486002)(4326008)(478600001)(6512007)(76116006)(91956017)(71200400001)(43043002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN8PR11MB3649; H:BN8PR11MB3794.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1;
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: iT5NhYwIcZyhzxkBupoaBhJ8KaKnyRt5/CyVsdfjFpLEJ2ukzxEXRThVWPfDPPZRA0HazeR/qILC1z/to133VyH4sqRhmruw15K7y6++s2Z5hpkJQepV9yUtPgLPk7rwZ6G+J5b5KovjJHKc1SHebRzNtMiwss2cTbZ6bMEI5qSS70GcvI7Q1ZxvE98wtgjXFzUa33mEmn4g3RaK++MClVVMcTM5YW+V32z61oJPR8SWJYmXZ9TZLmfGwSwqNfw0hGjVwo48rOGZdzY0m5aQKbG424MhDn9gB4RNx66XPocQ+I/RU5Xxgc/0dwLlQTOZaTiLlm9QasmDF+BYEJKfcSMaE+/iZUDqf6kaChVu0oTLV1nbJb/4WqVUl6ZCwYtuiRLwNohCuTB6CPqWmFBMdlW3+Jv4sN1UN6ROKafOL/KN6ecQ4I60DllErZYUQeIqpPV/E4wVB7nWw4abntWM/B5Aes0oCRImssPVGAkL7MVEAaJsO17yajb9mNwMHyWP6ZVNQaipv3b8wQvzIEjX7mhnHcgKKjktU/CLGlpya9zvcKyoP8T3zgs16eOrn2s2
x-ms-exchange-antispam-messagedata: Sli8eGh+K90o7/d4JEUaIRgNiR/zh+9Sc5u1kRZy9QEcqWi8JzTFb0MhTJVNi3qIMIcdtGj2Ln3WVEZ4HE/0eXDjc7wcNokcZu7wYeyQ3elyP4ob6SF0toDjrSmgfyS2IMHWv7uKuPA3RpivQhNYB7bUPdpLQoXBhEHKGzxts/I=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-ID: <BCBFD3FE3DCFA145B2C8FDD70A60EB2A@namprd11.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 4a2002c5-d621-4903-015d-08d7c9b4635b
X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Mar 2020 14:14:49.2570 (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: 1yBz/H97AV9hS14LaRY7v6+0nma8gim8aKm2JxfC53q2bn/mvrGIyf6pLTCxlrJ0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR11MB3649
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.11, xch-rcd-001.cisco.com
X-Outbound-Node: alln-core-11.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/Z_PfhDergHfsMW9JQezQiNZVoWA>
Subject: Re: [yang-doctors] A compact way to compare a type in YANG
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: Mon, 16 Mar 2020 14:14:56 -0000


On 3/16/20, 9:55 AM, "yang-doctors on behalf of Rob Wilton (rwilton)" <yang-doctors-bounces@ietf.org on behalf of rwilton=40cisco.com@dmarc.ietf.org> wrote:

    Hi Scott,
    
    > -----Original Message-----
    > From: yang-doctors <yang-doctors-bounces@ietf.org> On Behalf Of Martin
    > Björklund
    > Sent: 16 March 2020 11:12
    > To: scott.mansfield=40ericsson.com@dmarc.ietf.org
    > Cc: yang-doctors@ietf.org
    > Subject: Re: [yang-doctors] A compact way to compare a type in YANG
    > 
    > Hi,
    > 
    > Scott Mansfield <scott.mansfield=40ericsson.com@dmarc.ietf.org> wrote:
    > > Yang Doctors,
    > >
    
    [RW] 
    <snipped>
    
     
    > > Does YANG offer another mechanism for a more compact form to do what
    > > we want?
    > 
    > Not that I can think of.
    > 
    [RW] 
    It might helpful to note that some IETF protocol YANG models choose to put their interface configuration under the protocol rather than under the interface.
    
    E.g. https://tools.ietf.org/html/draft-ietf-isis-yang-isis-cfg-42
    
    All of the ISIS interface configuration (e.g. described in section 2.4) lives under the isis protocol instance rather than the top level "/if:interfaces/..." tree.
    
    I've not checked, but would expect for OSPF, BGP, L2VPN, etc to be modelling similarly.

Yes. 
    
    This would obviously be a bigger change to make to the 802.1Q YANG model, but I just wanted to make you aware of this alternative modelling option.

Right - since the scope of the protocol is a bridge domain (as opposed to a single interface), this would make sense. 

Thanks,
Acee

    
    Thanks,
    Rob
    
    
    > 
    > /martin
    > 
    > 
    > >
    > >
    > >
    > > Thanks for your consideration!
    > >
    > >
    > >
    > > Regards,
    > >
    > > -scott.
    > >
    > >
    > >
    > 
    > _______________________________________________
    > yang-doctors mailing list
    > yang-doctors@ietf.org
    > https://www.ietf.org/mailman/listinfo/yang-doctors
    
    _______________________________________________
    yang-doctors mailing list
    yang-doctors@ietf.org
    https://www.ietf.org/mailman/listinfo/yang-doctors