X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fsal%2Fyang-prototype%2Fcode-generator%2Fyang-model-parser-impl%2Fsrc%2Ftest%2Fresources%2Ftypes%2Fcustom-types-test%402012-4-4.yang;h=0a06a30875e4c96457b6783f746c44a3098e96bb;hp=d52068a4ad265a929037b85d554ce1a59c25242a;hb=fc7a2ae9b5c6b82d463fe612509a157e3f261653;hpb=9cdfa8361e3b4d3e969821aa4de5c4862e22a025 diff --git a/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/test/resources/types/custom-types-test@2012-4-4.yang b/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/test/resources/types/custom-types-test@2012-4-4.yang index d52068a4ad..0a06a30875 100644 --- a/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/test/resources/types/custom-types-test@2012-4-4.yang +++ b/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/test/resources/types/custom-types-test@2012-4-4.yang @@ -5,6 +5,8 @@ module custom-types-test { prefix "iit"; organization "opendaylight"; + revision 2012-04-16 { + } contact "WILL-BE-DEFINED-LATER"; @@ -64,5 +66,28 @@ module custom-types-test { } default "auto-sense-speed"; } + + typedef ip-version { + type enumeration { + enum unknown { + description + "An unknown or unspecified version of the Internet protocol."; + } + enum ipv4 { + value "19"; + description + "The IPv4 protocol as defined in RFC 791."; + } + enum ipv6 { + value "7"; + description + "The IPv6 protocol as defined in RFC 2460."; + } + enum default { + description + "default ip"; + } + } + } }