Re: [mpls] [netmod] YANG - Intended-Config & Applied-Config & Derived-State & Operational-state...grrrr... !!
"Rajiv Asati (rajiva)" <rajiva@cisco.com> Mon, 04 April 2016 19:57 UTC
Return-Path: <rajiva@cisco.com>
X-Original-To: mpls@ietfa.amsl.com
Delivered-To: mpls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B72A512D852; Mon, 4 Apr 2016 12:57:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.531
X-Spam-Level:
X-Spam-Status: No, score=-14.531 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, 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
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 1JFPSSRNgoRz; Mon, 4 Apr 2016 12:57:07 -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 62D7E12D64E; Mon, 4 Apr 2016 12:57:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=4300; q=dns/txt; s=iport; t=1459799827; x=1461009427; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=e/hHVts3lRt2j0pc9FY5+oyiKHyRnpuuuzfsOO4bI00=; b=F+PrnIw6hgD7KTdJKNBe6NriEKd0rz+ybJS99qvree5kCCUTJNkvWlHx xXdr3U+Z6gFxF7EOYnb1JzkrcKsOpARZMP2aGlR0/on26OHvDppFOu4rI KANyxm/T3qr5db9DOxgJvyMPshnOQmHo4gycqIGD3jrtjzcSMhL20PlHU s=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0D3AQAkxgJX/4UNJK1aA4M3U30GuyEBDYFyFwqFIkoCHIEeOBQBAQEBAQEBZSeEQQEBAQMBAQEBIBE6CwUHAgICAQgOAgEDAQIBAgIfBwICAhkMCxUICAIEDgWIHwgOrHyRUQEBAQEBAQEBAQEBAQEBAQEBAQEBARUEeIUkgXWCVYRVCyaCOSuCKwWYAQGFcogVgWiETYhajxkBHgEBQoIygTVshyh+AQEB
X-IronPort-AV: E=Sophos;i="5.24,441,1454976000"; d="scan'208";a="255851151"
Received: from alln-core-11.cisco.com ([173.36.13.133]) by alln-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 04 Apr 2016 19:57:06 +0000
Received: from XCH-ALN-001.cisco.com (xch-aln-001.cisco.com [173.36.7.11]) by alln-core-11.cisco.com (8.14.5/8.14.5) with ESMTP id u34Jv6iU006598 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Mon, 4 Apr 2016 19:57:06 GMT
Received: from xch-aln-005.cisco.com (173.36.7.15) by XCH-ALN-001.cisco.com (173.36.7.11) with Microsoft SMTP Server (TLS) id 15.0.1104.5; Mon, 4 Apr 2016 14:57:05 -0500
Received: from xch-aln-005.cisco.com ([173.36.7.15]) by XCH-ALN-005.cisco.com ([173.36.7.15]) with mapi id 15.00.1104.009; Mon, 4 Apr 2016 14:57:05 -0500
From: "Rajiv Asati (rajiva)" <rajiva@cisco.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Thread-Topic: [netmod] YANG - Intended-Config & Applied-Config & Derived-State & Operational-state...grrrr... !!
Thread-Index: AQHRi31NmlAQiI8k5U+2ghmHbAtBnJ91JyyAgAUq7AA=
Date: Mon, 04 Apr 2016 19:57:05 +0000
Message-ID: <F9A934FF-61AB-42CA-9AF0-D105EDEBC75C@cisco.com>
References: <6A55F6E8-8A67-459D-BAB6-CC41F8D7BF30@cisco.com> <20160401090207.GA50653@elstar.local>
In-Reply-To: <20160401090207.GA50653@elstar.local>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/0.0.0.151105
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.24.12.15]
Content-Type: text/plain; charset="utf-8"
Content-ID: <0A7EB26C856AB44FA6227A80EE87FF60@emea.cisco.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/mpls/n9J9Ib6-07twzYtlOWRL8SjyOG0>
Cc: "mpls@ietf.org" <mpls@ietf.org>, "netmod@ietf.org" <netmod@ietf.org>
Subject: Re: [mpls] [netmod] YANG - Intended-Config & Applied-Config & Derived-State & Operational-state...grrrr... !!
X-BeenThere: mpls@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Multi-Protocol Label Switching WG <mpls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mpls>, <mailto:mpls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mpls/>
List-Post: <mailto:mpls@ietf.org>
List-Help: <mailto:mpls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mpls>, <mailto:mpls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 04 Apr 2016 19:57:10 -0000
Hi Juergen, > Operational state often has a different lifetime than config. Hence, Hmm..Could you please clarify the above a bit more? -- Cheers, Rajiv -----Original Message----- From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Date: Friday, April 1, 2016 at 5:02 AM To: Rajiv Asati <rajiva@cisco.com> Cc: "netmod@ietf.org" <netmod@ietf.org>, "mpls@ietf.org" <mpls@ietf.org> Subject: Re: [netmod] YANG - Intended-Config & Applied-Config & Derived-State & Operational-state...grrrr... !! >Operational state often has a different lifetime than config. Hence, >keeping config and operational state together in the same structure >(with the same naming) causes you problems down the road. > >/js > >On Thu, Mar 31, 2016 at 06:44:06PM +0000, Rajiv Asati (rajiva) wrote: >> >> While working on MPLS LDP yang model (https://tools.ietf.org/html/draft-raza-mpls-ldp-mldp-yang), we noticed the possible confusion around structuring intended config, applied config and derived state *. >> >> On one hand, one may have 'intended-config’ (RW) and ‘applied-config’ (RO) in the same construct (container), and ‘derived state’ (RO) in a separate construct (container). >> >> This keeps config together, but doesn’t help operational state, which requires >> Both Applied-config and derived-state. >> >> On the other hand hand, one may have ‘intended-config’ in one construct (container), and ‘applied-config’ and ‘derived state’ in a separate construct (container). >> >> This simplifies figuring operational-state, but divides the config types. >> >> There are pros & cons either way. It would be good to have some guidance/text around guiding one over another, so that other models can leverage. Otherwise, we are going to end up with yet one more discrepancy (among various protocols YANG models), & confusing if not inefficient modeling. >> >> Perhaps, we ditch both of the above approaches, and settle on keeping all three of them in the same construct. It might simplify the organization a bit. Of course, that also has 2 options - have all the data types in intended-config, and then in applied-config and then in derived-state. Or have intended-config, applied-config and derived-state for each data type. Latter might be slightly better, given that not every data type will have all three. >> >> >> Thoughts? >> >> -- >> Cheers, >> Rajiv Asati >> Distinguished Engineer, Cisco >> >> >> * https://tools.ietf.org/html/draft-ietf-netmod-opstate-reqs <https://tools.ietf.org/html/draft-ietf-netmod-opstate-reqs-04> >> https://tools.ietf.org/html/draft-openconfig-netmod-opstate >> >> _______________________________________________ >> netmod mailing list >> netmod@ietf.org >> https://www.ietf.org/mailman/listinfo/netmod > >-- >Juergen Schoenwaelder Jacobs University Bremen gGmbH >Phone: +49 421 200 3587 Campus Ring 1 | 28759 Bremen | Germany >Fax: +49 421 200 3103 <http://www.jacobs-university.de/>
- [mpls] YANG - Intended-Config & Applied-Config & … Rajiv Asati (rajiva)
- Re: [mpls] [netmod] YANG - Intended-Config & Appl… Juergen Schoenwaelder
- Re: [mpls] [netmod] YANG - Intended-Config & Appl… Rajiv Asati (rajiva)
- Re: [mpls] [netmod] YANG - Intended-Config & Appl… Juergen Schoenwaelder
- Re: [mpls] [netmod] YANG - Intended-Config & Appl… Rajiv Asati (rajiva)
- Re: [mpls] [netmod] YANG - Intended-Config & Appl… Juergen Schoenwaelder
- Re: [mpls] [netmod] YANG - Intended-Config & Appl… Gert Grammel