blob: a9c2f48627a5ef2f838e03195274f6f27692ee90 [file] [log] [blame]
Shankara-Huaweid5823ab2016-11-22 10:14:52 +05301module Combined {
2
3 yang-version 1;
4 namespace "ych:combined";
5 prefix "combined";
6
7 organization "Huawei India Pvt. Ltd.";
8
9 description "This module defines for purchasing-supervisor.";
10
11 revision "2016-05-24" {
12 description "Initial revision.";
13 }
14
15 typedef protocol-version {
16 type uint8 {
17 range 1..7;
18 }
19 }
20
21 typedef path-id {
22 type uint32;
23 default 0;
24 description
25 "Identifier of a single path. The identifier does not
26 carry any semantic meaning beyond uniquely identifying
27 a path.";
28 }
29
30 typedef as-num {
31 type uint32;
32 default 0;
33 description
34 "Identifier of a single path. The identifier does not
35 carry any semantic meaning beyond uniquely identifying
36 a path.";
37 }
38
39 typedef metric {
40 type uint32;
41 default 0;
42 description
43 "Identifier of a single path. The identifier does not
44 carry any semantic meaning beyond uniquely identifying
45 a path.";
46 }
47
48 container attributes {
49 container origin {
50 reference "http://tools.ietf.org/html/rfc4271#section-5.1.1";
51 leaf value {
52 type path-id;
53 mandatory true;
54 }
55 }
56 container multi-exit-disc {
57 reference "http://tools.ietf.org/html/rfc4271#section-5.1.4";
58 leaf med {
59 type uint32;
60 }
61 }
62 container local-pref {
63 reference "http://tools.ietf.org/html/rfc4271#section-5.1.5";
64 leaf pref {
65 type uint32;
66 }
67 }
68 container aigp {
69 container aigp-tlv {
70 leaf metric {
71 type metric;
72 }
73 }
74 }
75
76 list unrecognized-attributes {
77 key type;
78 leaf partial {
79 type boolean;
80 mandatory true;
81 }
82 leaf transitive {
83 type boolean;
84 mandatory true;
85 }
86 leaf type {
87 type uint8;
88 mandatory true;
89 }
90 leaf value {
91 type binary {
92 length 0..65535;
93 }
94 mandatory true;
95 }
96 }
97
98 list bgp-parameters {
99 config false;
100 list optional-capabilities {
101 config false;
102 reference "http://tools.ietf.org/html/rfc5492#section-4";
103 container c-parameters {
104 container as4-bytes-capability {
105 reference "http://tools.ietf.org/html/rfc6793";
106 leaf as-number {
107 type as-num;
108 }
109 }
110 }
111 }
112 }
113 }
114}