blob: f1776fb5f06337408fcc3c5149049ace61e90872 [file] [log] [blame]
Vidyashree Rama36f2fab2016-07-15 14:06:56 +05301module ietf-te-topology {
2 yang-version 1;
3 namespace "urn:ietf:params:xml:ns:yang:ietf-te-topology";
4
5 prefix "tet";
6
7 import ietf-network {
8 prefix "nw";
9 }
10
11 revision "2016-03-17" {
12 description "Initial revision";
13 }
14
15 grouping te-node-augment {
16 container te {
17 presence "TE support.";
18
19 leaf te-node-id {
20 type string;
21 mandatory true;
22 }
23
24 container config {
25 uses te-node-config;
26 } // config
27 } // te
28 } // te-node-augment
29
30 grouping te-node-config {
31 leaf-list te-node-template {
32 if-feature template;
33 type string;
34 }
35 uses te-node-config-attributes;
36 } // te-node-config
37
38 grouping te-node-config-attributes {
39 container te-node-attributes {
40 leaf admin-status {
41 type string;
42 }
43 uses te-node-connectivity-matrix;
44 } // te-node-attributes
45 } // te-node-config-attributes
46
47 grouping te-node-connectivity-matrix {
48 list connectivity-matrix {
49 key "id";
50 leaf id {
51 type uint32;
52 description "Identifies the connectivity-matrix entry.";
53 }
54 }
55 } // te-node-connectivity-matrix
56
57 augment "/nw:networks/nw:network/nw:node" {
58 uses te-node-augment;
59 }
60}