summaryrefslogtreecommitdiffstats
path: root/ms/neng/src/test/resources/sample_policy.json
blob: 2bb63122162044807c7efddcf8d6b807aa181fd5 (plain)
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
{  
   "input":{  
      "naming-model":{  
         "policy-instance-name":"1806NameGenerationPolicyForSRIOV",
         "naming-models":[  
            {  
               "nf-role":"vPE",
               "naming-type":"VNF",
               "naming-recipe":"COMPLEX|SEQUENCE|NF_NAMING_CODE",
               "name-operation":"",
               "naming-properties":[  
                  {  
                     "property-name":"COMPLEX",
                     "property-operation":"substr(0,4)"
                  },
                  {  
                     "property-name":"SEQUENCE",
                     "increment-sequence":{  
                        "scope":"ENTIRETY",
                        "start-value":"001",
                        "max":"zzz",
                        "increment":"1",
                        "sequence-type":"alpha-numeric",
                        "length":"3"
                     }
                  },
                  {  
                     "property-name":"NF_NAMING_CODE"
                  }
               ]
            },
            {  
               "nf-role":"vPE",
               "naming-type":"VM",
               "naming-recipe":"VNF_NAME|SEQUENCE|NFC_NAMING_CODE",
               "name-operation":"",
               "naming-properties":[  
                  {  
                     "property-name":"VNF_NAME"
                  },
                  {  
                     "property-name":"SEQUENCE",
                     "increment-sequence":{  
                        "scope":"ENTIRETY",
                        "start-value":"001",
                        "max":"999",
                        "increment":"1",
                        "sequence-type":"numeric",
                        "length":"3"
                     }
                  },
                  {  
                     "property-name":"NFC_NAMING_CODE",
                     "property-operation":"substr(1,3)"
                  }
               ]
            },
			{  
               "nf-role":"vPE",
               "naming-type":"VNFC",
               "naming-recipe":"VNF_NAME|SEQUENCE|NFC_NAMING_CODE",
               "name-operation":"",
               "naming-properties":[  
                  {  
                     "property-name":"VNF_NAME"
                  },
                  {  
                     "property-name":"SEQUENCE",
                     "increment-sequence":{  
                        "scope":"ENTIRETY",
                        "start-value":"001",
                        "max":"999",
                        "increment":"1",
                        "sequence-type":"numeric",
                        "length":"3"
                     }
                  },
                  {  
                     "property-name":"NFC_NAMING_CODE",
                     "property-operation":"substr(1,3)"
                  }
               ]
            },
            {  
               "nf-role":"vPE",
               "naming-type":"VF-MODULE",
               "naming-recipe":"VNF_NAME|DELIMITER|VF_MODUEL_LABLE|DELIMITER|VF_MODULE_TYPE|DELIMITER|SEQUENCE",
               "name-operation":"",
               "naming-properties":[  
                  {  
                     "property-name":"VNF_NAME"
                  },
                  {  
                     "property-name":"DELIMITER",
                     "property-value":"_"
                  },
                  {  
                     "property-name":"VF_MODUEL_LABLE"
                  },
                  {  
                     "property-name":"VF_MODUEL_TYPE"
                  },
                  {  
                     "property-name":"SEQUENCE",
                     "increment-sequence":{  
                        "scope":"PRECEEDING",
                        "start-value":"01",
                        "max":"99",
                        "increment":"1",
                        "sequence-type":"numeric",
                        "length":"2"
                     }
                  }
               ]
            },
            {  
               "nf-role":"vPE",
               "naming-type":"VOLUME_GROUP",
               "naming-recipe":"VF-MODULE_NAME|DELIMITER|CONSTANT",
               "name-operation":"",
               "naming-properties":[  
                  {  
                     "property-name":"VF-MODULE_NAME"
                  },
                  {  
                     "property-name":"DELIMITER",
                     "property-value":"_"
                  },
                  {  
                     "property-name":"CONSTANT",
                     "property-value":"volumegroup"
                  }
               ]
            },
            {  
               "nf-role":"vPE",
               "naming-type":"VOLUME",
               "naming-recipe":"VOLUME_GROUP_NAME|DELIMITER|CONSTANT|DELIMITER|SEQUENCE",
               "name-operation":"",
               "naming-properties":[  
                  {  
                     "property-name":"VOLUME_GROUP_NAME"
                  },
                  {  
                     "property-name":"DELIMITER",
                     "property-value":"_"
                  },
                  {  
                     "property-name":"CONSTANT",
                     "property-value":"volume"
                  },
                  {  
                     "property-name":"SEQUENCE",
                     "increment-sequence":{  
                        "scope":"PRECEEDING",
                        "start-value":"01",
                        "max":"99",
                        "increment":"1",
                        "sequence-type":"numeric",
                        "length":"2"
                     }
                  }
               ]
            },
            {  
               "nf-role":"vPE",
               "naming-type":"AFFINITY",
               "naming-recipe":"VNF_NAME|DELIMITER|CONSTANT",
               "name-operation":"",
               "naming-properties":[  
                  {  
                     "property-name":"VNF_NAME"
                  },
                  {  
                     "property-name":"DELIMITER",
                     "property-value":"_"
                  },
                  {  
                     "property-name":"CONSTANT",
                     "property-value":"affinity"
                  }
               ]
            },
            {  
               "nf-role":"vPE",
               "naming-type":"INTERNAL_NETWORK",
               "naming-recipe":"VNF_NAME|DELIMITER|CONSTANT|SEQUENCE",
               "name-operation":"",
               "naming-properties":[  
                  {  
                     "property-name":"VNF_NAME"
                  },
                  {  
                     "property-name":"DELIMITER",
                     "property-value":"_"
                  },
                  {  
                     "property-name":"CONSTANT",
                     "property-value":"INT"
                  },
                  {  
                     "property-name":"SEQUENCE",
                     "increment-sequence":{  
                        "scope":"PRECEEDING",
                        "start-value":"01",
                        "max":"99",
                        "increment":"1",
                        "sequence-type":"numeric",
                        "length":"2"
                     }
                  }
               ]
            }
         ]
      }
   }
}