Hi Lada,

OpenConfig have already introduced a module level extension statement to 
indicate that their pattern statements use POSIX regular expressions.

  extension regexp-posix {
     description
      "This extension indicates that the regular expressions included
      within the YANG module specified are conformant with the POSIX
      regular expression format rather than the W3C standard that is
      specified by RFC6020 and RFC7950.";
  }

Defined in 
https://github.com/openconfig/public/blob/master/release/models/openconfig-extensions.yang

I don't think that this should become part of the YANG standard.

Thanks,
Rob


> -----Original Message-----
> From: netmod <[email protected]> On Behalf Of Ladislav Lhotka
> Sent: 12 June 2019 09:02
> To: NETMOD WG <[email protected]>
> Subject: [netmod] regular expression flavours (again)
> 
> Hi,
> 
> I think it is very unfortunate that OpenConfig folks use POSIX regular
> expressions instead of XSD. This of course causes confusion, see e.g. this
> PR:
> 
> https://github.com/CZ-NIC/yangson/pull/22
> 
> Given the popularity of OpenConfig models, it seems to me that it would be
> better if YANG somehow accomodates such (largely cosmetic) differences.
> 
> One option would be that each YANG module declares the regex flavour used
> in its patterns. Yes, it is a complication, but having separate forks of
> YANG is much worse.
> 
> ISO Schematron adopted a similar approach with "query language binding"
> that can be declared with the schema element, for example
> 
> <schema xmlns="http://purl.oclc.org/dsdl/schematron"; queryBinding="exslt">
> 
> Any thoughts on this?
> 
> Lada
> 
> --
> Ladislav Lhotka
> Head, CZ.NIC Labs
> PGP Key ID: 0xB8F92B08A9F76C67
> 
> _______________________________________________
> netmod mailing list
> [email protected]
> https://www.ietf.org/mailman/listinfo/netmod

_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to