[netmod] 答复: 答复: question about name without prefix in XPath expression

2023-01-12 Thread Fengchong (frank)
Hi Jernej, Sorry, the path should be /instances/instance/name. I do know the specifications about how to resolve XPATH of RFC7950, and I wrote a YANG parser which comply with these specifications. When I compile YANG modules like the example, I get an error. Yes, if the author write path as "/a

[netmod] I-D Action: draft-ietf-netmod-yang-module-versioning-08.txt

2023-01-12 Thread internet-drafts
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 : Updated YANG Module Revision Handling Authors : Robert Wilton Reshad Rahman

[netmod] I-D Action: draft-ietf-netmod-yang-semver-09.txt

2023-01-12 Thread internet-drafts
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 : YANG Semantic Versioning Authors : Joe Clarke Robert Wilton

Re: [netmod] What to reference when importing an IANA module?

2023-01-12 Thread Randy Presuhn
Hi - On 2023-01-12 9:03 AM, Benoit Claise wrote: ... Oh, because you conclude that, if we put a RFC number in the reference, the community will (be stupid enough to) conclude that it has to extract the YANG module from the RFC text directly ... as opposed to look for a location where it's alre

Re: [netmod] 答复: CORE-SID and SX:structure and draft-ietf-anima-rfc8366bis-01.txt

2023-01-12 Thread Andy Bierman
On Thu, Jan 12, 2023 at 8:10 AM Michael Richardson wrote: > > Fengchong (frank) wrote: > > Hi Michael, > > You can use augment-structure to extend a yang structure. > > You can't use augment-structure to extend in-place an existing yang > structure > Augment-structure produces a new stru

Re: [netmod] Use of unrestricted string in YANG (was RE: naming scope of a grouping which uses a grouping)

2023-01-12 Thread Andy Bierman
On Thu, Jan 12, 2023 at 8:33 AM Jürgen Schönwälder < j.schoenwael...@jacobs-university.de> wrote: > On Thu, Jan 12, 2023 at 07:08:05AM -0800, Andy Bierman wrote: > > > > Just because the escaped string is "safe" inside a NETCONF protocol > message > > does not mean it is safe to use in other tools

Re: [netmod] What to reference when importing an IANA module?

2023-01-12 Thread Benoit Claise
Hi Tom, On 1/12/2023 5:51 PM, tom petch wrote: From: netmod on behalf of Benoit Claise Sent: 12 January 2023 14:45 Dear all, >From the initial problem statement: During a WG adoption poll we have received a comment that the URL should be added in the reference statement when importing a YAN

Re: [netmod] YANG augmentation in notification

2023-01-12 Thread Alex Huang Feng
Dear Netmod WG, I created the issue on github on the pyang project regarding augmented notification containers with mandatory leaves. https://github.com/mbj4668/pyang/issues/840 Regards, Alex > On 5 Dec 2022, at 11:02, Martin Björklund wrote: >

Re: [netmod] What to reference when importing an IANA module?

2023-01-12 Thread tom petch
From: netmod on behalf of Benoit Claise Sent: 12 January 2023 14:45 Dear all, >From the initial problem statement: During a WG adoption poll we have received a comment that the URL should be added in the reference statement when importing a YANG module maintained by IANA The important question

Re: [netmod] Use of unrestricted string in YANG (was RE: naming scope of a grouping which uses a grouping)

2023-01-12 Thread Jürgen Schönwälder
On Thu, Jan 12, 2023 at 07:08:05AM -0800, Andy Bierman wrote: > > Just because the escaped string is "safe" inside a NETCONF protocol message > does not mean it is safe to use in other tools. Data (especially list keys) > gets moved > between software programs. Unrestricted strings increase the ri

Re: [netmod] Use of unrestricted string in YANG (was RE: naming scope of a grouping which uses a grouping)

2023-01-12 Thread Jürgen Schönwälder
My take is that arbitrary limites are worse than no limits. Robust implementations will reject values that go beyond certain implementation and platform specific limits. If anything makes sense to standardize, then it is the minimum lengths that must be supported, for which we do not really have f

Re: [netmod] 答复: CORE-SID and SX:structure and draft-ietf-anima-rfc8366bis-01.txt

2023-01-12 Thread Michael Richardson
Fengchong (frank) wrote: > Hi Michael, > You can use augment-structure to extend a yang structure. You can't use augment-structure to extend in-place an existing yang structure Augment-structure produces a new structure with a new name that has been extended. Perhaps you'd like to go b

Re: [netmod] Use of unrestricted string in YANG (was RE: naming scope of a grouping which uses a grouping)

2023-01-12 Thread Andy Bierman
On Thu, Jan 12, 2023 at 4:38 AM Italo Busi wrote: > I have seen the comment from Tom about the unrestricted string in YANG on > other drafts in WG LC or WG adoption poll and I would like to understand > what is the position of the Netmod WG on this issue > > > > Using unrestricted string is quite

Re: [netmod] 答复: question about name without prefix in XPath expression

2023-01-12 Thread Jernej Tuljak
On 12/01/2023 02:24, Fengchong (frank) wrote: Lada, For example: Module a { namespace "http://example.com/a";; typedef instance-ref { type leafref { path "instances/instance/name"; } } container instances { list instance { key name;

Re: [netmod] What to reference when importing an IANA module?

2023-01-12 Thread Benoit Claise
Dear all, From the initial problem statement: During a WG adoption poll we have received a comment that the URL should be added in the reference statement when importing a YANG module maintained by IANA The important question to me is: is this reference text supposed to be read by a m

Re: [netmod] What to reference when importing an IANA module?

2023-01-12 Thread mohamed.boucadair
Re-, Please see inline. Cheers, Med > -Message d'origine- > De : tom petch > Envoyé : jeudi 12 janvier 2023 14:18 > À : BOUCADAIR Mohamed INNOV/NET ; > Italo Busi ; > netmod@ietf.org > Cc : cc...@ietf.org > Objet : Re: What to reference when importing an IANA module? > > From: netmod

Re: [netmod] What to reference when importing an IANA module?

2023-01-12 Thread tom petch
From: netmod on behalf of mohamed.boucad...@orange.com Sent: 12 January 2023 13:09 Hi Italo, There is currently no explicit (*) guideline for this, but this is a point I can add to https://datatracker.ietf.org/doc/draft-boucadair-netmod-iana-registries/. Many RFCs are referencing the RFC th

Re: [netmod] What to reference when importing an IANA module?

2023-01-12 Thread mohamed.boucadair
Hi Italo, There is currently no explicit (*) guideline for this, but this is a point I can add to https://datatracker.ietf.org/doc/draft-boucadair-netmod-iana-registries/. Many RFCs are referencing the RFC that specified the initial version of the IANA module: rfc9127, rfc9129, rfc9130, rfc929

Re: [netmod] Use of unrestricted string in YANG (was RE: naming scope of a grouping which uses a grouping)

2023-01-12 Thread Carsten Bormann
On 2023-01-12, at 13:38, Italo Busi wrote: > > Moreover, I am not sure whether restricting the strings would solve the out > of memory: what happens if a huge YANG list is configured? SGML had an elaborate system for placing arbitrary restrictions on some “capacity” parameters. People who wr

[netmod] Use of unrestricted string in YANG (was RE: naming scope of a grouping which uses a grouping)

2023-01-12 Thread Italo Busi
I have seen the comment from Tom about the unrestricted string in YANG on other drafts in WG LC or WG adoption poll and I would like to understand what is the position of the Netmod WG on this issue Using unrestricted string is quite common practice in existing IETF standard YANG models, also

[netmod] What to reference when importing an IANA module?

2023-01-12 Thread Italo Busi
Hi all, Happy New Year During a WG adoption poll we have received a comment that the URL should be added in the reference statement when importing a YANG module maintained by IANA and we are not sure how to address this comment See: https://mailarchive.ietf.org/arch/msg/ccamp/zD6gAfEUlYJ4W3qQl