Dear RTWG colleagues and RFC 9067 authors,

    The yang model in 9067 allows to represent a prefix range list with 
ip-prefix and a mask-lenght-lower and upper in each entry of the list. While 
using the model to reconcile all the prefix-lists in my company's networks I 
found that it was not possible to represent one corner case the exact 0.0.0.0/0 
(or the equivalent ::/0 in IPv6)  . It would be ip-prefix 0.0.0.0/0 
mask-lenght-lower 0 and upper-length-lower 0, but unfortunately in the model 
mask-length-upper needs to be at least 1 (cannot be 0).

      Would it be feasible to update the yang model to allow the 
mask-length-upper to start with 0 and cover this use case (found in operational 
networks)?

Please find below the tree and current definition.


      |  |     +--rw prefixes
       |  |        +--rw prefix-list* [ip-prefix mask-length-lower
       |  |                            mask-length-upper]
       |  |           +--rw ip-prefix           inet:ip-prefix
       |  |           +--rw mask-length-lower    uint8
       |  |           +--rw mask-length-upper    uint8

 leaf mask-length-upper {
      type uint8 {
        range "1..128";
      }
      must '../mask-length-upper >= ../mask-length-lower' {
        error-message "The upper bound MUST NOT be less "
                    + "than lower bound.";
      }
      description
        "Mask length range upper bound.  It MUST NOT be less than
         lower bound.";
    }
  }

Best Regards,

    

Oscar Gonzalez de Dios

Technical Lead for SDN in Transport Networks

Telefonica CTIO Transport Network Unit

[cid:5f71bf79-69ae-4ea9-949b-288c4ede459f]



________________________________

Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede 
contener información privilegiada o confidencial y es para uso exclusivo de la 
persona o entidad de destino. Si no es usted. el destinatario indicado, queda 
notificado de que la lectura, utilización, divulgación y/o copia sin 
autorización puede estar prohibida en virtud de la legislación vigente. Si ha 
recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente 
por esta misma vía y proceda a su destrucción.

The information contained in this transmission is confidential and privileged 
information intended only for the use of the individual or entity named above. 
If the reader of this message is not the intended recipient, you are hereby 
notified that any dissemination, distribution or copying of this communication 
is strictly prohibited. If you have received this transmission in error, do not 
read it. Please immediately reply to the sender that you have received this 
communication in error and then delete it.

Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode 
conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa 
ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica 
notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização 
pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem 
por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e 
proceda a sua destruição
_______________________________________________
rtgwg mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to