Thomas Vachuska | 8ca75a2 | 2017-08-24 16:12:59 -0700 | [diff] [blame] | 1 | submodule openconfig-ospfv2-area { |
| 2 | |
| 3 | belongs-to openconfig-ospfv2 { |
| 4 | prefix "oc-ospfv2"; |
| 5 | } |
| 6 | |
| 7 | import openconfig-extensions { prefix "oc-ext"; } |
| 8 | import openconfig-ospf-types { prefix "oc-ospf-types"; } |
| 9 | import ietf-inet-types { prefix "inet"; } |
| 10 | |
| 11 | // include other required submodules |
| 12 | include openconfig-ospfv2-area-interface; |
| 13 | include openconfig-ospfv2-lsdb; |
| 14 | |
| 15 | // meta |
| 16 | organization "OpenConfig working group"; |
| 17 | |
| 18 | contact |
| 19 | "OpenConfig working group |
| 20 | www.openconfig.net"; |
| 21 | |
| 22 | description |
| 23 | "This submodule provides OSPFv2 configuration and operational |
| 24 | state parameters that are specific to the area context"; |
| 25 | |
| 26 | oc-ext:openconfig-version "0.1.0"; |
| 27 | |
| 28 | revision "2017-02-28"{ |
| 29 | description |
| 30 | "Initial public release of OSPFv2"; |
| 31 | reference "0.1.0"; |
| 32 | } |
| 33 | |
| 34 | revision "2016-06-24" { |
| 35 | description |
| 36 | "Initial revision"; |
| 37 | reference "0.0.1"; |
| 38 | } |
| 39 | |
| 40 | grouping ospfv2-area-config { |
| 41 | description |
| 42 | "Configuration parameters relating to an OSPF area"; |
| 43 | |
| 44 | leaf identifier { |
| 45 | type oc-ospf-types:ospf-area-identifier; |
| 46 | description |
| 47 | "An identifier for the OSPFv2 area - described as either a |
| 48 | 32-bit unsigned integer, or a dotted-quad"; |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | grouping ospfv2-area-mpls-config { |
| 53 | description |
| 54 | "Configuration parameters relating to OSPFv2 extensions for |
| 55 | MPLS"; |
| 56 | |
| 57 | leaf traffic-engineering-enabled { |
| 58 | type boolean; |
| 59 | description |
| 60 | "Specifies whether traffic engineering extensions should be |
| 61 | advertised within the area"; |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | grouping ospfv2-area-virtual-link-config { |
| 66 | description |
| 67 | "Configuration parameters relating to a virtual-link within |
| 68 | the OSPF area"; |
| 69 | |
| 70 | leaf remote-router-id { |
| 71 | type inet:ipv4-address-no-zone; |
| 72 | description |
| 73 | "The router ID of the device which terminates the remote end |
| 74 | of the virtual link"; |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | grouping ospfv2-area-structure { |
| 79 | description |
| 80 | "Structural grouping for configuration and operational state |
| 81 | parameters that relate to an individual area"; |
| 82 | |
| 83 | container config { |
| 84 | description |
| 85 | "Configuration parameters relating to an OSPFv2 area"; |
| 86 | |
| 87 | uses ospfv2-area-config; |
| 88 | } |
| 89 | |
| 90 | container state { |
| 91 | config false; |
| 92 | description |
| 93 | "Operational state parameters relating to an OSPFv2 area"; |
| 94 | uses ospfv2-area-config; |
| 95 | } |
| 96 | |
| 97 | container mpls { |
| 98 | description |
| 99 | "Configuration and operational state parameters for OSPFv2 |
| 100 | extensions relating to MPLS"; |
| 101 | |
| 102 | container config { |
| 103 | description |
| 104 | "Configuration parameters relating to MPLS extensions for |
| 105 | OSPFv2"; |
| 106 | uses ospfv2-area-mpls-config; |
| 107 | } |
| 108 | |
| 109 | container state { |
| 110 | config false; |
| 111 | description |
| 112 | "Operational state parameters relating to MPLS extensions |
| 113 | for OSPFv2"; |
| 114 | uses ospfv2-area-mpls-config; |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | uses ospfv2-lsdb-structure; |
| 119 | uses ospfv2-area-interfaces-structure; |
| 120 | |
| 121 | container virtual-links { |
| 122 | description |
| 123 | "Configuration and state parameters relating to virtual |
| 124 | links from the source area to a remote router"; |
| 125 | |
| 126 | list virtual-link { |
| 127 | key "remote-router-id"; |
| 128 | |
| 129 | description |
| 130 | "Configuration and state parameters relating to a |
| 131 | virtual link"; |
| 132 | |
| 133 | leaf remote-router-id { |
| 134 | type leafref { |
| 135 | path "../config/remote-router-id"; |
| 136 | } |
| 137 | description |
| 138 | "Reference to the remote router ID"; |
| 139 | } |
| 140 | |
| 141 | container config { |
| 142 | description |
| 143 | "Configuration parameters relating to the OSPF virtual link"; |
| 144 | uses ospfv2-area-virtual-link-config; |
| 145 | } |
| 146 | |
| 147 | container state { |
| 148 | config false; |
| 149 | description |
| 150 | "State parameters relating to the OSPF virtual link"; |
| 151 | uses ospfv2-area-virtual-link-config; |
| 152 | uses ospfv2-area-interface-neighbor-state; |
| 153 | } |
| 154 | } |
| 155 | } |
| 156 | } |
| 157 | } |