module ospf-topology {
yang-version 1;
- namespace "urn:ietf:params:xml:ns:yang:ospf-topology";
-
+ namespace "urn:TBD:params:xml:ns:yang:ospf-topology";
// replace with IANA namespace when assigned
+
prefix "ospf";
import network-topology {
}
import l3-unicast-igp-topology {
- prefix "igp";
+ prefix "l3t";
}
import ietf-inet-types {
prefix "inet";
contact "TBD";
description "OSPF Topology model";
- revision "2013-07-12" {
+ revision "2013-10-21" {
description "Initial revision";
reference "TBD";
}
}
}
- augment "/nt:network-topology/nt:topology/nt:topology-types/igp:l3-unicast-igp-topology" {
+ augment "/nt:network-topology/nt:topology/nt:topology-types/l3t:l3-unicast-igp-topology" {
uses ospf-topology-type;
}
- augment "/nt:network-topology/nt:topology/igp:igp-topology-attributes" {
- when "../topology-types/ospf";
+ augment "/nt:network-topology/nt:topology/l3t:igp-topology-attributes" {
+ when "../nt:topology-types/l3t:l3-unicast-igp-topology/ospf";
container ospf-topology-attributes {
leaf area-id {
type area-id;
}
}
-
}
- augment "/nt:network-topology/nt:topology/nt:node/igp:igp-node-attributes" {
- when "../../../topology-types/ospf";
+ augment "/nt:network-topology/nt:topology/nt:node/l3t:igp-node-attributes" {
+ when "../../nt:topology-types/l3t:l3-unicast-igp-topology/ospf";
uses ospf-node-attributes;
}
- augment "/nt:network-topology/nt:topology/nt:link/igp:igp-link-attributes" {
- when "../../../topology-types/ospf";
+ augment "/nt:network-topology/nt:topology/nt:link/l3t:igp-link-attributes" {
+ when "../../nt:topology-types/l3t:l3-unicast-igp-topology/ospf";
uses ospf-link-attributes;
}
- augment "/nt:network-topology/nt:topology/nt:node/igp:igp-node-attributes/igp:prefix" {
- when "../../../../topology-types/ospf";
+ augment "/nt:network-topology/nt:topology/nt:node/l3t:igp-node-attributes/l3t:prefix" {
+ when "../../../nt:topology-types/l3t:l3-unicast-igp-topology/ospf";
uses ospf-prefix-attributes;
}
type uint32;
}
leaf-list multi-topology-id {
-
description "List of Multi-Topology Identifier up-to 128 (0-127). RFC 4915";
max-elements "128";
+
type uint8 {
range "0..127";
}
}
} // ospf-link-attributes
-
grouping ospf-prefix-attributes {
container ospf-prefix-attributes {
+
leaf forwarding-address {
- when "../../igp:l3-unicast-igp-topology/igp:ospf/igp:router-type/igp:asbr";
+ when "../../l3t:l3-unicast-igp-topology/l3t:ospf/l3t:router-type/l3t:asbr";
type inet:ipv4-address;
}
}
}
- augment "/igp:igp-node-event" {
+ augment "/l3t:igp-node-event" {
uses ospf-topology-type;
uses ospf:ospf-node-attributes;
}
- augment "/igp:igp-link-event" {
+ augment "/l3t:igp-link-event" {
uses ospf-topology-type;
uses ospf:ospf-link-attributes;
}
- augment "/igp:igp-prefix-event" {
+ augment "/l3t:igp-prefix-event" {
uses ospf-topology-type;
uses ospf:ospf-prefix-attributes;
}