eclcli 4.4.0__py3-none-any.whl → 4.5.0.dev355__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of eclcli might be problematic. Click here for more details.
- eclcli/mlb/v1/mlb_certificate.py +2 -2
- eclcli/vnf/v1/virtual_network_appliance.py +39 -0
- {eclcli-4.4.0.dist-info → eclcli-4.5.0.dev355.dist-info}/AUTHORS +1 -0
- {eclcli-4.4.0.dist-info → eclcli-4.5.0.dev355.dist-info}/METADATA +23 -23
- {eclcli-4.4.0.dist-info → eclcli-4.5.0.dev355.dist-info}/RECORD +9 -10
- {eclcli-4.4.0.dist-info → eclcli-4.5.0.dev355.dist-info}/WHEEL +1 -1
- eclcli-4.4.0.dist-info/pbr.json +0 -1
- {eclcli-4.4.0.dist-info → eclcli-4.5.0.dev355.dist-info}/LICENSE +0 -0
- {eclcli-4.4.0.dist-info → eclcli-4.5.0.dev355.dist-info}/entry_points.txt +0 -0
- {eclcli-4.4.0.dist-info → eclcli-4.5.0.dev355.dist-info}/top_level.txt +0 -0
eclcli/mlb/v1/mlb_certificate.py
CHANGED
|
@@ -273,8 +273,8 @@ class UploadCertificate(command.Command):
|
|
|
273
273
|
try:
|
|
274
274
|
with open(content_path, 'rb') as f:
|
|
275
275
|
certificate_content = base64.b64encode(f.read()).decode()
|
|
276
|
-
except
|
|
277
|
-
msg = "content file %s
|
|
276
|
+
except OSError as e:
|
|
277
|
+
msg = "Failed to open/read content file %s: %s"
|
|
278
278
|
raise exceptions.CommandError(msg % (content_path, e))
|
|
279
279
|
|
|
280
280
|
client.upload_certificate(
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
+
import base64
|
|
2
3
|
|
|
3
4
|
try:
|
|
4
5
|
import json
|
|
@@ -164,6 +165,13 @@ class CreateVirtualNetworkAppliance(command.ShowOne):
|
|
|
164
165
|
help=_('Availability zone that virtual network appliance '
|
|
165
166
|
'will be created'),
|
|
166
167
|
)
|
|
168
|
+
parser.add_argument(
|
|
169
|
+
'--initial-config',
|
|
170
|
+
metavar="<format=enum{set,text},data=file>",
|
|
171
|
+
help=_("Initial configuration for virtual network appliance "
|
|
172
|
+
"format: format of initial configuration data. (set/text)"
|
|
173
|
+
"data: file path of initial configuration data."),
|
|
174
|
+
)
|
|
167
175
|
|
|
168
176
|
return parser
|
|
169
177
|
|
|
@@ -271,6 +279,36 @@ class CreateVirtualNetworkAppliance(command.ShowOne):
|
|
|
271
279
|
|
|
272
280
|
interface_object.update(tmp)
|
|
273
281
|
|
|
282
|
+
initial_config_object = None
|
|
283
|
+
if parsed_args.initial_config:
|
|
284
|
+
config_dict = {"format": None, "data": None}
|
|
285
|
+
for item in parsed_args.initial_config.split(","):
|
|
286
|
+
parts = item.split('=')
|
|
287
|
+
if len(parts) == 2:
|
|
288
|
+
config_dict[parts[0].strip()] = parts[1].strip()
|
|
289
|
+
|
|
290
|
+
config_format = config_dict.get('format')
|
|
291
|
+
config_path = config_dict.get('data')
|
|
292
|
+
if not config_format or not config_path:
|
|
293
|
+
msg = _("You must specify both initial_config.format and initial_config.data (e.g., --initial-config format=set,data=/path/to/config)")
|
|
294
|
+
raise exceptions.CommandError(msg)
|
|
295
|
+
if config_format not in ['set', 'text']:
|
|
296
|
+
msg = _("initial_config.format must be 'set' or 'text'")
|
|
297
|
+
raise exceptions.CommandError(msg)
|
|
298
|
+
|
|
299
|
+
config_data = None
|
|
300
|
+
try:
|
|
301
|
+
with open(config_path, 'rb') as f:
|
|
302
|
+
config_data = base64.b64encode(f.read()).decode()
|
|
303
|
+
except OSError as e:
|
|
304
|
+
msg = "Failed to open/read config file %s: %s"
|
|
305
|
+
raise exceptions.CommandError(msg % (config_path, e))
|
|
306
|
+
|
|
307
|
+
initial_config_object = {
|
|
308
|
+
'format': config_format,
|
|
309
|
+
'data': config_data,
|
|
310
|
+
}
|
|
311
|
+
|
|
274
312
|
plan_id = \
|
|
275
313
|
parsed_args.virtual_network_appliance_plan_id
|
|
276
314
|
|
|
@@ -293,6 +331,7 @@ class CreateVirtualNetworkAppliance(command.ShowOne):
|
|
|
293
331
|
default_gateway=default_gateway,
|
|
294
332
|
availability_zone=zone,
|
|
295
333
|
tags=tags,
|
|
334
|
+
initial_config=initial_config_object,
|
|
296
335
|
)
|
|
297
336
|
|
|
298
337
|
# Set plan name
|
|
@@ -19,6 +19,7 @@ a-oi-xon <91597807+a-oi-xon@users.noreply.github.com>
|
|
|
19
19
|
akaishizawa-n <135296314+akaishizawa-n@users.noreply.github.com>
|
|
20
20
|
anythingrandom <shreyas.shinde@ntt.com>
|
|
21
21
|
endoshi <42924605+endoshi@users.noreply.github.com>
|
|
22
|
+
guy555 <junya.katagai@ntt.com>
|
|
22
23
|
htysh <h.ohta@ntt.com>
|
|
23
24
|
htysh <htysh@users.noreply.github.com>
|
|
24
25
|
ikegami-shota <102566991+ikegami-shota@users.noreply.github.com>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: eclcli
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.5.0.dev355
|
|
4
4
|
Summary: CLI for Enterprise Cloud 2.0
|
|
5
5
|
Home-page: https://ecl.ntt.com
|
|
6
6
|
Author: NTT Communications
|
|
@@ -17,28 +17,28 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.9
|
|
18
18
|
License-File: LICENSE
|
|
19
19
|
License-File: AUTHORS
|
|
20
|
-
Requires-Dist: pbr >=1.6
|
|
21
|
-
Requires-Dist: six >=1.9.0
|
|
22
|
-
Requires-Dist: Babel !=2.3.0,!=2.3.1,!=2.3.2,!=2.3.3,!=2.4.0,>=1.3
|
|
23
|
-
Requires-Dist: cliff !=1.16.0,!=1.17.0,<3.7.0,>=1.15.0
|
|
24
|
-
Requires-Dist: cryptography >=2.9.2
|
|
25
|
-
Requires-Dist: eclsdk >=1.
|
|
26
|
-
Requires-Dist: future >=0.17.1
|
|
27
|
-
Requires-Dist: keystoneauth1 <=3.4.0,>=2.1.0
|
|
28
|
-
Requires-Dist: openstacksdk <=0.13.0
|
|
29
|
-
Requires-Dist: os-client-config >=1.13.1
|
|
30
|
-
Requires-Dist: oslo.config >=3.7.0
|
|
31
|
-
Requires-Dist: oslo.i18n >=2.1.0
|
|
32
|
-
Requires-Dist: oslo.utils >=3.5.0
|
|
33
|
-
Requires-Dist: pyparsing <3.0.0
|
|
34
|
-
Requires-Dist: python-glanceclient <=2.11.0,>=2.0.0
|
|
35
|
-
Requires-Dist: python-keystoneclient !=1.8.0,!=2.1.0,>=1.6.0
|
|
36
|
-
Requires-Dist: python-novaclient !=2.33.0,<=9.1.0,>=2.29.0
|
|
37
|
-
Requires-Dist: python-cinderclient <=4.3.0,>=1.3.1
|
|
38
|
-
Requires-Dist: requests >=2.20.0
|
|
39
|
-
Requires-Dist: stevedore >=1.5.0
|
|
40
|
-
Requires-Dist: json-merge-patch >=0.2
|
|
41
|
-
Requires-Dist: cmd2 <0.9.0,>0.8.3
|
|
20
|
+
Requires-Dist: pbr (>=1.6)
|
|
21
|
+
Requires-Dist: six (>=1.9.0)
|
|
22
|
+
Requires-Dist: Babel (!=2.3.0,!=2.3.1,!=2.3.2,!=2.3.3,!=2.4.0,>=1.3)
|
|
23
|
+
Requires-Dist: cliff (!=1.16.0,!=1.17.0,<3.7.0,>=1.15.0)
|
|
24
|
+
Requires-Dist: cryptography (>=2.9.2)
|
|
25
|
+
Requires-Dist: eclsdk (>=1.6.0)
|
|
26
|
+
Requires-Dist: future (>=0.17.1)
|
|
27
|
+
Requires-Dist: keystoneauth1 (<=3.4.0,>=2.1.0)
|
|
28
|
+
Requires-Dist: openstacksdk (<=0.13.0)
|
|
29
|
+
Requires-Dist: os-client-config (>=1.13.1)
|
|
30
|
+
Requires-Dist: oslo.config (>=3.7.0)
|
|
31
|
+
Requires-Dist: oslo.i18n (>=2.1.0)
|
|
32
|
+
Requires-Dist: oslo.utils (>=3.5.0)
|
|
33
|
+
Requires-Dist: pyparsing (<3.0.0)
|
|
34
|
+
Requires-Dist: python-glanceclient (<=2.11.0,>=2.0.0)
|
|
35
|
+
Requires-Dist: python-keystoneclient (!=1.8.0,!=2.1.0,>=1.6.0)
|
|
36
|
+
Requires-Dist: python-novaclient (!=2.33.0,<=9.1.0,>=2.29.0)
|
|
37
|
+
Requires-Dist: python-cinderclient (<=4.3.0,>=1.3.1)
|
|
38
|
+
Requires-Dist: requests (>=2.20.0)
|
|
39
|
+
Requires-Dist: stevedore (>=1.5.0)
|
|
40
|
+
Requires-Dist: json-merge-patch (>=0.2)
|
|
41
|
+
Requires-Dist: cmd2 (<0.9.0,>0.8.3)
|
|
42
42
|
|
|
43
43
|
Enterprise Cloud CLI
|
|
44
44
|
======================
|
|
@@ -179,7 +179,7 @@ eclcli/image/v2/image.py,sha256=fUVCT28gCNIP0yBAAm-ntFZJajdbuAQOrIq_Q-4LNaQ,3426
|
|
|
179
179
|
eclcli/mlb/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
180
180
|
eclcli/mlb/client.py,sha256=AmrS6iBusepOr13hoy3vHHNyj5Vmwg1rU30QHEBqRZM,188
|
|
181
181
|
eclcli/mlb/v1/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
182
|
-
eclcli/mlb/v1/mlb_certificate.py,sha256=
|
|
182
|
+
eclcli/mlb/v1/mlb_certificate.py,sha256=lMokq-GBv32W5901NTCxUbz6ztVpMLpq70kffX47wAM,8564
|
|
183
183
|
eclcli/mlb/v1/mlb_health_monitor.py,sha256=rhs6zWn2yH3z_NXdUNRzEVUfLh7F5_ZKkTvvp4uLgnM,15610
|
|
184
184
|
eclcli/mlb/v1/mlb_listener.py,sha256=fOgI8sE8SLawPEbXyuzQg8qIt_CvuQ6k07tBJQIMriY,12341
|
|
185
185
|
eclcli/mlb/v1/mlb_load_balancer.py,sha256=Nk_d879EToPMynGabVF5wcTwDGaf2M6C4Z-zBhPDKmA,22793
|
|
@@ -383,7 +383,7 @@ eclcli/vnf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
383
383
|
eclcli/vnf/client.py,sha256=ztw3FOyAXTjYdIPllExJQVRnon4DdSeuL-JXgdU8Ojg,520
|
|
384
384
|
eclcli/vnf/v1/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
385
385
|
eclcli/vnf/v1/operation.py,sha256=cMhpQKmJuIPRfcRUa48e_31_VYCBVpCJ162cCSx3dFw,2735
|
|
386
|
-
eclcli/vnf/v1/virtual_network_appliance.py,sha256=
|
|
386
|
+
eclcli/vnf/v1/virtual_network_appliance.py,sha256=esrImeT5RJOspdaVuIfbCn9KBN5YGnbOKl5fEO1Os7U,33447
|
|
387
387
|
eclcli/vnf/v1/virtual_network_appliance_plan.py,sha256=MRGiul-oMTLEqaqm28wPKDaZC_Epx_k_HATIHdia9Tw,2229
|
|
388
388
|
eclcli/volume/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
389
389
|
eclcli/volume/client.py,sha256=cp4u7T2xMptA_ScQgzUIKZBC3ca-Ky-6DgiGC5JWc18,2476
|
|
@@ -393,11 +393,10 @@ eclcli/volume/v2/qos_specs.py,sha256=Iav_8gTYtKW70h_bmiG3RgN1wn9ijsIHHSSZF1QqN90
|
|
|
393
393
|
eclcli/volume/v2/snapshot.py,sha256=zyVcTz25U5Lofra4t_j7XnGCWdmFhENv7HL8slgM5zw,8474
|
|
394
394
|
eclcli/volume/v2/volume.py,sha256=84-zkIqC7W3kwQ1F8xIS1X8Y2_ODC1jgqfT4qxqE_zc,13520
|
|
395
395
|
eclcli/volume/v2/volume_type.py,sha256=ynqzu8EBciGHgWiJJVDAlkXvgbd_mx-0238wlekj0jk,7677
|
|
396
|
-
eclcli-4.
|
|
397
|
-
eclcli-4.
|
|
398
|
-
eclcli-4.
|
|
399
|
-
eclcli-4.
|
|
400
|
-
eclcli-4.
|
|
401
|
-
eclcli-4.
|
|
402
|
-
eclcli-4.
|
|
403
|
-
eclcli-4.4.0.dist-info/RECORD,,
|
|
396
|
+
eclcli-4.5.0.dev355.dist-info/AUTHORS,sha256=cdu7OD2OtjGsLiPcqLJn6AnhqPtneiI-NQCkH1sGb3w,2021
|
|
397
|
+
eclcli-4.5.0.dev355.dist-info/LICENSE,sha256=XfKg2H1sVi8OoRxoisUlMqoo10TKvHmU_wU39ks7MyA,10143
|
|
398
|
+
eclcli-4.5.0.dev355.dist-info/METADATA,sha256=Lgw7s5y9IPCWXAyqX5nOnUG_7ubXJSYTn9pSREDFrmY,4577
|
|
399
|
+
eclcli-4.5.0.dev355.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
400
|
+
eclcli-4.5.0.dev355.dist-info/entry_points.txt,sha256=vTVMac07Iy3XrdHzSiyA_4EVjbPivj070sKzqRCi3bY,29843
|
|
401
|
+
eclcli-4.5.0.dev355.dist-info/top_level.txt,sha256=qlWRxE3Bx0n2jNA1dKFpeHMVsM-xGaM1rJ_TDutMlkA,7
|
|
402
|
+
eclcli-4.5.0.dev355.dist-info/RECORD,,
|
eclcli-4.4.0.dist-info/pbr.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"git_version": "e467743", "is_release": true}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|