[netmod] Query about augmenting 'config false' YANG

"Ivory, William" <william.ivory@intl.att.com> Fri, 15 December 2017 14:03 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 5E151128ACA for <netmod@ietfa.amsl.com>; Fri, 15 Dec 2017 06:03:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.399
X-Spam-Level:
X-Spam-Status: No, score=-5.399 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-2.8] 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 JSj6LMNEhyas for <netmod@ietfa.amsl.com>; Fri, 15 Dec 2017 06:03:53 -0800 (PST)
Received: from mx0a-00191d01.pphosted.com (mx0b-00191d01.pphosted.com [67.231.157.136]) (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 D54A9126C25 for <netmod@ietf.org>; Fri, 15 Dec 2017 06:03:52 -0800 (PST)
Received: from pps.filterd (m0049462.ppops.net [127.0.0.1]) by m0049462.ppops.net-00191d01. (8.16.0.21/8.16.0.21) with SMTP id vBFDv8UY006761 for <netmod@ietf.org>; Fri, 15 Dec 2017 09:03:50 -0500
Received: from alpi155.enaf.aldc.att.com (sbcsmtp7.sbc.com [144.160.229.24]) by m0049462.ppops.net-00191d01. with ESMTP id 2evekjaprf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <netmod@ietf.org>; Fri, 15 Dec 2017 09:03:50 -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 vBFE3nOP029507 for <netmod@ietf.org>; Fri, 15 Dec 2017 09:03:49 -0500
Received: from mlpi408.sfdc.sbc.com (mlpi408.sfdc.sbc.com [130.9.128.240]) by alpi155.enaf.aldc.att.com (8.14.5/8.14.5) with ESMTP id vBFE3fbB029361 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <netmod@ietf.org>; Fri, 15 Dec 2017 09:03:45 -0500
Received: from zlp27125.vci.att.com (zlp27125.vci.att.com [135.66.87.52]) by mlpi408.sfdc.sbc.com (RSA Interceptor) for <netmod@ietf.org>; Fri, 15 Dec 2017 14:03:28 GMT
Received: from zlp27125.vci.att.com (zlp27125.vci.att.com [127.0.0.1]) by zlp27125.vci.att.com (Service) with ESMTP id C4852167F71 for <netmod@ietf.org>; Fri, 15 Dec 2017 14:03:28 +0000 (GMT)
Received: from gbcdccas02.intl.att.com (unknown [135.76.180.10]) by zlp27125.vci.att.com (Service) with ESMTPS id 5C7C816A5A8 for <netmod@ietf.org>; Fri, 15 Dec 2017 14:03:28 +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 14:03:27 +0000
From: "Ivory, William" <william.ivory@intl.att.com>
To: "'netmod@ietf.org'" <netmod@ietf.org>
Thread-Topic: Query about augmenting 'config false' YANG
Thread-Index: AdN1mjLksq4lef+RRXCK3AeBlJ13PA==
Date: Fri, 15 Dec 2017 14:02:26 +0000
Deferred-Delivery: Fri, 15 Dec 2017 14:03:26 +0000
Message-ID: <E3378E0605547F4E854DEE0CB1116AB02B6F08@gbcdcmbx03.intl.att.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_E3378E0605547F4E854DEE0CB1116AB02B6F08gbcdcmbx03intlatt_"
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_06:, , 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=1031 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=636 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1712150197
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/u4EJ-cfGKQhz6qv9AKgDn3Unfd4>
Subject: [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 14:03:54 -0000

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;
                                                                }
                                                }
                                }
                }