-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservice-function-scheduler-type.yang
More file actions
127 lines (103 loc) · 2.97 KB
/
service-function-scheduler-type.yang
File metadata and controls
127 lines (103 loc) · 2.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
module service-function-scheduler-type {
namespace "urn:intel:params:xml:ns:yang:sfc-sfst";
prefix sfc-sfst;
import ietf-inet-types {
prefix inet;
revision-date 2013-07-15;
}
import ietf-yang-types {
prefix yang;
revision-date 2013-07-15;
}
import sfc-common {
prefix sfc-common;
revision-date 2015-10-17;
}
organization "Intel, Inc.";
contact "Johnson Li <johnson.li@intel.com>";
description
"This module contains a collection of YANG definitions for
managing service function scheduler types.";
revision 2015-03-12 {
description
"Initial version.";
reference "https://tools.ietf.org/html/draft-penno-sfc-yang";
}
// Service Function Scheduler Type
identity service-function-scheduler-type-identity {
description
"Base identity from which specific service function
scheduler types are derived.";
}
identity random {
base "service-function-scheduler-type-identity";
description "Random Scheduler.";
}
identity round-robin {
base "service-function-scheduler-type-identity";
description "Round Robin.";
}
identity shortest-path {
base "service-function-scheduler-type-identity";
description "Shortest Path.";
}
identity load-balance {
base "service-function-scheduler-type-identity";
description "Load Balance.";
}
identity weighted-shortest-path {
base "service-function-scheduler-type-identity";
description "Weighted Shortest Path.";
}
identity load-path-aware {
base "service-function-scheduler-type-identity";
description "Load Path Aware.";
leaf l-th{
type sfc-common:l-th;
description
"Length threshold in LoadPathAwareSFscheduler";
}
leaf load-type{
type sfc-common: load-type;
description
""Load-type from MD-SAL";
}
}
identity user-defined {
base "service-function-scheduler-type-identity";
description "User Defined Scheduler Type.";
}
typedef service-function-scheduler-type {
type identityref {
base "service-function-scheduler-type-identity";
}
description "This type is used to reference all
registered service function scheduler types";
}
container service-function-scheduler-types {
description
"A list of Service function scheduler types. For each type we
keep a list of service function scheduler names. Each name may
indicate the vendor of the scheduler";
list service-function-scheduler-type {
key "type";
leaf type {
type service-function-scheduler-type;
description
"The service function scheduler type";
}
leaf enabled {
type boolean;
description
"The enabled status of this scheduler type.";
}
leaf name {
type string;
description
"The name of the service function schedule type.";
}
description
"A list of all service function schedule types.";
}
}
}