Gaurav Agrawal | 28920d8 | 2017-10-06 17:39:42 +0530 | [diff] [blame] | 1 | module ietf-template { |
| 2 | |
| 3 | // replace this string with a unique namespace URN value |
| 4 | namespace |
| 5 | "urn:ietf:params:xml:ns:yang:ietf-template"; |
| 6 | |
| 7 | // replace this string, and try to pick a unique prefix |
| 8 | prefix "temp"; |
| 9 | |
| 10 | // import statements here: e.g., |
| 11 | // import ietf-yang-types { prefix yang; } |
| 12 | // import ietf-inet-types { prefix inet; } |
| 13 | |
| 14 | // identify the IETF working group if applicable |
| 15 | organization |
| 16 | "IETF NETMOD (NETCONF Data Modeling Language) Working Group"; |
| 17 | |
| 18 | // update this contact statement with your info |
| 19 | contact |
| 20 | "WG Web: <http://tools.ietf.org/wg/your-wg-name/> |
| 21 | WG List: <mailto:your-wg-name@ietf.org> |
| 22 | |
| 23 | WG Chair: your-WG-chair |
| 24 | <mailto:your-WG-chair@example.com> |
| 25 | |
| 26 | Editor: your-name |
| 27 | <mailto:your-email@example.com>"; |
| 28 | |
| 29 | // replace the first sentence in this description statement. |
| 30 | // replace the copyright notice with the most recent |
| 31 | // version, if it has been updated since the publication |
| 32 | // of this document |
| 33 | description |
| 34 | "This module defines a template for other YANG modules. |
| 35 | |
| 36 | Copyright (c) <insert year> IETF Trust and the persons |
| 37 | identified as authors of the code. All rights reserved. |
| 38 | |
| 39 | Redistribution and use in source and binary forms, with or |
| 40 | without modification, is permitted pursuant to, and subject |
| 41 | to the license terms contained in, the Simplified BSD License |
| 42 | set forth in Section 4.c of the IETF Trust's Legal Provisions |
| 43 | Relating to IETF Documents |
| 44 | (http://trustee.ietf.org/license-info). |
| 45 | |
| 46 | This version of this YANG module is part of RFC XXXX; see |
| 47 | the RFC itself for full legal notices."; |
| 48 | |
| 49 | // RFC Ed.: replace XXXX with actual RFC number and remove this note |
| 50 | |
| 51 | reference "RFC XXXX"; |
| 52 | |
| 53 | // RFC Ed.: remove this note |
| 54 | // Note: extracted from RFC 6087 |
| 55 | |
| 56 | // replace '2010-05-18' with the module publication date |
| 57 | // The format is (year-month-day) |
| 58 | revision "2010-05-18" { |
| 59 | description |
| 60 | "Initial version"; |
| 61 | } |
| 62 | |
| 63 | // extension statements |
| 64 | |
| 65 | // feature statements |
| 66 | |
| 67 | // identity statements |
| 68 | |
| 69 | // typedef statements |
| 70 | |
| 71 | // grouping statements |
| 72 | |
| 73 | // data definition statements |
| 74 | |
| 75 | // augment statements |
| 76 | |
| 77 | // rpc statements |
| 78 | |
| 79 | // notification statements |
| 80 | |
| 81 | // DO NOT put deviation statements in a published module |
| 82 | |
| 83 | } |