Re: [netmod] Query about augmenting 'config false' YANG

"Ivory, William" <william.ivory@intl.att.com> Fri, 15 December 2017 17:45 UTC

Return-Path: <william.ivory@intl.att.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 1E176129409 for <netmod@ietfa.amsl.com>; Fri, 15 Dec 2017 09:45:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.62
X-Spam-Level:
X-Spam-Status: No, score=-0.62 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=1.989, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_KAM_HTML_FONT_INVALID=0.01] autolearn=ham autolearn_force=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 eg5XCHK6X5VN for <netmod@ietfa.amsl.com>; Fri, 15 Dec 2017 09:45:17 -0800 (PST)
Received: from mx0a-00191d01.pphosted.com (mx0a-00191d01.pphosted.com [67.231.149.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7056A127522 for <netmod@ietf.org>; Fri, 15 Dec 2017 09:45:17 -0800 (PST)
Received: from pps.filterd (m0053301.ppops.net [127.0.0.1]) by mx0a-00191d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vBFHfKho014083; Fri, 15 Dec 2017 12:45:15 -0500
Received: from alpi155.enaf.aldc.att.com (sbcsmtp7.sbc.com [144.160.229.24]) by mx0a-00191d01.pphosted.com with ESMTP id 2evhb7ud34-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Dec 2017 12:45:14 -0500
Received: from enaf.aldc.att.com (localhost [127.0.0.1]) by alpi155.enaf.aldc.att.com (8.14.5/8.14.5) with ESMTP id vBFHjDvG000952; Fri, 15 Dec 2017 12:45:13 -0500
Received: from mlpi409.sfdc.sbc.com (mlpi409.sfdc.sbc.com [130.9.128.241]) by alpi155.enaf.aldc.att.com (8.14.5/8.14.5) with ESMTP id vBFHj2KR000735 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 15 Dec 2017 12:45:06 -0500
Received: from zlp27126.vci.att.com (zlp27126.vci.att.com [135.66.87.47]) by mlpi409.sfdc.sbc.com (RSA Interceptor); Fri, 15 Dec 2017 17:44:39 GMT
Received: from zlp27126.vci.att.com (zlp27126.vci.att.com [127.0.0.1]) by zlp27126.vci.att.com (Service) with ESMTP id 989C54000391; Fri, 15 Dec 2017 17:44:39 +0000 (GMT)
Received: from gbcdccas02.intl.att.com (unknown [135.76.180.10]) by zlp27126.vci.att.com (Service) with ESMTPS id 0F1A54000364; Fri, 15 Dec 2017 17:44:39 +0000 (GMT)
Received: from GBCDCMBX03.intl.att.com ([135.76.31.134]) by gbcdccas02.intl.att.com ([135.76.180.10]) with mapi id 14.03.0361.001; Fri, 15 Dec 2017 17:44:37 +0000
From: "Ivory, William" <william.ivory@intl.att.com>
To: "'Robert Wilton'" <rwilton@cisco.com>, "'netmod@ietf.org'" <netmod@ietf.org>
Thread-Topic: [netmod] Query about augmenting 'config false' YANG
Thread-Index: AdN1mjLksq4lef+RRXCK3AeBlJ13PAAMc3aAAAAHTpA=
Date: Fri, 15 Dec 2017 17:43:36 +0000
Deferred-Delivery: Fri, 15 Dec 2017 17:44:36 +0000
Message-ID: <E3378E0605547F4E854DEE0CB1116AB02B91F1@gbcdcmbx03.intl.att.com>
References: <E3378E0605547F4E854DEE0CB1116AB02B6F08@gbcdcmbx03.intl.att.com> <8480c009-538d-5b3e-61f6-c3776ee4ac5c@cisco.com>
In-Reply-To: <8480c009-538d-5b3e-61f6-c3776ee4ac5c@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [135.160.174.64]
Content-Type: multipart/alternative; boundary="_000_E3378E0605547F4E854DEE0CB1116AB02B91F1gbcdcmbx03intlatt_"
MIME-Version: 1.0
X-RSA-Inspected: yes
X-RSA-Classifications: public
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-12-15_10:, , signatures=0
X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1712150245
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/fmk5bFWTaIizy2u_4wTM2Qpvl50>
Subject: Re: [netmod] Query about augmenting 'config false' YANG
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: Fri, 15 Dec 2017 17:45:19 -0000

Hi Rob,

Thanks - that's what I thought but wanted a second opinion.  Fortunately we can expand the groupings in-place to work around this, but obviously at the cost of lower maintainability and with the risk of divergence if the grouping content ever changes.

William

From: Robert Wilton [mailto:rwilton@cisco.com]
Sent: 15 December 2017 17:42
To: Ivory, William <william.ivory@intl.att.com>om>; 'netmod@ietf.org' <netmod@ietf.org>
Subject: Re: [netmod] Query about augmenting 'config false' YANG


Looks valid to me.

Thanks,
Rob

On 15/12/2017 14:02, Ivory, William wrote:
Hi,

I'm running into a problem where my YANG is being rejected by a NETCONF client that claims it can't find the node being augmented.  The YANG snippet below shows the problem which relates specifically to augmenting a node that is 'config false'.  AFAICT from reading RFC 6020, this is valid YANG, but I would appreciate confirmation from the experts!

Pyang is quite happy with this.

Thanks,

William

--- sample yang to show problem ---

                grouping state-grouping {
                                container state {
                                                config false;
                                                leaf state-grp-state-leaf {
                                                                type string;
                                                }
                                }
                }

                container test {
                                container state-cont {
                                                config false;
                                                leaf state-leaf {
                                                                type string;
                                                }
                                }
                }

                augment /test/state-cont {
                                // Augment 'config false' container directly works.
                                leaf augmented-state-leaf {
                                                type string;
                                }
                }

                augment /test {
                                uses state-grouping {
                                                // Augment here fails - 'state' not found.
                                                augment state {
                                                                leaf aug-state-grp-leaf {
                                                                                type string;
                                                                }
                                                }
                                }
                }






_______________________________________________

netmod mailing list

netmod@ietf.org<mailto:netmod@ietf.org>

https://www.ietf.org/mailman/listinfo/netmod<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ietf.org_mailman_listinfo_netmod&d=DwMD-g&c=LFYZ-o9_HUMeMTSQicvjIg&r=p8kyeK3u4ZYiaQ2ZPGqwkyXmQgBH6r5jpYiYWzhqJ48&m=HCzkzCTDorlm-kZkArWnL8xiokaSmvuSB46O7_s22rI&s=VuNhyO6EwnN1CvYSx3ydeNZavvaemy1ReKEwVNaFMBc&e=>