[CCAMP] draft-ietf-ccamp-client-signal-yang references to bandwidth profiles, make it a leafref

"Roque Gagliano (rogaglia)" <rogaglia@cisco.com> Mon, 15 June 2020 17:01 UTC

Return-Path: <rogaglia@cisco.com>
X-Original-To: ccamp@ietfa.amsl.com
Delivered-To: ccamp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9C6933A0112 for <ccamp@ietfa.amsl.com>; Mon, 15 Jun 2020 10:01:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.597
X-Spam-Level:
X-Spam-Status: No, score=-9.597 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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=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=QiA5wggA; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=E6ttrd8e
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 Iqv-qO9INH5d for <ccamp@ietfa.amsl.com>; Mon, 15 Jun 2020 10:01:54 -0700 (PDT)
Received: from alln-iport-3.cisco.com (alln-iport-3.cisco.com [173.37.142.90]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8DABD3A00D2 for <ccamp@ietf.org>; Mon, 15 Jun 2020 10:01:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=11669; q=dns/txt; s=iport; t=1592240514; x=1593450114; h=from:to:subject:date:message-id:mime-version; bh=Yh5BR8XEqL6tO0QrTFazvigZPlq9Bhvhr3xaMsCjVw0=; b=QiA5wggA3J3G53AhSuJo8llvpcN7QMpeARvrD9Hy9s0qsgbsT9Lj/QL9 u6ufvJHtXVZ36j+GJK47rn813YsX6K9NjaBTSI0vH2BnL5rIA/W7TDjoN 49XkOR1niwJ54JnizR7d4tfMz7rDixtQC/SUQYz0z3Sxh5Z5S/Wlg9rk6 E=;
X-IPAS-Result: A0BuDAByqOde/5pdJa1mg3YvUQdvWC8sCoQag0YDjRiUD4RoglIDVQsBAQEMAQEtAgQBAYRdghgCJDgTAgMBAQEDAgMBAQEBBQEBAQIBBgRthVsBC4YLER0BATAIEQFKAgQwJwQ1gwQBgX5NAy4BA6ohAoE5iGF2gTKDAQEBBYUuGIIOCYE4gmSJZhqBQT+BOAwQilwzggsijxmDCoY3JptBCoJZjl2KPgMdnmeCMoRxiXSeLQIEAgQFAg4BAQWBaiIpgS1wFWUBgj5QFwINjlWDOopWdDcCBgEHAQEDCXyPBwGBEAEB
IronPort-PHdr: 9a23:hPZNMRTEAwe+P0oqQczcXamIu9psv++ubAcI9poqja5Pea2//pPkeVbS/uhpkESQBN+J6v9YhazRqa+zEWAD4JPUtncEfdQMUhIekswZkkQmB9LNEkz0KvPmLklYVMRPXVNo5Te3ZE5SHsutZlDOrDu19zFBUhn6PBB+c+LyHIOahs+r1ue0rpvUZQgAhDe0bb5oahusqgCEvcgNiowkIaE0mRY=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-AV: E=Sophos;i="5.73,515,1583193600"; d="scan'208,217";a="486229476"
Received: from rcdn-core-3.cisco.com ([173.37.93.154]) by alln-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 15 Jun 2020 17:01:53 +0000
Received: from XCH-ALN-003.cisco.com (xch-aln-003.cisco.com [173.36.7.13]) by rcdn-core-3.cisco.com (8.15.2/8.15.2) with ESMTPS id 05FH1rkZ024868 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL) for <ccamp@ietf.org>; Mon, 15 Jun 2020 17:01:53 GMT
Received: from xhs-rcd-002.cisco.com (173.37.227.247) by XCH-ALN-003.cisco.com (173.36.7.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 15 Jun 2020 12:01:52 -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.1497.2; Mon, 15 Jun 2020 12:01:51 -0500
Received: from NAM11-CO1-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.1497.2 via Frontend Transport; Mon, 15 Jun 2020 13:01:51 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HAQJvmRO5rK65rJvKhzjLKeyqgWEvyCLdVy0TgbqsxNKIuD8kQnUWt20cPig6Z+c8K1Gao49wLBR7bvNnID5C/MAuQ6nUTkOCud5mo7Te0kDV/dx0JEx03wrQvgh4tCyoDfi3VHR6XfLaFeoCd74F4zUvFUP2IOSFJLKBW8B0pZdyrYBTqBVTbLr7B/yb7TQdqRj0zFdD9oJDbmQOvdRvu2i37YhTcALdSz+n7kHASPZN/KBFQxdynuUdSEIoUuKe7vp0iDL0f3FNKJChhQWMBrYs4Do6Yu9F7n9LL5qVcMAktIwGQY3FeN8n0X9wDR2wiIVY13TIjXcxKR8YsnQiw==
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=Yh5BR8XEqL6tO0QrTFazvigZPlq9Bhvhr3xaMsCjVw0=; b=ORDPTgmYmZAdLOmpcp+Nj1oJ+YMU933ZrBU7XkKg/NtpS4jkGP/Yx6kA6lr4ERNPvDW+35OCFbuUoZ/CGbHtkpMwx9yRKnLhTPpvbFKBqGWciCN0C/X0DuCywP8NJRw7Wp/wnp8CRQVdkSpFwKnnF73S0Z2keza+RU2UDif/vVIFJsxestTqoB8VbU/LAHtyh8/XeUjLNmiI27jWiCQmmE3vzvSPYR642QIZFPaspji0NdUlt0Zyo5THcTDAJVtrkKuLQtJZdCpU/zuuTsMQqpxQQkO3nxnCo1vcM3ace7NXntmIB3d5P0ugq7aX8kYSVL/jK1YRAdoUS+3lOlgYjQ==
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=Yh5BR8XEqL6tO0QrTFazvigZPlq9Bhvhr3xaMsCjVw0=; b=E6ttrd8ex8gNdQG8bEhfqI6CDnQrVSY7rgGuvDYmeeqMr95PDg2tItg1hBV68ex5IC2h/SwKWHP9SBxhEu6LQRH3dlruuEEXrdfoIJIotvDD+c7Fa9OQXAdaomIkwjQyfH4kJ9pJOi7L0SMEJ8cfL+7dan/DCpcfIBaGRNph5/g=
Received: from CY4PR11MB1703.namprd11.prod.outlook.com (2603:10b6:903:28::23) by CY4PR11MB0037.namprd11.prod.outlook.com (2603:10b6:910:77::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.24; Mon, 15 Jun 2020 17:01:50 +0000
Received: from CY4PR11MB1703.namprd11.prod.outlook.com ([fe80::5df3:d5c3:6d75:8091]) by CY4PR11MB1703.namprd11.prod.outlook.com ([fe80::5df3:d5c3:6d75:8091%3]) with mapi id 15.20.3088.028; Mon, 15 Jun 2020 17:01:50 +0000
From: "Roque Gagliano (rogaglia)" <rogaglia@cisco.com>
To: "ccamp@ietf.org" <ccamp@ietf.org>
Thread-Topic: draft-ietf-ccamp-client-signal-yang references to bandwidth profiles, make it a leafref
Thread-Index: AQHWQzap22hcDI5rAEOzSRbUxA96BA==
Date: Mon, 15 Jun 2020 17:01:50 +0000
Message-ID: <78319D17-A63B-4349-82C9-C564D25B21BB@cisco.com>
Accept-Language: en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.37.20051002
authentication-results: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=cisco.com;
x-originating-ip: [31.10.166.81]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 9ec5cfc6-07c2-4df3-c84c-08d8114dcc20
x-ms-traffictypediagnostic: CY4PR11MB0037:
x-microsoft-antispam-prvs: <CY4PR11MB003775CE38FBAB4EAD808317D89C0@CY4PR11MB0037.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 04359FAD81
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: ZNSJcJWG4EOItaVPA0pP31iekeWh5/FVZNXDy3T/ttBk5gTYw2Qk6HWMqHIPvSJxhyNgrqqMsNvLJuqaYHBYvfq0EyFtHySngfv7Zi6hmLY3jiZd4qPbUEIQq3GWFOwR5H10MlggwqCpZuaj8mTEBaoIE+0HTpL8/K2IhxhuEea0bR/eEFv/N91biVtgbzHvZHlZ2JYxG8Zq9lfwFiZ2p2Rylp//AzOb8c+QrrwrEx5JuT4mqEfUfU+BHKUToricOFBAYn2589VCBkY7GyIpHFRoC9NTiFR4IqeDJcXJPdSCStosm5kOUJh+22IuyjIA
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CY4PR11MB1703.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(366004)(396003)(136003)(346002)(376002)(6916009)(36756003)(478600001)(6512007)(33656002)(71200400001)(8936002)(83380400001)(8676002)(91956017)(316002)(2616005)(86362001)(66446008)(76116006)(66946007)(66476007)(66556008)(64756008)(6486002)(186003)(26005)(5660300002)(2906002)(6506007); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: 1Ii3VTKP8wSze9yfL9MAR5OxN5CF7fMNtomuGqhxlmt6puhJPuP6yCQES+Yrsa9m0TQwo3JIdiFuHpSFIwlrGaFM9uHqLllrGILywkFXNTYmo98Un/R1ETlkN2OaMSOJb/7jbT94uwaYqQSzMgHNgZWOXO0Dbm80SM0FulElh/ATRwTvzypUNrxskEF6vlOh7E1C8NrnTVj76JuNVN/w/sojnFsfdbs7OwxhyXv9OCvfTi1Z2NfA9AOeVwzPB35Li7EFzwiuuxHE01UjEi+YdGesDAzwa2zXCzfEgnvoGCXS4SASmpGdWz4l+XWpWJZBxZXuLoNkz6xXHrbmz9dnEzF1qrRIF2RhEBn2gs8krZs1+MFAti+ggr+BIcM3WoKr6SLuAJzl9Ma/iJA7ztHP5XedQIWP32QQbWZ83lKjA7lOdrDiPHThEMfBiKzFkA1bFD3jYzWRvRReXUBnzBND1Atp6NkbfEV9vwutUVDI2VM=
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_78319D17A63B434982C9C564D25B21BBciscocom_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 9ec5cfc6-07c2-4df3-c84c-08d8114dcc20
X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jun 2020 17:01:50.6850 (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: +X9BBfDyiUqy/emR/h7jyDciIW5Y/0LBwdYfAYPdHHZN3pxKklt3zrBG0nELtoOmLWgRq4+nJh2rg1pDtNOFgg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR11MB0037
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.13, xch-aln-003.cisco.com
X-Outbound-Node: rcdn-core-3.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/ccamp/3sZ98qEpG9_dmkJyFA1aghEI3BA>
Subject: [CCAMP] draft-ietf-ccamp-client-signal-yang references to bandwidth profiles, make it a leafref
X-BeenThere: ccamp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussion list for the CCAMP working group <ccamp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ccamp>, <mailto:ccamp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ccamp/>
List-Post: <mailto:ccamp@ietf.org>
List-Help: <mailto:ccamp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ccamp>, <mailto:ccamp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jun 2020 17:01:57 -0000

Hi,

I implemented the draft and I think the bandwidth-profile should be a leaf-ref and not a string (for both directions symmetrical and asymmetrical):

          |  +--rw (direction)?
          |  |  +--:(symmetrical)
          |  |  |  +--rw ingress-egress-bandwidth-profile
          |  |  |     +--rw (style)?
          |  |  |        +--:(named)
          |  |  |        |  +--rw bandwidth-profile-name?
          |  |  |        |          string                   • We need a leafref to the definition of the bandwidth-profile
          |  |  |        +--:(value)

In particular, I believe it should be:
type leafref {

                   path "/ethtsvc:etht-svc/ethtsvc:globals/ethtsvc:named-bandwidth-profiles/ethtsvc:bandwidth-profile-name";
               }

Why is this important? As an implementor, I need to understand the relationship between these nodes in order to select the right order of RESTCONF commands.

If the leafref is not present, I would assume that the nodes are not related and I could try to delete a “named-bandwidth-profile” that is actually used in a service. Also, when I am trying to delete both a “named-bandwidth profile” and all its associated services, I would need to delete the service first and the profile later (when there Is not instance that reference it).

For all of this to happen, as both nodes belong to different trees, I need to reference them to make the association explicit for a compiler.

Regards,
Roque