Mahesh, > On Aug 23, 2022, at 3:03 PM, Mahesh Jethanandani <mjethanand...@gmail.com> > wrote: > >>> In addition, I have now also checked the OpenConfig YANG models, and they >>> also have ways to set the MSS, for instance: >>> >>> leaf tcp-mss { >>> type uint16; >>> description >>> "Sets the max segment size for BGP TCP sessions."; >>> } >> >> An example above, where a typedef for the uint16 might be helpful. > > Not clear on why you would like to see a typedef rather than a definition for > MSS node as suggested by Michael. Or did you mean to put a range for the MSS > value?
For individual instances implementing the MSS, you'll want a leaf. The purpose of a typedef is having each of the places where MSS configuration or operational state is used have a consistent type/constraint and perhaps pointer into the TCP specs. That way, as a theoretical example, you don't define MSS in one model as uint16 and another as uint32 with a range restriction - which might be how someone's implementation does it. -- Jeff
_______________________________________________ GROW mailing list GROW@ietf.org https://www.ietf.org/mailman/listinfo/grow