1 module ietf-network {
\r
3 namespace "urn:ietf:params:xml:ns:yang:ietf-network";
\r
6 import ietf-inet-types {
\r
12 "WILL-BE-DEFINED-LATER";
\r
14 "This module defines a common base model for a collection
\r
15 of nodes in a network. Node definitions s are further used
\r
16 in network topologies and inventories.";
\r
18 revision 2015-06-08 {
\r
20 "Initial revision.";
\r
21 reference "draft-ietf-i2rs-yang-network-topo-01";
\r
27 "Identifier for a node.";
\r
30 typedef network-id {
\r
33 "Identifier for a network.";
\r
36 grouping network-ref {
\r
38 "Contains the information necessary to reference a network,
\r
39 for example an underlay network.";
\r
42 path "/network/network-id";
\r
45 "Used to reference a network, for example an underlay
\r
52 "Contains the information necessary to reference a node.";
\r
55 path "/network[network-id=current()/../network-ref]"+
\r
59 "Used to reference a node.
\r
60 Nodes are identified relative to the network they are
\r
69 "Describes a network.
\r
70 A network typically contains an inventory of nodes,
\r
71 topological information (augmented through
\r
72 network-topology model), as well as layering
\r
74 container network-types {
\r
76 "Serves as an augmentation target.
\r
77 The network type is indicated through corresponding
\r
78 presence containers augmented into this container.";
\r
83 "Identifies a network.";
\r
85 leaf server-provided {
\r
89 "Indicates whether the information concerning this
\r
90 particular network is populated by the server
\r
91 (server-provided true, the general case for network
\r
92 information discovered from the server),
\r
93 or whether it is configured by a client
\r
94 (server-provided true, possible e.g. for
\r
95 service overlays managed through a controller).";
\r
97 list supporting-network {
\r
100 "An underlay network, used to represent layered network
\r
104 path "/network/network-id";
\r
107 "References the underlay network.";
\r
113 "The inventory of nodes of this network.";
\r
117 "Identifies a node uniquely within the containing
\r
120 list supporting-node {
\r
121 key "network-ref node-ref";
\r
123 "Represents another node, in an underlay network, that
\r
124 this node is supported by. Used to represent layering
\r
128 path "../../../supporting-network/network-ref";
\r
131 "References the underlay network that the
\r
132 underlay node is part of.";
\r
136 path "/network/node/node-id";
\r
139 "References the underlay node itself.";
\r