1 ňmodule ospf-topology {
3 namespace "urn:ietf:params:xml:ns:yang:ospf-topology";
4 // replace with IANA namespace when assigned
7 import network-topology {
9 revision-date 2013-07-12;
12 import l3-unicast-igp-topology {
14 revision-date 2013-07-12;
16 import ietf-inet-types {
21 revision-date 2013-07-12;
26 description "OSPF Topology model";
28 revision "2013-07-12" {
29 description "Initial revision";
34 description "OSPF Area ID";
38 grouping ospf-topology-type {
40 presence "indiates OSPF Topology";
44 augment "/nt:network-topology/nt:topology/nt:topology-types/igp:l3-unicast-igp-topology" {
45 uses ospf-topology-type;
48 augment "/nt:network-topology/nt:topology/igp:igp-topology-attributes" {
49 when "../topology-types/ospf";
50 container ospf-topology-attributes {
57 augment "/nt:network-topology/nt:topology/nt:node/igp:igp-node-attributes" {
58 when "../../../topology-types/ospf";
59 uses ospf-node-attributes;
62 augment "/nt:network-topology/nt:topology/nt:link/igp:igp-link-attributes" {
63 when "../../../topology-types/ospf";
64 uses ospf-link-attributes;
67 augment "/nt:network-topology/nt:topology/nt:node/igp:igp-node-attributes/igp:prefix" {
68 when "../../../../topology-types/ospf";
69 uses ospf-prefix-attributes;
72 grouping ospf-node-attributes {
73 container ospf-node-attributes {
96 leaf dr-interface-id {
97 when "../router-type/pseudonode";
98 description "For pseudonodes, DR interface-id";
102 leaf-list multi-topology-id {
103 description "List of Multi-Topology Identifier up-to 128 (0-127). RFC 4915";
110 description "OSPF capabilities as bit vector. RFC 4970";
112 bit graceful-restart-capable {
115 bit graceful-restart-helper {
118 bit stub-router-support {
121 bit traffic-engineering-support {
124 bit point-to-point-over-lan {
127 bit experimental-te {
133 uses ted:ted-node-attributes;
136 } // ospf-node-attributes
138 grouping ospf-link-attributes {
139 container ospf-link-attributes {
140 leaf multi-topology-id {
146 uses ted:ted-link-attributes;
149 } // ospf-link-attributes
151 grouping ospf-prefix-attributes {
152 container ospf-prefix-attributes {
153 leaf forwarding-address {
154 when "../../igp:l3-unicast-igp-topology/igp:ospf/igp:router-type/igp:asbr";
155 type inet:ipv4-address;
161 augment "/igp:igp-node-event" {
162 uses ospf-topology-type;
163 uses ospf:ospf-node-attributes;
166 augment "/igp:igp-link-event" {
167 uses ospf-topology-type;
168 uses ospf:ospf-link-attributes;
171 augment "/igp:igp-prefix-event" {
172 uses ospf-topology-type;
173 uses ospf:ospf-prefix-attributes;