1 module ietf-network-state {
3 namespace "urn:ietf:params:xml:ns:yang:ietf-network-state";
9 "RFC 8345: A YANG Data Model for Network Topologies";
13 "IETF I2RS (Interface to the Routing System) Working Group";
16 "WG Web: <https://datatracker.ietf.org/wg/i2rs/>
17 WG List: <mailto:i2rs@ietf.org>
19 Editor: Alexander Clemm
20 <mailto:ludwig@clemm.org>
23 <mailto:jmedved@cisco.com>
26 <mailto:robert.varga@pantheon.tech>
29 <mailto:nitin_bahadur@yahoo.com>
30 Editor: Hariharan Ananthakrishnan
31 <mailto:hari@packetdesign.com>
34 <mailto:xufeng.liu.ietf@gmail.com>";
37 "This module defines a common base data model for a collection
38 of nodes in a network. Node definitions are further used
39 in network topologies and inventories. It represents
40 information that either (1) is learned and automatically
41 populated or (2) results from applying network information
42 that has been configured per the 'ietf-network' data model,
43 mirroring the corresponding data nodes in this data model.
45 The data model mirrors 'ietf-network' but contains only
46 read-only state data. The data model is not needed when the
47 underlying implementation infrastructure supports the Network
48 Management Datastore Architecture (NMDA).
50 Copyright (c) 2018 IETF Trust and the persons identified as
51 authors of the code. All rights reserved.
53 Redistribution and use in source and binary forms, with or
54 without modification, is permitted pursuant to, and subject
55 to the license terms contained in, the Simplified BSD License
56 set forth in Section 4.c of the IETF Trust's Legal Provisions
57 Relating to IETF Documents
58 (https://trustee.ietf.org/license-info).
60 This version of this YANG module is part of RFC 8345;
61 see the RFC itself for full legal notices.";
67 "RFC 8345: A YANG Data Model for Network Topologies";
70 grouping network-ref {
72 "Contains the information necessary to reference a network --
73 for example, an underlay network.";
76 path "/nw-s:networks/nw-s:network/nw-s:network-id";
77 require-instance false;
80 "Used to reference a network -- for example, an underlay
87 "Contains the information necessary to reference a node.";
90 path "/nw-s:networks/nw-s:network[nw-s:network-id=current()"+
91 "/../network-ref]/nw-s:node/nw-s:node-id";
92 require-instance false;
95 "Used to reference a node.
96 Nodes are identified relative to the network that
105 "Serves as a top-level container for a list of networks.";
109 "Describes a network.
110 A network typically contains an inventory of nodes,
111 topological information (augmented through the
112 network-topology data model), and layering information.";
113 container network-types {
115 "Serves as an augmentation target.
116 The network type is indicated through corresponding
117 presence containers augmented into this container.";
122 "Identifies a network.";
124 list supporting-network {
127 "An underlay network, used to represent layered network
131 path "/nw-s:networks/nw-s:network/nw-s:network-id";
132 require-instance false;
135 "References the underlay network.";
142 "The inventory of nodes of this network.";
146 "Uniquely identifies a node within the containing
149 list supporting-node {
150 key "network-ref node-ref";
152 "Represents another node that is in an underlay network
153 and that supports this node. Used to represent layering
157 path "../../../nw-s:supporting-network/nw-s:network-ref";
158 require-instance false;
161 "References the underlay network of which the
162 underlay node is a part.";
166 path "/nw-s:networks/nw-s:network/nw-s:node/nw-s:node-id";
167 require-instance false;
170 "References the underlay node itself.";