Thomas Vachuska | 8ca75a2 | 2017-08-24 16:12:59 -0700 | [diff] [blame] | 1 | module openconfig-ospfv2 { |
| 2 | |
| 3 | yang-version "1"; |
| 4 | |
| 5 | // namespace |
| 6 | namespace "http://openconfig.net/yang/ospfv2"; |
| 7 | |
| 8 | prefix "oc-ospfv2"; |
| 9 | |
| 10 | // import some basic types |
| 11 | //import ietf-inet-types { prefix inet; } |
| 12 | import openconfig-extensions { prefix "oc-ext"; } |
| 13 | |
| 14 | // Include submodules |
| 15 | // Global: All global context groupings; |
| 16 | include openconfig-ospfv2-global; |
| 17 | // Area: Config/opstate for an area |
| 18 | include openconfig-ospfv2-area; |
| 19 | // Area Interface: Config/opstate for an Interface |
| 20 | include openconfig-ospfv2-area-interface; |
| 21 | // LSDB: Operational state model covering the LSDB |
| 22 | include openconfig-ospfv2-lsdb; |
| 23 | // Common: Content included in >1 context |
| 24 | include openconfig-ospfv2-common; |
| 25 | |
| 26 | // meta |
| 27 | organization "OpenConfig working group"; |
| 28 | |
| 29 | contact |
| 30 | "OpenConfig working group |
| 31 | www.openconfig.net"; |
| 32 | |
| 33 | description |
| 34 | "An OpenConfig model for Open Shortest Path First (OSPF) |
| 35 | version 2"; |
| 36 | |
| 37 | oc-ext:openconfig-version "0.1.0"; |
| 38 | |
| 39 | revision "2017-02-28"{ |
| 40 | description |
| 41 | "Initial public release of OSPFv2"; |
| 42 | reference "0.1.0"; |
| 43 | } |
| 44 | |
| 45 | revision "2016-06-24" { |
| 46 | description |
| 47 | "Initial revision"; |
| 48 | reference "0.0.1"; |
| 49 | } |
| 50 | |
| 51 | grouping ospfv2-top { |
| 52 | description |
| 53 | "Top-level OSPF configuration and operational state"; |
| 54 | |
| 55 | container ospfv2 { |
| 56 | description |
| 57 | "Top-level configuration and operational state for |
| 58 | Open Shortest Path First (OSPF) v2"; |
| 59 | |
| 60 | uses ospfv2-global-structural; |
| 61 | |
| 62 | container areas { |
| 63 | description |
| 64 | "Configuration and operational state relating to an |
| 65 | OSPFv2 area."; |
| 66 | |
| 67 | list area { |
| 68 | key "identifier"; |
| 69 | |
| 70 | description |
| 71 | "The OSPFv2 areas within which the local system exists"; |
| 72 | |
| 73 | leaf identifier { |
| 74 | type leafref { |
| 75 | path "../config/identifier"; |
| 76 | } |
| 77 | description |
| 78 | "A reference to the identifier for the area."; |
| 79 | } |
| 80 | |
| 81 | uses ospfv2-area-structure; |
| 82 | } |
| 83 | } |
| 84 | } |
| 85 | } |
| 86 | } |