draft-ietf-ospf-yang-02.txt   draft-ietf-ospf-yang-03.txt 
Internet D. Yeung Internet D. Yeung
Internet-Draft Y. Qu Internet-Draft Y. Qu
Intended status: Informational Cisco Systems Intended status: Informational Cisco Systems
Expires: March 5, 2016 J. Zhang Expires: April 21, 2016 J. Zhang
Juniper Networks Juniper Networks
D. Bogdanovic D. Bogdanovic
K. Sreenivasa K. Sreenivasa
Cisco Systems Cisco Systems
September 2, 2015 October 19, 2015
Yang Data Model for OSPF Protocol Yang Data Model for OSPF Protocol
draft-ietf-ospf-yang-02 draft-ietf-ospf-yang-03
Abstract Abstract
This document defines a YANG data model that can be used to configure This document defines a YANG data model that can be used to configure
and manage OSPF. and manage OSPF.
Status of This Memo Status of This Memo
This Internet-Draft is submitted in full conformance with the This Internet-Draft is submitted in full conformance with the
provisions of BCP 78 and BCP 79. provisions of BCP 78 and BCP 79.
skipping to change at page 1, line 37 skipping to change at page 1, line 37
Internet-Drafts are working documents of the Internet Engineering Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet- working documents as Internet-Drafts. The list of current Internet-
Drafts is at http://datatracker.ietf.org/drafts/current/. Drafts is at http://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress." material or to cite them other than as "work in progress."
This Internet-Draft will expire on March 5, 2016. This Internet-Draft will expire on April 21, 2016.
Copyright Notice Copyright Notice
Copyright (c) 2015 IETF Trust and the persons identified as the Copyright (c) 2015 IETF Trust and the persons identified as the
document authors. All rights reserved. document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents Provisions Relating to IETF Documents
(http://trustee.ietf.org/license-info) in effect on the date of (http://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents publication of this document. Please review these documents
skipping to change at page 2, line 17 skipping to change at page 2, line 17
Table of Contents Table of Contents
1. Overview . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1. Overview . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1. Requirements Language . . . . . . . . . . . . . . . . . . 3 1.1. Requirements Language . . . . . . . . . . . . . . . . . . 3
2. Design of Data Model . . . . . . . . . . . . . . . . . . . . 3 2. Design of Data Model . . . . . . . . . . . . . . . . . . . . 3
2.1. Overview . . . . . . . . . . . . . . . . . . . . . . . . 3 2.1. Overview . . . . . . . . . . . . . . . . . . . . . . . . 3
2.2. OSPFv2 and OSPFv3 . . . . . . . . . . . . . . . . . . . . 5 2.2. OSPFv2 and OSPFv3 . . . . . . . . . . . . . . . . . . . . 5
2.3. Optional Features . . . . . . . . . . . . . . . . . . . . 5 2.3. Optional Features . . . . . . . . . . . . . . . . . . . . 5
2.4. Inheritance . . . . . . . . . . . . . . . . . . . . . . . 5 2.4. Inheritance . . . . . . . . . . . . . . . . . . . . . . . 5
2.5. OSPF Router Configuration . . . . . . . . . . . . . . . . 5 2.5. OSPF Router Configuration . . . . . . . . . . . . . . . . 6
2.6. OSPF Instance Configuration . . . . . . . . . . . . . . . 6 2.6. OSPF Instance Configuration . . . . . . . . . . . . . . . 6
2.7. OSPF Area Configuration . . . . . . . . . . . . . . . . . 7 2.7. OSPF Area Configuration . . . . . . . . . . . . . . . . . 7
2.8. OSPF Interface Configuration . . . . . . . . . . . . . . 9 2.8. OSPF Interface Configuration . . . . . . . . . . . . . . 10
2.9. OSPF notification . . . . . . . . . . . . . . . . . . . . 11 2.9. OSPF notification . . . . . . . . . . . . . . . . . . . . 11
3. OSPF Segment Routing . . . . . . . . . . . . . . . . . . . . 14 3. OSPF Segment Routing . . . . . . . . . . . . . . . . . . . . 14
4. OSPF Yang Module . . . . . . . . . . . . . . . . . . . . . . 20 4. OSPF BFD Yang Module . . . . . . . . . . . . . . . . . . . . 21
5. Security Considerations . . . . . . . . . . . . . . . . . . . 104 5. OSPF Yang Module . . . . . . . . . . . . . . . . . . . . . . 22
6. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 104 6. OSPF Segment Routing Yang Module . . . . . . . . . . . . . . 89
7. References . . . . . . . . . . . . . . . . . . . . . . . . . 105 7. OSPF BFD Yang Module . . . . . . . . . . . . . . . . . . . . 103
7.1. Normative References . . . . . . . . . . . . . . . . . . 105 8. Security Considerations . . . . . . . . . . . . . . . . . . . 106
7.2. Informative References . . . . . . . . . . . . . . . . . 106 9. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 106
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 106 10. References . . . . . . . . . . . . . . . . . . . . . . . . . 106
10.1. Normative References . . . . . . . . . . . . . . . . . . 106
10.2. Informative References . . . . . . . . . . . . . . . . . 108
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 108
1. Overview 1. Overview
YANG [RFC6020] is a data definition language that was introduced to YANG [RFC6020] is a data definition language used to define the
define the contents of a conceptual data store that allows networked contents of a conceptual data store that allows networked devices to
devices to be managed using NETCONF [RFC6241]. YANG is proving be managed using NETCONF [RFC6241]. YANG is proving relevant beyond
relevant beyond its initial confines, as bindings to other interfaces its initial confines, as bindings to other interfaces (e.g., ReST)
(e.g. ReST) and encodings other than XML (e.g. JSON) are being and encodings other than XML (e.g., JSON) are being defined.
defined. Furthermore, YANG data models can be used as the basis of Furthermore, YANG data models can be used as the basis for
implementation for other interfaces, such as CLI and programmatic implementation of other interfaces, such as CLI and programmatic
APIs. APIs.
A core routing data model is defined in This document defines a YANG data model that can be used to configure
[I-D.ietf-netmod-routing-cfg], and it proposes a basis for the and manage OSPF and it is an augmentation to the core routing data
model. A core routing data model is defined in
[I-D.ietf-netmod-routing-cfg], and it provides the basis for the
development of data models for routing protocols. The interface data development of data models for routing protocols. The interface data
model is defined in [RFC7223] and is used for referencing interface model is defined in [RFC7223] and is used for referencing interfaces
from the routing protocol. The key-chain data model is defined in from the routing protocol. The key-chain data model used for OSPF
[I-D.acee-rtg-yang-key-chain] and is used for referencing key-chains authentication is defined in [I-D.acee-rtg-yang-key-chain] and
configured for authentication and for the enumeration of provides both a reference to configured key-chains and an enumeration
cryptographic algorithms, also used for authentication. This of cryptographic algorithms.
document defines a YANG data model that can be used to configure and
manage OSPF and it is an augment to the core routing data model.
Both OSPFv2 [RFC2328] and OSPFv3 [RFC5340] are supported. In Both OSPFv2 [RFC2328] and OSPFv3 [RFC5340] are supported. In
additional to the core OSPF protocol, features described in different addition to the core OSPF protocol, features described in other OSPF
separate OSPF RFCs are also supported. They includes demand circuit RFCs are also supported. They includes demand circuit [RFC1793],
[RFC1793], traffic engineering [RFC3630], multiple address family traffic engineering [RFC3630], multiple address family [RFC5838],
[RFC5838], graceful restart [RFC3623] [RFC5187], NSSA [RFC3101] and graceful restart [RFC3623] [RFC5187], NSSA [RFC3101], and sham link
sham link [RFC4577]. Those non-core features are made optional in [RFC4577]. These non-core features are made optional in the OSPF
the data model provided. data model.
1.1. Requirements Language 1.1. Requirements Language
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [RFC2119]. document are to be interpreted as described in [RFC2119].
2. Design of Data Model 2. Design of Data Model
Although the basis of OSPF configuration elements like routers, areas Although the basis of OSPF configuration elements like routers,
and interfaces remains the same, the detailed configuration model areas, and interfaces remains the same, the detailed configuration
varies among different vendors. Differences are observed in term of model varies among router vendors. Differences are observed in terms
how protocol engine is tied to routing domain, how multiple protocol of how the protocol engine is tied to routing domain, how multiple
engines could be instantiated and configuration inheritance, just to protocol engines are be instantiated, and configuration inheritance,
name a few. among others.
The goal of this document is to define a data model which provides a The goal of this document is to define a data model that provides a
common user interface to the OSPFv2 and OSPFv3 protocol. There is common user interface to the OSPFv2 and OSPFv3 protocol. There is
very little information that is designated as "mandatory", providing very little information that is designated as "mandatory", providing
freedom to vendors to adapt this data model to their product freedom for vendors to adapt this data model to their respective
implementation. product implementations.
2.1. Overview 2.1. Overview
The OSPF YANG module defined in this document has all the common The OSPF YANG module defined in this document has all the common
building blocks for OSPF protocol. building blocks for the OSPF protocol.
The OSPF YANG module augments the routing/routing-instance/routing- The OSPF YANG module augments the routing/routing-instance/routing-
protocols/routing-protocol path of the ietf-routing module. protocols/routing-protocol path defined in the ietf-routing module.
module: ospf module: ospf
+--rw routing +--rw routing
+--rw routing-instance [name] +--rw routing-instance [name]
+--rw routing-protocols +--rw routing-protocols
+--rw routing-protocol [name] +--rw routing-protocol [name]
+--rw ospf +--rw ospf
. .
. .
+--rw all-instances-inherit {instance-inheritance}? +--rw all-instances-inherit {instance-inheritance}?
skipping to change at page 4, line 43 skipping to change at page 4, line 43
| | . | | .
| +--rw interfaces | +--rw interfaces
| | +--rw interface* [interface] | | +--rw interface* [interface]
| | . | | .
| | . | | .
| . | .
| . | .
+--rw topologies +--rw topologies
+--rw topology* [name] +--rw topology* [name]
The ospf is intended to match to the vendor specific OSPF The ospf module is intended to match to the vendor specific OSPF
configuration construct which is identified by a local identifier configuration construct that is identified by a local identifier
'name'. The field 'version' allows support for OSPFv2 and OSPFv3. 'name'. The field 'version' allows support for OSPFv2 and OSPFv3.
The ospf container includes one or more OSPF protocol engines, each The ospf container includes one or more OSPF protocol engines, each
encapsulated in the instance entity. Each instance includes enclosed in a separate instance entity. Each instance includes
information for the routing domain it is running on based on the information for the routing domain based on the [routing-instance af]
[routing-instance af] specification. There is no default routing specification. There is no default routing domain assumed by the
domain assumed by the data model. For example, to enable OSPF on the data model. For example, to enable OSPF on a vendor's default IPv4
default IPv4 routing domain of the vendor, this model requires an routing domain, an explicit instance entity with a specification like
explicit instance entity with the specification like ["default"
"ipv4-unicast"]. The instance also contains OSPF router level
configuration
The instance/area and instance/area/interface container contain the ["default" "ipv4-unicast"] is required. The instance also contains
OSPF configuration for the area and interface level respectively OSPF router level configuration
The instance/topology container contain the OSPF configuration for The instance/area and instance/area/interface containers respectively
topology when multi-topology feature is enabled define the OSPF configuration for OSPF areas and interfaces.
The instance/topology container defines the OSPF configuration for
OSPF topologies when the multi-topology feature is supported.
2.2. OSPFv2 and OSPFv3 2.2. OSPFv2 and OSPFv3
The defined data model supports both OSPFv2 and OSPFv3. The data model defined herein supports both OSPFv2 and OSPFv3.
The field 'version' is used to indicate the OSPF version and is a The field 'version' is used to indicate the OSPF version and is
mandatory. Based on the version set, the data model changes mandatory. Based on the configured version, the data model varies to
accordingly to accommodate the difference between OSPFv2 and OSPFv3. accommodate the differences between OSPFv2 and OSPFv3.
2.3. Optional Features 2.3. Optional Features
Optional features are features beyond the basic of OSPF Optional features are beyond the basic OSPF configuration and it is
configurations and it is up to a vendor to decide the support of a the responsibility of each vendor to decide whether to support a
particular feature on a particular device. given feature on a particular device.
This model has declared a number of features, such as NSR, max-LSA This model defines a number of features, such as NSR, max-LSA, etc.
etc.. It is expected that vendors will extend the feature list. It is expected that vendors will support additional features through
vendor specific augmentations.
2.4. Inheritance 2.4. Inheritance
This data model supports configuration inheritance at different This data model supports configuration inheritance at different
levels, e.g. instance-level, area-level and interface-level levels including instance-level, area-level, and interface-level
inheritance. inheritance.
The all-instances-inherit, all-areas-inherit and all-interfaces- The all-instances-inherit, all-areas-inherit, and all-interfaces-
inherit containers are defined to provide a consistent way to inherit containers are defined to provide a consistent way to
configure inheritable commands. For example, parameters defined in configure inheritable configuration parameters. For example,
all-instances-inherit apply to all OSPF instances, and a particular parameters defined in the all-instances-inherit container apply to
instance can override this inheritance with its own configuration. all OSPF instances. However, a particular instance configuration can
override this inheritance.
Inheritance is defined as an optional feature, and vendors are Inheritance is defined as an optional feature, and vendors are
expected to augment the above containers with their own permitted to augment the inheritance containers with their own vendor
implementations. specific parameters.
2.5. OSPF Router Configuration 2.5. OSPF Router Configuration
The container ospf is the top level container in this data model. It The ospf container is the top level container in this data model. It
contains shared information among different OSPF instances under the contains shared information among the OSPF instances configured
container. within the container.
module: ospf module: ospf
+--rw ospf +--rw ospf
+--rw all-instances-inherit {instance-inheritance}? +--rw all-instances-inherit {instance-inheritance}?
| +--rw area | +--rw area
| +--rw interface | +--rw interface
+--rw operation-mode? identityref +--rw operation-mode? identityref
+--rw instance* [af] +--rw instance* [af]
. .
. .
2.6. OSPF Instance Configuration 2.6. OSPF Instance Configuration
The container instance represents an OSPF protocol engine. Each The instance container represents an OSPF protocol engine and
instance indicates the routing domain it is associated with based on contains the router level configuration. The routing domain for each
[routing-instance af] and contains the router level configurations. instance is dictated through the specification of [routing-instance
af].
The all-areas-inherit container contains area configuration that The all-areas-inherit container contains area configuration that may
could be inherited to all OSPF areas defined. be inherited by configured OSPF areas.
module: ospf module: ospf
+--rw ospf +--rw ospf
. .
. .
+--rw instance* [af] +--rw instance* [af]
+--rw af identityref +--rw af identityref
+--rw router-id? yang:dotted-quad {router-id}? +--rw router-id? yang:dotted-quad {router-id}?
+--rw admin-distance +--rw admin-distance
skipping to change at page 7, line 32 skipping to change at page 7, line 39
| +--rw igp-sync? boolean {ldp-igp-sync}? | +--rw igp-sync? boolean {ldp-igp-sync}?
| +--rw autoconfig? boolean {ldp-igp-autoconfig}? | +--rw autoconfig? boolean {ldp-igp-autoconfig}?
+--rw fast-reroute {fast-reroute}? +--rw fast-reroute {fast-reroute}?
| +--rw lfa {lfa}? | +--rw lfa {lfa}?
+--rw all-areas-inherit {area-inheritance}? +--rw all-areas-inherit {area-inheritance}?
| +--rw area | +--rw area
| +--rw interface | +--rw interface
2.7. OSPF Area Configuration 2.7. OSPF Area Configuration
The container area contains configurations of that area and the list The area container contains OSPF area configuration and the list of
of interface containers represent all the OSPF interfaces active in interface containers representing all the OSPF interfaces in the
the enclosing area. area.
The all-interfaces-inherit contains interface configuration that The all-interfaces-inherit contains interface configuration that may
could be inherited to all the OSPF interfaces defined in the area. be inherited by all OSPF area interfaces.
module: ospf module: ospf
+--rw ospf +--rw ospf
. .
. .
+--rw instance* [routing-instance af] +--rw instance* [routing-instance af]
. .
. .
+--rw areas +--rw areas
| +--rw area* [area-id] | +--rw area* [area-id]
| +--rw area-id area-id-type | +--rw area-id area-id-type
| +--rw area-type? identityref | +--rw area-type? identityref
| +--rw summary? boolean | +--rw summary? boolean
| +--rw default-cost? uint32 | +--rw default-cost? uint32
| +--rw ranges | +--rw ranges
| | +--rw range* [prefix] | | +--rw range* [prefix]
| | +--rw prefix inet:ip-prefix | | +--rw prefix inet:ip-prefix
skipping to change at page 8, line 22 skipping to change at page 8, line 30
| | +--rw virtual-link* [router-id] | | +--rw virtual-link* [router-id]
| | +--rw router-id yang:dotted-quad | | +--rw router-id yang:dotted-quad
| | +--rw cost? uint16 | | +--rw cost? uint16
| | +--rw hello-interval? uint16 | | +--rw hello-interval? uint16
| | +--rw dead-interval? uint16 | | +--rw dead-interval? uint16
| | +--rw retransmit-interval? uint16 | | +--rw retransmit-interval? uint16
| | +--rw transmit-delay? uint16 | | +--rw transmit-delay? uint16
| | +--rw mtu-ignore? boolean {mtu-ignore}? | | +--rw mtu-ignore? boolean {mtu-ignore}?
| | +--rw lls? boolean {lls}? | | +--rw lls? boolean {lls}?
| | +--rw prefix-suppression? boolean {prefix-suppression}? | | +--rw prefix-suppression? boolean {prefix-suppression}?
| | +--rw bfd? boolean {bfd}?
| | +--rw ttl-security {ttl-security}? | | +--rw ttl-security {ttl-security}?
| | | +--rw enable? boolean | | | +--rw enable? boolean
| | | +--rw hops? uint8 | | | +--rw hops? uint8
| | +--rw enable? boolean {admin-control}? | | +--rw enable? boolean {admin-control}?
| | +--rw authentication | | +--rw authentication
| | +--rw (auth-type-selection)? | | +--rw (auth-type-selection)?
| | +--:(auth-ipsec) {ospfv3-authentication-ipsec}? | | +--:(auth-ipsec) {ospfv3-authentication-ipsec}?
| | | +--rw sa? string | | | +--rw sa? string
| | +--:(auth-trailer-key-chain) | | +--:(auth-trailer-key-chain)
| | | +--rw key-chain? key-chain:key-chain-ref | | | +--rw key-chain? key-chain:key-chain-ref
skipping to change at page 9, line 47 skipping to change at page 10, line 7
| | | +--rw hmac-sha-1? empty | | | +--rw hmac-sha-1? empty
| | +--:(hmac-sha-256) | | +--:(hmac-sha-256)
| | | +--rw hmac-sha-256? empty | | | +--rw hmac-sha-256? empty
| | +--:(hmac-sha-384) | | +--:(hmac-sha-384)
| | | +--rw hmac-sha-384? empty | | | +--rw hmac-sha-384? empty
| | +--:(hmac-sha-512) | | +--:(hmac-sha-512)
| | +--rw hmac-sha-512? empty | | +--rw hmac-sha-512? empty
2.8. OSPF Interface Configuration 2.8. OSPF Interface Configuration
The container interface contains configurations of that interface. The interface container contains OSPF interface configuration.
module: ospf module: ospf
+--rw ospf +--rw ospf
. .
. .
+--rw instance* [routing-instance af] +--rw instance* [routing-instance af]
. .
. .
+--rw areas +--rw areas
| +--rw area* [area-id] | +--rw area* [area-id]
. .
. .
| +--rw interfaces | +--rw interfaces
| +--rw interface* [interface] | +--rw interface* [interface]
skipping to change at page 10, line 44 skipping to change at page 10, line 51
| | +--rw remote-lfa {remote-lfa}? | | +--rw remote-lfa {remote-lfa}?
| | +--rw enabled? boolean | | +--rw enabled? boolean
| +--rw cost? uint16 | +--rw cost? uint16
| +--rw hello-interval? uint16 | +--rw hello-interval? uint16
| +--rw dead-interval? uint16 | +--rw dead-interval? uint16
| +--rw retransmit-interval? uint16 | +--rw retransmit-interval? uint16
| +--rw transmit-delay? uint16 | +--rw transmit-delay? uint16
| +--rw mtu-ignore? boolean {mtu-ignore}? | +--rw mtu-ignore? boolean {mtu-ignore}?
| +--rw lls? boolean {lls}? | +--rw lls? boolean {lls}?
| +--rw prefix-suppression? boolean {prefix-suppression}? | +--rw prefix-suppression? boolean {prefix-suppression}?
| +--rw bfd? boolean {bfd}?
| +--rw ttl-security {ttl-security}? | +--rw ttl-security {ttl-security}?
| | +--rw enable? boolean | | +--rw enable? boolean
| | +--rw hops? uint8 | | +--rw hops? uint8
| +--rw enable? boolean {admin-control}? | +--rw enable? boolean {admin-control}?
| +--rw authentication | +--rw authentication
| | +--rw (auth-type-selection)? | | +--rw (auth-type-selection)?
| | +--:(auth-ipsec) {ospfv3-authentication-ipsec}? | | +--:(auth-ipsec) {ospfv3-authentication-ipsec}?
| | | +--rw sa? string | | | +--rw sa? string
| | +--:(auth-trailer-key-chain) | | +--:(auth-trailer-key-chain)
| | | +--rw key-chain? key-chain:key-chain-ref | | | +--rw key-chain? key-chain:key-chain-ref
skipping to change at page 11, line 31 skipping to change at page 11, line 37
| | | +--rw hmac-sha-384? empty | | | +--rw hmac-sha-384? empty
| | +--:(hmac-sha-512) | | +--:(hmac-sha-512)
| | +--rw hmac-sha-512? empty | | +--rw hmac-sha-512? empty
| +--rw topologies | +--rw topologies
| +--rw topology* [name] | +--rw topology* [name]
| +--rw name leafref | +--rw name leafref
| +--rw cost? uint32 | +--rw cost? uint32
2.9. OSPF notification 2.9. OSPF notification
This YANG model defines a list of notifications to inform client of This YANG model defines a list of notifications that inform YANG
important events detected during the protocol operation. The clients of important events detected during protocol operation. The
notifications defined cover the common set of traps from OSPFv2 MIB defined notifications cover the common set of traps from the OSPFv2
[RFC4750] and OSPFv3 MIB [RFC5643]. MIB [RFC4750] and OSPFv3 MIB [RFC5643].
module: ospf module: ospf
notifications: notifications:
+---n if-state-change +---n if-state-change
| +--ro routing-instance? rt:routing-instance-ref | +--ro routing-instance? rt:routing-instance-ref
| +--ro routing-protocol-type? leafref | +--ro routing-protocol-type? -> ...
| +--ro routing-protocol-name? leafref | +--ro routing-protocol-name? -> ...
| +--ro af? leafref | +--ro af? -> ...
| +--ro link-type? identityref | +--ro (if-link-type-selection)?
| +--ro interface | | +--:(interface)
| | +--ro interface? if:interface-ref | | | +--ro interface
| +--ro virtual-link | | | +--ro interface? if:interface-ref
| | +--ro area-id? uint32 | | +--:(virtual-link)
| | +--ro neighbor-router-id? yang:dotted-quad | | | +--ro virtual-link
| +--ro sham-link | | | +--ro area-id? area-id-type
| | +--ro area-id? uint32 | | | +--ro neighbor-router-id? yang:dotted-quad
| | +--ro local-ip-addr? inet:ip-address | | +--:(sham-link)
| | +--ro remote-ip-addr? inet:ip-address | | +--ro sham-link
| | +--ro area-id? area-id-type
| | +--ro local-ip-addr? inet:ip-address
| | +--ro remote-ip-addr? inet:ip-address
| +--ro state? if-state-type | +--ro state? if-state-type
+---n if-config-error +---n if-config-error
| +--ro routing-instance? rt:routing-instance-ref | +--ro routing-instance? rt:routing-instance-ref
| +--ro routing-protocol-type? leafref | +--ro routing-protocol-type? -> ...
| +--ro routing-protocol-name? leafref | +--ro routing-protocol-name? -> ...
| +--ro af? leafref | +--ro af? -> ...
| +--ro link-type? identityref | +--ro (if-link-type-selection)?
| +--ro interface | | +--:(interface)
| | +--ro interface? if:interface-ref | | | +--ro interface
| | +--ro packet-source? yang:dotted-quad | | | +--ro interface? if:interface-ref
| +--ro virtual-link | | +--:(virtual-link)
| | +--ro area-id? uint32 | | | +--ro virtual-link
| | +--ro neighbor-router-id? yang:dotted-quad | | | +--ro area-id? area-id-type
| +--ro sham-link | | | +--ro neighbor-router-id? yang:dotted-quad
| | +--ro area-id? uint32 | | +--:(sham-link)
| | +--ro local-ip-addr? inet:ip-address | | +--ro sham-link
| | +--ro remote-ip-addr? inet:ip-address | | +--ro area-id? area-id-type
| | +--ro local-ip-addr? inet:ip-address
| | +--ro remote-ip-addr? inet:ip-address
| +--ro packet-source? yang:dotted-quad
| +--ro packet-type? packet-type | +--ro packet-type? packet-type
| +--ro error? enumeration | +--ro error? enumeration
+---n nbr-state-change +---n nbr-state-change
| +--ro routing-instance? rt:routing-instance-ref | +--ro routing-instance? rt:routing-instance-ref
| +--ro routing-protocol-type? leafref | +--ro routing-protocol-type? -> ...
| +--ro routing-protocol-name? leafref | +--ro routing-protocol-name? -> ...
| +--ro af? leafref | +--ro af? -> ...
| +--ro link-type? identityref | +--ro (if-link-type-selection)?
| +--ro interface | | +--:(interface)
| | +--ro interface? if:interface-ref | | | +--ro interface
| | +--ro neighbor-router-id? yang:dotted-quad | | | +--ro interface? if:interface-ref
| | +--ro neighbor-ip-addr? yang:dotted-quad | | +--:(virtual-link)
| +--ro virtual-link | | | +--ro virtual-link
| | +--ro area-id? uint32 | | | +--ro area-id? area-id-type
| | +--ro neighbor-router-id? yang:dotted-quad | | | +--ro neighbor-router-id? yang:dotted-quad
| +--ro sham-link | | +--:(sham-link)
| | +--ro area-id? uint32 | | +--ro sham-link
| | +--ro local-ip-addr? inet:ip-address | | +--ro area-id? area-id-type
| | +--ro neighbor-router-id? yang:dotted-quad | | +--ro local-ip-addr? inet:ip-address
| | +--ro neighbor-ip-addr? yang:dotted-quad | | +--ro remote-ip-addr? inet:ip-address
| +--ro neighbor-router-id? yang:dotted-quad
| +--ro neighbor-ip-addr? yang:dotted-quad
| +--ro state? nbr-state-type | +--ro state? nbr-state-type
+---n nbr-restart-helper-status-change +---n nbr-restart-helper-status-change
| +--ro routing-instance? rt:routing-instance-ref | +--ro routing-instance? rt:routing-instance-ref
| +--ro routing-protocol-type? leafref | +--ro routing-protocol-type? -> ...
| +--ro routing-protocol-name? leafref | +--ro routing-protocol-name? -> ...
| +--ro af? leafref | +--ro af? -> ...
| +--ro link-type? identityref | +--ro (if-link-type-selection)?
| +--ro interface | | +--:(interface)
| | +--ro interface? if:interface-ref | | | +--ro interface
| | +--ro neighbor-router-id? yang:dotted-quad | | | +--ro interface? if:interface-ref
| | +--ro neighbor-ip-addr? yang:dotted-quad | | +--:(virtual-link)
| +--ro virtual-link | | | +--ro virtual-link
| | +--ro area-id? uint32 | | | +--ro area-id? area-id-type
| | +--ro neighbor-router-id? yang:dotted-quad | | | +--ro neighbor-router-id? yang:dotted-quad
| | +--:(sham-link)
| | +--ro sham-link
| | +--ro area-id? area-id-type
| | +--ro local-ip-addr? inet:ip-address
| | +--ro remote-ip-addr? inet:ip-address
| +--ro neighbor-router-id? yang:dotted-quad
| +--ro neighbor-ip-addr? yang:dotted-quad
| +--ro status? restart-helper-status-type | +--ro status? restart-helper-status-type
| +--ro age? uint32 | +--ro age? uint32
| +--ro exit-reason? restart-exit-reason-type | +--ro exit-reason? restart-exit-reason-type
+---n rx-bad-packet +---n rx-bad-packet
| +--ro routing-instance? rt:routing-instance-ref | +--ro routing-instance? rt:routing-instance-ref
| +--ro routing-protocol-type? leafref | +--ro routing-protocol-type? -> ...
| +--ro routing-protocol-name? leafref | +--ro routing-protocol-name? -> ...
| +--ro af? leafref | +--ro af? -> ...
| +--ro link-type? identityref | +--ro (if-link-type-selection)?
| +--ro interface | | +--:(interface)
| | +--ro interface? if:interface-ref | | | +--ro interface
| | +--ro packet-source? yang:dotted-quad | | | +--ro interface? if:interface-ref
| +--ro virtual-link | | +--:(virtual-link)
| | +--ro area-id? uint32 | | | +--ro virtual-link
| | +--ro neighbor-router-id? yang:dotted-quad | | | +--ro area-id? area-id-type
| +--ro sham-link | | | +--ro neighbor-router-id? yang:dotted-quad
| | +--ro area-id? uint32 | | +--:(sham-link)
| | +--ro local-ip-addr? inet:ip-address | | +--ro sham-link
| | +--ro remote-ip-addr? inet:ip-address | | +--ro area-id? area-id-type
| | +--ro local-ip-addr? inet:ip-address
| | +--ro remote-ip-addr? inet:ip-address
| +--ro packet-source? yang:dotted-quad
| +--ro packet-type? packet-type | +--ro packet-type? packet-type
+---n lsdb-approaching-overflow +---n lsdb-approaching-overflow
| +--ro routing-instance? rt:routing-instance-ref | +--ro routing-instance? rt:routing-instance-ref
| +--ro routing-protocol-type? leafref | +--ro routing-protocol-type? -> ...
| +--ro routing-protocol-name? leafref | +--ro routing-protocol-name? -> ...
| +--ro af? leafref | +--ro af? -> ...
| +--ro ext-lsdb-limit? uint32 | +--ro ext-lsdb-limit? uint32
+---n lsdb-overflow +---n lsdb-overflow
| +--ro routing-instance? rt:routing-instance-ref | +--ro routing-instance? rt:routing-instance-ref
| +--ro routing-protocol-type? leafref | +--ro routing-protocol-type? -> ...
| +--ro routing-protocol-name? leafref | +--ro routing-protocol-name? -> ...
| +--ro af? leafref | +--ro af? -> ...
| +--ro ext-lsdb-limit? uint32 | +--ro ext-lsdb-limit? uint32
+---n nssa-translator-status-change +---n nssa-translator-status-change
| +--ro routing-instance? rt:routing-instance-ref | +--ro routing-instance? rt:routing-instance-ref
| +--ro routing-protocol-type? leafref | +--ro routing-protocol-type? -> ...
| +--ro routing-protocol-name? leafref | +--ro routing-protocol-name? -> ...
| +--ro af? leafref | +--ro af? -> ...
| +--ro area-id? uint32 | +--ro area-id? area-id-type
| +--ro status? nssa-translator-state-type | +--ro status? nssa-translator-state-type
+---n restart-status-change +---n restart-status-change
+--ro routing-instance? rt:routing-instance-ref +--ro routing-instance? rt:routing-instance-ref
+--ro routing-protocol-type? leafref +--ro routing-protocol-type? -> ...
+--ro routing-protocol-name? leafref +--ro routing-protocol-name? -> ...
+--ro af? leafref +--ro af? -> ...
+--ro status? restart-status-type +--ro status? restart-status-type
+--ro restart-interval? uint16 +--ro restart-interval? uint16
+--ro exit-reason? restart-exit-reason-type +--ro exit-reason? restart-exit-reason-type
3. OSPF Segment Routing 3. OSPF Segment Routing
In addition to the OSPF base YANG model, this document also defines a In addition to the OSPF base YANG model, this document also defines a
model for the OSPF segment routing feature. model for the OSPF segment routing feature.
The OSPF SR YANG module requires the base segment routing module The OSPF SR YANG module requires support for the base segment routing
[I-D.ietf-spring-sr-yang] to be supported, which defines the basic module [I-D.ietf-spring-sr-yang], which defines the global segment
segment routing configurations outside of any specific routing routing configuration independent of any specific routing protocol
protocol. configuration.
module: ietf-ospf-sr module: ietf-ospf-sr
augment /rt:routing/rt:routing-instance/rt:routing-protocols/ augment /rt:routing/rt:routing-instance/rt:routing-protocols
rt:routing-protocol/ospf:ospf/ospf:instance: /rt:routing-protocol/ospf:ospf/ospf:instance:
+--rw segment-routing +--rw segment-routing
+--rw enabled? boolean | +--rw enabled? boolean
+--rw bindings | +--rw bindings
+--rw advertise | +--rw advertise
| +--rw policies* string | | +--rw policies* string
+--rw receive? boolean | +--rw receive? boolean
augment /rt:routing/rt:routing-instance/rt:routing-protocols/ +--rw protocol-srgb {sr:protocol-srgb}?
rt:routing-protocol/ospf:ospf/ospf:instance/ospf:areas/ +--rw srgb* [lower-bound upper-bound]
ospf:area/ospf:interfaces/ospf:interface: +--rw lower-bound uint32
+--rw upper-bound uint32
augment /rt:routing/rt:routing-instance/rt:routing-protocols
/rt:routing-protocol/ospf:ospf/ospf:instance
/ospf:areas/ospf:area/ospf:interfaces/ospf:interface:
+--rw segment-routing +--rw segment-routing
+--rw adjacency-sid +--rw adjacency-sid
+--rw advertise-adj-group-sid* [group-id] +--rw advertise-adj-group-sid* [group-id]
| +--rw group-id uint32 | +--rw group-id uint32
+--rw advertise-protection? enumeration +--rw advertise-protection? enumeration
augment /rt:routing/rt:routing-instance/rt:routing-protocols/ augment /rt:routing/rt:routing-instance/rt:routing-protocols
rt:routing-protocol/ospf:ospf/ospf:instance/ospf:areas/ /rt:routing-protocol/ospf:ospf/ospf:instance/ospf:areas
ospf:area/ospf:interfaces/ospf:interface/ospf:fast-reroute: /ospf:area/ospf:interfaces/ospf:interface/ospf:fast-reroute:
+--rw ti-lfa {ti-lfa}? +--rw ti-lfa {ti-lfa}?
+--rw enable? boolean +--rw enable? boolean
augment /rt:routing-state/rt:routing-instance/rt:routing-protocols/ augment /rt:routing-state/rt:routing-instance/rt:routing-protocols
rt:routing-protocol/ospf:ospf/ospf:instance: /rt:routing-protocol/ospf:ospf/ospf:instance:
+--ro segment-routing +--ro segment-routing
+--ro enabled? boolean | +--ro enabled? boolean
+--ro bindings | +--ro bindings
+--ro advertise | +--ro advertise
| +--ro policies* string | | +--ro policies* string
+--ro receive? boolean | +--ro receive? boolean
augment /rt:routing-state/rt:routing-instance/rt:routing-protocols/ +--ro protocol-srgb {sr:protocol-srgb}?
rt:routing-protocol/ospf:ospf/ospf:instance/ospf:areas/ +--ro srgb* [lower-bound upper-bound]
ospf:area/ospf:interfaces/ospf:interface: +--ro lower-bound uint32
+--ro upper-bound uint32
augment /rt:routing-state/rt:routing-instance/rt:routing-protocols
/rt:routing-protocol/ospf:ospf/ospf:instance
/ospf:areas/ospf:area/ospf:interfaces/ospf:interface:
+--ro segment-routing +--ro segment-routing
+--ro adjacency-sid +--ro adjacency-sid
+--ro advertise-adj-group-sid* [group-id] +--ro advertise-adj-group-sid* [group-id]
| +--ro group-id uint32 | +--ro group-id uint32
+--ro advertise-protection? enumeration +--ro advertise-protection? enumeration
augment /rt:routing-state/rt:routing-instance/rt:routing-protocols/ augment /rt:routing-state/rt:routing-instance/rt:routing-protocols
rt:routing-protocol/ospf:ospf/ospf:instance/ospf:areas/ /rt:routing-protocol/ospf:ospf/ospf:instance/ospf:areas
ospf:area/ospf:interfaces/ospf:interface/ospf:database/ /ospf:area/ospf:interfaces/ospf:interface/ospf:database
ospf:link-scope-lsa-type/ospf:link-scope-lsas/ /ospf:link-scope-lsa-type/ospf:link-scope-lsas
ospf:link-scope-lsa/ospf:version/ospf:ospfv2/ospf:ospfv2/ /ospf:link-scope-lsa/ospf:version/ospf:ospfv2
ospf:body/ospf:opaque/ospf:extended-prefix-tlvs/ /ospf:ospfv2/ospf:body/ospf:opaque
ospf:extended-prefix-tlv: /ospf:extended-prefix-tlvs/ospf:extended-prefix-tlv:
+--ro perfix-sid-sub-tlvs +--ro perfix-sid-sub-tlvs
| +--ro prefix-sid-sub-tlv* | +--ro prefix-sid-sub-tlv*
| +--ro flags? bits | +--ro flags? bits
| +--ro mt-id? uint8 | +--ro mt-id? uint8
| +--ro algorithm? uint8 | +--ro algorithm? uint8
| +--ro sid? uint32 | +--ro sid? uint32
+--ro sid-binding-sub-tlvs +--ro sid-binding-sub-tlvs
+--ro sid-binding-sub-tlv* +--ro sid-binding-sub-tlv*
+--ro flags? bits +--ro flags? bits
+--ro mt-id? uint8 +--ro mt-id? uint8
skipping to change at page 15, line 44 skipping to change at page 16, line 28
| +--ro flags? bits | +--ro flags? bits
| +--ro router-id? yang:dotted-quad | +--ro router-id? yang:dotted-quad
| +--ro interface-id? uint32 | +--ro interface-id? uint32
+--ro ipv4-backup-ero-sub-tlv +--ro ipv4-backup-ero-sub-tlv
| +--ro flags? bits | +--ro flags? bits
| +--ro ipv4-address? inet:ipv4-address | +--ro ipv4-address? inet:ipv4-address
+--ro unnumbered-backup-ero-sub-tlv +--ro unnumbered-backup-ero-sub-tlv
+--ro flags? bits +--ro flags? bits
+--ro router-id? yang:dotted-quad +--ro router-id? yang:dotted-quad
+--ro interface-id? uint32 +--ro interface-id? uint32
augment /rt:routing-state/rt:routing-instance/rt:routing-protocols/ augment /rt:routing-state/rt:routing-instance/rt:routing-protocols
rt:routing-protocol/ospf:ospf/ospf:instance/ospf:areas/ /rt:routing-protocol/ospf:ospf/ospf:instance
ospf:area/ospf:database/ospf:area-scope-lsa-type/ /ospf:areas/ospf:area/ospf:database
ospf:area-scope-lsas/ospf:area-scope-lsa/ospf:version/ /ospf:area-scope-lsa-type/ospf:area-scope-lsas
ospf:ospfv2/ospf:ospfv2/ospf:body/ospf:opaque/ /ospf:area-scope-lsa/ospf:version/ospf:ospfv2
ospf:extended-prefix-tlvs/ospf:extended-prefix-tlv: /ospf:ospfv2/ospf:body/ospf:opaque
/ospf:extended-prefix-tlvs/ospf:extended-prefix-tlv:
+--ro perfix-sid-sub-tlvs +--ro perfix-sid-sub-tlvs
| +--ro prefix-sid-sub-tlv* | +--ro prefix-sid-sub-tlv*
| +--ro flags? bits | +--ro flags? bits
| +--ro mt-id? uint8 | +--ro mt-id? uint8
| +--ro algorithm? uint8 | +--ro algorithm? uint8
| +--ro sid? uint32 | +--ro sid? uint32
+--ro sid-binding-sub-tlvs +--ro sid-binding-sub-tlvs
+--ro sid-binding-sub-tlv* +--ro sid-binding-sub-tlv*
+--ro flags? bits +--ro flags? bits
+--ro mt-id? uint8 +--ro mt-id? uint8
skipping to change at page 16, line 31 skipping to change at page 17, line 16
| +--ro flags? bits | +--ro flags? bits
| +--ro router-id? yang:dotted-quad | +--ro router-id? yang:dotted-quad
| +--ro interface-id? uint32 | +--ro interface-id? uint32
+--ro ipv4-backup-ero-sub-tlv +--ro ipv4-backup-ero-sub-tlv
| +--ro flags? bits | +--ro flags? bits
| +--ro ipv4-address? inet:ipv4-address | +--ro ipv4-address? inet:ipv4-address
+--ro unnumbered-backup-ero-sub-tlv +--ro unnumbered-backup-ero-sub-tlv
+--ro flags? bits +--ro flags? bits
+--ro router-id? yang:dotted-quad +--ro router-id? yang:dotted-quad
+--ro interface-id? uint32 +--ro interface-id? uint32
augment /rt:routing-state/rt:routing-instance/rt:routing-protocols/ augment /rt:routing-state/rt:routing-instance/rt:routing-protocols
rt:routing-protocol/ospf:ospf/ospf:instance/ospf:database/ /rt:routing-protocol/ospf:ospf/ospf:instance
ospf:as-scope-lsa-type/ospf:as-scope-lsas/ospf:as-scope-lsa/ /ospf:database/ospf:as-scope-lsa-type/ospf:as-scope-lsas
ospf:version/ospf:ospfv2/ospf:ospfv2/ospf:body/ospf:opaque/ /ospf:as-scope-lsa/ospf:version/ospf:ospfv2
ospf:extended-prefix-tlvs/ospf:extended-prefix-tlv: /ospf:ospfv2/ospf:body/ospf:opaque
/ospf:extended-prefix-tlvs/ospf:extended-prefix-tlv:
+--ro perfix-sid-sub-tlvs +--ro perfix-sid-sub-tlvs
| +--ro prefix-sid-sub-tlv* | +--ro prefix-sid-sub-tlv*
| +--ro flags? bits | +--ro flags? bits
| +--ro mt-id? uint8 | +--ro mt-id? uint8
| +--ro algorithm? uint8 | +--ro algorithm? uint8
| +--ro sid? uint32 | +--ro sid? uint32
+--ro sid-binding-sub-tlvs +--ro sid-binding-sub-tlvs
+--ro sid-binding-sub-tlv* +--ro sid-binding-sub-tlv*
+--ro flags? bits +--ro flags? bits
+--ro mt-id? uint8 +--ro mt-id? uint8
skipping to change at page 17, line 17 skipping to change at page 17, line 51
| +--ro flags? bits | +--ro flags? bits
| +--ro router-id? yang:dotted-quad | +--ro router-id? yang:dotted-quad
| +--ro interface-id? uint32 | +--ro interface-id? uint32
+--ro ipv4-backup-ero-sub-tlv +--ro ipv4-backup-ero-sub-tlv
| +--ro flags? bits | +--ro flags? bits
| +--ro ipv4-address? inet:ipv4-address | +--ro ipv4-address? inet:ipv4-address
+--ro unnumbered-backup-ero-sub-tlv +--ro unnumbered-backup-ero-sub-tlv
+--ro flags? bits +--ro flags? bits
+--ro router-id? yang:dotted-quad +--ro router-id? yang:dotted-quad
+--ro interface-id? uint32 +--ro interface-id? uint32
augment /rt:routing-state/rt:routing-instance/rt:routing-protocols/ augment /rt:routing-state/rt:routing-instance/rt:routing-protocols
rt:routing-protocol/ospf:ospf/ospf:instance/ospf:areas/ /rt:routing-protocol/ospf:ospf/ospf:instance
ospf:area/ospf:database/ospf:area-scope-lsa-type/ /ospf:areas/ospf:area/ospf:database
ospf:area-scope-lsas/ospf:area-scope-lsa/ospf:version/ /ospf:area-scope-lsa-type/ospf:area-scope-lsas
ospf:ospfv2/ospf:ospfv2/ospf:body/ospf:opaque/ /ospf:area-scope-lsa/ospf:version/ospf:ospfv2
ospf:extended-link-tlvs/ospf:extended-link-tlv: /ospf:ospfv2/ospf:body/ospf:opaque
/ospf:extended-link-tlvs/ospf:extended-link-tlv:
+--ro adj-sid-sub-tlvs +--ro adj-sid-sub-tlvs
| +--ro adj-sid-sub-tlv* | +--ro adj-sid-sub-tlv*
| +--ro flags? bits | +--ro flags? bits
| +--ro mt-id? uint8 | +--ro mt-id? uint8
| +--ro weight? uint8 | +--ro weight? uint8
| +--ro sid? uint32 | +--ro sid? uint32
+--ro lan-adj-sid-sub-tlvs +--ro lan-adj-sid-sub-tlvs
+--ro lan-adj-sid-sub-tlv* +--ro lan-adj-sid-sub-tlv*
+--ro flags? bits +--ro flags? bits
+--ro mt-id? uint8 +--ro mt-id? uint8
+--ro weight? uint8 +--ro weight? uint8
+--ro neighbor-router-id? yang:dotted-quad +--ro neighbor-router-id? yang:dotted-quad
+--ro sid? uint32 +--ro sid? uint32
augment /rt:routing-state/rt:routing-instance/rt:routing-protocols/ augment /rt:routing-state/rt:routing-instance/rt:routing-protocols
rt:routing-protocol/ospf:ospf/ospf:instance/ /rt:routing-protocol/ospf:ospf/ospf:instance/ospf:areas
ospf:areas/ospf:area/ospf:interfaces/ospf:interface/ /ospf:area/ospf:interfaces/ospf:interface
ospf:database/ospf:link-scope-lsa-type/ /ospf:database/ospf:link-scope-lsa-type/ospf:link-scope-lsas
ospf:link-scope-lsas/ospf:link-scope-lsa/ospf:version/ /ospf:link-scope-lsa/ospf:version/ospf:ospfv2
ospf:ospfv2/ospf:ospfv2/ospf:body/ospf:opaque: /ospf:ospfv2/ospf:body/ospf:opaque:
+--ro extended-prefix-range-tlvs +--ro extended-prefix-range-tlvs
| +--ro extended-prefix-range-tlv* | +--ro extended-prefix-range-tlv*
| +--ro range-size? uint16 | +--ro range-size? uint16
| +--ro flags? bits | +--ro flags? bits
| +--ro prefix? inet:ip-prefix | +--ro prefix? inet:ip-prefix
| +--ro perfix-sid-sub-tlvs | +--ro perfix-sid-sub-tlvs
| | +--ro prefix-sid-sub-tlv* | | +--ro prefix-sid-sub-tlv*
| | +--ro flags? bits | | +--ro flags? bits
| | +--ro mt-id? uint8 | | +--ro mt-id? uint8
| | +--ro algorithm? uint8 | | +--ro algorithm? uint8
skipping to change at page 18, line 40 skipping to change at page 19, line 27
| +--ro type? uint16 | +--ro type? uint16
| +--ro length? uint16 | +--ro length? uint16
| +--ro value? yang:hex-string | +--ro value? yang:hex-string
+--ro sr-algorithm-tlv +--ro sr-algorithm-tlv
| +--ro sr-algorithm* uint8 | +--ro sr-algorithm* uint8
+--ro sid-range-tlvs +--ro sid-range-tlvs
+--ro sid-range-tlv* +--ro sid-range-tlv*
+--ro range-size? ospf:uint24 +--ro range-size? ospf:uint24
+--ro sid-sub-tlv +--ro sid-sub-tlv
+--ro sid? uint32 +--ro sid? uint32
augment /rt:routing-state/rt:routing-instance/rt:routing-protocols/ augment /rt:routing-state/rt:routing-instance/rt:routing-protocols
rt:routing-protocol/ospf:ospf/ospf:instance/ospf:areas/ /rt:routing-protocol/ospf:ospf/ospf:instance/ospf:areas
ospf:area/ospf:database/ospf:area-scope-lsa-type/ /ospf:area/ospf:database/ospf:area-scope-lsa-type
ospf:area-scope-lsas/ospf:area-scope-lsa/ospf:version/ /ospf:area-scope-lsas/ospf:area-scope-lsa
ospf:ospfv2/ospf:ospfv2/ospf:body/ospf:opaque: /ospf:version/ospf:ospfv2/ospf:ospfv2/ospf:body/ospf:opaque:
+--ro extended-prefix-range-tlvs +--ro extended-prefix-range-tlvs
| +--ro extended-prefix-range-tlv* | +--ro extended-prefix-range-tlv*
| +--ro range-size? uint16 | +--ro range-size? uint16
| +--ro flags? bits | +--ro flags? bits
| +--ro prefix? inet:ip-prefix | +--ro prefix? inet:ip-prefix
| +--ro perfix-sid-sub-tlvs | +--ro perfix-sid-sub-tlvs
| | +--ro prefix-sid-sub-tlv* | | +--ro prefix-sid-sub-tlv*
| | +--ro flags? bits | | +--ro flags? bits
| | +--ro mt-id? uint8 | | +--ro mt-id? uint8
| | +--ro algorithm? uint8 | | +--ro algorithm? uint8
skipping to change at page 19, line 43 skipping to change at page 20, line 30
| +--ro type? uint16 | +--ro type? uint16
| +--ro length? uint16 | +--ro length? uint16
| +--ro value? yang:hex-string | +--ro value? yang:hex-string
+--ro sr-algorithm-tlv +--ro sr-algorithm-tlv
| +--ro sr-algorithm* uint8 | +--ro sr-algorithm* uint8
+--ro sid-range-tlvs +--ro sid-range-tlvs
+--ro sid-range-tlv* +--ro sid-range-tlv*
+--ro range-size? ospf:uint24 +--ro range-size? ospf:uint24
+--ro sid-sub-tlv +--ro sid-sub-tlv
+--ro sid? uint32 +--ro sid? uint32
augment /rt:routing-state/rt:routing-instance/rt:routing-protocols/' augment /rt:routing-state/rt:routing-instance/rt:routing-protocols
rt:routing-protocol/ospf:ospf/ospf:instance/ospf:database/ /rt:routing-protocol/ospf:ospf/ospf:instance/ospf:database
ospf:as-scope-lsa-type/ospf:as-scope-lsas/ospf:as-scope-lsa/ /ospf:as-scope-lsa-type/ospf:as-scope-lsas/ospf:as-scope-lsa
ospf:version/ospf:ospfv2/ospf:ospfv2/ospf:body/ospf:opaque: /ospf:version/ospf:ospfv2/ospf:ospfv2/ospf:body/ospf:opaque:
+--ro extended-prefix-range-tlvs +--ro extended-prefix-range-tlvs
| +--ro extended-prefix-range-tlv* | +--ro extended-prefix-range-tlv*
| +--ro range-size? uint16 | +--ro range-size? uint16
| +--ro flags? bits | +--ro flags? bits
| +--ro prefix? inet:ip-prefix | +--ro prefix? inet:ip-prefix
| +--ro perfix-sid-sub-tlvs | +--ro perfix-sid-sub-tlvs
| | +--ro prefix-sid-sub-tlv* | | +--ro prefix-sid-sub-tlv*
| | +--ro flags? bits | | +--ro flags? bits
| | +--ro mt-id? uint8 | | +--ro mt-id? uint8
| | +--ro algorithm? uint8 | | +--ro algorithm? uint8
skipping to change at page 20, line 46 skipping to change at page 21, line 33
| +--ro length? uint16 | +--ro length? uint16
| +--ro value? yang:hex-string | +--ro value? yang:hex-string
+--ro sr-algorithm-tlv +--ro sr-algorithm-tlv
| +--ro sr-algorithm* uint8 | +--ro sr-algorithm* uint8
+--ro sid-range-tlvs +--ro sid-range-tlvs
+--ro sid-range-tlv* +--ro sid-range-tlv*
+--ro range-size? ospf:uint24 +--ro range-size? ospf:uint24
+--ro sid-sub-tlv +--ro sid-sub-tlv
+--ro sid? uint32 +--ro sid? uint32
4. OSPF Yang Module 4. OSPF BFD Yang Module
<CODE BEGINS> file "ietf-ospf@2015-09-02.yang" Additionally this document defines a module that can be used to
configure and monitor the OSPF BFD feature.
Bidirectional Forwarding Detection (BFD) [RFC5880] is a network
protocol that is used for liveness detection of arbitrary paths
between systems. A YANG data model is defined in [I-D.ietf-bfd-yang]
that supports BFD configuration and management.
As a client of BFD, the OSPF protocol uses the services provided by
BFD. The OSPF BFD YANG augments the base OSPF module and is defined
as a separate module. So any implementation that does not support
BFD can still use the OSPF base model without having to import the
BFD module [I-D.ietf-bfd-yang].
module: ietf-ospf-bfd
augment /rt:routing/rt:routing-instance/rt:routing-protocols
/rt:routing-protocol/ospf:ospf/ospf:instance
/ospf:areas/ospf:area/ospf:interfaces/ospf:interface:
+--rw bfd
+--rw enabled? boolean
+--rw local-multiplier? multiplier
+--rw (interval-config-type)?
+--:(tx-rx-intervals)
| +--rw desired-min-tx-interval uint32
| +--rw required-min-rx-interval uint32
+--:(single-interval)
+--rw min-interval uint32
augment /rt:routing-state/rt:routing-instance/rt:routing-protocols
/rt:routing-protocol/ospf:ospf/ospf:instance
/ospf:areas/ospf:area/ospf:interfaces/ospf:interface:
+--ro bfd
+--ro enabled? boolean
+--ro local-multiplier? multiplier
+--ro (interval-config-type)?
+--:(tx-rx-intervals)
| +--ro desired-min-tx-interval uint32
| +--ro required-min-rx-interval uint32
+--:(single-interval)
+--ro min-interval uint32
5. OSPF Yang Module
<CODE BEGINS> file "ietf-ospf@2015-10-19.yang"
module ietf-ospf { module ietf-ospf {
namespace "urn:ietf:params:xml:ns:yang:ietf-ospf"; namespace "urn:ietf:params:xml:ns:yang:ietf-ospf";
prefix ospf; prefix ospf;
import ietf-inet-types { import ietf-inet-types {
prefix "inet"; prefix "inet";
} }
import ietf-yang-types { import ietf-yang-types {
skipping to change at page 22, line 4 skipping to change at page 23, line 35
<mailto:akr@cisco.com> <mailto:akr@cisco.com>
Editor: Derek Yeung Editor: Derek Yeung
<mailto:myeung@cisco.com> <mailto:myeung@cisco.com>
Author: Derek Yeung Author: Derek Yeung
<mailto:myeung@cisco.com> <mailto:myeung@cisco.com>
Author: Yingzhen Qu Author: Yingzhen Qu
<mailto:yiqu@cisco.com> <mailto:yiqu@cisco.com>
Author: Jeffrey Zhang Author: Jeffrey Zhang
<mailto:zzhang@juniper.net> <mailto:zzhang@juniper.net>
Author: Ing-Wher Chen
<mailto:ing-wher.chen@ericsson.com>
Author: Dean Bogdanovic Author: Dean Bogdanovic
<mailto:ivandean@gmail.com> <mailto:ivandean@gmail.com>
Author: Kiran Agrahara Sreenivasa Author: Kiran Agrahara Sreenivasa
<mailto:kkoushik@cisco.com>"; <mailto:kkoushik@cisco.com>";
description description
"This YANG module defines the generic configuration "This YANG module defines the generic configuration and
data for OSPF, which is common across all of the vendor operational state for the OSPF protocol common to all
implementations of the protocol. It is intended that the module vendor implementations. It is intended that the module
will be extended by vendors to define vendor-specific will be extended by vendors to define vendor-specific
OSPF configuration parameters and policies, OSPF configuration parameters and policies,
for example route maps or route policies. for example route maps or route policies.
Terms and Acronyms Terms and Acronyms
OSPF (ospf): Open Shortest Path First OSPF (ospf): Open Shortest Path First
IP (ip): Internet Protocol IP (ip): Internet Protocol
IPv4 (ipv4):Internet Protocol Version 4 IPv4 (ipv4):Internet Protocol Version 4
IPv6 (ipv6): Internet Protocol Version 6 IPv6 (ipv6): Internet Protocol Version 6
MTU (mtu) Maximum Transmission Unit MTU (mtu) Maximum Transmission Unit
"; ";
revision 2015-10-19 {
description
"* Remove the abstract identity ospf.
* Make area-id-type dotted-quad only.
* Use area-id-type for all area-id leafs.
* Restructure notifications.
* Move BFD support to the new ietf-ospf-bfd module.
* Update author information.
* Editorial changes.";
reference
"RFC XXXX: A YANG Data Model for OSPF.";
}
revision 2015-09-02 { revision 2015-09-02 {
description description
"* Author information update. "* Author information update.
* Editorial changes"; * Editorial changes";
reference reference
"RFC XXXX: A YANG Data Model for OSPF"; "RFC XXXX: A YANG Data Model for OSPF.";
} }
revision 2015-07-06 { revision 2015-07-06 {
description description
"* Remove support for protocol-centric config. "* Remove support for protocol-centric config.
* Enclose list in container, except for instance. * Enclose list in container, except for instance.
* Replace protocol-shutdown with admin-control. * Replace protocol-shutdown with admin-control.
* Add IPFRR per-interface config. * Add IP-FRR per-interface config.
* Reorganize max-path etc node. * Reorganize max-path etc node.
* Add node-flag. * Add node-flag.
* Align config/operation hierarchy. * Align config/operation hierarchy.
* Use relative path for reference to rib. * Use relative path for reference to rib.
* Add ability to set single admin distance. * Add ability to set single admin distance.
* Make unreserved bandwidth into list. * Make unreserved bandwidth into list.
* Add F and T bit to OSPFv3 external LSA. * Add F and T bit to OSPFv3 external LSA.
* Remove key statement inside LSA body. * Remove key statement inside LSA body.
* Add stub router support. * Add stub router support.
* Fix usage of af-area-config. * Fix usage of af-area-config.
* Add statistics to operation data. * Add statistics to operation data.
* Add local rib. * Add local rib.
* Use dotted-quad for all router-id fields. * Use dotted-quad for all router-id fields.
* Support more than one multi-area per interface. * Support more than one multi-area per interface.
* Use uint16 for LSA type. * Use uint16 for LSA type.
* Update grouping notification-instance-hdr. * Update grouping notification-instance-hdr.
* Rework condition for opaque type and id in OSPFv2 LSA. * Rework condition for opaque type and id in OSPFv2 LSA.
* Rename local-remote-ipv4-addr with remote-if-ipv4-addr. * Rename local-remote-ipv4-addr with remote-if-ipv4-addr.
* Add virtual-link/sham-link to operation state. * Add virtual-link/sham-link to operation state.
* Allow multiple link TLVs in one LSA. * Allow multiple link TLVs in one LSA.
* Fix bug in as-scope-lsas. * Fix bug in as-scope-lsas.
* Remove OSPFv3 restriction in link-scope-lsas. * Remove OSPFv3 restriction in link-scope-lsas.
skipping to change at page 23, line 21 skipping to change at page 25, line 17
* Use uint16 for LSA type. * Use uint16 for LSA type.
* Update grouping notification-instance-hdr. * Update grouping notification-instance-hdr.
* Rework condition for opaque type and id in OSPFv2 LSA. * Rework condition for opaque type and id in OSPFv2 LSA.
* Rename local-remote-ipv4-addr with remote-if-ipv4-addr. * Rename local-remote-ipv4-addr with remote-if-ipv4-addr.
* Add virtual-link/sham-link to operation state. * Add virtual-link/sham-link to operation state.
* Allow multiple link TLVs in one LSA. * Allow multiple link TLVs in one LSA.
* Fix bug in as-scope-lsas. * Fix bug in as-scope-lsas.
* Remove OSPFv3 restriction in link-scope-lsas. * Remove OSPFv3 restriction in link-scope-lsas.
* Editorial changes."; * Editorial changes.";
reference reference
"RFC XXXX: A YANG Data Model for OSPF"; "RFC XXXX: A YANG Data Model for OSPF.";
} }
revision 2015-03-09 { revision 2015-03-09 {
description description
"Initial revision."; "Initial revision.";
reference reference
"RFC XXXX: A YANG Data Model for OSPF"; "RFC XXXX: A YANG Data Model for OSPF.";
}
identity ospf {
base "rt:routing-protocol";
description "OSPF Protocol";
} }
identity ospfv2 { identity ospfv2 {
base "ospf"; base "rt:routing-protocol";
description "OSPFv2"; description "OSPFv2";
} }
identity ospfv3 { identity ospfv3 {
base "ospf"; base "rt:routing-protocol";
description "OSPFv3"; description "OSPFv3";
} }
identity operation-mode { identity operation-mode {
description description
"OSPF operation mode."; "OSPF operation mode.";
} }
identity ships-in-the-night { identity ships-in-the-night {
base operation-mode; base operation-mode;
skipping to change at page 24, line 37 skipping to change at page 26, line 28
typedef uint24 { typedef uint24 {
type uint32 { type uint32 {
range "0 .. 16777215"; range "0 .. 16777215";
} }
description description
"24-bit unsigned integer."; "24-bit unsigned integer.";
} }
typedef area-id-type { typedef area-id-type {
type union { type yang:dotted-quad;
type uint32;
type yang:dotted-quad;
}
description description
"Area ID type."; "Area ID type.";
} }
typedef route-type { typedef route-type {
type enumeration { type enumeration {
enum intra-area { enum intra-area {
description "OSPF intra-area route."; description "OSPF intra-area route.";
} }
enum inter-area { enum inter-area {
skipping to change at page 25, line 4 skipping to change at page 26, line 40
"Area ID type."; "Area ID type.";
} }
typedef route-type { typedef route-type {
type enumeration { type enumeration {
enum intra-area { enum intra-area {
description "OSPF intra-area route."; description "OSPF intra-area route.";
} }
enum inter-area { enum inter-area {
description "OSPF inter-area route."; description "OSPF inter-area route.";
} }
enum external-1 { enum external-1 {
description "OSPF external route type 1."; description "OSPF type 1 external route.";
} }
enum external-2 { enum external-2 {
description "OSPF External route type 2."; description "OSPF type 2 external route.";
} }
enum nssa-1 { enum nssa-1 {
description "OSPF NSSA external route type 1."; description "OSPF type 1 NSSA route.";
} }
enum nssa-2 { enum nssa-2 {
description "OSPF NSSA external route type 2."; description "OSPF type 2 NSSA route.";
} }
} }
description "OSPF route type."; description "OSPF route type.";
} }
typedef if-state-type { typedef if-state-type {
type enumeration { type enumeration {
enum Down { enum Down {
value "1"; value "1";
description description
skipping to change at page 29, line 45 skipping to change at page 31, line 33
description description
"Router is going through unplanned restart."; "Router is going through unplanned restart.";
} }
} }
description description
"OSPF graceful restart status type."; "OSPF graceful restart status type.";
} }
feature multi-topology { feature multi-topology {
description description
"Support MTR."; "Support Multiple-Topolgy Routing (MTR).";
} }
feature multi-area-adj { feature multi-area-adj {
description description
"OSPF multi-area adjacency support as in RFC 5185."; "OSPF multi-area adjacency support as in RFC 5185.";
} }
feature router-id { feature router-id {
description description
"Set router ID per instance."; "Set Router-ID per instance.";
} }
feature demand-circuit { feature demand-circuit {
description description
"OSPF demand circuit support as in RFC 1793."; "OSPF demand circuit support as in RFC 1793.";
} }
feature mtu-ignore { feature mtu-ignore {
description description
"Disable OSPF MTU mismatch detection on receiving "Disable OSPF Database Description packet MTU
DBD packets."; mismatch checking.";
} }
feature lls { feature lls {
description description
"OSPF link-local signaling (LLS) as in RFC 5613."; "OSPF link-local signaling (LLS) as in RFC 5613.";
} }
feature prefix-suppression { feature prefix-suppression {
description description
"OSPF prefix suppression support as in RFC 6860."; "OSPF prefix suppression support as in RFC 6860.";
} }
feature bfd {
description
"OSPF BFD support.";
}
feature ttl-security { feature ttl-security {
description description
"OSPF ttl security check."; "OSPF TTL security check.";
} }
feature nsr { feature nsr {
description description
"Non-Stop-Routing (NSR)."; "Non-Stop-Routing (NSR).";
} }
feature graceful-restart { feature graceful-restart {
description description
"Graceful OSPF Restart as defined in RFC3623 and RFC5187."; "Graceful OSPF Restart as defined in RFC 3623 and
RFC 5187.";
} }
feature admin-control { feature admin-control {
description description
"Administrative control of the protocol state."; "Administrative control of the protocol state.";
} }
feature auto-cost { feature auto-cost {
description description
"Calculate OSPF interface cost according to "Calculate OSPF interface cost according to
reference bandwidth."; reference bandwidth.";
} }
feature max-ecmp { feature max-ecmp {
description description
"Setting maximum number of ECMP paths."; "Setting maximum number of ECMP paths.";
} }
feature max-lsa { feature max-lsa {
description description
"Setting maximum number of LSAs OSPF will receive."; "Setting maximum number of LSAs the OSPF instance
will accept.";
} }
feature te-rid { feature te-rid {
description description
"TE router-id."; "TE Router-ID.";
} }
feature ldp-igp-sync { feature ldp-igp-sync {
description description
"LDP IGP synchronization."; "LDP IGP synchronization.";
} }
feature ldp-igp-autoconfig { feature ldp-igp-autoconfig {
description description
"LDP IGP auto-config."; "LDP IGP auto-config.";
} }
feature ospfv3-authentication-ipsec { feature ospfv3-authentication-ipsec {
description description
"Use IPsec for OSPFv3 authentication."; "Use IPsec for OSPFv3 authentication.";
} }
feature fast-reroute { feature fast-reroute {
description description
"Support of IPFRR."; "Support of IP Fast Reroute (IP-FRR).";
} }
feature node-flag { feature node-flag {
description description
"Support of node flag."; "Support of node flag.";
} }
feature lfa { feature lfa {
description description
"Support of Loop Free Alternates."; "Support of Loop Free Alternates (LFAs).";
} }
feature remote-lfa { feature remote-lfa {
description description
"Support of remote Loop Free Alternates."; "Support of Remote Loop Free Alternates (R-LFA).";
} }
feature stub-router { feature stub-router {
description description
"Support of RFC6987 OSPF Stub Router Advertisement"; "Support of RFC 6987 OSPF Stub Router Advertisement.";
} }
feature instance-inheritance { feature instance-inheritance {
description description
"Support instance inheritance"; "Support instance inheritance";
} }
feature area-inheritance { feature area-inheritance {
description description
"Support area inheritance"; "Support area inheritance";
skipping to change at page 32, line 46 skipping to change at page 34, line 30
leaf originate-new-lsa-count { leaf originate-new-lsa-count {
type yang:counter32; type yang:counter32;
description "The number of new LSAs originated."; description "The number of new LSAs originated.";
} }
leaf rx-new-lsas-count { leaf rx-new-lsas-count {
type yang:counter32; type yang:counter32;
description "The number of LSAs received."; description "The number of LSAs received.";
} }
leaf as-scope-lsa-count { leaf as-scope-lsa-count {
type yang:gauge32; type yang:gauge32;
description "The number of as-scope LSAs."; description "The number of AS Scope LSAs.";
} }
leaf as-scope-lsa-chksum-sum { leaf as-scope-lsa-chksum-sum {
type uint32; type uint32;
description "The sum of the LS checksums."; description
"The sum of the LSA checksums for AS Scope LSAs.";
} }
container database { container database {
description "Container for per AS scope LSA statistics."; description "Container for per AS-scope LSA statistics.";
list as-scope-lsa-type { list as-scope-lsa-type {
description "List of AS scope LSA statistics"; description "List of AS-scope LSA statistics";
leaf lsa-type { leaf lsa-type {
type uint16; type uint16;
description "AS scope LSA type."; description "AS-scope LSA type.";
} }
leaf lsa-count { leaf lsa-count {
type yang:gauge32; type yang:gauge32;
description "The number of LSAs of the given type."; description "The number of LSAs of the LSA type.";
} }
leaf lsa-cksum-sum { leaf lsa-cksum-sum {
type int32; type int32;
description description
"The sum of the LS checksums of the given type."; "The sum of the LSA checksums of the LSA type.";
} }
} }
} }
} }
grouping area-stat { grouping area-stat {
description "Per-area statistics."; description "Per-area statistics.";
leaf spf-runs-count { leaf spf-runs-count {
type yang:counter32; type yang:counter32;
description "The number of times that intra-area spf runs."; description
"The number of times the intra-area SPF has run.";
} }
leaf abr-count { leaf abr-count {
type yang:gauge32; type yang:gauge32;
description description
"The total number of area border routers reachable "The total number of Area Border Routers (ABRs)
within this area."; reachable within this area.";
} }
leaf asbr-count { leaf asbr-count {
type yang:gauge32; type yang:gauge32;
description "The total number of AS border routers."; description
"The total number of AS Border Routers (ASBRs).";
} }
leaf ar-nssa-translator-event-count { leaf ar-nssa-translator-event-count {
type yang:counter32; type yang:counter32;
description "The number of translator state changes."; description
"The number of NSSA translator-state changes.";
} }
leaf area-scope-lsa-count { leaf area-scope-lsa-count {
type yang:gauge32; type yang:gauge32;
description description
"The number of LSAs in this area, excluding "The number of area scope LSAs in the area.";
as-external LSAs.";
} }
leaf area-scope-lsa-cksum-sum { leaf area-scope-lsa-cksum-sum {
type int32; type int32;
description "The sum of the LSAs checksums."; description "The sum of the area scope LSAs checksums.";
} }
container database { container database {
description "Container for area scope LSA type statistics."; description "Container for area scope LSA type statistics.";
list area-scope-lsa-type { list area-scope-lsa-type {
description "List of area scope LSA statistics"; description "List of area scope LSA statistics";
leaf lsa-type { leaf lsa-type {
type uint16; type uint16;
description "Area scope LSA type."; description "Area scope LSA type.";
} }
leaf lsa-count { leaf lsa-count {
type yang:gauge32; type yang:gauge32;
description "The number of LSAs of the given type."; description "The number of LSAs of the LSA type.";
} }
leaf lsa-cksum-sum { leaf lsa-cksum-sum {
type int32; type int32;
description description
"The sum of the LS checksums of the given type."; "The sum of the LSA checksums of the LSA type.";
} }
} }
} }
} }
grouping interface-stat { grouping interface-stat {
description "Per-interface statistics"; description "Per-interface statistics";
leaf if-event-count { leaf if-event-count {
type yang:counter32; type yang:counter32;
description description
"The number of times this interface has changed its "The number of times this interface has changed its
state or an error has occurred."; state or an error has occurred.";
} }
leaf link-scope-lsa-count { leaf link-scope-lsa-count {
type yang:gauge32; type yang:gauge32;
description "The number of LSAs."; description "The number of link scope LSAs.";
} }
leaf link-scope-lsa-cksum-sum { leaf link-scope-lsa-cksum-sum {
type uint32; type uint32;
description "The sum of LSAs LS checksums."; description "The sum of link scope LSA checksums.";
} }
container database { container database {
description "Container for link scope LSA type statistics."; description "Container for link scope LSA type statistics.";
list link-scope-lsa-type { list link-scope-lsa-type {
description "List of link scope LSA statistics"; description "List of link scope LSA statistics";
leaf lsa-type { leaf lsa-type {
type uint16; type uint16;
description "Link scope LSA type."; description "Link scope LSA type.";
} }
leaf lsa-count { leaf lsa-count {
type yang:gauge32; type yang:gauge32;
description "The number of LSAs of the given type."; description "The number of LSAs of the LSA type.";
} }
leaf lsa-cksum-sum { leaf lsa-cksum-sum {
type int32; type int32;
description description
"The sum of the LS checksums of the given type."; "The sum of the LSA checksums of the LSA type.";
} }
} }
} }
} }
grouping neighbor-stat { grouping neighbor-stat {
description "Per-instance statistics"; description "Per-neighbor statistics.";
leaf nbr-event-count { leaf nbr-event-count {
type yang:counter32; type yang:counter32;
description description
"The number of times this neighbor has changed "The number of times this neighbor has changed
state or an error has occurred."; state or an error has occurred.";
} }
leaf nbr-retrans-qlen { leaf nbr-retrans-qlen {
type yang:gauge32; type yang:gauge32;
description description
"The current length of the retransmission queue."; "The current length of the retransmission queue.";
} }
} }
grouping instance-fast-reroute-config { grouping instance-fast-reroute-config {
description description
"This group defines global configuration of IPFRR."; "This group defines global configuration of IP-FRR.";
container fast-reroute { container fast-reroute {
if-feature fast-reroute; if-feature fast-reroute;
description description
"This container may be augmented with global "This container may be augmented with global
parameters for IPFRR."; parameters for IP-FRR.";
container lfa { container lfa {
if-feature lfa; if-feature lfa;
description description
"This container may be augmented with "This container may be augmented with
global parameters for LFA. global parameters for LFA. Container creation
Creating the container has no effect on has no effect on LFA activation.";
LFA activation.";
} }
} }
} }
grouping interface-fast-reroute-config { grouping interface-fast-reroute-config {
description description
"This group defines interface configuration of IPFRR."; "This group defines interface configuration of IP-FRR.";
container fast-reroute { container fast-reroute {
if-feature fast-reroute; if-feature fast-reroute;
container lfa { container lfa {
if-feature lfa; if-feature lfa;
leaf candidate-disabled { leaf candidate-disabled {
type boolean; type boolean;
description description
"Prevent the interface to be used as backup."; "Prevent the interface to be used as backup.";
} }
leaf enabled { leaf enabled {
type boolean; type boolean;
description description
"Activates LFA. "Activates LFA - Per-prefix LFA computation
This model assumes activation of per-prefix LFA."; is assumed.";
} }
container remote-lfa { container remote-lfa {
if-feature remote-lfa; if-feature remote-lfa;
leaf enabled { leaf enabled {
type boolean; type boolean;
description description
"Activates remote LFA."; "Activates Remote LFA (R-LFA).";
} }
description description
"Remote LFA configuration."; "Remote LFA configuration.";
} }
description description
"LFA configuration."; "LFA configuration.";
} }
description description
"Fast-reroute configuration."; "IP Fast-reroute configuration.";
} }
} }
grouping interface-common-config { grouping interface-common-config {
description "Common configuration for all types of interfaces, description
including virtual link and sham link"; "Common configuration for all types of interfaces,
including virtual links and sham links.";
leaf cost { leaf cost {
type uint16 { type uint16 {
range "1..65535"; range "1..65535";
} }
description description
"Interface cost."; "Interface cost.";
} }
leaf hello-interval { leaf hello-interval {
type uint16 { type uint16 {
range "1..65535"; range "1..65535";
} }
units seconds; units seconds;
description description
"Time between hello packets."; "Interval between hello packets in seconds.";
} }
leaf dead-interval { leaf dead-interval {
type uint16 { type uint16 {
range "1..65535"; range "1..65535";
} }
units seconds; units seconds;
must "../dead-interval > ../hello-interval" { must "../dead-interval > ../hello-interval" {
error-message "The dead interval must be " error-message "The dead interval must be "
+ "larger than the hello interval"; + "larger than the hello interval";
description description
"The value MUST be greater than 'hello-internval'."; "The value MUST be greater than 'hello-internval'.";
} }
description description
"Interval after which a neighbor is declared dead."; "Interval after which a neighbor is
declared down in seconds.";
} }
leaf retransmit-interval { leaf retransmit-interval {
type uint16 { type uint16 {
range "1..65535"; range "1..65535";
} }
units seconds; units seconds;
description description
"Time between retransmitting unacknowledged Link State "Interval between retransmitting unacknowledged Link
Advertisements (LSAs)."; State Advertisements (LSAs) in seconds.";
} }
leaf transmit-delay { leaf transmit-delay {
type uint16 { type uint16 {
range "1..65535"; range "1..65535";
} }
units seconds; units seconds;
description description
"Estimated time needed to send link-state update."; "Estimated time needed to transmit Link State Update
packets on the interface in seconds.";
} }
leaf mtu-ignore { leaf mtu-ignore {
if-feature mtu-ignore; if-feature mtu-ignore;
type boolean; type boolean;
description description
"Enable/Disable ignoring of MTU in DBD packets."; "Enable/Disable bypassing the MTU mismatch check in
Database Description packets.";
} }
leaf lls { leaf lls {
if-feature lls; if-feature lls;
type boolean; type boolean;
description description
"Enable/Disable link-local signaling (LLS) support."; "Enable/Disable link-local signaling (LLS) support.";
} }
leaf prefix-suppression { leaf prefix-suppression {
if-feature prefix-suppression; if-feature prefix-suppression;
type boolean; type boolean;
description description
"Suppress advertisement of the prefixes."; "Suppress advertisement of the prefixes associated
} with the interface.";
leaf bfd {
if-feature bfd;
type boolean;
description
"Enable/disable bfd.";
} }
container ttl-security { container ttl-security {
if-feature ttl-security; if-feature ttl-security;
description "TTL security check."; description "TTL security check.";
leaf enable { leaf enable {
type boolean; type boolean;
description description
"Enable/Disable TTL security check."; "Enable/Disable TTL security check.";
} }
leaf hops { leaf hops {
type uint8 { type uint8 {
range "1..254"; range "1..254";
} }
description description
"Maximum number of hops that a OSPF packet may "Maximum number of hops that an OSPF packet may
have traveled."; have traversed before reception.";
} }
} }
leaf enable { leaf enable {
if-feature admin-control; if-feature admin-control;
type boolean; type boolean;
default true; default true;
description description
"Enable/disable protocol on the interface."; "Enable/disable protocol on the interface.";
} }
container authentication { container authentication {
description "Authentication configuration."; description "Authentication configuration.";
choice auth-type-selection { choice auth-type-selection {
description description
"Options for expressing authentication setting."; "Options for expressing authentication setting.";
case auth-ipsec { case auth-ipsec {
when "../../../../../../../rt:type = 'ospfv3'" { when "../../../../../../../rt:type = 'ospf:ospfv3'" {
description "Applied to OSPFv3 only."; description "Applied to OSPFv3 only.";
} }
if-feature ospfv3-authentication-ipsec; if-feature ospfv3-authentication-ipsec;
leaf sa { leaf sa {
type string; type string;
description description
"SA name."; "Security Association name.";
} }
} }
case auth-trailer-key-chain { case auth-trailer-key-chain {
leaf key-chain { leaf key-chain {
type key-chain:key-chain-ref; type key-chain:key-chain-ref;
description description
"key-chain name."; "key-chain name.";
} }
} }
case auth-trailer-key { case auth-trailer-key {
skipping to change at page 40, line 21 skipping to change at page 42, line 4
"Specify OSPF point-to-multipoint network."; "Specify OSPF point-to-multipoint network.";
} }
enum "point-to-point" { enum "point-to-point" {
description description
"Specify OSPF point-to-point network."; "Specify OSPF point-to-point network.";
} }
} }
description description
"Network type."; "Network type.";
} }
leaf passive { leaf passive {
type boolean; type boolean;
description description
"Enable/Disable passive."; "Enable/Disable passive interface - a passive interface's
prefix will be advertised but no neighbor adjacencies
will be formed on the interface.";
} }
leaf demand-circuit { leaf demand-circuit {
if-feature demand-circuit; if-feature demand-circuit;
type boolean; type boolean;
description description
"Enable/Disable demand circuit."; "Enable/Disable demand circuit.";
} }
container multi-areas { container multi-areas {
description "Container for multi-area config."; description "Container for multi-area config.";
list multi-area { list multi-area {
if-feature multi-area-adj; if-feature multi-area-adj;
key multi-area-id; key multi-area-id;
description description
"Configure ospf multi-area."; "Configure OSPF multi-area adjacency.";
leaf multi-area-id { leaf multi-area-id {
type area-id-type; type area-id-type;
description description
"Multi-area ID"; "Multi-area adjacency area ID.";
} }
leaf cost { leaf cost {
type uint16; type uint16;
description description
"Interface cost for multi-area."; "Interface cost for multi-area adjacency.";
} }
} }
} }
container static-neighbors { container static-neighbors {
description "Static configured neighbors."; description "Statically configured neighbors.";
list neighbor { list neighbor {
key "address"; key "address";
description description
"Specify a neighbor router."; "Specify a static OSPF neighbor.";
leaf address { leaf address {
type inet:ip-address; type inet:ip-address;
description "Neighbor IP address."; description "Neighbor IP address.";
} }
leaf cost { leaf cost {
type uint16 { type uint16 {
range "1..65535"; range "1..65535";
} }
description "Neighbor cost."; description "Neighbor cost.";
} }
leaf poll-interval { leaf poll-interval {
type uint16 { type uint16 {
range "1..65535"; range "1..65535";
} }
skipping to change at page 41, line 32 skipping to change at page 43, line 15
type uint16 { type uint16 {
range "1..65535"; range "1..65535";
} }
description "Neighbor cost."; description "Neighbor cost.";
} }
leaf poll-interval { leaf poll-interval {
type uint16 { type uint16 {
range "1..65535"; range "1..65535";
} }
units seconds; units seconds;
description "Neighbor poll interval."; description "Neighbor poll interval in seconds.";
} }
leaf priority { leaf priority {
type uint8 { type uint8 {
range "1..255"; range "1..255";
} }
description "Neighbor priority for DR election."; description "Neighbor priority for DR election.";
} }
} }
} }
leaf node-flag { leaf node-flag {
if-feature node-flag; if-feature node-flag;
type boolean; type boolean;
default false; default false;
description description
"Set prefix as a node representative prefix."; "Set prefix as a segment routing (SR) node
representative prefix.";
} }
uses interface-fast-reroute-config; uses interface-fast-reroute-config;
uses interface-common-config; uses interface-common-config;
} // grouping interface-config } // grouping interface-config
grouping tlv { grouping tlv {
description description
"TLV"; "TLV";
leaf type { leaf type {
type uint16; type uint16;
description "TLV type."; description "TLV type.";
skipping to change at page 42, line 19 skipping to change at page 44, line 4
description "TLV type."; description "TLV type.";
} }
leaf length { leaf length {
type uint16; type uint16;
description "TLV length."; description "TLV length.";
} }
leaf value { leaf value {
type yang:hex-string; type yang:hex-string;
description "TLV value."; description "TLV value.";
} }
} }
grouping unknown-tlvs { grouping unknown-tlvs {
description description
"Unknown TLVs grouping. "Unknown TLVs grouping - Used for unknown TLVs or
Could be used for unknown TLVs or unknown sub-TLVs."; unknown sub-TLVs.";
container unknown-tlvs { container unknown-tlvs {
description "All unknown TLVs."; description "All unknown TLVs.";
list unknown-tlv { list unknown-tlv {
description "Unknown TLV."; description "Unknown TLV.";
uses tlv; uses tlv;
} }
} }
} }
grouping ospfv2-router-link { grouping ospfv2-router-link {
skipping to change at page 43, line 13 skipping to change at page 44, line 47
type uint8; type uint8;
description "Link type."; description "Link type.";
} }
} }
grouping ospfv2-lsa-body { grouping ospfv2-lsa-body {
description "OSPFv2 LSA body."; description "OSPFv2 LSA body.";
container router { container router {
when "../../header/type = 1" { when "../../header/type = 1" {
description description
"Only apply to Router-LSA."; "Only applies to Router LSAs.";
} }
description description
"Router LSA."; "Router LSA.";
leaf flags { leaf flags {
type bits { type bits {
bit V { bit V {
description description
"When set, the router is an endpoint of one or "When set, the router is an endpoint of one or
more virtual links."; more virtual links.";
} }
skipping to change at page 44, line 6 skipping to change at page 45, line 39
description "Router LSA link."; description "Router LSA link.";
uses ospfv2-router-link; uses ospfv2-router-link;
container topologies { container topologies {
description "All topologies for the link."; description "All topologies for the link.";
list topology { list topology {
description description
"Topology specific information."; "Topology specific information.";
leaf mt-id { leaf mt-id {
type uint8; type uint8;
description description
"The MT-ID for topology enabled on the link."; "The MT-ID for the topology enabled on
the link.";
} }
leaf metric { leaf metric {
type uint16; type uint16;
description "Metric for the topology."; description "Metric for the topology.";
} }
} }
} }
} }
} }
} }
container network { container network {
when "../../header/type = 2" { when "../../header/type = 2" {
description description
"Only apply to network LSA."; "Only applies to Network LSAs.";
} }
description description
"Network LSA."; "Network LSA.";
leaf network-mask { leaf network-mask {
type inet:ipv4-address; type inet:ipv4-address;
description description
"The IP address mask for the network."; "The IP address mask for the network.";
} }
container attached-routers { container attached-routers {
description "All attached routers."; description "All attached routers.";
skipping to change at page 44, line 42 skipping to change at page 46, line 28
type yang:dotted-quad; type yang:dotted-quad;
description description
"List of the routers attached to the network."; "List of the routers attached to the network.";
} }
} }
} }
container summary { container summary {
when "../../header/type = 3 or " when "../../header/type = 3 or "
+ "../../header/type = 4" { + "../../header/type = 4" {
description description
"Only apply to Summary-LSA."; "Only applies to Summary LSAs.";
} }
description description
"Summary LSA."; "Summary LSA.";
leaf network-mask { leaf network-mask {
type inet:ipv4-address; type inet:ipv4-address;
description description
"The IP address mask for the network"; "The IP address mask for the network";
} }
container topologies { container topologies {
description "All topologies for the summary."; description "All topologies for the summary LSA.";
list topology { list topology {
description description
"Topology specific information."; "Topology specific information.";
leaf mt-id { leaf mt-id {
type uint8; type uint8;
description description
"The MT-ID for topology enabled on the link."; "The MT-ID for the topology enabled for
the summary.";
} }
leaf metric { leaf metric {
type uint24; type uint24;
description "Metric for the topology."; description "Metric for the topology.";
} }
} }
} }
} }
container external { container external {
when "../../header/type = 5 or " when "../../header/type = 5 or "
+ "../../header/type = 7" { + "../../header/type = 7" {
description description
"Only apply to AS-external-LSA and NSSA-LSA."; "Only applies to AS-external LSAs and NSSA LSAs.";
} }
description description
"External LSA."; "External LSA.";
leaf network-mask { leaf network-mask {
type inet:ipv4-address; type inet:ipv4-address;
description description
"The IP address mask for the network"; "The IP address mask for the network";
} }
container topologies { container topologies {
description "All topologies for the external."; description "All topologies for the external.";
list topology { list topology {
description description
"Topology specific information."; "Topology specific information.";
leaf mt-id { leaf mt-id {
type uint8; type uint8;
description description
"The MT-ID for topology enabled on the link."; "The MT-ID for the topology enabled for the
external or NSSA prefix.";
} }
leaf flags { leaf flags {
type bits { type bits {
bit E { bit E {
description description
"When set, the metric specified is a Type 2 "When set, the metric specified is a Type 2
external metric."; external metric.";
} }
} }
description "Flags."; description "Flags.";
skipping to change at page 46, line 18 skipping to change at page 48, line 5
description "Metric for the topology."; description "Metric for the topology.";
} }
leaf forwarding-address { leaf forwarding-address {
type inet:ipv4-address; type inet:ipv4-address;
description description
"Forwarding address."; "Forwarding address.";
} }
leaf external-route-tag { leaf external-route-tag {
type uint32; type uint32;
description description
"Route tag."; "Route tag for the topology.";
} }
} }
} }
} }
container opaque { container opaque {
when "../../header/type = 9 or " when "../../header/type = 9 or "
+ "../../header/type = 10 or " + "../../header/type = 10 or "
+ "../../header/type = 11" { + "../../header/type = 11" {
description description
"Only apply to opaque LSA."; "Only applies to Opaque LSAs.";
} }
description description
"Opaque LSA."; "Opaque LSA.";
uses unknown-tlvs; uses unknown-tlvs;
container router-address-tlv { container router-address-tlv {
description description
"Router address TLV."; "Router address TLV.";
leaf router-address { leaf router-address {
skipping to change at page 48, line 16 skipping to change at page 50, line 4
leaf unreserved-bandwidth { leaf unreserved-bandwidth {
type decimal64 { type decimal64 {
fraction-digits 2; fraction-digits 2;
} }
description "Unreserved bandwidth."; description "Unreserved bandwidth.";
} }
description description
"List of unreserved bandwidths for different "List of unreserved bandwidths for different
priorities."; priorities.";
} }
} }
leaf admin-group { leaf admin-group {
type uint32; type uint32;
description "Administrative group/Resource class/Color."; description
"Administrative group/Resource Class/Color.";
} }
uses unknown-tlvs; uses unknown-tlvs;
} }
} }
container extended-prefix-tlvs { container extended-prefix-tlvs {
description "All extended prefix TLVs in the LSA."; description "All extended prefix TLVs in the LSA.";
list extended-prefix-tlv { list extended-prefix-tlv {
description "Extended prefix TLV."; description "Extended prefix TLV.";
leaf route-type { leaf route-type {
skipping to change at page 49, line 44 skipping to change at page 51, line 34
} }
} }
} }
grouping ospfv3-lsa-options { grouping ospfv3-lsa-options {
description "OSPFv3 LSA options"; description "OSPFv3 LSA options";
leaf options { leaf options {
type bits { type bits {
bit DC { bit DC {
description description
"When set, the router support demand circuits."; "When set, the router supports demand circuits.";
} }
bit R { bit R {
description description
"When set, the originator is an active router."; "When set, the originator is an active router.";
} }
bit N { bit N {
description description
"If set, the router is attached to an NSSA"; "If set, the router is attached to an NSSA";
} }
bit E { bit E {
description description
"This bit describes the way AS-external-LSAs "This bit describes the way AS-external LSAs
are flooded"; are flooded";
} }
bit V6 { bit V6 {
description description
"If clear, the router/link should be excluded "If clear, the router/link should be excluded
from IPv6 routing calculaton"; from IPv6 routing calculaton";
} }
} }
mandatory true; mandatory true;
description "OSPFv3 LSA options."; description "OSPFv3 LSA options.";
} }
} }
grouping ospfv3-lsa-prefix { grouping ospfv3-lsa-prefix {
description description
"OSPFv3 LSA prefix."; "OSPFv3 LSA prefix.";
skipping to change at page 50, line 46 skipping to change at page 52, line 36
from IPv6 unicast calculations."; from IPv6 unicast calculations.";
} }
bit LA { bit LA {
description description
"When set, the prefix is actually an IPv6 interface "When set, the prefix is actually an IPv6 interface
address of the Advertising Router."; address of the Advertising Router.";
} }
bit P { bit P {
description description
"When set, the NSSA area prefix should be "When set, the NSSA area prefix should be
readvertised by the translating NSSA area border."; translated to an AS External LSA and readvertised
by the translating NSSA Border Router.";
} }
bit DN { bit DN {
description description
"When set, the inter-area-prefix-LSA or "When set, the inter-area-prefix LSA or
AS-external-LSA prefix has been advertised in a VPN AS-external LSA prefix has been advertised as an
environment."; L3VPN prefix.";
} }
} }
mandatory true; mandatory true;
description "Prefix options."; description "Prefix options.";
} }
} }
grouping ospfv3-lsa-external { grouping ospfv3-lsa-external {
description description
"AS-External and NSSA LSA."; "AS-External and NSSA LSA.";
skipping to change at page 52, line 24 skipping to change at page 54, line 13
description description
"Referenced Link State ID."; "Referenced Link State ID.";
} }
} }
grouping ospfv3-lsa-body { grouping ospfv3-lsa-body {
description "OSPFv3 LSA body."; description "OSPFv3 LSA body.";
container router { container router {
when "../../header/type = 8193" { // 0x2001 when "../../header/type = 8193" { // 0x2001
description description
"Only apply to Router-LSA."; "Only applies to Router LSAs.";
} }
description "Router LSA."; description "Router LSA.";
leaf flags { leaf flags {
type bits { type bits {
bit V { bit V {
description description
"When set, the router is an endpoint of one or "When set, the router is an endpoint of one or
more virtual links."; more virtual links.";
} }
bit E { bit E {
skipping to change at page 52, line 47 skipping to change at page 54, line 36
(ASBR)."; (ASBR).";
} }
bit B { bit B {
description description
"When set, the router is an Area Border "When set, the router is an Area Border
Router (ABR)."; Router (ABR).";
} }
bit Nt { bit Nt {
description description
"When set, the router is an NSSA border router "When set, the router is an NSSA border router
that is unconditionally translating NSSA-LSAs that is unconditionally translating NSSA LSAs
into AS-external-LSAs."; into AS-external LSAs.";
} }
} }
mandatory true; mandatory true;
description "LSA option."; description "Router LSA flags.";
} }
uses ospfv3-lsa-options; uses ospfv3-lsa-options;
container links { container links {
description "All router link."; description "All router link.";
list link { list link {
description "Router LSA link."; description "Router LSA link.";
leaf interface-id { leaf interface-id {
type uint32; type uint32;
skipping to change at page 53, line 39 skipping to change at page 55, line 28
leaf metric { leaf metric {
type uint16; type uint16;
description "Metric."; description "Metric.";
} }
} }
} }
} }
container network { container network {
when "../../header/type = 8194" { // 0x2002 when "../../header/type = 8194" { // 0x2002
description description
"Only apply to network LSA."; "Only applies to Network LSA.";
} }
description "Network LSA."; description "Network LSA.";
uses ospfv3-lsa-options; uses ospfv3-lsa-options;
container attached-routers { container attached-routers {
description "All attached routers."; description "All attached routers.";
leaf-list attached-router { leaf-list attached-router {
type yang:dotted-quad; type yang:dotted-quad;
description description
skipping to change at page 54, line 4 skipping to change at page 55, line 42
uses ospfv3-lsa-options; uses ospfv3-lsa-options;
container attached-routers { container attached-routers {
description "All attached routers."; description "All attached routers.";
leaf-list attached-router { leaf-list attached-router {
type yang:dotted-quad; type yang:dotted-quad;
description description
"List of the routers attached to the network."; "List of the routers attached to the network.";
} }
} }
} }
container inter-area-prefix { container inter-area-prefix {
when "../../header/type = 8195" { // 0x2003 when "../../header/type = 8195" { // 0x2003
description description
"Only apply to inter-area-prefix LSA."; "Only applies to Inter-Area-Prefix LSAs.";
} }
leaf metric { leaf metric {
type uint24; type uint24;
description "Metric"; description "Metric";
} }
uses ospfv3-lsa-prefix; uses ospfv3-lsa-prefix;
description "Inter-Area-Prefix LSA."; description "Inter-Area-Prefix LSA.";
} }
container inter-area-router { container inter-area-router {
when "../../header/type = 8196" { // 0x2004 when "../../header/type = 8196" { // 0x2004
description description
"Only apply to inter-area-router LSA."; "Only applies to Inter-Area-Router LSAs.";
} }
uses ospfv3-lsa-options; uses ospfv3-lsa-options;
leaf metric { leaf metric {
type uint24; type uint24;
description "Metric."; description "Metric.";
} }
leaf destination-router-id { leaf destination-router-id {
type yang:dotted-quad; type yang:dotted-quad;
description description
"The Router ID of the router being described by the LSA."; "The Router ID of the router being described by the LSA.";
} }
description "Inter-Area-Router LSA."; description "Inter-Area-Router LSA.";
} }
container as-external { container as-external {
when "../../header/type = 16389" { // 0x4005 when "../../header/type = 16389" { // 0x4005
description description
"Only apply to as-external LSA."; "Only applies to AS-external LSAs.";
} }
uses ospfv3-lsa-external; uses ospfv3-lsa-external;
description "AS-External LSA."; description "AS-External LSA.";
} }
container nssa { container nssa {
when "../../header/type = 8199" { // 0x2007 when "../../header/type = 8199" { // 0x2007
description description
"Only apply to nssa LSA."; "Only applies to NSSA LSAs.";
} }
uses ospfv3-lsa-external; uses ospfv3-lsa-external;
description "NSSA LSA."; description "NSSA LSA.";
} }
container link { container link {
when "../../header/type = 8" { // 0x0008 when "../../header/type = 8" { // 0x0008
description description
"Only apply to link LSA."; "Only applies to Link LSAs.";
} }
leaf rtr-priority { leaf rtr-priority {
type uint8; type uint8;
description "Router Priority of the interface."; description "Router Priority for the interface.";
} }
uses ospfv3-lsa-options; uses ospfv3-lsa-options;
leaf link-local-interface-address { leaf link-local-interface-address {
type inet:ipv6-address; type inet:ipv6-address;
description description
"The originating router's link-local "The originating router's link-local
interface address on the link."; interface address for the link.";
} }
leaf num-of-prefixes { leaf num-of-prefixes {
type uint32; type uint32;
description "Number of prefixes."; description "Number of prefixes.";
} }
container prefixes { container prefixes {
description "All prefixes for the link."; description "All prefixes for the link.";
list prefix { list prefix {
description "List of prefixes associated with the link."; description
"List of prefixes associated with the link.";
uses ospfv3-lsa-prefix; uses ospfv3-lsa-prefix;
} }
} }
description "Link LSA."; description "Link LSA.";
} }
container intra-area-prefix { container intra-area-prefix {
when "../../header/type = 8201" { // 0x2009 when "../../header/type = 8201" { // 0x2009
description description
"Only apply to intra-area-prefix LSA."; "Only applies to Intra-Area-Prefix LSA.";
} }
description "Intra-Area-Prefix LSA."; description "Intra-Area-Prefix LSA.";
leaf referenced-ls-type { leaf referenced-ls-type {
type uint16; type uint16;
description "Referenced Link State type."; description "Referenced Link State type.";
} }
leaf referenced-link-state-id { leaf referenced-link-state-id {
type uint32; type uint32;
description description
skipping to change at page 56, line 24 skipping to change at page 58, line 13
type uint16; type uint16;
description "Number of prefixes."; description "Number of prefixes.";
} }
container prefixes { container prefixes {
description "All prefixes in this LSA."; description "All prefixes in this LSA.";
list prefix { list prefix {
description "List of prefixes in this LSA."; description "List of prefixes in this LSA.";
uses ospfv3-lsa-prefix; uses ospfv3-lsa-prefix;
leaf metric { leaf metric {
type uint24; type uint24;
description "Metric."; description "Prefix Metric.";
} }
} }
} }
} }
} }
grouping lsa-header { grouping lsa-header {
description description
"Common LSA for OSPFv2 and OSPFv3"; "Common LSA for OSPFv2 and OSPFv3";
leaf age { leaf age {
skipping to change at page 57, line 27 skipping to change at page 59, line 17
grouping ospfv2-lsa { grouping ospfv2-lsa {
description description
"OSPFv2 LSA."; "OSPFv2 LSA.";
container header { container header {
must "(type = 9 or type = 10 or type = 11) and " must "(type = 9 or type = 10 or type = 11) and "
+ "opaque-id and opaque-type " + "opaque-id and opaque-type "
+ "or (type != 9 and type != 10 and type != 11) " + "or (type != 9 and type != 10 and type != 11) "
+ "and not(opaque-id) and " + "and not(opaque-id) and "
+ "not(opaque-type)" { + "not(opaque-type)" {
description "Opaque type and id only apply to opaque LSA."; description
"Opaque type and ID only apply to Opaque LSAs.";
} }
description description
"Decoded OSPFv2 LSA header data."; "Decoded OSPFv2 LSA header data.";
leaf option { leaf option {
type bits { type bits {
bit DC { bit DC {
description description
"When set, the router support demand circuits."; "When set, the router supports demand circuits.";
} }
bit P { bit P {
description description
"Only used in type-7 LSA. When set, the NSSA "Only used in type-7 LSA. When set, an NSSA
border router should translate the type-7 LSA border router should translate the type-7 LSA
to type-5 LSA."; to a type-5 LSA.";
} }
bit MC { bit MC {
description description
"When set, the router support MOSPF."; "When set, the router supports MOSPF.";
} }
bit E { bit E {
description description
"This bit describes the way AS-external-LSAs "This bit describes the way AS-external LSAs
are flooded"; are flooded";
} }
} }
mandatory true; mandatory true;
description "LSA option."; description "LSA options.";
} }
leaf lsa-id { leaf lsa-id {
type inet:ipv4-address; type inet:ipv4-address;
mandatory true; mandatory true;
description "LSA ID."; description "LSA ID.";
} }
leaf opaque-type { leaf opaque-type {
type uint8; type uint8;
description "Opaque type."; description "Opaque type.";
} }
leaf opaque-id { leaf opaque-id {
type uint24; type uint24;
description "Opaque id."; description "Opaque ID.";
} }
uses lsa-header; uses lsa-header;
} }
container body { container body {
description description
"Decoded OSPFv2 LSA body data."; "Decoded OSPFv2 LSA body data.";
uses ospfv2-lsa-body; uses ospfv2-lsa-body;
} }
} }
skipping to change at page 59, line 16 skipping to change at page 61, line 6
"Common field for OSPF LSA represenation."; "Common field for OSPF LSA represenation.";
leaf decoded-completed { leaf decoded-completed {
type boolean; type boolean;
description description
"The OSPF LSA body is fully decoded."; "The OSPF LSA body is fully decoded.";
} }
leaf raw-data { leaf raw-data {
type yang:hex-string; type yang:hex-string;
description description
"The complete LSA in network byte "The complete LSA in network byte
order as received/sent over the wire."; order hexadecimal as received or originated.";
} }
} }
grouping lsa { grouping lsa {
description description
"OSPF LSA."; "OSPF LSA.";
uses lsa-common; uses lsa-common;
choice version { choice version {
description description
"OSPFv2 or OSPFv3 LSA body."; "OSPFv2 or OSPFv3 LSA body.";
skipping to change at page 60, line 16 skipping to change at page 62, line 6
} }
grouping af-area-config { grouping af-area-config {
description description
"OSPF address-family specific area config state."; "OSPF address-family specific area config state.";
container ranges { container ranges {
description "Container for summary ranges"; description "Container for summary ranges";
list range { list range {
key "prefix"; key "prefix";
description description
"Summarize routes matching address/mask (border "Summarize routes matching address/mask
routers only)"; (Area Border Routers (ABRs) only)";
leaf prefix { leaf prefix {
type inet:ip-prefix; type inet:ip-prefix;
description description
"IPv4 or IPv6 prefix"; "IPv4 or IPv6 prefix";
} }
leaf advertise { leaf advertise {
type boolean; type boolean;
description description
"Advertise or hide."; "Advertise or hide.";
} }
leaf cost { leaf cost {
type uint24 { type uint24 {
range "0..16777214"; range "0..16777214";
} }
description description
"Cost of summary route."; "Advertised cost of summary route.";
} }
} }
} }
} }
grouping area-config { grouping area-config {
description description
"OSPF area config state."; "OSPF area configuration state.";
leaf area-type { leaf area-type {
type identityref { type identityref {
base area-type; base area-type;
} }
default normal; default normal;
description description
"Area type."; "Area type.";
} }
leaf summary { leaf summary {
when "../area-type = 'stub' or ../area-type = 'nssa'" { when "../area-type = 'ospf:stub' or "
+ "../area-type = 'ospf:nssa'" {
description description
"Summary generation valid for stub/NSSA area."; "Summary advertisement into the stub/NSSA area.";
} }
type boolean; type boolean;
description description
"Enable/Disable summary generation to the stub or "Enable/Disable summary advertisement into the stub or
NSSA area."; NSSA area.";
} }
leaf default-cost { leaf default-cost {
when "../area-type = 'stub' or ../area-type = 'nssa'" { when "../area-type = 'ospf:stub' or "
+ "../area-type = 'ospf:nssa'" {
description description
"Default cost for LSA advertised into stub or "Cost for LSA default route advertised into the
NSSA area."; stub or NSSA area.";
} }
type uint32 { type uint32 {
range "1..16777215"; range "1..16777215";
} }
description description
"Set the summary default-cost for a stub or NSSA area."; "Set the summary default route cost for a
stub or NSSA area.";
} }
} }
grouping local-rib { grouping local-rib {
description "Local-rib grouping."; description "Local-rib grouping.";
container local-rib { container local-rib {
description "Local-rib."; description "Local-rib.";
list route { list route {
key "prefix"; key "prefix";
description "Routes"; description "Routes";
skipping to change at page 62, line 46 skipping to change at page 64, line 37
description "Admin distance config state."; description "Admin distance config state.";
choice scope { choice scope {
description description
"Options for expressing admin distance "Options for expressing admin distance
as single or multiple values."; as single or multiple values.";
case single-value { case single-value {
leaf all { leaf all {
type uint8; type uint8;
description description
"Admin distance for intra-area, inter-area and "Admin distance for intra-area, inter-area and
external route."; external routes.";
} }
} }
case multi-values { case multi-values {
choice granularity { choice granularity {
description description
"Options for expressing admin distance "Options for expressing admin distance
for intra-area and inter-area route."; for intra-area and inter-area routes.";
case detail { case detail {
leaf intra-area { leaf intra-area {
type uint8; type uint8;
description description
"Admin distance for intra-area route."; "Admin distance for intra-area routes.";
} }
leaf inter-area { leaf inter-area {
type uint8; type uint8;
description description
"Admin distance for inter-area route."; "Admin distance for inter-area routes.";
} }
} }
case coarse { case coarse {
leaf internal { leaf internal {
type uint8; type uint8;
description description
"Admin distance for both intra-area and "Admin distance for both intra-area and
inter-area route."; inter-area routes.";
} }
} }
} }
leaf external { leaf external {
type uint8; type uint8;
description description
"Admin distance for both external route."; "Admin distance for external routes.";
} }
} }
} }
} }
container nsr { container nsr {
if-feature nsr; if-feature nsr;
description description
"NSR config state."; "Non-Stop Routing (NSR) config state.";
leaf enable { leaf enable {
type boolean; type boolean;
description description
"Enable/Disable NSR."; "Enable/Disable NSR.";
} }
} }
container graceful-restart { container graceful-restart {
if-feature graceful-restart; if-feature graceful-restart;
description description
"Graceful restart config state."; "Graceful restart config state.";
leaf enable { leaf enable {
type boolean; type boolean;
description description
"Enable/Disable graceful restart as defined in RFC 3623."; "Enable/Disable graceful restart as defined in RFC 3623.";
} }
leaf helper-enable { leaf helper-enable {
type boolean; type boolean;
description description
"Enable RestartHelperSupport in RFC 3623 Section B.2."; "Enable graceful restart helper support for restarting
routers (RFC 3623 Section B.2).";
} }
leaf restart-interval { leaf restart-interval {
type uint16 { type uint16 {
range "1..1800"; // Range is defined in RFC 3623. range "1..1800"; // Range is defined in RFC 3623.
} }
units seconds; units seconds;
default "120"; // Default is defined in RFC 3623. default "120"; // Default is defined in RFC 3623.
description description
"RestartInterval option in RFC 3623 Section B.1."; "Interval in seconds to attempt graceful restart prior
to failing (RFC 3623 Section B.1)";
} }
leaf helper-strict-lsa-checking { leaf helper-strict-lsa-checking {
type boolean; type boolean;
description description
"RestartHelperStrictLSAChecking option in RFC 3623 "Terminate graceful restart when an LSA topology change
Section B.2."; is detected (RFC 3623 Section B.2).";
} }
} }
leaf enable { leaf enable {
if-feature admin-control; if-feature admin-control;
type boolean; type boolean;
default true; default true;
description description
"Enable/Disable the protocol."; "Enable/Disable the protocol.";
} }
container auto-cost { container auto-cost {
if-feature auto-cost; if-feature auto-cost;
description description
"Auto cost config state."; "Interface Auto-cost configuration state.";
leaf enable { leaf enable {
type boolean; type boolean;
description description
"Enable/Disable auto cost."; "Enable/Disable interface auto-cost.";
} }
leaf reference-bandwidth { leaf reference-bandwidth {
when "../enable = 'true'" { when "../enable = 'true'" {
description "Only when auto cost is enabled"; description "Only when auto cost is enabled";
} }
type uint32 { type uint32 {
range "1..4294967"; range "1..4294967";
} }
units Mbits; units Mbits;
description description
"Configure reference bandwidth in term of Mbits"; "Configure reference bandwidth used to automatically
determine interface cost (Mbits). The cost is the
reference bandwidth divided by the interface speed
with 1 being the minimum cost.";
} }
} }
container spf-control { container spf-control {
leaf paths { leaf paths {
if-feature max-ecmp; if-feature max-ecmp;
type uint16 { type uint16 {
range "1..32"; range "1..32";
} }
description description
"Maximum number of ECMP paths."; "Maximum number of Equal-Cost Multi-Path (ECMP) paths.";
} }
description "SPF calculation control."; description "SPF calculation control.";
} }
container database-control { container database-control {
leaf max-lsa { leaf max-lsa {
if-feature max-lsa; if-feature max-lsa;
type uint32 { type uint32 {
range "1..4294967294"; range "1..4294967294";
} }
description description
"Maximum number of LSAs OSPF will receive."; "Maximum number of LSAs OSPF the router will accept.";
} }
description "Database maintenance control."; description "Database maintenance control.";
} }
container stub-router { container stub-router {
if-feature stub-router; if-feature stub-router;
description "Set maximum metric configuration"; description "Set maximum metric configuration";
choice trigger { choice trigger {
description description
"Specific different triggers to enable stub router."; "Specific triggers which will enable stub
router state.";
container always { container always {
presence presence
"Enables maximum metric for non-stub router link"; "Enables unconditional stub router support";
description "Set maximum metric always configuration"; description
"Unconditional stub router state (advertise
transit links with max metric";
} }
} }
} }
container mpls { container mpls {
description description
"OSPF MPLS config state."; "OSPF MPLS config state.";
container te-rid { container te-rid {
if-feature te-rid; if-feature te-rid;
description description
"Traffic Engineering stable IP address for system."; "Stable OSPF Router IP Address used for Traffic
Engineering (TE)";
choice source { choice source {
description description
"Different options for specifying TE router ID."; "Different options for specifying TE router ID.";
case interface { case interface {
leaf interface { leaf interface {
type if:interface-ref; type if:interface-ref;
description description
"Take the interface's IPv4 address as TE "Use the interface's IPv4 address as TE
router ID."; router ID.";
} }
} }
case explicit { case explicit {
leaf router-id { leaf router-id {
type inet:ipv4-address; type inet:ipv4-address;
description description
"Explicitly configure the TE router ID."; "Explicitly configure the TE router ID.";
} }
} }
skipping to change at page 67, line 27 skipping to change at page 69, line 27
} }
leaf wait-timer { leaf wait-timer {
type uint32; type uint32;
units "milliseconds"; units "milliseconds";
description "Wait timer."; description "Wait timer.";
} }
leaf dr { leaf dr {
type inet:ipv4-address; type inet:ipv4-address;
description "DR."; description "Designated Router (DR) IP address.";
} }
leaf bdr { leaf bdr {
type inet:ipv4-address; type inet:ipv4-address;
description "BDR."; description "Backup Designated Router (BDR) IP Address.";
} }
container statistics { container statistics {
description "Per interface statistics"; description "Per interface statistics";
uses interface-stat; uses interface-stat;
} }
} // interface-operation } // interface-operation
grouping neighbor-operation { grouping neighbor-operation {
description description
skipping to change at page 68, line 44 skipping to change at page 70, line 45
container statistics { container statistics {
description "Per instance statistics"; description "Per instance statistics";
uses instance-stat; uses instance-stat;
} }
} }
augment "/rt:routing/rt:routing-instance/rt:routing-protocols/" augment "/rt:routing/rt:routing-instance/rt:routing-protocols/"
+ "rt:routing-protocol" { + "rt:routing-protocol" {
when "rt:type = 'ospf:ospfv2' or rt:type = 'ospf:ospfv3'" { when "rt:type = 'ospf:ospfv2' or rt:type = 'ospf:ospfv3'" {
description description
"This augment is only valid for a routing protocol instance "This augmentation is only valid for a routing protocol
of OSPF (type 'ospfv2' or 'ospfv3')."; instance of OSPF (type 'ospfv2' or 'ospfv3').";
} }
description "OSPF augmentation."; description "OSPF augmentation.";
container ospf { container ospf {
description description
"OSPF."; "OSPF.";
container all-instances-inherit { container all-instances-inherit {
if-feature instance-inheritance; if-feature instance-inheritance;
description description
"Inheritance support to all instances."; "Inheritance support to all instances.";
container area { container area {
description description
"Area config to be inherited by all areas in "Area config to be inherited by all areas
all instances."; in all instances.";
} }
container interface { container interface {
description description
"Interface config to be inherited by all interfaces "Interface config to be inherited by all
in all instances."; interfaces in all instances.";
} }
} }
leaf operation-mode { leaf operation-mode {
type identityref { type identityref {
base operation-mode; base operation-mode;
} }
default ospf:ships-in-the-night; default ospf:ships-in-the-night;
description description
"OSPF operation mode."; "OSPF operation mode.";
skipping to change at page 70, line 16 skipping to change at page 72, line 18
"Interface config to be inherited by all interfaces "Interface config to be inherited by all interfaces
in all areas."; in all areas.";
} }
} }
container areas { container areas {
description "All areas."; description "All areas.";
list area { list area {
key "area-id"; key "area-id";
description description
"List of ospf areas"; "List of OSPF areas";
leaf area-id { leaf area-id {
type area-id-type; type area-id-type;
description description
"Area ID."; "Area ID.";
} }
uses area-config; uses area-config;
uses af-area-config { uses af-area-config {
when "../../operation-mode = " when "../../operation-mode = "
+ "'ospf:ships-in-the-night'" { + "'ospf:ships-in-the-night'" {
skipping to change at page 70, line 38 skipping to change at page 72, line 40
"Ships in the night configuration."; "Ships in the night configuration.";
} }
} }
container all-interfaces-inherit { container all-interfaces-inherit {
if-feature interface-inheritance; if-feature interface-inheritance;
description description
"Inheritance for all interfaces"; "Inheritance for all interfaces";
container interface { container interface {
description description
"Interface config to be inherited by all "Interface config to be inherited by all
interfaces."; interfaces in the area.";
} }
} }
container virtual-links { container virtual-links {
description "All virtual links."; description "All virtual links.";
list virtual-link { list virtual-link {
when "../../area-id != '0' and " when "../../area-id != '0' and "
+ "../../area-type = 'normal'" { + "../../area-type = 'ospf:normal'" {
description description
"Transit area must be non-backbone normal area."; "Transit area must be a non-backbone
normal area.";
} }
key "router-id"; key "router-id";
description description
"OSPF virtual link"; "OSPF virtual link";
leaf router-id { leaf router-id {
type yang:dotted-quad; type yang:dotted-quad;
description description
"Virtual link router ID."; "Virtual Link remote endpoint router ID.";
} }
uses interface-common-config; uses interface-common-config;
} }
} }
container sham-links { container sham-links {
description "All sham links."; description "All sham links.";
list sham-link { list sham-link {
key "local-id remote-id"; key "local-id remote-id";
description description
"OSPF sham link"; "OSPF sham link";
leaf local-id { leaf local-id {
type inet:ip-address; type inet:ip-address;
description description
"Address of the local end-point."; "Address of the local Sham Link endpoint.";
} }
leaf remote-id { leaf remote-id {
type inet:ip-address; type inet:ip-address;
description description
"Address of the remote end-point."; "Address of the remote Sham Link endpoint.";
} }
uses interface-common-config; uses interface-common-config;
} }
} }
container interfaces { container interfaces {
description "All interfaces."; description "All interfaces.";
list interface { list interface {
key "interface"; key "interface";
description description
"List of OSPF interfaces."; "List of OSPF interfaces.";
skipping to change at page 71, line 50 skipping to change at page 74, line 4
type if:interface-ref; type if:interface-ref;
description description
"Interface."; "Interface.";
} }
uses interface-config; uses interface-config;
} // list of interfaces } // list of interfaces
} }
} // list of areas } // list of areas
} }
} // list of instance } // list of instance
} // container ospf } // container ospf
} }
augment "/rt:routing/rt:routing-instance/rt:routing-protocols/" augment "/rt:routing/rt:routing-instance/rt:routing-protocols/"
+ "rt:routing-protocol/ospf:ospf/ospf:instance" { + "rt:routing-protocol/ospf:ospf/ospf:instance" {
when "../../rt:type = 'ospf:ospfv2' or when "../../rt:type = 'ospf:ospfv2' or
../../rt:type = 'ospf:ospfv3'" { ../../rt:type = 'ospf:ospfv3'" {
description description
"This augment is only valid for OSPF "This augmentation is only valid for OSPF
(type 'ospfv2' or 'ospfv3')."; (type 'ospfv2' or 'ospfv3').";
} }
if-feature multi-topology; if-feature multi-topology;
description description
"OSPF multi-topology routing-protocol augmentation."; "OSPF multi-topology routing-protocol augmentation.";
container topologies { container topologies {
description "All topologies."; description "All topologies.";
list topology { list topology {
// Topology must be in the same routing-instance // Topology must be in the same routing-instance
// and of same AF as the container. // and of same AF as the container.
key "name"; key "name";
description "OSPF topology."; description "OSPF topology.";
leaf name { leaf name {
type leafref { type leafref {
path "../../../../../../../rt:ribs/rt:rib/rt:name"; path "../../../../../../../rt:ribs/rt:rib/rt:name";
} }
description "RIB"; description "RIB";
} }
container areas { container areas {
description "All areas of the topology."; description "All areas in the topology.";
list area { list area {
key "area-id"; key "area-id";
description description
"List of ospf areas"; "List of OSPF areas";
leaf area-id { leaf area-id {
type area-id-type; type area-id-type;
description description
"Area ID."; "Area ID.";
} }
uses area-config; uses area-config;
uses af-area-config { uses af-area-config {
when "../../../../operation-mode = " when "../../../../operation-mode = "
+ "'ospf:ships-in-the-night'" { + "'ospf:ships-in-the-night'" {
description description
skipping to change at page 72, line 50 skipping to change at page 75, line 4
uses af-area-config { uses af-area-config {
when "../../../../operation-mode = " when "../../../../operation-mode = "
+ "'ospf:ships-in-the-night'" { + "'ospf:ships-in-the-night'" {
description description
"Ships in the night configuration."; "Ships in the night configuration.";
} }
} }
} }
} }
} }
} }
} }
augment "/rt:routing/rt:routing-instance/rt:routing-protocols/" augment "/rt:routing/rt:routing-instance/rt:routing-protocols/"
+ "rt:routing-protocol/ospf:ospf/ospf:instance/" + "rt:routing-protocol/ospf:ospf/ospf:instance/"
+ "ospf:areas/ospf:area/ospf:interfaces/ospf:interface" { + "ospf:areas/ospf:area/ospf:interfaces/ospf:interface" {
when "../../../../../../rt:type = 'ospf:ospfv2'" { when "../../../../../../rt:type = 'ospf:ospfv2'" {
description description
"This augment is only valid for OSPFv2."; "This augmentation is only valid for OSPFv2.";
} }
if-feature ospf:multi-topology; if-feature ospf:multi-topology;
description "OSPF multi-topology interface augmentation."; description "OSPF multi-topology interface augmentation.";
container topologies { container topologies {
description "All topologies for the interface."; description "All topologies for the interface.";
list topology { list topology {
key "name"; key "name";
description "OSPF interface topology."; description "OSPF interface topology.";
leaf name { leaf name {
type leafref { type leafref {
path "../../../../../../../../../../../" path "../../../../../../../../../../../"
+ "rt:ribs/rt:rib/rt:name"; + "rt:ribs/rt:rib/rt:name";
} }
description description
"One of the topology enabled on this interface."; "One of the topologies enabled on this interface.";
} }
leaf cost { leaf cost {
type uint32; type uint32;
description description
"Interface cost for this topology."; "Interface cost for this topology.";
} }
} }
} }
} }
augment "/rt:routing-state/rt:routing-instance/" augment "/rt:routing-state/rt:routing-instance/"
+ "rt:routing-protocols/rt:routing-protocol" { + "rt:routing-protocols/rt:routing-protocol" {
when "rt:type = 'ospf:ospfv2' or rt:type = 'ospf:ospfv3'" { when "rt:type = 'ospf:ospfv2' or "
+ "rt:type = 'ospf:ospfv3'" {
description description
"This augment is only valid for a routing protocol instance "This augmentation is only valid for a routing protocol
of type 'ospfv2' or 'ospfv3'."; instance of type 'ospfv2' or 'ospfv3'.";
} }
description description
"OSPF operation state."; "OSPF operational state.";
container ospf { container ospf {
description "OSPF"; description "OSPF";
leaf operation-mode { leaf operation-mode {
type identityref { type identityref {
base operation-mode; base operation-mode;
} }
description description
"OSPF operation mode."; "OSPF operation mode.";
} }
skipping to change at page 75, line 12 skipping to change at page 77, line 15
} }
} }
container sham-links { container sham-links {
description "All sham links."; description "All sham links.";
list sham-link { list sham-link {
description description
"OSPF sham link"; "OSPF sham link";
leaf local-id { leaf local-id {
type inet:ip-address; type inet:ip-address;
description description
"Address of the local end-point."; "Address of the local Sham Link endpoint.";
} }
leaf remote-id { leaf remote-id {
type inet:ip-address; type inet:ip-address;
description description
"Address of the remote end-point."; "Address of the remote Sham Link endpoint.";
} }
uses interface-operation; uses interface-operation;
} }
} }
container interfaces { container interfaces {
description "All interfaces in the area."; description "All interfaces in the area.";
list interface { list interface {
key "interface"; key "interface";
description description
"List of OSPF interfaces."; "List of OSPF interfaces.";
leaf interface { leaf interface {
// Should it refer to config state leaf? // Should it refer to config state leaf?
type if:interface-ref; type if:interface-ref;
description "Interface."; description "Interface.";
} }
uses interface-operation; uses interface-operation;
container neighbors { container neighbors {
description "All neighbors on the interface."; description "All neighbors for the interface.";
list neighbor { list neighbor {
key "neighbor-router-id"; key "neighbor-router-id";
description description
"List of OSPF neighbors."; "List of OSPF neighbors.";
leaf neighbor-router-id { leaf neighbor-router-id {
type yang:dotted-quad; type yang:dotted-quad;
description description
"Neighbor router ID."; "Neighbor router ID.";
} }
uses neighbor-operation; uses neighbor-operation;
} // list of OSPF neighbors } // list of OSPF neighbors
} }
container database { container database {
description "Link scope LSA database."; description "Link scope LSA database.";
list link-scope-lsa-type { list link-scope-lsa-type {
key "lsa-type"; key "lsa-type";
description description
"List OSPF link scope LSA databases."; "List OSPF link scope LSA databases.";
leaf lsa-type { leaf lsa-type {
skipping to change at page 76, line 24 skipping to change at page 78, line 27
container link-scope-lsas { container link-scope-lsas {
description description
"All link scope LSAs of this LSA type."; "All link scope LSAs of this LSA type.";
list link-scope-lsa { list link-scope-lsa {
key "lsa-id adv-router"; key "lsa-id adv-router";
description "List of OSPF link scope LSAs"; description "List of OSPF link scope LSAs";
uses lsa-key; uses lsa-key;
uses lsa { uses lsa {
refine "version/ospfv2/ospfv2" { refine "version/ospfv2/ospfv2" {
must "../../../../../../../../../../../" must "../../../../../../../../../../../"
+ "rt:type = 'ospfv2'" { + "rt:type = 'ospf:ospfv2'" {
description "OSPFv2 LSA."; description "OSPFv2 LSA.";
} }
} }
refine "version/ospfv3/ospfv3" { refine "version/ospfv3/ospfv3" {
must "../../../../../../../../../../../" must "../../../../../../../../../../../"
+ "rt:type = 'ospfv3'" { + "rt:type = 'ospf:ospfv3'" {
description "OSPFv3 LSA."; description "OSPFv3 LSA.";
} }
} }
} }
} }
} }
} // list link-scope-lsas } // list link-scope-lsas
} }
} // list of OSPF interfaces } // list of OSPF interfaces
} }
skipping to change at page 77, line 4 skipping to change at page 79, line 7
container database { container database {
description "Area scope LSA database."; description "Area scope LSA database.";
list area-scope-lsa-type { list area-scope-lsa-type {
key "lsa-type"; key "lsa-type";
description "List OSPF area scope LSA databases."; description "List OSPF area scope LSA databases.";
leaf lsa-type { leaf lsa-type {
type uint16; type uint16;
description "OSPF area scope LSA type."; description "OSPF area scope LSA type.";
} }
container area-scope-lsas { container area-scope-lsas {
description "All area scope LSA of this LSA type."; description
"All area scope LSAs of an area scope
LSA type.";
list area-scope-lsa { list area-scope-lsa {
key "lsa-id adv-router"; key "lsa-id adv-router";
description "List of OSPF area scope LSAs"; description "List of OSPF area scope LSAs";
uses lsa-key; uses lsa-key;
uses lsa { uses lsa {
refine "version/ospfv2/ospfv2" { refine "version/ospfv2/ospfv2" {
must "../../../../../../../../../" must "../../../../../../../../../"
+ "rt:type = 'ospfv2'" { + "rt:type = 'ospf:ospfv2'" {
description "OSPFv2 LSA."; description "OSPFv2 LSA.";
} }
} }
refine "version/ospfv3/ospfv3" { refine "version/ospfv3/ospfv3" {
must "../../../../../../../../../" must "../../../../../../../../../"
+ "rt:type = 'ospfv3'" { + "rt:type = 'ospf:ospfv3'" {
description "OSPFv3 LSA."; description "OSPFv3 LSA.";
} }
} }
} }
} }
} }
} // list area-scope-lsas } // list area-scope-lsas
} }
} // list of OSPF areas } // list of OSPF areas
} }
skipping to change at page 77, line 46 skipping to change at page 79, line 51
description "OSPF AS scope LSA type."; description "OSPF AS scope LSA type.";
} }
container as-scope-lsas { container as-scope-lsas {
description "All AS scope of LSA of this LSA type."; description "All AS scope of LSA of this LSA type.";
list as-scope-lsa { list as-scope-lsa {
key "lsa-id adv-router"; key "lsa-id adv-router";
description "List of OSPF area scope LSAs"; description "List of OSPF area scope LSAs";
uses lsa-key; uses lsa-key;
uses lsa { uses lsa {
refine "version/ospfv2/ospfv2" { refine "version/ospfv2/ospfv2" {
must "../../../../../../../rt:type = 'ospfv2'" { must "../../../../../../../rt:type = "
+ "'ospf:ospfv2'" {
description "OSPFv2 LSA."; description "OSPFv2 LSA.";
} }
} }
refine "version/ospfv3/ospfv3" { refine "version/ospfv3/ospfv3" {
must "../../../../../../../rt:type = 'ospfv3'" { must "../../../../../../../rt:type = "
+ "'ospf:ospfv3'" {
description "OSPFv3 LSA."; description "OSPFv3 LSA.";
} }
} }
} }
} }
} }
} // list as-scope-lsas } // list as-scope-lsas
} }
} // list of instances } // list of instances
} // container ospf } // container ospf
} }
augment "/rt:routing-state/rt:routing-instance/" augment "/rt:routing-state/rt:routing-instance/"
+ "rt:routing-protocols/rt:routing-protocol/" + "rt:routing-protocols/rt:routing-protocol/"
+ "ospf:ospf/ospf:instance" { + "ospf:ospf/ospf:instance" {
when "../../rt:type = 'ospf:ospfv2'" { when "../../rt:type = 'ospf:ospfv2'" {
description description
"This augment is only valid for OSPFv2."; "This augmentation is only valid for OSPFv2.";
} }
if-feature multi-topology; if-feature multi-topology;
description description
"OSPF multi-topology routing-protocol augmentation."; "OSPF multi-topology routing-protocol augmentation.";
container topologies { container topologies {
description "All topologies."; description "All topologies.";
list topology { list topology {
// Topology must be in the same routing-instance // Topology must be in the same routing-instance
// and of same AF as the container. // and of same AF as the container.
key "name"; key "name";
skipping to change at page 78, line 48 skipping to change at page 81, line 7
description "RIB"; description "RIB";
} }
uses local-rib; uses local-rib;
container areas { container areas {
description "All areas in the topology."; description "All areas in the topology.";
list area { list area {
key "area-id"; key "area-id";
description description
"List of ospf areas"; "List of OSPF areas";
leaf area-id { leaf area-id {
type area-id-type; type area-id-type;
description description
"Area ID."; "Area ID.";
} }
} }
} }
} }
} }
} }
augment "/rt:routing-state/rt:routing-instance/" augment "/rt:routing-state/rt:routing-instance/"
+ "rt:routing-protocols/rt:routing-protocol/" + "rt:routing-protocols/rt:routing-protocol/"
+ "ospf:ospf/ospf:instance/ospf:areas/ospf:area/" + "ospf:ospf/ospf:instance/ospf:areas/ospf:area/"
+ "ospf:interfaces/ospf:interface" { + "ospf:interfaces/ospf:interface" {
when "../../../../../../rt:type = 'ospf:ospfv2'" { when "../../../../../../rt:type = 'ospf:ospfv2'" {
description description
"This augment is only valid for OSPFv2."; "This augmentation is only valid for OSPFv2.";
} }
if-feature ospf:multi-topology; if-feature ospf:multi-topology;
description "OSPF multi-topology interface augmentation."; description "OSPF multi-topology interface augmentation.";
container topologies { container topologies {
description "All topologies."; description "All topologies.";
list topology { list topology {
key "name"; key "name";
description "OSPF interface topology."; description "OSPF interface topology.";
leaf name { leaf name {
type leafref { type leafref {
path "../../../../../../../../../../../" path "../../../../../../../../../../../"
+ "rt:ribs/rt:rib/rt:name"; + "rt:ribs/rt:rib/rt:name";
} }
description description
"One of the topology enabled on this interface."; "One of the topologies enabled on this interface.";
} }
} }
} }
} }
grouping route-content { grouping route-content {
description description
"This grouping defines OSPF-specific route attributes."; "This grouping defines OSPF-specific route attributes.";
leaf metric { leaf metric {
type uint32; type uint32;
skipping to change at page 80, line 14 skipping to change at page 82, line 22
type route-type; type route-type;
description "OSPF route type"; description "OSPF route type";
} }
} }
augment "/rt:routing-state/rt:routing-instance/" augment "/rt:routing-state/rt:routing-instance/"
+ "rt:ribs/rt:rib/rt:routes/rt:route" { + "rt:ribs/rt:rib/rt:routes/rt:route" {
when "rt:source-protocol = 'ospf:ospfv2' or " when "rt:source-protocol = 'ospf:ospfv2' or "
+ "rt:source-protocol = 'ospf:ospfv3'" { + "rt:source-protocol = 'ospf:ospfv3'" {
description description
"This augment is only valid for a routes whose source "This augmentation is only valid for a routes whose
protocol is OSPF."; source protocol is OSPF.";
} }
description description
"OSPF-specific route attributes."; "OSPF-specific route attributes.";
uses route-content; uses route-content;
}
identity if-link-type {
description "Base identity for OSPF interface link type.";
}
identity if-link-type-normal {
base if-link-type;
description "OSPF interface link type normal.";
}
identity if-link-type-virtual-link {
base if-link-type;
description "OSPF interface link type virtual link.";
}
identity if-link-type-sham-link {
base if-link-type;
description "OSPF interface link type sham link.";
} }
grouping notification-instance-hdr { grouping notification-instance-hdr {
description description
"This group describes common instance specific "This group describes common instance specific
data for notifications."; data for notifications.";
leaf routing-instance { leaf routing-instance {
type rt:routing-instance-ref; type rt:routing-instance-ref;
description description
skipping to change at page 81, line 4 skipping to change at page 82, line 40
grouping notification-instance-hdr { grouping notification-instance-hdr {
description description
"This group describes common instance specific "This group describes common instance specific
data for notifications."; data for notifications.";
leaf routing-instance { leaf routing-instance {
type rt:routing-instance-ref; type rt:routing-instance-ref;
description description
"Describe the routing instance."; "Describe the routing instance.";
} }
leaf routing-protocol-type { leaf routing-protocol-type {
type leafref { type leafref {
path "/rt:routing/rt:routing-instance" path "/rt:routing/rt:routing-instance"
+ "[rt:name=current()/../routing-instance]/" + "[rt:name=current()/../routing-instance]/"
+ "rt:routing-protocols/rt:routing-protocol/" + "rt:routing-protocols/rt:routing-protocol/"
+ "rt:type"; + "rt:type";
} }
must ". = 'ospf:ospfv2' or . = 'ospf:ospfv3'" { must ". = 'ospf:ospfv2' or . = 'ospf:ospfv3'" {
description "Only interested in OSPF routing protocol"; description "Only applies to the OSPF routing protocol.";
} }
description description
"Describes the type of the OSPF routing protocol."; "OSPF routing protocol type (OSPFv2 or OSPFv3).";
} }
leaf routing-protocol-name { leaf routing-protocol-name {
type leafref { type leafref {
path "/rt:routing/rt:routing-instance" path "/rt:routing/rt:routing-instance"
+ "[rt:name=current()/../routing-instance]/" + "[rt:name=current()/../routing-instance]/"
+ "rt:routing-protocols/rt:routing-protocol" + "rt:routing-protocols/rt:routing-protocol"
+ "[rt:type=current()/../routing-protocol-type]/" + "[rt:type=current()/../routing-protocol-type]/"
+ "rt:name"; + "rt:name";
} }
description description
"Describes the name of the OSPF routing protocol."; "OSPF routing protocol instance name.";
} }
leaf af { leaf af {
type leafref { type leafref {
path "/rt:routing/rt:routing-instance" path "/rt:routing/rt:routing-instance"
+ "[rt:name=current()/../routing-instance]/" + "[rt:name=current()/../routing-instance]/"
+ "rt:routing-protocols/rt:routing-protocol" + "rt:routing-protocols/rt:routing-protocol"
+ "[rt:name=current()/../routing-protocol-name]" + "[rt:name=current()/../routing-protocol-name]"
+ "[rt:type=current()/../routing-protocol-type]/" + "[rt:type=current()/../routing-protocol-type]/"
+ "ospf:ospf/ospf:instance/af"; + "ospf:ospf/ospf:instance/af";
} }
description description
"Describes the address family of the OSPF instance."; "Address family of the OSPF instance.";
} }
} }
notification if-state-change { grouping notification-interface {
uses notification-instance-hdr; description
"This grouping provides the interface information
for the notifications.";
leaf link-type { choice if-link-type-selection {
type identityref { description
base if-link-type; "Options for link type.";
container interface {
description "Normal interface.";
leaf interface {
type if:interface-ref;
description "Interface.";
}
} }
description "Type of OSPF interface."; container virtual-link {
description "virtual-link.";
} leaf area-id {
type area-id-type;
description "Area ID.";
container interface { }
description "Normal interface."; leaf neighbor-router-id {
leaf interface { type yang:dotted-quad;
type if:interface-ref; description "Neighbor Router ID.";
description "Interface."; }
}
}
container virtual-link {
description "virtual-link.";
leaf area-id {
type uint32;
description "Area ID.";
} }
leaf neighbor-router-id { container sham-link {
type yang:dotted-quad; description "sham-link.";
description "Neighbor router id."; leaf area-id {
type area-id-type;
description "Area ID.";
}
leaf local-ip-addr {
type inet:ip-address;
description "Sham link local address.";
}
leaf remote-ip-addr {
type inet:ip-address;
description "Sham link remote address.";
}
} }
} }
container sham-link { }
description "sham-link.";
leaf area-id {
type uint32;
description "Area ID.";
}
leaf local-ip-addr {
type inet:ip-address;
description "Sham link local address.";
}
leaf remote-ip-addr { grouping notification-neighbor {
type inet:ip-address; description
description "Sham link remote address."; "This grouping provides the neighbor information
} for the notifications.";
leaf neighbor-router-id {
type yang:dotted-quad;
description "Neighbor Router ID.";
} }
leaf neighbor-ip-addr {
type yang:dotted-quad;
description "Neighbor address.";
}
}
notification if-state-change {
uses notification-instance-hdr;
uses notification-interface;
leaf state { leaf state {
type if-state-type; type if-state-type;
description "Interface state."; description "Interface state.";
} }
description description
"This notification is sent when interface "This notification is sent when an interface
state change is detected."; state change is detected.";
} }
notification if-config-error { notification if-config-error {
uses notification-instance-hdr; uses notification-instance-hdr;
uses notification-interface;
leaf link-type { leaf packet-source {
type identityref { type yang:dotted-quad;
base if-link-type; description "Source address.";
}
description "Type of OSPF interface.";
}
container interface {
description "Normal interface.";
leaf interface {
type if:interface-ref;
description "Interface.";
}
leaf packet-source {
type yang:dotted-quad;
description "Source address.";
}
}
container virtual-link {
description "virtual-link.";
leaf area-id {
type uint32;
description "Area ID.";
}
leaf neighbor-router-id {
type yang:dotted-quad;
description "Neighbor router id.";
}
} }
container sham-link {
description "sham-link.";
leaf area-id {
type uint32;
description "Area ID.";
}
leaf local-ip-addr {
type inet:ip-address;
description "Sham link local address.";
}
leaf remote-ip-addr {
type inet:ip-address;
description "Sham link remote address.";
}
}
leaf packet-type { leaf packet-type {
type packet-type; type packet-type;
description "OSPF packet type."; description "OSPF packet type.";
} }
leaf error { leaf error {
type enumeration { type enumeration {
enum "badVersion" { enum "badVersion" {
description "Bad version."; description "Bad version.";
} }
skipping to change at page 85, line 4 skipping to change at page 86, line 18
description "MTU mismatch."; description "MTU mismatch.";
} }
enum "duplicateRouterId" { enum "duplicateRouterId" {
description "Duplicate router ID."; description "Duplicate router ID.";
} }
enum "noError" { enum "noError" {
description "No error."; description "No error.";
} }
} }
description "Error code."; description "Error code.";
} }
description description
"This notification is sent when interface "This notification is sent when interface
config error is detected."; config error is detected.";
} }
notification nbr-state-change { notification nbr-state-change {
uses notification-instance-hdr; uses notification-instance-hdr;
uses notification-interface;
leaf link-type { uses notification-neighbor;
type identityref {
base if-link-type;
}
description "Type of OSPF interface.";
}
container interface {
description "Normal interface.";
leaf interface {
type if:interface-ref;
description "Interface.";
}
leaf neighbor-router-id {
type yang:dotted-quad;
description "Neighbor router id.";
}
leaf neighbor-ip-addr {
type yang:dotted-quad;
description "Neighbor address.";
}
}
container virtual-link {
description "virtual-link.";
leaf area-id {
type uint32;
description "Area ID.";
}
leaf neighbor-router-id {
type yang:dotted-quad;
description "Neighbor router id.";
}
}
container sham-link {
description "sham-link.";
leaf area-id {
type uint32;
description "Area ID.";
}
leaf local-ip-addr {
type inet:ip-address;
description "Sham link local address.";
}
leaf neighbor-router-id {
type yang:dotted-quad;
description "Neighbor router id.";
}
leaf neighbor-ip-addr {
type yang:dotted-quad;
description "Neighbor address.";
}
}
leaf state { leaf state {
type nbr-state-type; type nbr-state-type;
description "Neighbor state."; description "Neighbor state.";
} }
description description
"This notification is sent when neighbor "This notification is sent when neighbor
state change is detected."; state change is detected.";
} }
notification nbr-restart-helper-status-change { notification nbr-restart-helper-status-change {
uses notification-instance-hdr; uses notification-instance-hdr;
uses notification-interface;
leaf link-type { uses notification-neighbor;
type identityref {
base if-link-type;
}
description "Type of OSPF interface.";
}
container interface {
description "Normal interface.";
leaf interface {
type if:interface-ref;
description "Interface.";
}
leaf neighbor-router-id {
type yang:dotted-quad;
description "Neighbor router id.";
}
leaf neighbor-ip-addr {
type yang:dotted-quad;
description "Neighbor address.";
}
}
container virtual-link {
description "virtual-link.";
leaf area-id {
type uint32;
description "Area ID.";
}
leaf neighbor-router-id {
type yang:dotted-quad;
description "Neighbor router id.";
}
}
leaf status { leaf status {
type restart-helper-status-type; type restart-helper-status-type;
description "Restart helper status."; description "Restart helper status.";
} }
leaf age { leaf age {
type uint32; type uint32;
units seconds; units seconds;
description description
skipping to change at page 87, line 38 skipping to change at page 87, line 16
interval, if the router is acting as a restart interval, if the router is acting as a restart
helper for the neighbor."; helper for the neighbor.";
} }
leaf exit-reason { leaf exit-reason {
type restart-exit-reason-type; type restart-exit-reason-type;
description description
"Restart helper exit reason."; "Restart helper exit reason.";
} }
description description
"This notification is sent when neighbor restart "This notification is sent when a neighbor restart
helper status change is detected."; helper status change is detected.";
} }
notification rx-bad-packet { notification rx-bad-packet {
uses notification-instance-hdr; uses notification-instance-hdr;
uses notification-interface;
leaf link-type { leaf packet-source {
type identityref { type yang:dotted-quad;
base if-link-type; description "Source address.";
}
description "Type of OSPF interface.";
}
container interface {
description "Normal interface.";
leaf interface {
type if:interface-ref;
description "Interface.";
}
leaf packet-source {
type yang:dotted-quad;
description "Source address.";
}
}
container virtual-link {
description "virtual-link.";
leaf area-id {
type uint32;
description "Area ID.";
}
leaf neighbor-router-id {
type yang:dotted-quad;
description "Neighbor router id.";
}
}
container sham-link {
description "sham-link.";
leaf area-id {
type uint32;
description "Area ID.";
}
leaf local-ip-addr {
type inet:ip-address;
description "Sham link local address.";
}
leaf remote-ip-addr {
type inet:ip-address;
description "Sham link remote address.";
}
} }
leaf packet-type { leaf packet-type {
type packet-type; type packet-type;
description "OSPF packet type."; description "OSPF packet type.";
} }
description description
"This notification is sent when an OSPF packet "This notification is sent when an OSPF packet that
has been received on a interface that cannot be parsed."; cannot be parsed is received on an OSPF interface.";
} }
notification lsdb-approaching-overflow { notification lsdb-approaching-overflow {
uses notification-instance-hdr; uses notification-instance-hdr;
leaf ext-lsdb-limit { leaf ext-lsdb-limit {
type uint32; type uint32;
description description
"The maximum number of non-default AS-external LSAs "The maximum number of non-default AS-external LSAs
entries that can be stored in the link state database."; entries that can be stored in the link state database.";
} }
skipping to change at page 89, line 40 skipping to change at page 88, line 27
description description
"This notification is sent when the number of LSAs "This notification is sent when the number of LSAs
in the router's link state database has exceeded in the router's link state database has exceeded
ext-lsdb-limit."; ext-lsdb-limit.";
} }
notification nssa-translator-status-change { notification nssa-translator-status-change {
uses notification-instance-hdr; uses notification-instance-hdr;
leaf area-id { leaf area-id {
type uint32; type area-id-type;
description "Area ID."; description "Area ID.";
} }
leaf status { leaf status {
type nssa-translator-state-type; type nssa-translator-state-type;
description description
"NSSA translator status."; "NSSA translator status.";
} }
description description
"This notification is sent when there is a change "This notification is sent when there is a change
in the router's ability to translate OSPF NSSA LSAs in the router's role in translating OSPF NSSA LSAs
OSPF AS-External LSAs."; to OSPF AS-External LSAs.";
} }
notification restart-status-change { notification restart-status-change {
uses notification-instance-hdr; uses notification-instance-hdr;
leaf status { leaf status {
type restart-status-type; type restart-status-type;
description description
"Restart status."; "Restart status.";
} }
skipping to change at page 90, line 38 skipping to change at page 89, line 24
type restart-exit-reason-type; type restart-exit-reason-type;
description description
"Restart exit reason."; "Restart exit reason.";
} }
description description
"This notification is sent when the graceful restart "This notification is sent when the graceful restart
state for the router has changed."; state for the router has changed.";
} }
} }
<CODE ENDS> <CODE ENDS>
]]</artwork>
</figure>
</t>
</section>
<section title="OSPF Segment Routing Yang Module"> 6. OSPF Segment Routing Yang Module
<t>
<figure>
<artwork><![CDATA[
<CODE BEGINS> file "ietf-ospf-sr@2015-09-02.yang"
<CODE BEGINS> file "ietf-ospf-sr@2015-10-19.yang"
module ietf-ospf-sr { module ietf-ospf-sr {
namespace "urn:ietf:params:xml:ns:yang:ietf-ospf-sr"; namespace "urn:ietf:params:xml:ns:yang:ietf-ospf-sr";
prefix ospf-sr; prefix ospf-sr;
import ietf-inet-types { import ietf-inet-types {
prefix "inet"; prefix "inet";
} }
import ietf-yang-types { import ietf-yang-types {
skipping to change at page 92, line 4 skipping to change at page 90, line 30
Editor: Derek Yeung Editor: Derek Yeung
<mailto:myeung@cisco.com> <mailto:myeung@cisco.com>
Author: Derek Yeung Author: Derek Yeung
<mailto:myeung@cisco.com> <mailto:myeung@cisco.com>
Author: Yingzhen Qu Author: Yingzhen Qu
<mailto:yiqu@cisco.com> <mailto:yiqu@cisco.com>
Author: Acee Lindem Author: Acee Lindem
<mailto:acee@cisco.com> <mailto:acee@cisco.com>
Author: Jeffrey Zhang Author: Jeffrey Zhang
<mailto:zzhang@juniper.net> <mailto:zzhang@juniper.net>
Author: Ing-Wher Chen Author: Ing-Wher Chen
<mailto:ing-wher.chen@ericsson.com> <mailto:ing-wher.chen@ericsson.com>
Author: Greg Hankins Author: Greg Hankins
<mailto:greg.hankins@alcatel-lucent.com>"; <mailto:greg.hankins@alcatel-lucent.com>";
description description
"This YANG module defines the generic configuration "This YANG module defines the generic configuration
data for OSPF, which is common across all of the vendor and operational state for OSPF Segment Routing, which is
implementations of the protocol. It is intended that the module common across all of the vendor implementations. It is
will be extended by vendors to define vendor-specific intended that the module will be extended by vendors to
OSPF configuration parameters and policies, define vendor-specific OSPF Segment Routing configuration
for example route maps or route policies. and operational parameters and policies.
Terms and Acronyms Terms and Acronyms
OSPF (ospf): Open Shortest Path First OSPF (ospf): Open Shortest Path First
IP (ip): Internet Protocol IP (ip): Internet Protocol
IPv4 (ipv4):Internet Protocol Version 4 IPv4 (ipv4):Internet Protocol Version 4
IPv6 (ipv6): Internet Protocol Version 6 IPv6 (ipv6): Internet Protocol Version 6
MTU (mtu) Maximum Transmission Unit
"; ";
revision 2015-10-19 {
description
"* Add per-protocol SRGB support.
* Editorial changes.";
reference
"RFC XXXX: A YANG Data Model for OSPF Segment Routing.";
}
revision 2015-09-02 { revision 2015-09-02 {
description description
"* Author list update. "* Author list update.
* Editorial changes."; * Editorial changes.";
reference reference
"RFC XXXX: A YANG Data Model for OSPF Segment Routing"; "RFC XXXX: A YANG Data Model for OSPF Segment Routing.";
} }
revision 2015-07-06 { revision 2015-07-06 {
description description
"Initial revision."; "Initial revision.";
reference reference
"RFC XXXX: A YANG Data Model for OSPF Segment Routing"; "RFC XXXX: A YANG Data Model for OSPF Segment Routing.";
} }
feature ti-lfa { feature ti-lfa {
description description
"Enhance IPFRR with ti-lfa support"; "Topology-Independent Loop-Free Alternate (TI-LFA)
computation using segment routing.";
} }
/* Configuration */ /* Configuration */
augment "/rt:routing/rt:routing-instance/rt:routing-protocols" augment "/rt:routing/rt:routing-instance/rt:routing-protocols"
+ "/rt:routing-protocol/ospf:ospf/ospf:instance" { + "/rt:routing-protocol/ospf:ospf/ospf:instance" {
when "../../rt:type = 'ospf:ospfv2' or " when "../../rt:type = 'ospf:ospfv2' or "
+ "../../rt:type = 'ospf:ospfv3'" { + "../../rt:type = 'ospf:ospfv3'" {
description description
"This augment OSPF routing protocol when used"; "This augments the OSPF routing protocol when used.";
} }
description description
"This augments OSPF protocol configuration "This augments the OSPF protocol configuration
with segment routing."; with segment routing.";
uses sr:controlplane-cfg; uses sr:controlplane-cfg;
container protocol-srgb {
if-feature sr:protocol-srgb;
uses sr:srgb-cfg;
description
"Per-protocol SRGB.";
}
} }
augment "/rt:routing/rt:routing-instance/rt:routing-protocols/" augment "/rt:routing/rt:routing-instance/rt:routing-protocols/"
+ "rt:routing-protocol/ospf:ospf/ospf:instance/" + "rt:routing-protocol/ospf:ospf/ospf:instance/"
+ "ospf:areas/ospf:area/ospf:interfaces/ospf:interface" { + "ospf:areas/ospf:area/ospf:interfaces/ospf:interface" {
when "../../../../../../rt:type = 'ospf:ospfv2' or " when "../../../../../../rt:type = 'ospf:ospfv2' or "
+ "../../../../../../rt:type = 'ospf:ospfv3'" { + "../../../../../../rt:type = 'ospf:ospfv3'" {
description description
"This augment OSPF routing protocol when used"; "This augments the OSPF interface configuration
when used.";
} }
description description
"This augments OSPF protocol configuration "This augments the OSPF protocol interface
with segment routing."; configuration with segment routing.";
uses sr:igp-interface-cfg; uses sr:igp-interface-cfg;
} }
augment "/rt:routing/rt:routing-instance/rt:routing-protocols/" augment "/rt:routing/rt:routing-instance/rt:routing-protocols/"
+ "rt:routing-protocol/ospf:ospf/ospf:instance/" + "rt:routing-protocol/ospf:ospf/ospf:instance/"
+ "ospf:areas/ospf:area/ospf:interfaces/ospf:interface/" + "ospf:areas/ospf:area/ospf:interfaces/ospf:interface/"
+ "ospf:fast-reroute" { + "ospf:fast-reroute" {
when "../../../../../../../rt:type = 'ospf:ospfv2' or " when "../../../../../../../rt:type = 'ospf:ospfv2' or "
+ "../../../../../../../rt:type = 'ospf:ospfv3'" { + "../../../../../../../rt:type = 'ospf:ospfv3'" {
description description
"This augment OSPF routing protocol when used"; "This augments the OSPF routing protocol when used.";
} }
description description
"This augments ISIS IP FRR with TILFA."; "This augments the OSPF protocol IP-FRR with TI-LFA.";
container ti-lfa { container ti-lfa {
if-feature ti-lfa; if-feature ti-lfa;
leaf enable { leaf enable {
type boolean; type boolean;
description description
"Enables TI-LFA computation."; "Enables TI-LFA computation.";
} }
description description
"TILFA configuration."; "Topology Independent Loop Free Alternate
(TI-LFA) support.";
} }
} }
/* Operational states */ /* Operational states */
augment "/rt:routing-state/rt:routing-instance/" augment "/rt:routing-state/rt:routing-instance/"
+ "rt:routing-protocols/rt:routing-protocol/" + "rt:routing-protocols/rt:routing-protocol/"
+ "ospf:ospf/ospf:instance" { + "ospf:ospf/ospf:instance" {
when "../../rt:type = 'ospf:ospfv2' or " when "../../rt:type = 'ospf:ospfv2' or "
+ "../../rt:type = 'ospf:ospfv3'" { + "../../rt:type = 'ospf:ospfv3'" {
description description
"This augment OSPF routing protocol when used"; "This augments the OSPF routing protocol when used.";
} }
description description
"This augments OSPF protocol configuration "This augments the OSPF protocol operational state
with segment routing."; with segment routing.";
uses sr:controlplane-cfg; uses sr:controlplane-cfg;
container protocol-srgb {
if-feature sr:protocol-srgb;
uses sr:srgb-cfg;
description
"Per-protocol SRGB.";
}
} }
augment "/rt:routing-state/rt:routing-instance/" augment "/rt:routing-state/rt:routing-instance/"
+ "rt:routing-protocols/rt:routing-protocol/" + "rt:routing-protocols/rt:routing-protocol/"
+ "ospf:ospf/ospf:instance/ospf:areas/ospf:area/" + "ospf:ospf/ospf:instance/ospf:areas/ospf:area/"
+ "ospf:interfaces/ospf:interface" { + "ospf:interfaces/ospf:interface" {
when "../../../../../../rt:type = 'ospf:ospfv2' or " when "../../../../../../rt:type = 'ospf:ospfv2' or "
+ "../../../../../../rt:type = 'ospf:ospfv3'" { + "../../../../../../rt:type = 'ospf:ospfv3'" {
description description
"This augment OSPF routing protocol when used"; "This augments the OSPF routing protocol when used.";
} }
description description
"This augments OSPF protocol configuration "This augments the OSPF protocol interface
with segment routing."; operational state with segment routing.";
uses sr:igp-interface-cfg; uses sr:igp-interface-cfg;
} }
/* Database */ /* Database */
grouping sid-sub-tlv { grouping sid-sub-tlv {
description "SID/Label sub-tlv grouping."; description "SID/Label sub-TLV grouping.";
container sid-sub-tlv { container sid-sub-tlv {
description description
"Used to advertise the SID/Label associated with a prefix or "Used to advertise the SID/Label associated with a
adjacency."; prefix or adjacency.";
leaf sid { leaf sid {
type uint32; type uint32;
description "A 20 bit label or 32 bit SID."; description
"Segment Identifier (SID) - A 20 bit label or
32 bit SID.";
} }
} }
} }
grouping prefix-sid-sub-tlvs { grouping prefix-sid-sub-tlvs {
description "Prefix SID sub-tlvs"; description "Prefix Segment ID (SID) sub-TLVs.";
container perfix-sid-sub-tlvs{ container perfix-sid-sub-tlvs{
description "prefix sid sub-tlv."; description "Prefix SID sub-TLV.";
list prefix-sid-sub-tlv { list prefix-sid-sub-tlv {
description "prefix sid sub-tlv."; description "Prefix SID sub-TLV.";
leaf flags { leaf flags {
type bits { type bits {
bit NP { bit NP {
description description
"No-PHP flag."; "No-PHP flag.";
} }
bit M { bit M {
description description
"Mapping server flag."; "Mapping server flag.";
} }
skipping to change at page 95, line 38 skipping to change at page 94, line 38
} }
bit V { bit V {
description description
"Value/Index flag."; "Value/Index flag.";
} }
bit L { bit L {
description description
"Local flag."; "Local flag.";
} }
} }
description "Flags."; description "Segment Identifier (SID) Flags.";
} }
leaf mt-id { leaf mt-id {
type uint8; type uint8;
description "Multi-topology ID."; description "Multi-topology ID.";
} }
leaf algorithm { leaf algorithm {
type uint8; type uint8;
description description
"The algorithm the prefix-sid is associated with."; "The algorithm associated with the prefix-SID.";
} }
leaf sid { leaf sid {
type uint32; type uint32;
description "An index or label."; description "An index or label.";
}
}
} }
} }
} }
grouping sid-binding-sub-tlvs { grouping sid-binding-sub-tlvs {
description "SID/Label binding sub-tlv grouping."; description "SID/Label binding sub-TLV grouping.";
container sid-binding-sub-tlvs { container sid-binding-sub-tlvs {
description "sid binding sub-tlvs."; description "SID binding sub-TLVs.";
list sid-binding-sub-tlv { list sid-binding-sub-tlv {
description "sid binding sub-tlv."; description "SID binding sub-TLV.";
leaf flags { leaf flags {
type bits { type bits {
bit M { bit M {
description description
"Mirroring context flag."; "Mirroring context flag.";
} }
} }
description "Flags."; description "Flags.";
} }
leaf mt-id { leaf mt-id {
skipping to change at page 96, line 36 skipping to change at page 95, line 37
description "Multi-topology ID."; description "Multi-topology ID.";
} }
leaf weight { leaf weight {
type uint8; type uint8;
description "Weight for load-balancing purposes."; description "Weight for load-balancing purposes.";
} }
uses sid-sub-tlv; uses sid-sub-tlv;
container ero-metric-sub-tlv { container ero-metric-sub-tlv {
description "The cost of an ERO path."; description
"The cost of an Explicit Route Object (ERO) path.";
leaf metric { leaf metric {
type uint32; type uint32;
description "The aggregate IGP or TE path cost."; description "The aggregate IGP or TE path cost.";
} }
} }
container ipv4-ero-sub-tlv { container ipv4-ero-sub-tlv {
description description
"The ipv4 ERO sub-tlv describes a path segment "The IPv4 ERO sub-TLV describes a path segment
using ipv4 address."; using IPv4 address.";
leaf flags { leaf flags {
type bits { type bits {
bit L { bit L {
description description
"If set, then the segment path is designated as "If set, then the segment path is designated as
'loose'. Otherwise as 'strict'."; 'loose'. Otherwise, the path is 'strict'.";
} }
} }
description "Flags."; description "ERO Flags.";
} }
leaf ipv4-address { leaf ipv4-address {
type inet:ipv4-address; type inet:ipv4-address;
description "The address of the explicit route hop."; description "The address of the explicit route hop.";
} }
} }
container unnumbered-ero-sub-tlv { container unnumbered-ero-sub-tlv {
description "The unnumbered interface ID ERO sub-tlv description "The unnumbered interface ID ERO sub-TLV
describes a path segment that includes an describes a path segment that includes an
unnumbered interface."; unnumbered interface.";
leaf flags { leaf flags {
type bits { type bits {
bit L { bit L {
description description
"If set, then the segment path is designated as "If set, then the segment path is designated as
'loose'. Otherwise as 'strict'."; 'loose'. Otherwise as 'strict'.";
} }
} }
description "Flags."; description "ERO Flags.";
} }
leaf router-id { leaf router-id {
type yang:dotted-quad; type yang:dotted-quad;
description "Router-id of the next-hop."; description "Router-id of the next-hop.";
} }
leaf interface-id { leaf interface-id {
type uint32; type uint32;
description description
"The identifier assigned to the link by the "The identifier assigned to the link by the
router specified by the router-id."; router specified by the router-id.";
} }
} }
container ipv4-backup-ero-sub-tlv { container ipv4-backup-ero-sub-tlv {
description description
"The ipv4 backup ERO sub-tlv describes a path "The IPv4 backup ERO sub-TLV describes a path
segment using ipv4 address."; segment using IPv4 address.";
leaf flags { leaf flags {
type bits { type bits {
bit L { bit L {
description description
"If set, then the segment path is designated as "If set, then the segment path is designated as
'loose'. Otherwise as 'strict'."; 'loose'. Otherwise as 'strict'.";
} }
} }
description "Flags."; description "Flags.";
} }
leaf ipv4-address { leaf ipv4-address {
type inet:ipv4-address; type inet:ipv4-address;
description "The address of the explicit route hop."; description "The address of the explicit route hop.";
} }
} }
container unnumbered-backup-ero-sub-tlv { container unnumbered-backup-ero-sub-tlv {
description "The unnumbered interface ID backup ERO sub-tlv description
describes a path segment that includes an "The unnumbered interface ID backup ERO sub-TLV
unnumbered interface."; describes a path segment that includes an
unnumbered interface.";
leaf flags { leaf flags {
type bits { type bits {
bit L { bit L {
description description
"If set, then the segment path is designated as "If set, then the segment path is designated as
'loose'. Otherwise as 'strict'."; 'loose'. Otherwise, the path is 'strict'.";
} }
} }
description "Flags."; description "Flags.";
} }
leaf router-id { leaf router-id {
type yang:dotted-quad; type yang:dotted-quad;
description "Router-id of the next-hop."; description "Router-id of the next-hop.";
} }
leaf interface-id { leaf interface-id {
type uint32; type uint32;
skipping to change at page 99, line 29 skipping to change at page 98, line 33
} }
} }
grouping sr-algorithm-tlv { grouping sr-algorithm-tlv {
description "SR algorithm TLV grouping."; description "SR algorithm TLV grouping.";
container sr-algorithm-tlv { container sr-algorithm-tlv {
description "All SR algorithm TLVs."; description "All SR algorithm TLVs.";
leaf-list sr-algorithm { leaf-list sr-algorithm {
type uint8; type uint8;
description description
"The algorithms that the router is currently using."; "The Segment Routing (SR) algorithms that the router is
currently using.";
} }
} }
} }
grouping sid-range-tlvs { grouping sid-range-tlvs {
description "sid-range-tlvs grouping."; description "SID Range TLV grouping.";
container sid-range-tlvs { container sid-range-tlvs {
description "List of SID range TLVs."; description "List of SID range TLVs.";
list sid-range-tlv { list sid-range-tlv {
description "SID range TLV."; description "SID range TLV.";
leaf range-size { leaf range-size {
type ospf:uint24; type ospf:uint24;
description "The SID range."; description "The SID range.";
} }
uses sid-sub-tlv; uses sid-sub-tlv;
} }
skipping to change at page 100, line 12 skipping to change at page 99, line 15
+ "rt:routing-protocols/rt:routing-protocol/" + "rt:routing-protocols/rt:routing-protocol/"
+ "ospf:ospf/ospf:instance/ospf:areas/ospf:area/" + "ospf:ospf/ospf:instance/ospf:areas/ospf:area/"
+ "ospf:interfaces/ospf:interface/ospf:database/" + "ospf:interfaces/ospf:interface/ospf:database/"
+ "ospf:link-scope-lsa-type/ospf:link-scope-lsas/" + "ospf:link-scope-lsa-type/ospf:link-scope-lsas/"
+ "ospf:link-scope-lsa/ospf:version/ospf:ospfv2/" + "ospf:link-scope-lsa/ospf:version/ospf:ospfv2/"
+ "ospf:ospfv2/ospf:body/ospf:opaque/" + "ospf:ospfv2/ospf:body/ospf:opaque/"
+ "ospf:extended-prefix-tlvs/ospf:extended-prefix-tlv" { + "ospf:extended-prefix-tlvs/ospf:extended-prefix-tlv" {
when "../../../../../../../../../../../../../../../../../" when "../../../../../../../../../../../../../../../../../"
+ "rt:type = 'ospf:ospfv2'" { + "rt:type = 'ospf:ospfv2'" {
description description
"This augment is only valid for OSPFv2."; "This augmentation is only valid for OSPFv2.";
} }
description description
"SR specific TLVs for OSPFv2 extended prefix TLV "SR specific TLVs for OSPFv2 extended prefix TLV
in type 9 opaque LSA."; in type 9 opaque LSA.";
uses prefix-sid-sub-tlvs; uses prefix-sid-sub-tlvs;
uses sid-binding-sub-tlvs; uses sid-binding-sub-tlvs;
} }
augment "/rt:routing-state/rt:routing-instance/" augment "/rt:routing-state/rt:routing-instance/"
+ "rt:routing-protocols/rt:routing-protocol/" + "rt:routing-protocols/rt:routing-protocol/"
+ "ospf:ospf/ospf:instance/ospf:areas/" + "ospf:ospf/ospf:instance/ospf:areas/"
+ "ospf:area/ospf:database/" + "ospf:area/ospf:database/"
+ "ospf:area-scope-lsa-type/ospf:area-scope-lsas/" + "ospf:area-scope-lsa-type/ospf:area-scope-lsas/"
+ "ospf:area-scope-lsa/ospf:version/ospf:ospfv2/" + "ospf:area-scope-lsa/ospf:version/ospf:ospfv2/"
+ "ospf:ospfv2/ospf:body/ospf:opaque/" + "ospf:ospfv2/ospf:body/ospf:opaque/"
+ "ospf:extended-prefix-tlvs/ospf:extended-prefix-tlv" { + "ospf:extended-prefix-tlvs/ospf:extended-prefix-tlv" {
when "../../../../../../../../../../../../../../../" when "../../../../../../../../../../../../../../../"
+ "rt:type = 'ospf:ospfv2'" { + "rt:type = 'ospf:ospfv2'" {
description description
"This augment is only valid for OSPFv2."; "This augmentation is only valid for OSPFv2.";
} }
description description
"SR specific TLVs for OSPFv2 extended prefix TLV "SR specific TLVs for OSPFv2 extended prefix TLV
in type 10 opaque LSA."; in type 10 opaque LSA.";
uses prefix-sid-sub-tlvs; uses prefix-sid-sub-tlvs;
uses sid-binding-sub-tlvs; uses sid-binding-sub-tlvs;
} }
augment "/rt:routing-state/rt:routing-instance/" augment "/rt:routing-state/rt:routing-instance/"
+ "rt:routing-protocols/rt:routing-protocol/" + "rt:routing-protocols/rt:routing-protocol/"
+ "ospf:ospf/ospf:instance/ospf:database/" + "ospf:ospf/ospf:instance/ospf:database/"
+ "ospf:as-scope-lsa-type/ospf:as-scope-lsas/" + "ospf:as-scope-lsa-type/ospf:as-scope-lsas/"
+ "ospf:as-scope-lsa/ospf:version/ospf:ospfv2/" + "ospf:as-scope-lsa/ospf:version/ospf:ospfv2/"
+ "ospf:ospfv2/ospf:body/ospf:opaque/" + "ospf:ospfv2/ospf:body/ospf:opaque/"
+ "ospf:extended-prefix-tlvs/ospf:extended-prefix-tlv" { + "ospf:extended-prefix-tlvs/ospf:extended-prefix-tlv" {
when "../../../../../../../../../../../../../" when "../../../../../../../../../../../../../"
+ "rt:type = 'ospf:ospfv2'" { + "rt:type = 'ospf:ospfv2'" {
description description
"This augment is only valid for OSPFv2."; "This augmentation is only valid for OSPFv2.";
} }
description description
"SR specific TLVs for OSPFv2 extended prefix TLV "SR specific TLVs for OSPFv2 extended prefix TLV
in type 11 opaque LSA."; in type 11 opaque LSA.";
uses prefix-sid-sub-tlvs; uses prefix-sid-sub-tlvs;
uses sid-binding-sub-tlvs; uses sid-binding-sub-tlvs;
} }
augment "/rt:routing-state/rt:routing-instance/" augment "/rt:routing-state/rt:routing-instance/"
+ "rt:routing-protocols/rt:routing-protocol/" + "rt:routing-protocols/rt:routing-protocol/"
+ "ospf:ospf/ospf:instance/ospf:areas/" + "ospf:ospf/ospf:instance/ospf:areas/"
+ "ospf:area/ospf:database/" + "ospf:area/ospf:database/"
+ "ospf:area-scope-lsa-type/ospf:area-scope-lsas/" + "ospf:area-scope-lsa-type/ospf:area-scope-lsas/"
+ "ospf:area-scope-lsa/ospf:version/ospf:ospfv2/" + "ospf:area-scope-lsa/ospf:version/ospf:ospfv2/"
+ "ospf:ospfv2/ospf:body/ospf:opaque/" + "ospf:ospfv2/ospf:body/ospf:opaque/"
+ "ospf:extended-link-tlvs/ospf:extended-link-tlv" { + "ospf:extended-link-tlvs/ospf:extended-link-tlv" {
when "../../../../../../../../../../../../../../../" when "../../../../../../../../../../../../../../../"
+ "rt:type = 'ospf:ospfv2'" { + "rt:type = 'ospf:ospfv2'" {
description description
"This augment is only valid for OSPFv2."; "This augmentation is only valid for OSPFv2.";
} }
description description
"SR specific TLVs for OSPFv2 extended link TLV "SR specific TLVs for OSPFv2 extended link TLV
in type 10 opaque LSA."; in type 10 opaque LSA.";
container adj-sid-sub-tlvs { container adj-sid-sub-tlvs {
description "Adj-sid is optional sub-tlv."; description "Adjacency SID optional sub-TLVs.";
list adj-sid-sub-tlv { list adj-sid-sub-tlv {
description "List of adj-sid sub-tlv."; description "List of Adjacency SID sub-TLVs.";
leaf flags { leaf flags {
type bits { type bits {
bit B { bit B {
description description
"Backup flag."; "Backup flag.";
} }
bit V { bit V {
description description
"Value/Index flag."; "Value/Index flag.";
} }
skipping to change at page 102, line 16 skipping to change at page 101, line 19
leaf mt-id { leaf mt-id {
type uint8; type uint8;
description "Multi-topology ID."; description "Multi-topology ID.";
} }
leaf weight { leaf weight {
type uint8; type uint8;
description "Weight used for load-balancing."; description "Weight used for load-balancing.";
} }
leaf sid { leaf sid {
type uint32; type uint32;
description "sid index/label."; description "Segment Identifier (SID) index/label.";
} }
} }
} }
container lan-adj-sid-sub-tlvs { container lan-adj-sid-sub-tlvs {
description "Lan adj-sid is optional sub-tlv."; description "LAN Adjacency SID optional sub-TLVs.";
list lan-adj-sid-sub-tlv { list lan-adj-sid-sub-tlv {
description "List of lan-adj-sid sub-tlv."; description "List of LAN adjacency SID sub-TLVs.";
leaf flags { leaf flags {
type bits { type bits {
bit B { bit B {
description description
"Backup flag."; "Backup flag.";
} }
bit V { bit V {
description description
"Value/Index flag."; "Value/Index flag.";
} }
skipping to change at page 103, line 12 skipping to change at page 102, line 16
leaf weight { leaf weight {
type uint8; type uint8;
description "Weight used for load-balancing."; description "Weight used for load-balancing.";
} }
leaf neighbor-router-id { leaf neighbor-router-id {
type yang:dotted-quad; type yang:dotted-quad;
description "Neighbor router ID."; description "Neighbor router ID.";
} }
leaf sid { leaf sid {
type uint32; type uint32;
description "sid index/label."; description "Segment Identifier (SID) index/label.";
} }
} }
} }
} }
augment "/rt:routing-state/rt:routing-instance/" augment "/rt:routing-state/rt:routing-instance/"
+ "rt:routing-protocols/rt:routing-protocol/" + "rt:routing-protocols/rt:routing-protocol/"
+ "ospf:ospf/ospf:instance/ospf:areas/ospf:area/" + "ospf:ospf/ospf:instance/ospf:areas/ospf:area/"
+ "ospf:interfaces/ospf:interface/ospf:database/" + "ospf:interfaces/ospf:interface/ospf:database/"
+ "ospf:link-scope-lsa-type/ospf:link-scope-lsas/" + "ospf:link-scope-lsa-type/ospf:link-scope-lsas/"
+ "ospf:link-scope-lsa/ospf:version/ospf:ospfv2/" + "ospf:link-scope-lsa/ospf:version/ospf:ospfv2/"
+ "ospf:ospfv2/ospf:body/ospf:opaque" { + "ospf:ospfv2/ospf:body/ospf:opaque" {
when "../../../../../../../../../../../../../../../" when "../../../../../../../../../../../../../../../"
+ "rt:type = 'ospf:ospfv2'" { + "rt:type = 'ospf:ospfv2'" {
description description
"This augment is only valid for OSPFv2."; "This augmentation is only valid for OSPFv2.";
} }
description description
"SR specific TLVs for OSPFv2 type 9 opaque LSA."; "SR specific TLVs for OSPFv2 type 9 opaque LSA.";
uses extended-prefix-range-tlvs; uses extended-prefix-range-tlvs;
uses sr-algorithm-tlv; uses sr-algorithm-tlv;
uses sid-range-tlvs; uses sid-range-tlvs;
} }
augment "/rt:routing-state/rt:routing-instance/" augment "/rt:routing-state/rt:routing-instance/"
+ "rt:routing-protocols/rt:routing-protocol/" + "rt:routing-protocols/rt:routing-protocol/"
+ "ospf:ospf/ospf:instance/ospf:areas/" + "ospf:ospf/ospf:instance/ospf:areas/"
+ "ospf:area/ospf:database/" + "ospf:area/ospf:database/"
+ "ospf:area-scope-lsa-type/ospf:area-scope-lsas/" + "ospf:area-scope-lsa-type/ospf:area-scope-lsas/"
+ "ospf:area-scope-lsa/ospf:version/ospf:ospfv2/" + "ospf:area-scope-lsa/ospf:version/ospf:ospfv2/"
+ "ospf:ospfv2/ospf:body/ospf:opaque" { + "ospf:ospfv2/ospf:body/ospf:opaque" {
when "../../../../../../../../../../../../../" when "../../../../../../../../../../../../../"
+ "rt:type = 'ospf:ospfv2'" { + "rt:type = 'ospf:ospfv2'" {
description description
"This augment is only valid for OSPFv2."; "This augmentation is only valid for OSPFv2.";
} }
description description
"SR specific TLVs for OSPFv2 type 10 opaque LSA."; "SR specific TLVs for OSPFv2 type 10 opaque LSA.";
uses extended-prefix-range-tlvs; uses extended-prefix-range-tlvs;
uses sr-algorithm-tlv; uses sr-algorithm-tlv;
uses sid-range-tlvs; uses sid-range-tlvs;
} }
augment "/rt:routing-state/rt:routing-instance/" augment "/rt:routing-state/rt:routing-instance/"
+ "rt:routing-protocols/rt:routing-protocol/" + "rt:routing-protocols/rt:routing-protocol/"
skipping to change at page 104, line 21 skipping to change at page 103, line 24
augment "/rt:routing-state/rt:routing-instance/" augment "/rt:routing-state/rt:routing-instance/"
+ "rt:routing-protocols/rt:routing-protocol/" + "rt:routing-protocols/rt:routing-protocol/"
+ "ospf:ospf/ospf:instance/ospf:database/" + "ospf:ospf/ospf:instance/ospf:database/"
+ "ospf:as-scope-lsa-type/ospf:as-scope-lsas/" + "ospf:as-scope-lsa-type/ospf:as-scope-lsas/"
+ "ospf:as-scope-lsa/ospf:version/ospf:ospfv2/" + "ospf:as-scope-lsa/ospf:version/ospf:ospfv2/"
+ "ospf:ospfv2/ospf:body/ospf:opaque" { + "ospf:ospfv2/ospf:body/ospf:opaque" {
when "../../../../../../../../../../../" when "../../../../../../../../../../../"
+ "rt:type = 'ospf:ospfv2'" { + "rt:type = 'ospf:ospfv2'" {
description description
"This augment is only valid for OSPFv2."; "This augmentation is only valid for OSPFv2.";
} }
description description
"SR specific TLVs for OSPFv2 type 11 opaque LSA."; "SR specific TLVs for OSPFv2 type 11 opaque LSA.";
uses extended-prefix-range-tlvs; uses extended-prefix-range-tlvs;
uses sr-algorithm-tlv; uses sr-algorithm-tlv;
uses sid-range-tlvs; uses sid-range-tlvs;
} }
} }
<CODE ENDS>
7. OSPF BFD Yang Module
<CODE BEGINS> file "ietf-ospf-bfd@2015-10-19.yang"
module ietf-ospf-bfd {
namespace "urn:ietf:params:xml:ns:yang:ietf-ospf-bfd";
prefix ospf-bfd;
import ietf-routing {
prefix "rt";
}
import ietf-bfd {
prefix "bfd";
}
import ietf-ospf {
prefix "ospf";
}
organization
"Cisco Systems
170 West Tasman Drive
San Jose, CA 95134-1706
USA";
contact
"WG Web: <http://tools.ietf.org/wg/ospf/>
WG List: <mailto:ospf@ietf.org>
WG Chair: Acee Lindem
<mailto:acee@cisco.com>
WG Chair: Abhay Roy
<mailto:akr@cisco.com>
Editor: Derek Yeung
<mailto:myeung@cisco.com>
Author: Derek Yeung
<mailto:myeung@cisco.com>
Author: Yingzhen Qu
<mailto:yiqu@cisco.com>
Author: Acee Lindem
<mailto:acee@cisco.com>
Author: Jeffrey Zhang
<mailto:zzhang@juniper.net>
Author: Ing-Wher Chen
<mailto:ing-wher.chen@ericsson.com>
Author: Greg Hankins
<mailto:greg.hankins@alcatel-lucent.com>";
description
"This YANG module defines the generic configuration
and operational state for OSPF BFD, which is common
across all of the vendor implementations. It is
intended that the module will be extended by vendors to
define vendor-specific OSPF BFD configuration
and operational parameters and policies.
Terms and Acronyms
OSPF (ospf): Open Shortest Path First
IP (ip): Internet Protocol
IPv4 (ipv4):Internet Protocol Version 4
IPv6 (ipv6): Internet Protocol Version 6
";
revision 2015-10-19 {
description
"Initial revision.";
reference
"RFC XXXX: A YANG Data Model for OSPF BFD.";
}
feature bfd-protocol-parms {
description
"OSPF BFD protocol specific parameters support.";
}
/* Configuration */
augment "/rt:routing/rt:routing-instance/rt:routing-protocols/"
+ "rt:routing-protocol/ospf:ospf/ospf:instance/"
+ "ospf:areas/ospf:area/ospf:interfaces/ospf:interface" {
when "../../../../../../rt:type = 'ospf:ospfv2' or "
+ "../../../../../../rt:type = 'ospf:ospfv3'" {
description
"This augments the OSPF routing protocol when used";
}
description
"This augments OSPF protocol configuration
with BFD.";
container bfd {
description "BFD configuration.";
leaf enabled {
type boolean;
default false;
description
"True if BFD is enabled for the OSPF interface.";
}
uses bfd:bfd-grouping-base-cfg-parms {
if-feature bfd-protocol-parms;
}
}
}
/* Operational states */
augment "/rt:routing-state/rt:routing-instance/"
+ "rt:routing-protocols/rt:routing-protocol/"
+ "ospf:ospf/ospf:instance/ospf:areas/ospf:area/"
+ "ospf:interfaces/ospf:interface" {
when "../../../../../../rt:type = 'ospf:ospfv2' or "
+ "../../../../../../rt:type = 'ospf:ospfv3'" {
description
"This augments the OSPF routing protocol when used";
}
description
"This augments OSPF protocol operation
with BFD.";
container bfd {
description "BFD operation.";
leaf enabled {
type boolean;
description
"True if BFD is enabled for the OSPF interface.";
}
uses bfd:bfd-grouping-base-cfg-parms {
if-feature bfd-protocol-parms;
}
}
}
}
<CODE ENDS> <CODE ENDS>
5. Security Considerations 8. Security Considerations
The data model defined does not create any security implications. The data model defined does not create any security implications.
This draft does not change any underlying security issues inherent in This draft does not change any underlying security issues inherent in
[I-D.ietf-netmod-routing-cfg]. [I-D.ietf-netmod-routing-cfg].
6. Acknowledgements 9. Acknowledgements
The authors wish to thank Acee Lindem, Yi Yang, Alexander Clemm, The authors wish to thank Acee Lindem, Yi Yang, Alexander Clemm,
Gaurav Gupta, Ing-Wher Chen, Ladislav Lhotka, Stephane Litkowski, Gaurav Gupta, Ing-Wher Chen, Ladislav Lhotka, Stephane Litkowski,
Greg Hankins and Manish Gupta for their thorough reviews and helpful Greg Hankins and Manish Gupta for their thorough reviews and helpful
comments. comments.
This document was produced using Marshall Rose's xml2rfc tool. This document was produced using Marshall Rose's xml2rfc tool.
7. References 10. References
7.1. Normative References 10.1. Normative References
[RFC1793] Moy, J., "Extending OSPF to Support Demand Circuits", [RFC1793] Moy, J., "Extending OSPF to Support Demand Circuits",
RFC 1793, DOI 10.17487/RFC1793, April 1995, RFC 1793, DOI 10.17487/RFC1793, April 1995,
<http://www.rfc-editor.org/info/rfc1793>. <http://www.rfc-editor.org/info/rfc1793>.
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119, Requirement Levels", BCP 14, RFC 2119,
DOI 10.17487/RFC2119, March 1997, DOI 10.17487/RFC2119, March 1997,
<http://www.rfc-editor.org/info/rfc2119>. <http://www.rfc-editor.org/info/rfc2119>.
skipping to change at page 106, line 14 skipping to change at page 108, line 5
[RFC5643] Joyal, D., Ed. and V. Manral, Ed., "Management Information [RFC5643] Joyal, D., Ed. and V. Manral, Ed., "Management Information
Base for OSPFv3", RFC 5643, DOI 10.17487/RFC5643, August Base for OSPFv3", RFC 5643, DOI 10.17487/RFC5643, August
2009, <http://www.rfc-editor.org/info/rfc5643>. 2009, <http://www.rfc-editor.org/info/rfc5643>.
[RFC5838] Lindem, A., Ed., Mirtorabi, S., Roy, A., Barnes, M., and [RFC5838] Lindem, A., Ed., Mirtorabi, S., Roy, A., Barnes, M., and
R. Aggarwal, "Support of Address Families in OSPFv3", R. Aggarwal, "Support of Address Families in OSPFv3",
RFC 5838, DOI 10.17487/RFC5838, April 2010, RFC 5838, DOI 10.17487/RFC5838, April 2010,
<http://www.rfc-editor.org/info/rfc5838>. <http://www.rfc-editor.org/info/rfc5838>.
[RFC5880] Katz, D. and D. Ward, "Bidirectional Forwarding Detection
(BFD)", RFC 5880, DOI 10.17487/RFC5880, June 2010,
<http://www.rfc-editor.org/info/rfc5880>.
[RFC6020] Bjorklund, M., Ed., "YANG - A Data Modeling Language for [RFC6020] Bjorklund, M., Ed., "YANG - A Data Modeling Language for
the Network Configuration Protocol (NETCONF)", RFC 6020, the Network Configuration Protocol (NETCONF)", RFC 6020,
DOI 10.17487/RFC6020, October 2010, DOI 10.17487/RFC6020, October 2010,
<http://www.rfc-editor.org/info/rfc6020>. <http://www.rfc-editor.org/info/rfc6020>.
[RFC6241] Enns, R., Ed., Bjorklund, M., Ed., Schoenwaelder, J., Ed., [RFC6241] Enns, R., Ed., Bjorklund, M., Ed., Schoenwaelder, J., Ed.,
and A. Bierman, Ed., "Network Configuration Protocol and A. Bierman, Ed., "Network Configuration Protocol
(NETCONF)", RFC 6241, DOI 10.17487/RFC6241, June 2011, (NETCONF)", RFC 6241, DOI 10.17487/RFC6241, June 2011,
<http://www.rfc-editor.org/info/rfc6241>. <http://www.rfc-editor.org/info/rfc6241>.
[RFC7223] Bjorklund, M., "A YANG Data Model for Interface [RFC7223] Bjorklund, M., "A YANG Data Model for Interface
Management", RFC 7223, DOI 10.17487/RFC7223, May 2014, Management", RFC 7223, DOI 10.17487/RFC7223, May 2014,
<http://www.rfc-editor.org/info/rfc7223>. <http://www.rfc-editor.org/info/rfc7223>.
7.2. Informative References 10.2. Informative References
[I-D.acee-rtg-yang-key-chain] [I-D.acee-rtg-yang-key-chain]
Lindem, A., Qu, Y., Yeung, D., Chen, H., Zhang, J., and Y. Lindem, A., Qu, Y., Yeung, D., Chen, H., Zhang, J., and Y.
Yang, "Key Chain YANG Data Model", draft-acee-rtg-yang- Yang, "Key Chain YANG Data Model", draft-acee-rtg-yang-
key-chain-07 (work in progress), July 2015. key-chain-09 (work in progress), October 2015.
[I-D.ietf-bfd-yang]
Zheng, L., Rahman, R., Networks, J., Jethanandani, M., and
G. Mirsky, "Yang Data Model for Bidirectional Forwarding
Detection (BFD)", draft-ietf-bfd-yang-00 (work in
progress), August 2015.
[I-D.ietf-netmod-routing-cfg] [I-D.ietf-netmod-routing-cfg]
Lhotka, L. and A. Lindem, "A YANG Data Model for Routing Lhotka, L. and A. Lindem, "A YANG Data Model for Routing
Management", draft-ietf-netmod-routing-cfg-19 (work in Management", draft-ietf-netmod-routing-cfg-20 (work in
progress), May 2015. progress), October 2015.
[I-D.ietf-spring-sr-yang] [I-D.ietf-spring-sr-yang]
Litkowski, S., Qu, Y., Sarkar, P., and J. Tantsura, "YANG Litkowski, S., Qu, Y., Sarkar, P., and J. Tantsura, "YANG
Data Model for Segment Routing", draft-ietf-spring-sr- Data Model for Segment Routing", draft-ietf-spring-sr-
yang-00 (work in progress), July 2015. yang-00 (work in progress), July 2015.
Authors' Addresses Authors' Addresses
Derek Yeung Derek Yeung
Cisco Systems Cisco Systems
170 West Tasman Drive 170 West Tasman Drive
 End of changes. 365 change blocks. 
818 lines changed or deleted 913 lines changed or added

This html diff was produced by rfcdiff 1.42. The latest version is available from http://tools.ietf.org/tools/rfcdiff/