summaryrefslogtreecommitdiffstats
path: root/test/policy-local-files/hpa_policy_vFW_1.json
blob: f2306d334bdc50d2d7dd49c823e8ad9aa1d76059 (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
{
  "service": "hpaPolicy",
  "policyName": "OSDF_CASABLANCA.hpa_policy_vFW_1",
  "description": "HPA policy for vFW",
  "templateVersion": "OpenSource.version.1",
  "version": "test1",
  "priority": "3",
  "riskType": "test",
  "riskLevel": "2",
  "guard": "False",
  "content": {
    "resources": ["vFW"],
    "identity": "hpa-vFW",
    "policyScope": ["vFW", "US", "INTERNATIONAL", "ip"],
    "policyType": "hpa",
    "flavorFeatures": [
      {
        "flavorProperties": [
          {
            "architecture": "generic",
            "directives": [],
            "hpa-version": "v1",
            "hpa-feature-attributes": [
              {
                "unit": "",
                "operator": ">=",
                "hpa-attribute-value": "2",
                "hpa-attribute-key": "numVirtualCpu"
              },
              {
                "unit": "MB",
                "operator": ">=",
                "hpa-attribute-value": "8",
                "hpa-attribute-key": "virtualMemSize"
              }
            ],
            "hpa-feature": "basicCapabilities",
            "mandatory": "True"
          },
          {
            "architecture": "generic",
            "directives": [],
            "hpa-version": "v1",
            "hpa-feature-attributes": [
              {
                "unit": "",
                "operator": "=",
                "hpa-attribute-value": "2",
                "hpa-attribute-key": "numaNodes"
              },
              {
                "operator": "=",
                "hpa-attribute-value": "2",
                "hpa-attribute-key": "numaCpu-0"
              },
              {
                "operator": "=",
                "hpa-attribute-value": "4",
                "hpa-attribute-key": "numaCpu-1"
              },
              {
                "unit": "GB",
                "operator": "=",
                "hpa-attribute-value": "2",
                "hpa-attribute-key": "numaMem-0"
              },
              {
                "unit": "GB",
                "operator": "=",
                "hpa-attribute-value": "4",
                "hpa-attribute-key": "numaMem-1"
              }
            ],
            "hpa-feature": "numa",
            "mandatory": "True"
          },
          {
            "architecture": "generic",
            "directives": [],
            "hpa-version": "v1",
            "hpa-feature-attributes": [
              {
                "unit": "MB",
                "operator": "=",
                "hpa-attribute-value": "2",
                "hpa-attribute-key": "memoryPageSize"
              },
              {
                "operator": "=",
                "hpa-attribute-value": "4",
                "hpa-attribute-key": "numberOfPages"
              }
            ],
            "hpa-feature": "hugePages",
            "mandatory": "True"
          },
          {
            "architecture": "Intel64",
            "hpa-feature": "sriovNICNetwork",
            "hpa-version": "v1",
            "directives": [
              {
                "type": "sriovNICNetwork_directives",
                "attributes": [
                  {
                    "attribute_name": "oof_returned_vnic_type_for_firewall_protected",
                    "attribute_value": "direct"
                  }
                ]
              }
            ],
            "hpa-feature-attributes": [
              {
                "unit": "",
                "operator": "=",
                "hpa-attribute-value": "1",
                "hpa-attribute-key": "pciCount"
              },
              {
                "unit": "",
                "operator": "=",
                "hpa-attribute-value": "1234",
                "hpa-attribute-key": "pciVendorId"
              },
              {
                "unit": "",
                "operator": "=",
                "hpa-attribute-value": "7890",
                "hpa-attribute-key": "pciDeviceId"
              }
            ],
            "score": "100",
            "mandatory": "False"
          }
        ],
        "type": "vnfc",
        "id": "vfw_1",
        "directives": [
          {
            "type": "flavor_directives",
            "attributes": [
              {
                "attribute_name": "label_1",
                "attribute_value": ""
              }
            ]
          }
        ]
      },
      {
        "flavorProperties": [
          {
            "architecture": "generic",
            "directives": [],
            "hpa-version": "v1",
            "hpa-feature-attributes": [
              {
                "operator": ">=",
                "hpa-attribute-value": "1",
                "hpa-attribute-key": "numVirtualCpu"
              },
              {
                "unit": "GB",
                "operator": ">=",
                "hpa-attribute-value": "7",
                "hpa-attribute-key": "virtualMemSize"
              }
            ],
            "hpa-feature": "basicCapabilities",
            "mandatory": "True"
          }
        ],
        "type": "vnfc",
        "id": "vfw_2",
        "directives": [
          {
            "type": "flavor_directives",
            "attributes": [
              {
                "attribute_name": "label_2",
                "attribute_value": ""
              }
            ]
          }
        ]
      }
    ]
  }
}