3 namespace "urn:TBD:params:xml:ns:yang:ospf-topology";
4 // replace with IANA namespace when assigned
8 import network-topology {
10 revision-date 2013-10-21;
13 import l3-unicast-igp-topology {
15 revision-date 2013-10-21;
17 import ietf-inet-types {
19 revision-date 2010-09-24;
23 revision-date 2013-10-21;
28 description "OSPF Topology model";
30 revision "2013-10-21" {
31 description "Initial revision";
36 description "OSPF Area ID";
40 grouping ospf-topology-type {
42 presence "indiates OSPF Topology";
46 augment "/nt:network-topology/nt:topology/nt:topology-types/l3t:l3-unicast-igp-topology" {
47 uses ospf-topology-type;
50 augment "/nt:network-topology/nt:topology/l3t:igp-topology-attributes" {
51 when "../nt:topology-types/l3t:l3-unicast-igp-topology/ospf";
52 container ospf-topology-attributes {
59 augment "/nt:network-topology/nt:topology/nt:node/l3t:igp-node-attributes" {
60 when "../../nt:topology-types/l3t:l3-unicast-igp-topology/ospf";
61 uses ospf-node-attributes;
64 augment "/nt:network-topology/nt:topology/nt:link/l3t:igp-link-attributes" {
65 when "../../nt:topology-types/l3t:l3-unicast-igp-topology/ospf";
66 uses ospf-link-attributes;
69 augment "/nt:network-topology/nt:topology/nt:node/l3t:igp-node-attributes/l3t:prefix" {
70 when "../../../nt:topology-types/l3t:l3-unicast-igp-topology/ospf";
71 uses ospf-prefix-attributes;
74 grouping ospf-node-attributes {
75 container ospf-node-attributes {
98 leaf dr-interface-id {
99 when "../router-type/pseudonode";
100 description "For pseudonodes, DR interface-id";
104 leaf-list multi-topology-id {
105 description "List of Multi-Topology Identifier up-to 128 (0-127). RFC 4915";
113 description "OSPF capabilities as bit vector. RFC 4970";
115 bit graceful-restart-capable {
118 bit graceful-restart-helper {
121 bit stub-router-support {
124 bit traffic-engineering-support {
127 bit point-to-point-over-lan {
130 bit experimental-te {
136 uses ted:ted-node-attributes;
139 } // ospf-node-attributes
141 grouping ospf-link-attributes {
142 container ospf-link-attributes {
143 leaf multi-topology-id {
149 uses ted:ted-link-attributes;
152 } // ospf-link-attributes
154 grouping ospf-prefix-attributes {
155 container ospf-prefix-attributes {
157 leaf forwarding-address {
158 when "../../l3t:l3-unicast-igp-topology/l3t:ospf/l3t:router-type/l3t:asbr";
159 type inet:ipv4-address;
164 augment "/l3t:igp-node-event" {
165 uses ospf-topology-type;
166 uses ospf:ospf-node-attributes;
169 augment "/l3t:igp-link-event" {
170 uses ospf-topology-type;
171 uses ospf:ospf-link-attributes;
174 augment "/l3t:igp-prefix-event" {
175 uses ospf-topology-type;
176 uses ospf:ospf-prefix-attributes;