3 namespace "urn:ietf:params:xml:ns:yang:ospf-topology";
5 // replace with IANA namespace when assigned
8 import network-topology {
12 import l3-unicast-igp-topology {
15 import ietf-inet-types {
24 description "OSPF Topology model";
26 revision "2013-07-12" {
27 description "Initial revision";
32 description "OSPF Area ID";
36 grouping ospf-topology-type {
38 presence "indiates OSPF Topology";
42 augment "/nt:network-topology/nt:topology/nt:topology-types/igp:l3-unicast-igp-topology" {
43 uses ospf-topology-type;
46 augment "/nt:network-topology/nt:topology/igp:igp-topology-attributes" {
47 when "../topology-types/ospf";
48 container ospf-topology-attributes {
56 augment "/nt:network-topology/nt:topology/nt:node/igp:igp-node-attributes" {
57 when "../../../topology-types/ospf";
58 uses ospf-node-attributes;
61 augment "/nt:network-topology/nt:topology/nt:link/igp:igp-link-attributes" {
62 when "../../../topology-types/ospf";
63 uses ospf-link-attributes;
66 augment "/nt:network-topology/nt:topology/nt:node/igp:igp-node-attributes/igp:prefix" {
67 when "../../../../topology-types/ospf";
68 uses ospf-prefix-attributes;
71 grouping ospf-node-attributes {
72 container ospf-node-attributes {
95 leaf dr-interface-id {
96 when "../router-type/pseudonode";
97 description "For pseudonodes, DR interface-id";
101 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
152 grouping ospf-prefix-attributes {
153 container ospf-prefix-attributes {
154 leaf forwarding-address {
155 when "../../igp:l3-unicast-igp-topology/igp:ospf/igp:router-type/igp:asbr";
156 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;