Subject: [netmod] more yang-types (!)

From: Andy Bierman <[email-masked]>
Date: Fri, 19 Jun 2009 11:27:12 -0700

Hi,

IMO, ietf-yang-types should define an 'admin-string' type.

Also, why not add these 'time types' to ietf-yang-types as well:

    - years
    - months
    - weeks
    - days
    - hours
    - minutes
    - seconds
    - milli-seconds
    - micro-seconds
    - nano-seconds

Instead of relying on individual usage of the units-stmt,
put it in the typedef, so generic uint32 or uint64 is not the only
semantics defined.

These types may or may not matter to NETCONF.
There should be comments in them that they are for SNMP compatibility.

    - object-identifier
    - object-identifier-128
    - timeticks
    - timestamp

YANG needs a real object-identifier derived type to go along with
the instance-identifier built-in type.  It should follow
the absolute-schema-nodeid ABNF rule, except the prefixes
will be XML prefixes, not YANG prefixes. e.g.,

   <object-id-leaf xmlns:if="http://example.com/ns/interfaces">
      /if:interfaces/if:interface/if:ifInOctets
   </object-id-leaf>

YANG needs a real time-stamp, which should be 'date-and-time'
in canonical (UTC) format.  Perhaps a 'time-delta' type as well.

Andy