draft-ietf-teas-yang-sr-te-topo-00.txt   draft-ietf-teas-yang-sr-te-topo-01.txt 
Network Working Group X. Liu Network Working Group X. Liu
Internet-Draft Jabil Internet-Draft Jabil
Intended status: Standards Track I. Bryskin Intended status: Standards Track I. Bryskin
Expires: August 24, 2018 Huawei Technologies Expires: September 2, 2018 Huawei Technologies
V. Beeram V. Beeram
Juniper Networks Juniper Networks
T. Saad T. Saad
Cisco Systems Inc Cisco Systems Inc
H. Shah H. Shah
Ciena Ciena
S. Litkowski S. Litkowski
Orange Business Service Orange Business Service
February 20, 2018 March 1, 2018
YANG Data Model for SR and SR TE Topologies YANG Data Model for SR and SR TE Topologies
draft-ietf-teas-yang-sr-te-topo-00 draft-ietf-teas-yang-sr-te-topo-01
Abstract Abstract
This document defines a YANG data model for Segment Routing (SR) This document defines a YANG data model for Segment Routing (SR)
topology and Segment Routing (SR) traffic engineering (TE) topology. topology and Segment Routing (SR) traffic engineering (TE) topology.
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 40 skipping to change at page 1, line 40
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 August 24, 2018. This Internet-Draft will expire on September 2, 2018.
Copyright Notice Copyright Notice
Copyright (c) 2018 IETF Trust and the persons identified as the Copyright (c) 2018 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 6, line 7 skipping to change at page 6, line 7
+--rw value-type? enumeration +--rw value-type? enumeration
+--rw is-local? boolean +--rw is-local? boolean
+--ro is-part-of-set? boolean +--ro is-part-of-set? boolean
+--ro is-on-lan? boolean +--ro is-on-lan? boolean
+--ro information-source? enumeration +--ro information-source? enumeration
+--ro information-source-state +--ro information-source-state
+--ro credibility-preference? uint16 +--ro credibility-preference? uint16
4. YANG Module 4. YANG Module
<CODE BEGINS> file "ietf-sr-topology@2017-10-30.yang" <CODE BEGINS> file "ietf-sr-topology@2018-02-28.yang"
module ietf-sr-topology { module ietf-sr-topology {
yang-version 1.1; yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-sr-topology"; namespace "urn:ietf:params:xml:ns:yang:ietf-sr-topology";
prefix "srt"; prefix "srt";
import ietf-network { import ietf-network {
prefix "nw"; prefix "nw";
} }
import ietf-network-topology { import ietf-network-topology {
prefix "nt"; prefix "nt";
skipping to change at page 6, line 30 skipping to change at page 6, line 30
prefix "l3t"; prefix "l3t";
} }
import ietf-segment-routing-common { import ietf-segment-routing-common {
prefix "sr-cmn"; prefix "sr-cmn";
} }
organization "TBD"; organization "TBD";
contact "TBD"; contact "TBD";
description "L3 TE Topology model"; description "L3 TE Topology model";
revision 2017-10-30 { revision 2018-02-28 {
description "Initial revision"; description "Initial revision";
reference "TBD"; reference "TBD";
} }
grouping sr-topology-type { grouping sr-topology-type {
description description
"Identifies the SR topology type."; "Identifies the SR topology type.";
container sr { container sr {
presence "Indiates SR Topology"; presence "Indiates SR Topology";
description description
skipping to change at page 7, line 5 skipping to change at page 7, line 5
} }
} }
augment "/nw:networks/nw:network/nw:network-types/" augment "/nw:networks/nw:network/nw:network-types/"
+ "l3t:l3-unicast-topology" { + "l3t:l3-unicast-topology" {
description description
"Defines the SR topology type."; "Defines the SR topology type.";
uses sr-topology-type; uses sr-topology-type;
} }
augment "/nw:networks/nw:network/l3t:l3-topology-attributes" { augment "/nw:networks/nw:network/l3t:l3-topology-attributes" {
when "../nw:network-types/l3t:l3-unicast-topology/sr" { when "../nw:network-types/l3t:l3-unicast-topology/srt:sr" {
description "Augment only for SR topology."; description "Augment only for SR topology.";
} }
description "Augment topology configuration"; description "Augment topology configuration";
uses sr-topology-attributes; uses sr-topology-attributes;
} }
augment "/nw:networks/nw:network/nw:node/l3t:l3-node-attributes" { augment "/nw:networks/nw:network/nw:node/l3t:l3-node-attributes" {
when "../../nw:network-types/l3t:l3-unicast-topology/sr" { when "../../nw:network-types/l3t:l3-unicast-topology/srt:sr" {
description "Augment only for SR topology."; description "Augment only for SR topology.";
} }
description "Augment node configuration."; description "Augment node configuration.";
uses sr-node-attributes; uses sr-node-attributes;
} }
augment "/nw:networks/nw:network/nw:node/l3t:l3-node-attributes" augment "/nw:networks/nw:network/nw:node/l3t:l3-node-attributes"
+ "/l3t:prefix" { + "/l3t:prefix" {
when "../../../nw:network-types/l3t:l3-unicast-topology/sr" { when "../../../nw:network-types/l3t:l3-unicast-topology/srt:sr" {
description "Augment only for SR topology."; description "Augment only for SR topology.";
} }
description "Augment node prefix."; description "Augment node prefix.";
uses sr-node-prefix-attributes; uses sr-node-prefix-attributes;
} }
augment "/nw:networks/nw:network/nw:node/nt:termination-point/" augment "/nw:networks/nw:network/nw:node/nt:termination-point/"
+ "l3t:l3-termination-point-attributes" { + "l3t:l3-termination-point-attributes" {
when "../../../nw:network-types/l3t:l3-unicast-topology/" when "../../../nw:network-types/l3t:l3-unicast-topology/"
+ "sr" { + "srt:sr" {
description "Augment only for SR topology."; description "Augment only for SR topology.";
} }
description "Augment termination point configuration"; description "Augment termination point configuration";
uses sr-tp-attributes; uses sr-tp-attributes;
} }
augment "/nw:networks/nw:network/nt:link/l3t:l3-link-attributes" { augment "/nw:networks/nw:network/nt:link/l3t:l3-link-attributes" {
when "../../nw:network-types/l3t:l3-unicast-topology/sr" { when "../../nw:network-types/l3t:l3-unicast-topology/srt:sr" {
description "Augment only for SR topology."; description "Augment only for SR topology.";
} }
description "Augment link configuration."; description "Augment link configuration.";
uses sr-link-attributes; uses sr-link-attributes;
} }
grouping sr-topology-attributes { grouping sr-topology-attributes {
description "SR topology scope attributes."; description "SR topology scope attributes.";
container sr { container sr {
description description
skipping to change at page 12, line 22 skipping to change at page 12, line 22
[I-D.ietf-i2rs-yang-l3-topology] [I-D.ietf-i2rs-yang-l3-topology]
Clemm, A., Medved, J., Varga, R., Liu, X., Clemm, A., Medved, J., Varga, R., Liu, X.,
Ananthakrishnan, H., and N. Bahadur, "A YANG Data Model Ananthakrishnan, H., and N. Bahadur, "A YANG Data Model
for Layer 3 Topologies", draft-ietf-i2rs-yang- for Layer 3 Topologies", draft-ietf-i2rs-yang-
l3-topology-16 (work in progress), December 2017. l3-topology-16 (work in progress), December 2017.
[I-D.ietf-teas-yang-te-topo] [I-D.ietf-teas-yang-te-topo]
Liu, X., Bryskin, I., Beeram, V., Saad, T., Shah, H., and Liu, X., Bryskin, I., Beeram, V., Saad, T., Shah, H., and
O. Dios, "YANG Data Model for Traffic Engineering (TE) O. Dios, "YANG Data Model for Traffic Engineering (TE)
Topologies", draft-ietf-teas-yang-te-topo-13 (work in Topologies", draft-ietf-teas-yang-te-topo-14 (work in
progress), October 2017. progress), February 2018.
[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-08 (work in progress), December 2017. yang-08 (work in progress), December 2017.
Appendix A. Companion YANG Model for Non-NMDA Compliant Implementations Appendix A. Companion YANG Model for Non-NMDA Compliant Implementations
The YANG module ietf-sr-topology defined in this document is designed The YANG module ietf-sr-topology defined in this document is designed
to be used in conjunction with implementations that support the to be used in conjunction with implementations that support the
skipping to change at page 13, line 27 skipping to change at page 13, line 27
The companion module, ietf-sr-topology-state, is redundant and SHOULD The companion module, ietf-sr-topology-state, is redundant and SHOULD
NOT be supported by implementations that support NMDA. NOT be supported by implementations that support NMDA.
As the structure of the companion module mirrors that of the As the structure of the companion module mirrors that of the
coorespinding NMDA model, the YANG tree of the companion module is coorespinding NMDA model, the YANG tree of the companion module is
not depicted separately. not depicted separately.
A.1. SR Topology State Module A.1. SR Topology State Module
<CODE BEGINS> file "ietf-sr-topology-state@2017-10-30.yang" <CODE BEGINS> file "ietf-sr-topology-state@2018-02-28.yang"
module ietf-sr-topology-state { module ietf-sr-topology-state {
yang-version 1.1; yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-sr-topology-state"; namespace "urn:ietf:params:xml:ns:yang:ietf-sr-topology-state";
prefix "srt-s"; prefix "srt-s";
import ietf-sr-topology { import ietf-sr-topology {
prefix "srt"; prefix "srt";
} }
import ietf-network-state { import ietf-network-state {
prefix "nw-s"; prefix "nw-s";
skipping to change at page 14, line 4 skipping to change at page 14, line 4
import ietf-l3-unicast-topology-state { import ietf-l3-unicast-topology-state {
prefix "l3t-s"; prefix "l3t-s";
} }
import ietf-segment-routing-common { import ietf-segment-routing-common {
prefix "sr-cmn"; prefix "sr-cmn";
} }
organization "TBD"; organization "TBD";
contact "TBD"; contact "TBD";
description "L3 TE Topology model"; description "L3 TE Topology model";
revision 2017-10-30 { revision 2018-02-28 {
description "Initial revision"; description "Initial revision";
reference "TBD"; reference "TBD";
} }
augment "/nw-s:networks/nw-s:network/nw-s:network-types/" augment "/nw-s:networks/nw-s:network/nw-s:network-types/"
+ "l3t-s:l3-unicast-topology" { + "l3t-s:l3-unicast-topology" {
description description
"Defines the SR topology type."; "Defines the SR topology type.";
uses srt:sr-topology-type; uses srt:sr-topology-type;
} }
augment "/nw-s:networks/nw-s:network/" augment "/nw-s:networks/nw-s:network/"
+ "l3t-s:l3-topology-attributes" { + "l3t-s:l3-topology-attributes" {
when "../nw-s:network-types/l3t-s:l3-unicast-topology/sr" { when "../nw-s:network-types/l3t-s:l3-unicast-topology/srt-s:sr" {
description "Augment only for SR topology."; description "Augment only for SR topology.";
} }
description "Augment topology configuration"; description "Augment topology configuration";
uses srt:sr-topology-attributes; uses srt:sr-topology-attributes;
} }
augment "/nw-s:networks/nw-s:network/nw-s:node/" augment "/nw-s:networks/nw-s:network/nw-s:node/"
+ "l3t-s:l3-node-attributes" { + "l3t-s:l3-node-attributes" {
when "../../nw-s:network-types/l3t-s:l3-unicast-topology/sr" { when "../../nw-s:network-types/l3t-s:l3-unicast-topology/"
+ "srt-s:sr" {
description "Augment only for SR topology."; description "Augment only for SR topology.";
} }
description "Augment node configuration."; description "Augment node configuration.";
uses srt:sr-node-attributes; uses srt:sr-node-attributes;
} }
augment "/nw-s:networks/nw-s:network/nw-s:node/" augment "/nw-s:networks/nw-s:network/nw-s:node/"
+ "l3t-s:l3-node-attributes/l3t-s:prefix" { + "l3t-s:l3-node-attributes/l3t-s:prefix" {
when "../../../nw-s:network-types/l3t-s:l3-unicast-topology/sr" { when "../../../nw-s:network-types/l3t-s:l3-unicast-topology/"
+ "srt-s:sr" {
description "Augment only for SR topology."; description "Augment only for SR topology.";
} }
description "Augment node prefix."; description "Augment node prefix.";
uses srt:sr-node-prefix-attributes; uses srt:sr-node-prefix-attributes;
} }
augment "/nw-s:networks/nw-s:network/nw-s:node/" augment "/nw-s:networks/nw-s:network/nw-s:node/"
+ "nt-s:termination-point/" + "nt-s:termination-point/"
+ "l3t-s:l3-termination-point-attributes" { + "l3t-s:l3-termination-point-attributes" {
when "../../../nw-s:network-types/l3t-s:l3-unicast-topology/" when "../../../nw-s:network-types/l3t-s:l3-unicast-topology/"
+ "sr" { + "srt-s:sr" {
description "Augment only for SR topology."; description "Augment only for SR topology.";
} }
description "Augment termination point configuration"; description "Augment termination point configuration";
uses srt:sr-tp-attributes; uses srt:sr-tp-attributes;
} }
augment "/nw-s:networks/nw-s:network/nt-s:link/" augment "/nw-s:networks/nw-s:network/nt-s:link/"
+ "l3t-s:l3-link-attributes" { + "l3t-s:l3-link-attributes" {
when "../../nw-s:network-types/l3t-s:l3-unicast-topology/sr" { when "../../nw-s:network-types/l3t-s:l3-unicast-topology/"
+ "srt-s:sr" {
description "Augment only for SR topology."; description "Augment only for SR topology.";
} }
description "Augment link configuration."; description "Augment link configuration.";
uses srt:sr-link-attributes; uses srt:sr-link-attributes;
} }
grouping sr-topology-attributes { grouping sr-topology-attributes {
description "SR topology scope attributes."; description "SR topology scope attributes.";
container sr { container sr {
description description
 End of changes. 20 change blocks. 
21 lines changed or deleted 23 lines changed or added

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