Re: [netmod] rfc7223bis (interfaces) enabled leaf vs SNMP admin-state

"Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com> Thu, 26 October 2017 19:11 UTC

Return-Path: <jason.sterne@nokia.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 1726613F5E9 for <netmod@ietfa.amsl.com>; Thu, 26 Oct 2017 12:11:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.92
X-Spam-Level:
X-Spam-Status: No, score=-1.92 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nokia.onmicrosoft.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 F8Luc_9wLVMc for <netmod@ietfa.amsl.com>; Thu, 26 Oct 2017 12:11:21 -0700 (PDT)
Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20122.outbound.protection.outlook.com [40.107.2.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3DC5713F445 for <netmod@ietf.org>; Thu, 26 Oct 2017 12:11:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ljUU9PZdpYWUD60o+xOCMGeTjvOUom0clMskycFkJoA=; b=K5vti6FTroDIq1ZqxKV/imBlK37ScpfMySz3zlbbBQ7sPPBuCQjb5sfv1DrEcqpYV60sJnt5tqFQdooWVXiO6OzTbGz4/MrnUtakuV4tPDmtt3Sifjc08cOTR+TD/Oor5ugUnbcg+F6p3YSIiYnYlcrsQ0ht5yxQYoJWpLanw8U=
Received: from AM3PR07MB1124.eurprd07.prod.outlook.com (10.163.187.158) by AM3PR07MB1124.eurprd07.prod.outlook.com (10.163.187.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.178.3; Thu, 26 Oct 2017 19:11:18 +0000
Received: from AM3PR07MB1124.eurprd07.prod.outlook.com ([fe80::746c:4eb1:1f6a:9527]) by AM3PR07MB1124.eurprd07.prod.outlook.com ([fe80::746c:4eb1:1f6a:9527%14]) with mapi id 15.20.0178.003; Thu, 26 Oct 2017 19:11:18 +0000
From: "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com>
To: Martin Bjorklund <mbj@tail-f.com>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] rfc7223bis (interfaces) enabled leaf vs SNMP admin-state
Thread-Index: AdNOevP2Ug0r6+CiQ+ipzdRijgA3aQAEGVeAAACr5bA=
Date: Thu, 26 Oct 2017 19:11:18 +0000
Message-ID: <AM3PR07MB11249AEAE9F4C6FB8CB46E2F9B450@AM3PR07MB1124.eurprd07.prod.outlook.com>
References: <VI1PR07MB113551260F552B8CF644A1FB9B450@VI1PR07MB1135.eurprd07.prod.outlook.com> <20171026.205053.2059947918997412077.mbj@tail-f.com>
In-Reply-To: <20171026.205053.2059947918997412077.mbj@tail-f.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [135.245.20.10]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; AM3PR07MB1124; 6:2qLlBqESjaOBpHUs/Qw45MViix31lO0KgZZblntYwR4ADW2iLUSeHh70p1bK75ox3U1bn40T4UIocW9QMYXm7gsKdziQDY/TnrikbVoOesmNAxFhFqYg+cxIxyX0ALyhX8HvIT9NOacuG00eLNFQmHWNmcKjake4U9H0GT9ETF9t5iryTCWaIWsDFuHCZkYvWjaKUSCtoiZynE/tRFfUcx6v2I9w7t4NlILi0c31VEmdl7lxN6PiFDWM9kK6oiS29HVSzAp6SIXH8Nx/dtcdpnIsE1l4DqEvvQBBG3zeaazhfyUsiVDCRQ/yWx7nq/roS/i0jg5/JVb+fcdgqo1AWjyKQ10HjMeSbCrtjXxAPfg=; 5:W+SByNeLAWB9O6ilSWRop0UxP2c09O5R6Rari4zJBIe7b1ptOgyXzndVRvAtbfHNFN1DRlUikxoxH1M37Ipm5Hq4Tknm4r1E/rq4ZHDp9Sh7LRKa8nVbxE0RqjZ4v/6bAzumEiCaRqPc3hE+iFk4edpwut5flB3NkLTlj7dg7VQ=; 24:ltO56i6o92C440ZTa2bZJQWB/MPgXZa5VtXMIkz0UyP9pYUwf7oB2uWHBmyARFBgymOLxB1wK19eH3LGPytB0jS7fk9T9GyUd19gVkIGa3U=; 7:Z/ht1lyL6fj8A6YrRKrSH0EFWvNQtIEkipSuI+uNXRAVOVmBgqcwjbOacWUTXSuo2EeiwJcb0KBu4v+tPrtElIOYL0cA6swrRBLjWWYZAfoFP4hajhNeqfrd0p+7SJOvkdLmHKoWwVCH8R8SrYWrh59C/ogcJhpGO4ARJ2ZBBKuLk1WSy4H73Q/7tuXCOgZmM2Uma0I4VdOn9pQ/IDWDuMPUfK14tBycxV6stkSSal7qdIRZjETmLROqV4H8fmgJ
x-ms-exchange-antispam-srfa-diagnostics: SSOS;
x-ms-office365-filtering-correlation-id: 73d2e9dc-e3eb-4c7b-9697-08d51ca55661
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(4627075)(201703031133081)(201702281549075)(48565401081)(2017052603238); SRVR:AM3PR07MB1124;
x-ms-traffictypediagnostic: AM3PR07MB1124:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=jason.sterne@nokia.com;
x-exchange-antispam-report-test: UriScan:(120809045254105)(82608151540597);
x-microsoft-antispam-prvs: <AM3PR07MB11242CDEDFA6FA74C28339D39B450@AM3PR07MB1124.eurprd07.prod.outlook.com>
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(3002001)(3231020)(6055026)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123558100)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM3PR07MB1124; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM3PR07MB1124;
x-forefront-prvs: 04724A515E
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(376002)(39860400002)(346002)(199003)(377424004)(13464003)(189002)(24454002)(53754006)(54356999)(76176999)(66066001)(50986999)(33656002)(5660300001)(2900100001)(25786009)(2950100002)(68736007)(81156014)(81166006)(8676002)(478600001)(966005)(8936002)(101416001)(7696004)(86362001)(305945005)(7736002)(74316002)(316002)(6116002)(102836003)(6246003)(6506006)(14454004)(6436002)(189998001)(5250100002)(229853002)(6916009)(3846002)(105586002)(106356001)(53546010)(53936002)(3280700002)(6306002)(55016002)(2906002)(99286003)(4001150100001)(97736004)(4326008)(9686003)(3660700001); DIR:OUT; SFP:1102; SCL:1; SRVR:AM3PR07MB1124; H:AM3PR07MB1124.eurprd07.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en;
received-spf: None (protection.outlook.com: nokia.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 73d2e9dc-e3eb-4c7b-9697-08d51ca55661
X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Oct 2017 19:11:18.6273 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR07MB1124
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/TJCGtLlwRY-fVYBqXaAhUohKdfc>
Subject: Re: [netmod] rfc7223bis (interfaces) enabled leaf vs SNMP admin-state
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
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: Thu, 26 Oct 2017 19:11:24 -0000

Hi Martin,

I'm OK with that direction ('enabled' affects ifAdminStatus).  I'm questioning the other direction.  I think a change in ifAdminStatus should be reflected in 'enabled'.

Rgds,
Jason

> -----Original Message-----
> From: Martin Bjorklund [mailto:mbj@tail-f.com]
> Sent: Thursday, October 26, 2017 14:51
> To: Sterne, Jason (Nokia - CA/Ottawa) <jason.sterne@nokia.com>
> Cc: netmod@ietf.org
> Subject: Re: [netmod] rfc7223bis (interfaces) enabled leaf vs SNMP admin-
> state
> 
> "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com> wrote:
> > Hi all,
> >
> > The issue I'm raising isn't new to the 'bis' version of RFC7223, but
> > I'm questioning whether we should consider changing something about it
> > while we're in there.
> >
> > The 'enabled' leaf has this in the description:
> >
> >              Changes in this leaf in the intended configuration are
> >              reflected in ifAdminStatus, but if ifAdminStatus is
> >              changed over SNMP, this leaf is not affected.
> >
> > As an example of "working code", Nokia's SR OS has supported full
> > router configuration via SNMP for many years.  When someone enables an
> > interface via CLI, that is reflected in ifAdminStatus and vice-versa.
> > i.e. configuration via two different interfaces (SNMP & CLI) that use
> > different data models, map rw leafs from the two interfaces/models to
> > the same underlying internal object.
> >
> > In general, many SNMP rw objects will map to the same underlying
> > internal rw object as the equivalent rw leaf in a YANG model (for
> > products that actually support config management via SNMP as well as
> > NETCONF).  Changing the leaf/object via SNMP affects the equivalent
> > leaf/object in NETCONF.  Why make this one a special case ?
> 
> Note how ifAdminStatus is defined:
> 
>             "The desired state of the interface.  The testing(3) state
>             indicates that no operational packets can be passed.  When a
>             managed system initializes, all interfaces start with
>             ifAdminStatus in the down(2) state.  As a result of either
>             explicit management action or per configuration information
>             retained by the managed system, ifAdminStatus is then
>             changed to either the up(1) or testing(3) states (or remains
>             in the down(2) state)."
> 
> Note the *per configuration information*.  It is clear that ifAdminStatus is not
> the same as the "per configuration information".
> The config object can affect ifAdminStatus.  "enabled" in the YANG model is
> supposed to be that config object that can affect ifAdminStatus.
> 
> 
> 
> /martin
> 
> 
> >
> > I'd propose that we remove that sentence.
> >
> > Rgds,
> > Jason
> >
> > > -----Original Message-----
> > > From: netmod [mailto:netmod-bounces@ietf.org] On Behalf Of internet-
> > > drafts@ietf.org
> > > Sent: Monday, October 16, 2017 9:25
> > > To: i-d-announce@ietf.org
> > > Cc: netmod@ietf.org
> > > Subject: [netmod] I-D Action: draft-ietf-netmod-rfc7223bis-00.txt
> > >
> > >
> > > A New Internet-Draft is available from the on-line Internet-Drafts
> > > directories.
> > > This draft is a work item of the Network Modeling WG of the IETF.
> > >
> > >         Title           : A YANG Data Model for Interface Management
> > >         Author          : Martin Bjorklund
> > > 	Filename        : draft-ietf-netmod-rfc7223bis-00.txt
> > > 	Pages           : 47
> > > 	Date            : 2017-10-15
> > >
> > > Abstract:
> > >    This document defines a YANG data model for the management of
> network
> > >    interfaces.  It is expected that interface-type-specific data models
> > >    augment the generic interfaces data model defined in this document.
> > >    The data model includes definitions for configuration and system
> > >    state (status information and counters for the collection of
> > >    statistics).  This document obsoletes RFC 7223.
> > >
> > >
> > > The IETF datatracker status page for this draft is:
> > > https://datatracker.ietf.org/doc/draft-ietf-netmod-rfc7223bis/
> > >
> > > There are also htmlized versions available at:
> > > https://tools.ietf.org/html/draft-ietf-netmod-rfc7223bis-00
> > > https://datatracker.ietf.org/doc/html/draft-ietf-netmod-rfc7223bis-0
> > > 0
> > >
> > >
> > > Please note that it may take a couple of minutes from the time of
> > > submission until the htmlized version and diff are available at
> > > tools.ietf.org.
> > >
> > > Internet-Drafts are also available by anonymous FTP at:
> > > ftp://ftp.ietf.org/internet-drafts/
> > >
> > > _______________________________________________
> > > netmod mailing list
> > > netmod@ietf.org
> > > https://www.ietf.org/mailman/listinfo/netmod
> >
> > _______________________________________________
> > netmod mailing list
> > netmod@ietf.org
> > https://www.ietf.org/mailman/listinfo/netmod
> >