Re: [pim] draft-ietf-pim-yang-02 WGLC
Stig Venaas <stig@venaas.com> Wed, 05 October 2016 20:30 UTC
Return-Path: <stig@venaas.com>
X-Original-To: pim@ietfa.amsl.com
Delivered-To: pim@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BDC80129896 for <pim@ietfa.amsl.com>; Wed, 5 Oct 2016 13:30:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=venaas-com.20150623.gappssmtp.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 XodPUWl-fTXr for <pim@ietfa.amsl.com>; Wed, 5 Oct 2016 13:30:07 -0700 (PDT)
Received: from mail-lf0-x234.google.com (mail-lf0-x234.google.com [IPv6:2a00:1450:4010:c07::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C89DD12988E for <pim@ietf.org>; Wed, 5 Oct 2016 13:30:06 -0700 (PDT)
Received: by mail-lf0-x234.google.com with SMTP id l131so223377911lfl.2 for <pim@ietf.org>; Wed, 05 Oct 2016 13:30:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=venaas-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=HAbtAIbm8hDm8wCqAFxzm4Gqosyl5Fx1nmHMbZfLjLo=; b=Z+azHRIkqHEsGgPBrlMXYQ6nZv5y28skLLy+Ytz1tvfeFBd8kB2fJVOYrxVhG85HgH 5Rz9o87b/OpWS7q8JVhFC+RcfKdTIpN6Gt7NL8RFFQXeFQrtGDAONoCNHZ5TDqYeREu5 6Q3hs7zTYHDVlRq1347oDeMih9mZHT9HHddMObjQTxJe527+rInRqPRYKpOmXt53taXt +bEJbhM/C5o/2yimnzZwlWdwGnAj1Jj9GYQJ1c7/KiBu5A0z9YlQu1SdvVu+dN8IZ/rR NfubWIzT7OfPoqOyjtJrYRjYHbwCUnvb4B/FOC1kBz3B+MxD4hiTX16Av7YnZkZYZoeA FqVA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=HAbtAIbm8hDm8wCqAFxzm4Gqosyl5Fx1nmHMbZfLjLo=; b=k6F/8XjM7Z+nM/xvRH4nuTE4E8ISO5P3SwHYY2ZHuZXpFNDD5Jt78T/ny4slgec/XU +gMFWvyFDeAE5yA5Gpqyhv/BAWFLiuNYuPa9Xq4CnsrjtiXotOrtEb7cl9P64jyN1TIQ fi3AU9IGodXxVQ/7KNk+xp81WQ/pi3HLMwp5Tclq/4lPrSKZcasaWTHHcO5rlYIWB3Ow WFMIqGVh20kZ/quqRI4/hRZIdM0E1sL6Oj5YCCYmUJWr6l1uLetw20YZU45OHiXde5Yl 0Hs9VPeryAoOtdVOmwh46eUceO3NVzJRFg4pJq2StKITNM+VS1gFKIEXLChvFp9MGPPx dqEg==
X-Gm-Message-State: AA6/9Rnz7OOFWviCpDvG8eIntbXMoW31anUBGOYQQiCMXFkVLQ3IP3LAJ6pJ5Hzh9F6P/7kDl+l9935KoxA3lw==
X-Received: by 10.46.33.226 with SMTP id h95mr3537496lji.54.1475699404889; Wed, 05 Oct 2016 13:30:04 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.25.28.15 with HTTP; Wed, 5 Oct 2016 13:30:04 -0700 (PDT)
In-Reply-To: <HE1PR0601MB265200635FCE0EE40A43411AB1C40@HE1PR0601MB2652.eurprd06.prod.outlook.com>
References: <8CCB28152EA2E14A96BBEDC15823481A09FBC8FB@dfweml501-mbx> <CAHANBt+GKCUhhZH1NCERq6R5+KbkppUJ6oBK2OAKmGEB2osq-A@mail.gmail.com> <CAHANBt+k3AZoaLPgX1QmJ0eg-rZ6oMkAgepX6o8yL4inXXfj2g@mail.gmail.com> <02c701d201fc$6b2b4570$4181d050$@gmail.com> <8CCB28152EA2E14A96BBEDC15823481A09FDDE32@dfweml501-mbx> <007401d20940$61edff70$25c9fe50$@gmail.com> <CAHANBtKshRW3KU34gjSNoOjswhy9TVm4KXxRPFRCo=HZ1wGCrQ@mail.gmail.com> <CAHANBtLL8ancAkoLsjsxSFiG0GA91jZXw7xDPOdbXdwmnkVPEw@mail.gmail.com> <AM5PR0601MB264132104E69F812CD2F191BB1C10@AM5PR0601MB2641.eurprd06.prod.outlook.com> <CAHANBtL25gsVfVC5T3oFVdA_3pabd6iJAySWK-oUrz1ux7ka=A@mail.gmail.com> <HE1PR0601MB265200635FCE0EE40A43411AB1C40@HE1PR0601MB2652.eurprd06.prod.outlook.com>
From: Stig Venaas <stig@venaas.com>
Date: Wed, 05 Oct 2016 13:30:04 -0700
Message-ID: <CAHANBtKSttogmTyEZ1DH4f6B=4wjjQtAZo-ZNybg3PZD9-xfSg@mail.gmail.com>
To: Xufeng Liu <xliu@kuatrotech.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/pim/x-DD7XI3ejp9ELAyUgbhpJ0WbTk>
Cc: "pim@ietf.org" <pim@ietf.org>
Subject: Re: [pim] draft-ietf-pim-yang-02 WGLC
X-BeenThere: pim@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Protocol Independent Multicast <pim.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pim>, <mailto:pim-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/pim/>
List-Post: <mailto:pim@ietf.org>
List-Help: <mailto:pim-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pim>, <mailto:pim-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 05 Oct 2016 20:30:09 -0000
Hi, I don't know YANG that well, but at least here is the reason I am asking.
First, I see that integers are used for this purpose many places.
Secondly, timer-value is defined as
typedef timer-value {
type union {
type uint16;
type enumeration {
enum "infinity" {
description "The timer is set to infinity.";
}
enum "no-expiry" {
description "The timer is not set.";
}
}
}
units seconds;
description "Timer value type.";
} // timer-value
For something that is a fixed value, infinity and no-expiry have no
meaning. Hence it seems that you would always make use of the the
uint16. In that case, why not just make the type uint16? Or would the
enum values be useful?
Stig
On Wed, Oct 5, 2016 at 6:14 AM, Xufeng Liu <xliu@kuatrotech.com> wrote:
> Hi Stig,
>
> Thanks for the comments. Is there any reason why timer-value cannot be used for fixed value too? I think that it can be used for both cases. It is like an integer. In the fixed value case, the operator specifies a value, such as 10sec, the system saves timer-value=10sec. If the operator tries to retrieve the value of the attribute, the system will return 10sec. Is this a problem?
>
> Thanks,
>
> - Xufeng
>
>> -----Original Message-----
>> From: Stig Venaas [mailto:stig@venaas.com]
>> Sent: Tuesday, October 4, 2016 5:06 PM
>> To: Xufeng Liu <xliu@kuatrotech.com>
>> Cc: Michael McBride <Michael.McBride@huawei.com>; pim@ietf.org
>> Subject: Re: [pim] draft-ietf-pim-yang-02 WGLC
>>
>> Hi
>>
>> On Fri, Sep 30, 2016 at 4:29 PM, Xufeng Liu <xliu@kuatrotech.com> wrote:
>> > Hi Stig and All,
>> >
>> > Thanks for the comments. I have updated the models and drafts based on
>> these comments. The updated draft and model files are at:
>> https://github.com/mcallisterjp/pim-yang. Any feedbacks will be appreciated.
>> >
>> > The update items include the responses to Stig's previous emails, and the
>> comments below.
>>
>> Great. I have one comment inline below though.
>>
>> > Thanks,
>> >
>> > - Xufeng
>> >
>> >> -----Original Message-----
>> >> From: Stig Venaas [mailto:stig@venaas.com]
>> >> Sent: Friday, September 16, 2016 5:27 PM
>> >> To: Xufeng Liu <xufeng.liu.ietf@gmail.com>
>> >> Cc: Michael McBride <Michael.McBride@huawei.com>; pim@ietf.org
>> >> Subject: Re: [pim] draft-ietf-pim-yang-02 WGLC
>> >>
>> >> Hi
>> >>
>> >> I now took some time to review the draft more carefully. Here are
>> >> comments in addition to what I posted earlier for the WGLC.
>> >>
>> >> First some potential issues with the models.
>> >>
>> >> I see for hello-interval, jp-interval etc. the data type is
>> >> timer-value which can also be infinity and no-expiry. Isn't this type
>> >> to be used for something counting down? These intervals would always
>> >> be some number of seconds and won't change unless the configuration
>> changes.
>> > [Xufeng] The "xxx-interval" leaves are the number of seconds that won't
>> change unless the configuration changes.
>>
>> Right, I understand they are fixed values. That is why I am wondering whether
>> timer-value is the correct type. Isn't timer-value used for something that is
>> counting down, and not for fixed values?
>>
>> Stig
- Re: [pim] draft-ietf-pim-yang-02 WGLC Stig Venaas
- [pim] draft-ietf-pim-yang-02 WGLC Michael McBride
- Re: [pim] draft-ietf-pim-yang-02 WGLC Stig Venaas
- Re: [pim] draft-ietf-pim-yang-02 WGLC Stig Venaas
- Re: [pim] draft-ietf-pim-yang-02 WGLC Xufeng Liu
- Re: [pim] draft-ietf-pim-yang-02 WGLC Michael McBride
- Re: [pim] draft-ietf-pim-yang-02 WGLC Xufeng Liu
- Re: [pim] draft-ietf-pim-yang-02 WGLC Stig Venaas
- Re: [pim] draft-ietf-pim-yang-02 WGLC Stig Venaas
- Re: [pim] draft-ietf-pim-yang-02 WGLC Xufeng Liu
- Re: [pim] draft-ietf-pim-yang-02 WGLC Xufeng Liu
- Re: [pim] draft-ietf-pim-yang-02 WGLC Stig Venaas
- Re: [pim] draft-ietf-pim-yang-02 WGLC Xufeng Liu
- Re: [pim] draft-ietf-pim-yang-02 WGLC Stig Venaas
- Re: [pim] draft-ietf-pim-yang-02 WGLC Xufeng Liu
- Re: [pim] draft-ietf-pim-yang-02 WGLC Stig Venaas
- Re: [pim] draft-ietf-pim-yang-02 WGLC Xufeng Liu
- Re: [pim] draft-ietf-pim-yang-02 WGLC Stig Venaas