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 {
11 import l3-unicast-igp-topology {
14 import ietf-inet-types {
23 description "OSPF Topology model";
25 revision "2013-07-12" {
26 description "Initial revision";
31 description "OSPF Area ID";
35 grouping ospf-topology-type {
37 presence "indiates OSPF Topology";
41 augment "/nt:network-topology/nt:topology/nt:topology-types/igp:l3-unicast-igp-topology" {
42 uses ospf-topology-type;
45 augment "/nt:network-topology/nt:topology/igp:igp-topology-attributes" {
46 when "../topology-types/ospf";
47 container ospf-topology-attributes {
54 augment "/nt:network-topology/nt:topology/nt:node/igp:igp-node-attributes" {
55 when "../../../topology-types/ospf";
56 uses ospf-node-attributes;
59 augment "/nt:network-topology/nt:topology/nt:link/igp:igp-link-attributes" {
60 when "../../../topology-types/ospf";
61 uses ospf-link-attributes;
64 augment "/nt:network-topology/nt:topology/nt:node/igp:igp-node-attributes/igp:prefix" {
65 when "../../../../topology-types/ospf";
66 uses ospf-prefix-attributes;
69 grouping ospf-node-attributes {
70 container ospf-node-attributes {
93 leaf dr-interface-id {
94 when "../router-type/pseudonode";
95 description "For pseudonodes, DR interface-id";
99 leaf-list multi-topology-id {
100 description "List of Multi-Topology Identifier up-to 128 (0-127). RFC 4915";
107 description "OSPF capabilities as bit vector. RFC 4970";
109 bit graceful-restart-capable {
112 bit graceful-restart-helper {
115 bit stub-router-support {
118 bit traffic-engineering-support {
121 bit point-to-point-over-lan {
124 bit experimental-te {
130 uses ted:ted-node-attributes;
133 } // ospf-node-attributes
135 grouping ospf-link-attributes {
136 container ospf-link-attributes {
137 leaf multi-topology-id {
143 uses ted:ted-link-attributes;
146 } // ospf-link-attributes
148 grouping ospf-prefix-attributes {
149 container ospf-prefix-attributes {
150 leaf forwarding-address {
151 when "../../igp:l3-unicast-igp-topology/igp:ospf/igp:router-type/igp:asbr";
152 type inet:ipv4-address;
158 augment "/igp:igp-node-event" {
159 uses ospf-topology-type;
160 uses ospf:ospf-node-attributes;
163 augment "/igp:igp-link-event" {
164 uses ospf-topology-type;
165 uses ospf:ospf-link-attributes;
168 augment "/igp:igp-prefix-event" {
169 uses ospf-topology-type;
170 uses ospf:ospf-prefix-attributes;