Re: [mpls] [netmod] YANG - Intended-Config & Applied-Config & Derived-State & Operational-state...grrrr... !!

"Rajiv Asati (rajiva)" <rajiva@cisco.com> Wed, 06 April 2016 02:28 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 894F112D172; Tue, 5 Apr 2016 19:28:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.53
X-Spam-Level:
X-Spam-Status: No, score=-14.53 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, 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 AfuyxLO8kafP; Tue, 5 Apr 2016 19:28:22 -0700 (PDT)
Received: from rcdn-iport-7.cisco.com (rcdn-iport-7.cisco.com [173.37.86.78]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A750B12D0BF; Tue, 5 Apr 2016 19:28:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=5299; q=dns/txt; s=iport; t=1459909702; x=1461119302; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=QD+V+v94BEKqxMYQ155vG5/ykJxAURFDWb29czlx7Aw=; b=AT+6wHM7MRwHos/g1CCVP7qQxLsdJt3wiXakR4sQ6/oV3FplbwkGnG93 AaNmuHrPFkykGCDe2xRa4fJR1jVKy3Tf1/i8zOInepYxR7ZA4dSSu8D4+ fz7BOJ6ZrXomKMvIwuQZkqgUf7I9wzRCcPLprfN2JS/PqAaDUwp/KMQPH E=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AvAgACdARX/4gNJK1ZA4M3U322SoJjgg8BDYFyHYVwAoFGOBQBAQEBAQEBZSeEQgEBBHkOAgIBCA4CJQYEBxsXFBECBA4FiCfAQwEBAQEBAQEBAQEBAQEBAQEBAQEBARUEhhyBdQiCToRgHQmCZIIrBZMFhHwBjgqBZ4RNhCCEOo8bAR4BAUKCMoE1bIg3AQEB
X-IronPort-AV: E=Sophos; i="5.24,446,1454976000"; d="scan'208,217"; a="88676911"
Received: from alln-core-3.cisco.com ([173.36.13.136]) by rcdn-iport-7.cisco.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 06 Apr 2016 02:28:03 +0000
Received: from XCH-ALN-003.cisco.com (xch-aln-003.cisco.com [173.36.7.13]) by alln-core-3.cisco.com (8.14.5/8.14.5) with ESMTP id u362S3Bv018292 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 6 Apr 2016 02:28:03 GMT
Received: from xch-aln-005.cisco.com (173.36.7.15) by XCH-ALN-003.cisco.com (173.36.7.13) with Microsoft SMTP Server (TLS) id 15.0.1104.5; Tue, 5 Apr 2016 21:28:03 -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; Tue, 5 Apr 2016 21:28:03 -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+2ghmHbAtBnJ91JyyAgAUq7ACAAFAoAIABnqmd
Date: Wed, 06 Apr 2016 02:28:03 +0000
Message-ID: <473C6D05-BC35-4069-8931-665F0122A32A@cisco.com>
References: <6A55F6E8-8A67-459D-BAB6-CC41F8D7BF30@cisco.com> <20160401090207.GA50653@elstar.local> <F9A934FF-61AB-42CA-9AF0-D105EDEBC75C@cisco.com>, <20160404204356.GA57133@elstar.local>
In-Reply-To: <20160404204356.GA57133@elstar.local>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
Content-Type: multipart/alternative; boundary="_000_473C6D05BC3540698931665F0122A32Aciscocom_"
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/mpls/Rd8CpIBetQffAHPjmsXoHW_nblM>
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: Wed, 06 Apr 2016 02:28:24 -0000

Hi Juergen,

Thanks for the clarity. I somewhat agree. Different lifetime shouldn't really cause any impact.

One nit,

When I pull out a configured interface, the operational state of this
interface is gone but not the config - if I put the interface back, it
should come up configured as before.

Depends. If LC itself is removed, then all the related interfaces would be removed from the running-config. And reinserting the LC may not bring their individual conf back (ignoring the notifications).

Obviously, I can also have
operational state of an interface that has not been configured yet.

Yes.

Cheers,
Rajiv Asati
Distinguished Engineer, Cisco Services


On Apr 4, 2016, at 5:44 PM, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de<mailto:j.schoenwaelder@jacobs-university.de>> wrote:

On Mon, Apr 04, 2016 at 07:57:05PM +0000, Rajiv Asati (rajiva) wrote:
Hi Juergen,

Operational state often has a different lifetime than config. Hence,


Hmm..Could you please clarify the above a bit more?


The classic example:

When I pull out a configured interface, the operational state of this
interface is gone but not the config - if I put the interface back, it
should come up configured as before. Obviously, I can also have
operational state of an interface that has not been configured yet.

/js

--
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/>