Re: [Rtg-yang-coord] Clearing all stats in a container
"Thomas D. Nadeau" <tnadeau@lucidvision.com> Fri, 06 March 2015 12:30 UTC
Return-Path: <tnadeau@lucidvision.com>
X-Original-To: rtg-yang-coord@ietfa.amsl.com
Delivered-To: rtg-yang-coord@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1])
by ietfa.amsl.com (Postfix) with ESMTP id 2C82C1ACDCB
for <rtg-yang-coord@ietfa.amsl.com>; Fri, 6 Mar 2015 04:30:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.895
X-Spam-Level:
X-Spam-Status: No, score=0.895 tagged_above=-999 required=5
tests=[BAYES_00=-1.9, FH_RELAY_NODNS=1.451, HELO_MISMATCH_COM=0.553,
RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=no
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 iU2IcL-Rbzks for <rtg-yang-coord@ietfa.amsl.com>;
Fri, 6 Mar 2015 04:30:38 -0800 (PST)
Received: from lucidvision.com (unknown [50.255.148.178])
by ietfa.amsl.com (Postfix) with ESMTP id 8B2CC1A9088
for <rtg-yang-coord@ietf.org>; Fri, 6 Mar 2015 04:30:38 -0800 (PST)
Received: from [192.168.1.134] (unknown [50.255.148.177])
by lucidvision.com (Postfix) with ESMTP id 1710C2FE0A83;
Fri, 6 Mar 2015 07:30:38 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: "Thomas D. Nadeau" <tnadeau@lucidvision.com>
In-Reply-To: <0ee101d05809$2a762480$7f626d80$@ndzh.com>
Date: Fri, 6 Mar 2015 07:30:37 -0500
Content-Transfer-Encoding: quoted-printable
Message-Id: <D1A1BB4C-F387-4A15-9737-E2503E17D014@lucidvision.com>
References: <730D50D3-0220-42BA-8DD0-40A10D9C2DA3@gmail.com>
<0ba001d05732$8f380960$ada81c20$@ndzh.com>
<28490742-3E0B-45D5-8B36-518701F98FB7@gmail.com>
<20150305161550.GA71013@elstar.local>
<0ee101d05809$2a762480$7f626d80$@ndzh.com>
To: Susan Hares <shares@ndzh.com>
X-Mailer: Apple Mail (2.2070.6)
Archived-At: <http://mailarchive.ietf.org/arch/msg/rtg-yang-coord/Ur30sxDzruBtzSc1Vpu4pSgsBK0>
Cc: Mahesh Jethanandani <mjethanandani@gmail.com>, rtg-yang-coord@ietf.org,
Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Subject: Re: [Rtg-yang-coord] Clearing all stats in a container
X-BeenThere: rtg-yang-coord@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "\"List to discuss coordination between the Routing related YANG
models\"" <rtg-yang-coord.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtg-yang-coord>,
<mailto:rtg-yang-coord-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rtg-yang-coord/>
List-Post: <mailto:rtg-yang-coord@ietf.org>
List-Help: <mailto:rtg-yang-coord-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtg-yang-coord>,
<mailto:rtg-yang-coord-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 06 Mar 2015 12:30:40 -0000
> On Mar 6, 2015:7:29 AM, at 7:29 AM, Susan Hares <shares@ndzh.com> wrote: > > Juergen: > > Thank you for this advice. If you have time (before the Draft deadline) to > look at the grouping of the statistics within the I2RS RIB, and provide us > with advice on the groupings - it would be helpful. > > Any other comments on the draft would aid the authors and the I2RS WG. The > authors would like comments sent to them until the IETF draft deadline. > After that, I suspect the I2RS mail is best. Please CC: NETMOD at this time just to keep the thread consistent. --Tom > > Sue > > -----Original Message----- > From: Juergen Schoenwaelder [mailto:j.schoenwaelder@jacobs-university.de] > Sent: Thursday, March 05, 2015 11:16 AM > To: Mahesh Jethanandani > Cc: Susan Hares; rtg-yang-coord@ietf.org > Subject: Re: [Rtg-yang-coord] Clearing all stats in a container > > Hi, > > it was generally found useful when we did the interfaces and ip YANG models > to properly separate config data from state data. And this is not just > counters, it could include other things where operational state can be > different from the configured state. > > /js > > On Thu, Mar 05, 2015 at 08:07:02AM -0800, Mahesh Jethanandani wrote: >> Susan, >> >> Here is an relevant example (I have deleted description fields for > brevity) from ietf-interface YANG module of how one could maintain > statistics in a module. One reason to keep them in a container of their own > is to be able to perform bulk operations on them. Of course, as Juergen > pointed out, clearing stats may not be one of them. But if you wanted to say > <get> all the stats on a particular module, you would do a <get> on the > container i.e. statistics in this example, and you would have all the stats. >> >> container interfaces-state { >> config false; >> >> <snip> >> >> container statistics { >> description >> "A collection of interface-related statistics objects."; >> >> leaf discontinuity-time { >> type yang:date-and-time; >> mandatory true; >> } >> >> leaf in-octets { >> type yang:counter64; >> } >> >> leaf in-unicast-pkts { >> type yang:counter64; >> } >> >> leaf in-broadcast-pkts { >> type yang:counter64; >> } >> >> <snip> >> >> } >> } >> } >> >> HTH. >> >>> On Mar 5, 2015, at 2:53 AM, Susan Hares <shares@ndzh.com> wrote: >>> >>> Mahesh: >>> >>> Would you post an example of how to put statistic counters into a > container. We have multiple drafts in I2RS that provide such counters. I > will forward your advice to all authors so they can modify their yang > modules to match the appropriate form. >>> >>> Sue >>> >>> From: Rtg-yang-coord [mailto:rtg-yang-coord-bounces@ietf.org] On >>> Behalf Of Mahesh Jethanandani >>> Sent: Thursday, March 05, 2015 1:31 AM >>> To: rtg-yang-coord@ietf.org >>> Subject: [Rtg-yang-coord] Clearing all stats in a container >>> >>> Assuming one has defined stat counters in one container, like > ietf-interfaces has done with its statistics, does anyone have suggestions > on how one can essentially clear (reset to 0) all the counters in that > container. >>> >>> Mahesh Jethanandani >>> mjethanandani@gmail.com <mailto:mjethanandani@gmail.com> >> Mahesh Jethanandani >> mjethanandani@gmail.com >> >> >> >> >> > >> _______________________________________________ >> Rtg-yang-coord mailing list >> Rtg-yang-coord@ietf.org >> https://www.ietf.org/mailman/listinfo/rtg-yang-coord > > > -- > 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/> > <draft-wang-i2rs-rib-dm-01.txt>_______________________________________________ > Rtg-yang-coord mailing list > Rtg-yang-coord@ietf.org > https://www.ietf.org/mailman/listinfo/rtg-yang-coord
- [Rtg-yang-coord] Clearing all stats in a container Mahesh Jethanandani
- Re: [Rtg-yang-coord] Clearing all stats in a cont… Juergen Schoenwaelder
- Re: [Rtg-yang-coord] Clearing all stats in a cont… Susan Hares
- Re: [Rtg-yang-coord] Clearing all stats in a cont… Mahesh Jethanandani
- Re: [Rtg-yang-coord] Clearing all stats in a cont… Juergen Schoenwaelder
- Re: [Rtg-yang-coord] Clearing all stats in a cont… Mahesh Jethanandani
- Re: [Rtg-yang-coord] Clearing all stats in a cont… Andy Bierman
- Re: [Rtg-yang-coord] Clearing all stats in a cont… Susan Hares
- Re: [Rtg-yang-coord] Clearing all stats in a cont… Susan Hares
- Re: [Rtg-yang-coord] Clearing all stats in a cont… Thomas D. Nadeau
- Re: [Rtg-yang-coord] Clearing all stats in a cont… Juergen Schoenwaelder
- Re: [Rtg-yang-coord] Clearing all stats in a cont… Susan Hares
- Re: [Rtg-yang-coord] Clearing all stats in a cont… Susan Hares
- Re: [Rtg-yang-coord] Clearing all stats in a cont… Juergen Schoenwaelder
- Re: [Rtg-yang-coord] Clearing all stats in a cont… Benoit Claise
- Re: [Rtg-yang-coord] Clearing all stats in a cont… Susan Hares
- Re: [Rtg-yang-coord] Clearing all stats in a cont… Alia Atlas