VNF 生命周期管理与 v1 Tacker¶
本文档描述了如何在 Tacker v1 API 中使用 CLI 管理 VNF 生命周期。
注意
本文档适用于 Tacker v1 API。有关 Tacker v2 API,请参阅 VNF 生命周期管理与 v2 Tacker。
先决条件¶
应安装以下软件包
tacker
python-tackerclient
应根据 VIM 管理 注册默认 VIM。
VNF 生命周期管理 CLI 参考¶
注意
默认情况下,命令调用版本 1 VNF LCM API。您也可以使用选项 --os-tacker-api-version 1 显式调用版本 1 VNF LCM API。
1. 创建 VNF 标识符¶
应将 VNFD_ID 替换为 VNF 包中的 VNFD ID。
$ openstack vnflcm create VNFD_ID
结果
+-----------------------------+------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-----------------------------+------------------------------------------------------------------------------------------------------------------+
| ID | 74c71ef9-b223-4a5f-9987-de476eab122f |
| Instantiation State | NOT_INSTANTIATED |
| Links | { |
| | "self": { |
| | "href": "https://:9890/vnflcm/v1/vnf_instances/74c71ef9-b223-4a5f-9987-de476eab122f" |
| | }, |
| | "instantiate": { |
| | "href": "https://:9890/vnflcm/v1/vnf_instances/74c71ef9-b223-4a5f-9987-de476eab122f/instantiate" |
| | } |
| | } |
| VNF Configurable Properties | |
| VNF Instance Description | |
| VNF Instance Name | vnf-74c71ef9-b223-4a5f-9987-de476eab122f |
| VNF Package ID | 5ac73423-f102-4574-911e-578dad9fa8fe |
| VNF Product Name | Sample VNF |
| VNF Provider | Company |
| VNF Software Version | 1.0 |
| VNFD ID | b1bb0ce7-ebca-4fa7-95ed-4840d70a1177 |
| VNFD Version | 1.0 |
+-----------------------------+------------------------------------------------------------------------------------------------------------------+
帮助
$ openstack vnflcm create --help
usage: openstack vnflcm create [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]
[--noindent] [--prefix PREFIX] [--max-width <integer>]
[--fit-width] [--print-empty] [--name <vnf-instance-name>]
[--description <vnf-instance-description>] [--I <param-file>]
<vnfd-id>
Create a new VNF Instance
positional arguments:
<vnfd-id> Identifier that identifies the VNFD which defines the VNF instance to be created.
options:
-h, --help show this help message and exit
--name <vnf-instance-name>
Name of the VNF instance to be created.
--description <vnf-instance-description>
Description of the VNF instance to be created.
--I <param-file>
Instantiate VNF subsequently after it's creation. Specify instantiate request
parameters in a json file.
output formatters:
output formatter options
-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}
the output format, defaults to table
-c COLUMN, --column COLUMN
specify the column(s) to include, can be repeated to show multiple columns
json formatter:
--noindent whether to disable indenting the JSON
shell formatter:
a format a UNIX shell can parse (variable="value")
--prefix PREFIX
add a prefix to all variable names
table formatter:
--max-width <integer>
Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH
environment variable, but the parameter takes precedence.
--fit-width Fit the table to the display width. Implied if --max-width greater than 0. Set the
environment variable CLIFF_FIT_WIDTH=1 to always enable
--print-empty Print empty table if there is no data to show.
This command is provided by the python-tackerclient plugin.
2. 实例化 VNF¶
应将 VNF_INSTANCE_ID 和 SAMPLE_PARAM_FILE.json 替换为 VNF 实例的 ID 以及用于实例化 VNF 的参数 json 文件的路径,分别。
$ openstack vnflcm instantiate VNF_INSTANCE_ID \
SAMPLE_PARAM_FILE.json
结果
Instantiate request for VNF Instance 74c71ef9-b223-4a5f-9987-de476eab122f has been accepted.
帮助
$ openstack vnflcm instantiate --help
usage: openstack vnflcm instantiate [-h] <vnf-instance> <param-file>
Instantiate a VNF Instance
positional arguments:
<vnf-instance>
VNF instance ID to instantiate
<param-file> Specify instantiate request parameters in a json file.
options:
-h, --help show this help message and exit
This command is provided by the python-tackerclient plugin.
3. 列出 VNF¶
$ openstack vnflcm list
结果
+--------------------------------------+-----------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
| ID | VNF Instance Name | Instantiation State | VNF Provider | VNF Software Version | VNF Product Name | VNFD ID |
+--------------------------------------+-----------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
| 74c71ef9-b223-4a5f-9987-de476eab122f | Updated instance name | INSTANTIATED | Company | 1.0 | Sample VNF | b1bb0ce7-ebca-4fa7-95ed-4840d70a1177 |
+--------------------------------------+-----------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
帮助
$ openstack vnflcm list --help
usage: openstack vnflcm list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN]
[--quote {all,minimal,none,nonnumeric}] [--noindent]
[--max-width <integer>] [--fit-width] [--print-empty]
[--sort-column SORT_COLUMN] [--sort-ascending | --sort-descending]
List VNF Instance
options:
-h, --help show this help message and exit
output formatters:
output formatter options
-f {csv,json,table,value,yaml}, --format {csv,json,table,value,yaml}
the output format, defaults to table
-c COLUMN, --column COLUMN
specify the column(s) to include, can be repeated to show multiple columns
--sort-column SORT_COLUMN
specify the column(s) to sort the data (columns specified first have a priority,
non-existing columns are ignored), can be repeated
--sort-ascending sort the column(s) in ascending order
--sort-descending sort the column(s) in descending order
CSV Formatter:
--quote {all,minimal,none,nonnumeric}
when to include quotes, defaults to nonnumeric
json formatter:
--noindent whether to disable indenting the JSON
table formatter:
--max-width <integer>
Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH
environment variable, but the parameter takes precedence.
--fit-width Fit the table to the display width. Implied if --max-width greater than 0. Set the
environment variable CLIFF_FIT_WIDTH=1 to always enable
--print-empty Print empty table if there is no data to show.
This command is provided by the python-tackerclient plugin.
4. 显示 VNF¶
应将 VNF_INSTANCE_ID 替换为 VNF 实例的 ID。
$ openstack vnflcm show VNF_INSTANCE_ID
结果
+-----------------------------+----------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-----------------------------+----------------------------------------------------------------------------------------------------------------------+
| ID | 74c71ef9-b223-4a5f-9987-de476eab122f |
| Instantiated Vnf Info | { |
| | "flavourId": "simple", |
| | "vnfState": "STARTED", |
| | "extCpInfo": [], |
| | "vnfcResourceInfo": [ |
| | { |
| | "id": "149d21ec-02a8-456f-af0e-0a91652cc31a", |
| | "vduId": "VDU1", |
| | "computeResource": { |
| | "vimConnectionId": "fa9fa87e-8be2-425d-85e1-08778d82d95f", |
| | "resourceId": "6508f3fc-065d-4387-893d-95366e6854a5", |
| | "vimLevelResourceType": "OS::Nova::Server" |
| | }, |
| | "storageResourceIds": [], |
| | "vnfcCpInfo": [ |
| | { |
| | "id": "d33ced0e-7337-44e8-b4b5-2c1cdad41a28", |
| | "cpdId": "CP1", |
| | "vnfExtCpId": null, |
| | "vnfLinkPortId": "06c2a88b-7cde-409e-9235-4174c49624c1" |
| | } |
| | ] |
| | } |
| | ], |
| | "vnfVirtualLinkResourceInfo": [ |
| | { |
| | "id": "2a364ed3-cfe4-40a6-ac78-79b773bddf5c", |
| | "vnfVirtualLinkDescId": "internalVL1", |
| | "networkResource": { |
| | "vimConnectionId": "fa9fa87e-8be2-425d-85e1-08778d82d95f", |
| | "resourceId": "4695aa24-a3ab-41f9-bfc3-59cd75f21e4f", |
| | "vimLevelResourceType": "OS::Neutron::Net" |
| | }, |
| | "vnfLinkPorts": [ |
| | { |
| | "id": "06c2a88b-7cde-409e-9235-4174c49624c1", |
| | "resourceHandle": { |
| | "vimConnectionId": "fa9fa87e-8be2-425d-85e1-08778d82d95f", |
| | "resourceId": "7d118835-da4c-4e8f-8def-dba2377ab446", |
| | "vimLevelResourceType": "OS::Neutron::Port" |
| | }, |
| | "cpInstanceId": "d33ced0e-7337-44e8-b4b5-2c1cdad41a28" |
| | } |
| | ] |
| | } |
| | ], |
| | "vnfcInfo": [ |
| | { |
| | "id": "c1a2c1f8-60ba-4db6-aa64-416263c45801", |
| | "vduId": "VDU1", |
| | "vnfcState": "STARTED" |
| | } |
| | ], |
| | "additionalParams": {} |
| | } |
| Instantiation State | INSTANTIATED |
| Links | { |
| | "self": { |
| | "href": "https://:9890/vnflcm/v1/vnf_instances/74c71ef9-b223-4a5f-9987-de476eab122f" |
| | }, |
| | "terminate": { |
| | "href": "https://:9890/vnflcm/v1/vnf_instances/74c71ef9-b223-4a5f-9987-de476eab122f/terminate" |
| | }, |
| | "scale": { |
| | "href": "https://:9890/vnflcm/v1/vnf_instances/74c71ef9-b223-4a5f-9987-de476eab122f/scale" |
| | }, |
| | "heal": { |
| | "href": "https://:9890/vnflcm/v1/vnf_instances/74c71ef9-b223-4a5f-9987-de476eab122f/heal" |
| | }, |
| | "changeExtConn": { |
| | "href": "https://:9890/vnflcm/v1/vnf_instances/74c71ef9-b223-4a5f-9987-de476eab122f/change_ext_conn" |
| | } |
| | } |
| VIM Connection Info | [ |
| | { |
| | "id": "e24f9796-a8e9-4cb0-85ce-5920dcddafa1", |
| | "vimId": "fa9fa87e-8be2-425d-85e1-08778d82d95f", |
| | "vimType": "ETSINFV.OPENSTACK_KEYSTONE.V_2", |
| | "interfaceInfo": {}, |
| | "accessInfo": {}, |
| | "extra": {} |
| | }, |
| | { |
| | "id": "467746fa-248b-464c-ad81-3f01c4eacdf5", |
| | "vimId": "fa9fa87e-8be2-425d-85e1-08778d82d95f", |
| | "vimType": "openstack", |
| | "interfaceInfo": {}, |
| | "accessInfo": {}, |
| | "extra": {} |
| | } |
| | ] |
| VNF Configurable Properties | |
| VNF Instance Description | |
| VNF Instance Name | vnf-74c71ef9-b223-4a5f-9987-de476eab122f |
| VNF Package ID | 5ac73423-f102-4574-911e-578dad9fa8fe |
| VNF Product Name | Sample VNF |
| VNF Provider | Company |
| VNF Software Version | 1.0 |
| VNFD ID | b1bb0ce7-ebca-4fa7-95ed-4840d70a1177 |
| VNFD Version | 1.0 |
| metadata | tenant=admin |
+-----------------------------+----------------------------------------------------------------------------------------------------------------------+
帮助
$ openstack vnflcm show --help
usage: openstack vnflcm show [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]
[--noindent] [--prefix PREFIX] [--max-width <integer>]
[--fit-width] [--print-empty]
<vnf-instance>
Display VNF instance details
positional arguments:
<vnf-instance>
VNF instance ID to display
options:
-h, --help show this help message and exit
output formatters:
output formatter options
-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}
the output format, defaults to table
-c COLUMN, --column COLUMN
specify the column(s) to include, can be repeated to show multiple columns
json formatter:
--noindent whether to disable indenting the JSON
shell formatter:
a format a UNIX shell can parse (variable="value")
--prefix PREFIX
add a prefix to all variable names
table formatter:
--max-width <integer>
Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH
environment variable, but the parameter takes precedence.
--fit-width Fit the table to the display width. Implied if --max-width greater than 0. Set the
environment variable CLIFF_FIT_WIDTH=1 to always enable
--print-empty Print empty table if there is no data to show.
This command is provided by the python-tackerclient plugin.
5. 终止 VNF¶
应将 VNF_INSTANCE_ID 替换为 VNF 实例的 ID。
$ openstack vnflcm terminate VNF_INSTANCE_ID
结果
Terminate request for VNF Instance '74c71ef9-b223-4a5f-9987-de476eab122f' has been accepted.
帮助
$ openstack vnflcm terminate --help
usage: openstack vnflcm terminate [-h] [--termination-type <termination-type>]
[--graceful-termination-timeout <graceful-termination-timeout>]
[--D]
<vnf-instance>
Terminate a VNF instance
positional arguments:
<vnf-instance>
VNF instance ID to terminate
options:
-h, --help show this help message and exit
--termination-type <termination-type>
Termination type can be 'GRACEFUL' or 'FORCEFUL'. Default is 'GRACEFUL'
--graceful-termination-timeout <graceful-termination-timeout>
This attribute is only applicable in case of graceful termination. It defines the
time to wait for the VNF to be taken out of service before shutting down the VNF and
releasing the resources. The unit is seconds.
--D Delete VNF Instance subsequently after it's termination
This command is provided by the python-tackerclient plugin.
6. 删除 VNF 标识符¶
应将 VNF_INSTANCE_ID 替换为 VNF 实例的 ID。
$ openstack vnflcm delete VNF_INSTANCE_ID
结果
Vnf instance '74c71ef9-b223-4a5f-9987-de476eab122f' is deleted successfully
帮助
$ openstack vnflcm delete --help
usage: openstack vnflcm delete [-h] <vnf-instance> [<vnf-instance> ...]
Delete VNF Instance(s)
positional arguments:
<vnf-instance>
VNF instance ID(s) to delete
options:
-h, --help show this help message and exit
This command is provided by the python-tackerclient plugin.
7. 修复 VNF¶
应将 VNF_INSTANCE_ID 替换为 VNF 实例的 ID。
$ openstack vnflcm heal VNF_INSTANCE_ID
注意
<vnf-instance> 应在 --vnfc-instance 参数之前给出,或者使用 ‘--’ 分隔符在 --vnfc-instance 参数之后给出。
结果
Heal request for VNF Instance 74c71ef9-b223-4a5f-9987-de476eab122f has been accepted.
帮助
$ openstack vnflcm heal --help
usage: openstack vnflcm heal [-h] [--cause CAUSE]
[--vnfc-instance <vnfc-instance-id> [<vnfc-instance-id> ...]]
[--additional-param-file <additional-param-file>]
-- <vnf-instance>
Heal VNF Instance
positional arguments:
<vnf-instance>
VNF instance ID to heal
options:
-h, --help show this help message and exit
--cause CAUSE
Specify the reason why a healing procedure is required.
--vnfc-instance <vnfc-instance-id> [<vnfc-instance-id> ...]
List of VNFC instances requiring a healing action.
--additional-param-file <additional-param-file>
Additional parameters passed by the NFVO as input to the healing process.
This command is provided by the python-tackerclient plugin.
8. 更新 VNF¶
应将 VNF_INSTANCE_ID 和 SAMPLE_PARAM_FILE.json 替换为 VNF 实例的 ID 以及用于更新 VNF 的参数 json 文件的名称,分别。
$ openstack vnflcm update VNF_INSTANCE_ID --I SAMPLE_PARAM_FILE.json
结果
Update vnf:74c71ef9-b223-4a5f-9987-de476eab122f
帮助
$ openstack vnflcm update --help
usage: openstack vnflcm update [-h] [--I <param-file>] <vnf-instance>
Update VNF Instance
positional arguments:
<vnf-instance>
VNF instance ID to update.
options:
-h, --help show this help message and exit
--I <param-file>
Specify update request parameters in a json file.
This command is provided by the python-tackerclient plugin.
9. 扩展 VNF¶
应将 VNF_INSTANCE_ID 和 WORKER_INSTANCE 替换为 VNF 实例的 ID 以及目标扩展组的 ID,分别。有关详细信息,请参阅 ETSI NFV-SOL VNF 扩展 中的“如何识别 ASPECT_ID”。
$ openstack vnflcm scale --type SCALE_OUT --aspect-id WORKER_INSTANCE \
VNF_INSTANCE_ID
结果
Scale request for VNF Instance 634825bf-6a70-47d2-b4e1-1ed9ba4c6938 has been accepted.
帮助
$ openstack vnflcm scale --help
usage: openstack vnflcm scale [-h] [--number-of-steps <number-of-steps>]
[--additional-param-file <additional-param-file>] --type
<type> --aspect-id <aspect-id>
<vnf-instance>
Scale a VNF Instance
positional arguments:
<vnf-instance>
VNF instance ID to scale
options:
-h, --help show this help message and exit
--number-of-steps <number-of-steps>
Number of scaling steps to be executed as part of this Scale VNF operation.
--additional-param-file <additional-param-file>
Additional parameters passed by the NFVO as input to the scaling process.
require arguments:
--type <type>
SCALE_OUT or SCALE_IN for type of scale operation.
--aspect-id <aspect-id>
Identifier of the scaling aspect.
This command is provided by the python-tackerclient plugin.
10. 更改外部 VNF 连接性¶
注意
在 2024.2 Dalmatian 版本中,更改外部 VNF 连接性仅支持 VNF,不支持 CNF。
应将 VNF_INSTANCE_ID 和 SAMPLE_PARAM_FILE.json 替换为 VNF 实例的 ID 以及用于更改外部 VNF 连接性的参数 json 文件的路径,分别。
$ openstack vnflcm change-ext-conn VNF_INSTANCE_ID \
SAMPLE_PARAM_FILE.json
结果
Change External VNF Connectivity for VNF Instance 634825bf-6a70-47d2-b4e1-1ed9ba4c6938 has been accepted.
帮助
$ openstack vnflcm change-ext-conn --help
usage: openstack vnflcm change-ext-conn [-h] <vnf-instance> <param-file>
Change External VNF Connectivity
positional arguments:
<vnf-instance>
VNF instance ID to Change External VNF Connectivity
<param-file> Specify change-ext-conn request parameters in a json file.
options:
-h, --help show this help message and exit
This command is provided by the python-tackerclient plugin.
11. 回滚 VNF 生命周期管理操作¶
应将 VNF_LCM_OP_OCC_ID 替换为暂时失败的目标生命周期管理操作的 ID。
$ openstack vnflcm op rollback VNF_LCM_OP_OCC_ID
结果
Rollback request for LCM operation 9e53e4f9-2a37-4557-9259-2c0e078bd977 has been accepted
帮助
$ openstack vnflcm op rollback --help
usage: openstack vnflcm op rollback [-h] <vnf-lcm-op-occ-id>
positional arguments:
<vnf-lcm-op-occ-id>
VNF lifecycle management operation occurrence ID.
options:
-h, --help show this help message and exit
This command is provided by the python-tackerclient plugin.
12. 取消 VNF 生命周期管理操作¶
应将 VNF_LCM_OP_OCC_ID 替换为当前正在处理的目标生命周期管理操作的 ID。
openstack vnflcm op cancel VNF_LCM_OP_OCC_ID
结果
Cancel request for LCM operation 998d949f-73a6-42f6-b8cd-f8f1009b0ece has been accepted
帮助
$ openstack vnflcm op cancel --help
usage: openstack vnflcm op cancel [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]
[--noindent] [--prefix PREFIX] [--max-width <integer>]
[--fit-width] [--print-empty] [--cancel-mode <cancel-mode>]
<vnf-lcm-op-occ-id>
Cancel VNF Instance
positional arguments:
<vnf-lcm-op-occ-id>
VNF lifecycle management operation occurrence ID.
options:
-h, --help show this help message and exit
--cancel-mode <cancel-mode>
Cancel mode can be 'GRACEFUL' or 'FORCEFUL'. Default is 'GRACEFUL'
output formatters:
output formatter options
-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}
the output format, defaults to table
-c COLUMN, --column COLUMN
specify the column(s) to include, can be repeated to show multiple columns
json formatter:
--noindent whether to disable indenting the JSON
shell formatter:
a format a UNIX shell can parse (variable="value")
--prefix PREFIX
add a prefix to all variable names
table formatter:
--max-width <integer>
Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH
environment variable, but the parameter takes precedence.
--fit-width Fit the table to the display width. Implied if --max-width greater than 0. Set the
environment variable CLIFF_FIT_WIDTH=1 to always enable
--print-empty Print empty table if there is no data to show.
This command is provided by the python-tackerclient plugin.
13. 重试 VNF 生命周期管理操作¶
应将 VNF_LCM_OP_OCC_ID 替换为暂时失败的目标生命周期管理操作的 ID。
$ openstack vnflcm op retry VNF_LCM_OP_OCC_ID
结果
Retry request for LCM operation f2c0e013-fa36-4239-b6e9-f320632944c2 has been accepted
帮助
$ openstack vnflcm op retry --help
usage: openstack vnflcm op retry [-h] <vnf-lcm-op-occ-id>
Retry VNF Instance
positional arguments:
<vnf-lcm-op-occ-id>
VNF lifecycle management operation occurrence ID.
options:
-h, --help show this help message and exit
This command is provided by the python-tackerclient plugin.
14. 终止 VNF 生命周期管理操作¶
应将 VNF_LCM_OP_OCC_ID 替换为暂时失败的目标生命周期管理操作的 ID。
$ openstack vnflcm op fail VNF_LCM_OP_OCC_ID
结果
+-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Error | { |
| | "title": "", |
| | "status": 500, |
| | "detail": "ProblemDetails(created_at=<?>,deleted=0,deleted_at=<?>,detail='The sample-script specified in the VNFD is inconsistent with the MgmtDriver in the |
| | configuration file.',status=500,title='',updated_at=<?>)" |
| | } |
| ID | f2c0e013-fa36-4239-b6e9-f320632944c2 |
| Is Automatic Invocation | False |
| Is Cancel Pending | False |
| Links | { |
| | "self": { |
| | "href": "https://:9890/vnflcm/v1/vnf_lcm_op_occs/f2c0e013-fa36-4239-b6e9-f320632944c2" |
| | }, |
| | "vnfInstance": { |
| | "href": "https://:9890/vnflcm/v1/vnf_instances/5f65bf54-cb06-4e9a-ac4f-b2ff0862c5f0" |
| | }, |
| | "retry": { |
| | "href": "https://:9890/vnflcm/v1/vnf_lcm_op_occs/f2c0e013-fa36-4239-b6e9-f320632944c2/retry" |
| | }, |
| | "rollback": { |
| | "href": "https://:9890/vnflcm/v1/vnf_lcm_op_occs/f2c0e013-fa36-4239-b6e9-f320632944c2/rollback" |
| | }, |
| | "grant": { |
| | "href": "https://:9890/vnflcm/v1/vnf_lcm_op_occs/f2c0e013-fa36-4239-b6e9-f320632944c2/grant" |
| | }, |
| | "fail": { |
| | "href": "https://:9890/vnflcm/v1/vnf_lcm_op_occs/f2c0e013-fa36-4239-b6e9-f320632944c2/fail" |
| | } |
| | } |
| Operation | INSTANTIATE |
| Operation State | FAILED |
| Start Time | 2024-05-15 07:07:04+00:00 |
| State Entered Time | 2024-05-15 07:09:20.964769+00:00 |
| VNF Instance ID | 5f65bf54-cb06-4e9a-ac4f-b2ff0862c5f0 |
| grantId | None |
| operationParams | "{\"flavourId\": \"simple\", \"instantiationLevelId\": \"instantiation_level_1\", \"extVirtualLinks\": [{\"id\": \"073b1b7d-fed9-48c2-8515-f07f36e0fac6\", |
| | \"vimConnectionId\": \"6bb975f4-387f-44d3-8cea-596b065c47c8\", \"resourceProviderId\": \"Company\", \"resourceId\": \"3ee73151-4382-4bee-9344-1ee829b32969\", \"extCps\": |
| | [{\"cpdId\": \"VDU1_CP1\", \"cpConfig\": [{\"VDU1_CP1\": {\"parentCpConfigId\": \"b06c86c9-dfa8-4e3c-848c-928667d7155b\", \"cpProtocolData\": [{\"layerProtocol\": |
| | \"IP_OVER_ETHERNET\", \"ipOverEthernet\": {\"ipAddresses\": [{\"type\": \"IPV4\", \"numDynamicAddresses\": 1, \"subnetId\": |
| | \"41b13a15-558c-4022-91c4-2702e3af3266\"}]}}]}}]}]}, {\"id\": \"876050f5-86a8-42de-957d-65750c72c94c\", \"vimConnectionId\": \"6bb975f4-387f-44d3-8cea-596b065c47c8\", |
| | \"resourceProviderId\": \"Company\", \"resourceId\": \"c0bcd736-d5b1-43f5-89f6-e9cfe0015fd9\", \"extCps\": [{\"cpdId\": \"VDU1_CP2\", \"cpConfig\": [{\"VDU1_CP2\": |
| | {\"parentCpConfigId\": \"08e2a40f-26f1-45e6-adec-682006c8c02a\", \"cpProtocolData\": [{\"layerProtocol\": \"IP_OVER_ETHERNET\", \"ipOverEthernet\": {\"ipAddresses\": |
| | [{\"type\": \"IPV4\", \"numDynamicAddresses\": 1, \"subnetId\": \"a7a1552b-c78b-403c-b1eb-7f98446a24d2\"}]}}]}}]}, {\"cpdId\": \"VDU2_CP2\", \"cpConfig\": [{\"VDU2_CP2\": |
| | {\"parentCpConfigId\": \"bd74eb08-2165-4921-9bbd-967ede4c9f1f\", \"cpProtocolData\": [{\"layerProtocol\": \"IP_OVER_ETHERNET\", \"ipOverEthernet\": {\"macAddress\": |
| | \"fa:16:3e:fa:22:75\", \"ipAddresses\": [{\"type\": \"IPV4\", \"fixedAddresses\": [\"100.100.100.11\"], \"subnetId\": \"a7a1552b-c78b-403c-b1eb-7f98446a24d2\"}, {\"type\": |
| | \"IPV6\", \"numDynamicAddresses\": 1, \"subnetId\": \"70129667-f3e9-4b3f-9e4f-bff5c3887d7f\"}]}}]}}]}]}], \"extManagedVirtualLinks\": [{\"id\": |
| | \"97d23d57-a375-4727-ab43-8df097251cd2\", \"vnfVirtualLinkDescId\": \"internalVL1\", \"vimConnectionId\": \"6bb975f4-387f-44d3-8cea-596b065c47c8\", \"resourceProviderId\": |
| | \"Company\", \"resourceId\": \"53a2b530-d2dd-407f-b103-4828a53118d5\", \"extManagedMultisiteVirtualLinkId\": \"15d0159d-01dd-4b73-a78b-a1f20e615f76\"}, {\"id\": |
| | \"4947006f-4941-4c55-94b0-ee1081c00fab\", \"vnfVirtualLinkDescId\": \"internalVL2\", \"vimConnectionId\": \"6bb975f4-387f-44d3-8cea-596b065c47c8\", \"resourceProviderId\": |
| | \"Company\", \"resourceId\": \"6ab1c324-947c-4e1c-8590-7d9e301d68bc\", \"extManagedMultisiteVirtualLinkId\": \"ec853a00-395a-488e-aa88-7c1a545cd8a5\"}], |
| | \"localizationLanguage\": \"ja\", \"additionalParams\": {\"lcm-operation-user-data\": \"./UserData/userdata_standard.py\", \"lcm-operation-user-data-class\": |
| | \"StandardUserData\"}, \"extensions\": {\"dummy-key\": \"dummy-val\"}, \"vnfConfigurableProperties\": {\"dummy-key\": \"dummy-val\"}}" |
| resourceChanges | {} |
+-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
帮助
$ openstack vnflcm op fail --help
usage: openstack vnflcm op fail [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]
[--noindent] [--prefix PREFIX] [--max-width <integer>]
[--fit-width] [--print-empty]
<vnf-lcm-op-occ-id>
Fail VNF Instance
positional arguments:
<vnf-lcm-op-occ-id>
VNF lifecycle management operation occurrence ID.
options:
-h, --help show this help message and exit
output formatters:
output formatter options
-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}
the output format, defaults to table
-c COLUMN, --column COLUMN
specify the column(s) to include, can be repeated to show multiple columns
json formatter:
--noindent whether to disable indenting the JSON
shell formatter:
a format a UNIX shell can parse (variable="value")
--prefix PREFIX
add a prefix to all variable names
table formatter:
--max-width <integer>
Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH
environment variable, but the parameter takes precedence.
--fit-width Fit the table to the display width. Implied if --max-width greater than 0. Set the
environment variable CLIFF_FIT_WIDTH=1 to always enable
--print-empty Print empty table if there is no data to show.
This command is provided by the python-tackerclient plugin.
15. 列出 LCM 操作实例¶
$ openstack vnflcm op list
结果
+--------------------------------------+-----------------+--------------------------------------+-------------+
| ID | Operation State | VNF Instance ID | Operation |
+--------------------------------------+-----------------+--------------------------------------+-------------+
| 78ad4bed-02f3-480a-a0ee-9bd07589b092 | COMPLETED | 74c71ef9-b223-4a5f-9987-de476eab122f | INSTANTIATE |
+--------------------------------------+-----------------+--------------------------------------+-------------+
帮助
$ openstack vnflcm op list --help
usage: openstack vnflcm op list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN]
[--quote {all,minimal,none,nonnumeric}] [--noindent]
[--max-width <integer>] [--fit-width] [--print-empty]
[--sort-column SORT_COLUMN] [--sort-ascending | --sort-descending]
[--filter <filter>]
[--fields <fields> | --exclude-fields <exclude-fields>]
List LCM Operation Occurrences
options:
-h, --help show this help message and exit
--filter <filter>
Attribute-based-filtering parameters
--fields <fields>
Complex attributes to be included into the response
--exclude-fields <exclude-fields>
Complex attributes to be excluded from the response
output formatters:
output formatter options
-f {csv,json,table,value,yaml}, --format {csv,json,table,value,yaml}
the output format, defaults to table
-c COLUMN, --column COLUMN
specify the column(s) to include, can be repeated to show multiple columns
--sort-column SORT_COLUMN
specify the column(s) to sort the data (columns specified first have a priority,
non-existing columns are ignored), can be repeated
--sort-ascending sort the column(s) in ascending order
--sort-descending sort the column(s) in descending order
CSV Formatter:
--quote {all,minimal,none,nonnumeric}
when to include quotes, defaults to nonnumeric
json formatter:
--noindent whether to disable indenting the JSON
table formatter:
--max-width <integer>
Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH
environment variable, but the parameter takes precedence.
--fit-width Fit the table to the display width. Implied if --max-width greater than 0. Set the
environment variable CLIFF_FIT_WIDTH=1 to always enable
--print-empty Print empty table if there is no data to show.
This command is provided by the python-tackerclient plugin.
16. 显示 LCM 操作实例¶
应将 VNF_LCM_OP_OCC_ID 替换为目标生命周期管理操作的 ID。
$ openstack vnflcm op show VNF_LCM_OP_OCC_ID
结果
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Cancel Mode | |
| Changed External Connectivity | |
| Changed Info | |
| Error | { |
| | "title": "", |
| | "status": 500, |
| | "detail": "The sample-script specified in the VNFD is inconsistent with the MgmtDriver in the configuration file." |
| | } |
| Grant ID | None |
| ID | f2c0e013-fa36-4239-b6e9-f320632944c2 |
| Is Automatic Invocation | False |
| Is Cancel Pending | False |
| Links | { |
| | "self": { |
| | "href": "https://:9890/vnflcm/v1/vnf_lcm_op_occs/f2c0e013-fa36-4239-b6e9-f320632944c2" |
| | }, |
| | "vnfInstance": { |
| | "href": "https://:9890/vnflcm/v1/vnf_instances/5f65bf54-cb06-4e9a-ac4f-b2ff0862c5f0" |
| | }, |
| | "retry": { |
| | "href": "https://:9890/vnflcm/v1/vnf_lcm_op_occs/f2c0e013-fa36-4239-b6e9-f320632944c2/retry" |
| | }, |
| | "rollback": { |
| | "href": "https://:9890/vnflcm/v1/vnf_lcm_op_occs/f2c0e013-fa36-4239-b6e9-f320632944c2/rollback" |
| | }, |
| | "grant": { |
| | "href": "https://:9890/vnflcm/v1/vnf_lcm_op_occs/f2c0e013-fa36-4239-b6e9-f320632944c2/grant" |
| | }, |
| | "fail": { |
| | "href": "https://:9890/vnflcm/v1/vnf_lcm_op_occs/f2c0e013-fa36-4239-b6e9-f320632944c2/fail" |
| | } |
| | } |
| Operation | INSTANTIATE |
| Operation Parameters | "{\"flavourId\": \"simple\", \"instantiationLevelId\": \"instantiation_level_1\", \"extVirtualLinks\": [{\"id\": \"073b1b7d-fed9-48c2-8515-f07f36e0fac6\", |
| | \"vimConnectionId\": \"6bb975f4-387f-44d3-8cea-596b065c47c8\", \"resourceProviderId\": \"Company\", \"resourceId\": \"3ee73151-4382-4bee-9344-1ee829b32969\", |
| | \"extCps\": [{\"cpdId\": \"VDU1_CP1\", \"cpConfig\": [{\"VDU1_CP1\": {\"parentCpConfigId\": \"b06c86c9-dfa8-4e3c-848c-928667d7155b\", \"cpProtocolData\": |
| | [{\"layerProtocol\": \"IP_OVER_ETHERNET\", \"ipOverEthernet\": {\"ipAddresses\": [{\"type\": \"IPV4\", \"numDynamicAddresses\": 1, \"subnetId\": |
| | \"41b13a15-558c-4022-91c4-2702e3af3266\"}]}}]}}]}]}, {\"id\": \"876050f5-86a8-42de-957d-65750c72c94c\", \"vimConnectionId\": \"6bb975f4-387f-44d3-8cea-596b065c47c8\", |
| | \"resourceProviderId\": \"Company\", \"resourceId\": \"c0bcd736-d5b1-43f5-89f6-e9cfe0015fd9\", \"extCps\": [{\"cpdId\": \"VDU1_CP2\", \"cpConfig\": [{\"VDU1_CP2\": |
| | {\"parentCpConfigId\": \"08e2a40f-26f1-45e6-adec-682006c8c02a\", \"cpProtocolData\": [{\"layerProtocol\": \"IP_OVER_ETHERNET\", \"ipOverEthernet\": {\"ipAddresses\": |
| | [{\"type\": \"IPV4\", \"numDynamicAddresses\": 1, \"subnetId\": \"a7a1552b-c78b-403c-b1eb-7f98446a24d2\"}]}}]}}]}, {\"cpdId\": \"VDU2_CP2\", \"cpConfig\": |
| | [{\"VDU2_CP2\": {\"parentCpConfigId\": \"bd74eb08-2165-4921-9bbd-967ede4c9f1f\", \"cpProtocolData\": [{\"layerProtocol\": \"IP_OVER_ETHERNET\", \"ipOverEthernet\": |
| | {\"macAddress\": \"fa:16:3e:fa:22:75\", \"ipAddresses\": [{\"type\": \"IPV4\", \"fixedAddresses\": [\"100.100.100.11\"], \"subnetId\": |
| | \"a7a1552b-c78b-403c-b1eb-7f98446a24d2\"}, {\"type\": \"IPV6\", \"numDynamicAddresses\": 1, \"subnetId\": \"70129667-f3e9-4b3f-9e4f-bff5c3887d7f\"}]}}]}}]}]}], |
| | \"extManagedVirtualLinks\": [{\"id\": \"97d23d57-a375-4727-ab43-8df097251cd2\", \"vnfVirtualLinkDescId\": \"internalVL1\", \"vimConnectionId\": |
| | \"6bb975f4-387f-44d3-8cea-596b065c47c8\", \"resourceProviderId\": \"Company\", \"resourceId\": \"53a2b530-d2dd-407f-b103-4828a53118d5\", |
| | \"extManagedMultisiteVirtualLinkId\": \"15d0159d-01dd-4b73-a78b-a1f20e615f76\"}, {\"id\": \"4947006f-4941-4c55-94b0-ee1081c00fab\", \"vnfVirtualLinkDescId\": |
| | \"internalVL2\", \"vimConnectionId\": \"6bb975f4-387f-44d3-8cea-596b065c47c8\", \"resourceProviderId\": \"Company\", \"resourceId\": |
| | \"6ab1c324-947c-4e1c-8590-7d9e301d68bc\", \"extManagedMultisiteVirtualLinkId\": \"ec853a00-395a-488e-aa88-7c1a545cd8a5\"}], \"localizationLanguage\": \"ja\", |
| | \"additionalParams\": {\"lcm-operation-user-data\": \"./UserData/userdata_standard.py\", \"lcm-operation-user-data-class\": \"StandardUserData\"}, \"extensions\": |
| | {\"dummy-key\": \"dummy-val\"}, \"vnfConfigurableProperties\": {\"dummy-key\": \"dummy-val\"}}" |
| Operation State | FAILED_TEMP |
| Resource Changes | |
| Start Time | 2024-05-15 07:07:04+00:00 |
| State Entered Time | 2024-05-15 07:07:04+00:00 |
| VNF Instance ID | 5f65bf54-cb06-4e9a-ac4f-b2ff0862c5f0 |
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
帮助
$ openstack vnflcm op show --help
usage: openstack vnflcm op show [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]
[--noindent] [--prefix PREFIX] [--max-width <integer>]
[--fit-width] [--print-empty]
<vnf-lcm-op-occ-id>
Display Operation Occurrence details
positional arguments:
<vnf-lcm-op-occ-id>
VNF lifecycle management operation occurrence ID.
options:
-h, --help show this help message and exit
output formatters:
output formatter options
-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}
the output format, defaults to table
-c COLUMN, --column COLUMN
specify the column(s) to include, can be repeated to show multiple columns
json formatter:
--noindent whether to disable indenting the JSON
shell formatter:
a format a UNIX shell can parse (variable="value")
--prefix PREFIX
add a prefix to all variable names
table formatter:
--max-width <integer>
Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH
environment variable, but the parameter takes precedence.
--fit-width Fit the table to the display width. Implied if --max-width greater than 0. Set the
environment variable CLIFF_FIT_WIDTH=1 to always enable
--print-empty Print empty table if there is no data to show.
This command is provided by the python-tackerclient plugin.
17. 创建 Lccn 订阅¶
应将 SAMPLE_PARAM_FILE.json 替换为用于创建 Lccn 订阅的参数 json 文件的路径。
$ openstack vnflcm subsc create SAMPLE_PARAM_FILE.json
结果
+--------------+------------------------------------------------------------------------------------------------------+
| Field | Value |
+--------------+------------------------------------------------------------------------------------------------------+
| Callback URI | https://:9990/notification/callback/test |
| Filter | { |
| | "vnfInstanceSubscriptionFilter": { |
| | "vnfProductsFromProviders": [ |
| | { |
| | "vnfProvider": "Company", |
| | "vnfProducts": [ |
| | { |
| | "vnfProductName": "Sample VNF", |
| | "versions": [ |
| | { |
| | "vnfSoftwareVersion": "1.0", |
| | "vnfdVersions": [ |
| | "1.0" |
| | ] |
| | } |
| | ] |
| | } |
| | ] |
| | } |
| | ] |
| | }, |
| | "notificationTypes": [ |
| | "VnfLcmOperationOccurrenceNotification", |
| | "VnfIdentifierCreationNotification", |
| | "VnfIdentifierDeletionNotification" |
| | ], |
| | "operationTypes": [ |
| | "INSTANTIATE", |
| | "SCALE", |
| | "TERMINATE", |
| | "HEAL", |
| | "MODIFY_INFO", |
| | "CHANGE_EXT_CONN" |
| | ], |
| | "operationStates": [ |
| | "STARTING" |
| | ] |
| | } |
| ID | 9926b5a9-9ae7-4068-a77d-20c108d7b91d |
| Links | { |
| | "self": { |
| | "href": "https://:9890/vnflcm/v1/subscriptions/9926b5a9-9ae7-4068-a77d-20c108d7b91d" |
| | } |
| | } |
+--------------+------------------------------------------------------------------------------------------------------+
帮助
$ openstack vnflcm subsc create --help
usage: openstack vnflcm subsc create [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]
[--noindent] [--prefix PREFIX] [--max-width <integer>]
[--fit-width] [--print-empty]
<param-file>
Create a new Lccn Subscription
positional arguments:
<param-file> Specify create request parameters in a json file.
options:
-h, --help show this help message and exit
output formatters:
output formatter options
-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}
the output format, defaults to table
-c COLUMN, --column COLUMN
specify the column(s) to include, can be repeated to show multiple columns
json formatter:
--noindent whether to disable indenting the JSON
shell formatter:
a format a UNIX shell can parse (variable="value")
--prefix PREFIX
add a prefix to all variable names
table formatter:
--max-width <integer>
Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH
environment variable, but the parameter takes precedence.
--fit-width Fit the table to the display width. Implied if --max-width greater than 0. Set the
environment variable CLIFF_FIT_WIDTH=1 to always enable
--print-empty Print empty table if there is no data to show.
This command is provided by the python-tackerclient plugin.
18. 列出 Lccn 订阅¶
$ openstack vnflcm subsc list
结果
+--------------------------------------+--------------------------------------------------+
| ID | Callback URI |
+--------------------------------------+--------------------------------------------------+
| 9926b5a9-9ae7-4068-a77d-20c108d7b91d | https://:9990/notification/callback/test |
+--------------------------------------+--------------------------------------------------+
帮助
$ openstack vnflcm subsc list --help
usage: openstack vnflcm subsc list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN]
[--quote {all,minimal,none,nonnumeric}] [--noindent]
[--max-width <integer>] [--fit-width] [--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending] [--filter <filter>]
List Lccn Subscriptions
options:
-h, --help show this help message and exit
--filter <filter>
Attribute-based-filtering parameters
output formatters:
output formatter options
-f {csv,json,table,value,yaml}, --format {csv,json,table,value,yaml}
the output format, defaults to table
-c COLUMN, --column COLUMN
specify the column(s) to include, can be repeated to show multiple columns
--sort-column SORT_COLUMN
specify the column(s) to sort the data (columns specified first have a priority,
non-existing columns are ignored), can be repeated
--sort-ascending sort the column(s) in ascending order
--sort-descending sort the column(s) in descending order
CSV Formatter:
--quote {all,minimal,none,nonnumeric}
when to include quotes, defaults to nonnumeric
json formatter:
--noindent whether to disable indenting the JSON
table formatter:
--max-width <integer>
Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH
environment variable, but the parameter takes precedence.
--fit-width Fit the table to the display width. Implied if --max-width greater than 0. Set the
environment variable CLIFF_FIT_WIDTH=1 to always enable
--print-empty Print empty table if there is no data to show.
This command is provided by the python-tackerclient plugin.
19. 显示 Lccn 订阅¶
应将 LCCN_SUBSCRIPTION_ID 替换为 Lccn 订阅的 ID。
$ openstack vnflcm subsc show LCCN_SUBSCRIPTION_ID
结果
+--------------+------------------------------------------------------------------------------------------------------+
| Field | Value |
+--------------+------------------------------------------------------------------------------------------------------+
| Callback URI | https://:9990/notification/callback/test |
| Filter | { |
| | "operationTypes": [ |
| | "INSTANTIATE", |
| | "SCALE", |
| | "TERMINATE", |
| | "HEAL", |
| | "MODIFY_INFO", |
| | "CHANGE_EXT_CONN" |
| | ], |
| | "operationStates": [ |
| | "STARTING" |
| | ], |
| | "notificationTypes": [ |
| | "VnfLcmOperationOccurrenceNotification", |
| | "VnfIdentifierCreationNotification", |
| | "VnfIdentifierDeletionNotification" |
| | ], |
| | "vnfInstanceSubscriptionFilter": { |
| | "vnfProductsFromProviders": [ |
| | { |
| | "vnfProvider": "Company", |
| | "vnfProducts": [ |
| | { |
| | "vnfProductName": "Sample VNF", |
| | "versions": [ |
| | { |
| | "vnfSoftwareVersion": "1.0", |
| | "vnfdVersions": [ |
| | "1.0" |
| | ] |
| | } |
| | ] |
| | } |
| | ] |
| | } |
| | ] |
| | } |
| | } |
| ID | 9926b5a9-9ae7-4068-a77d-20c108d7b91d |
| Links | { |
| | "self": { |
| | "href": "https://:9890/vnflcm/v1/subscriptions/9926b5a9-9ae7-4068-a77d-20c108d7b91d" |
| | } |
| | } |
+--------------+------------------------------------------------------------------------------------------------------+
帮助
$ openstack vnflcm subsc show --help
usage: openstack vnflcm subsc show [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]
[--noindent] [--prefix PREFIX] [--max-width <integer>]
[--fit-width] [--print-empty]
<subscription-id>
Display Lccn Subscription details
positional arguments:
<subscription-id>
Lccn Subscription ID to display
options:
-h, --help show this help message and exit
output formatters:
output formatter options
-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}
the output format, defaults to table
-c COLUMN, --column COLUMN
specify the column(s) to include, can be repeated to show multiple columns
json formatter:
--noindent whether to disable indenting the JSON
shell formatter:
a format a UNIX shell can parse (variable="value")
--prefix PREFIX
add a prefix to all variable names
table formatter:
--max-width <integer>
Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH
environment variable, but the parameter takes precedence.
--fit-width Fit the table to the display width. Implied if --max-width greater than 0. Set the
environment variable CLIFF_FIT_WIDTH=1 to always enable
--print-empty Print empty table if there is no data to show.
This command is provided by the python-tackerclient plugin.
20. 删除 Lccn 订阅¶
应将 LCCN_SUBSCRIPTION_ID 替换为 Lccn 订阅的 ID。
$ openstack vnflcm delete LCCN_SUBSCRIPTION_ID
结果
Lccn Subscription '9926b5a9-9ae7-4068-a77d-20c108d7b91d' is deleted successfully
帮助
$ openstack vnflcm subsc delete --help
usage: openstack vnflcm subsc delete [-h] <subscription-id> [<subscription-id> ...]
Delete Lccn Subscription(s)
positional arguments:
<subscription-id>
Lccn Subscription ID(s) to delete
options:
-h, --help show this help message and exit
This command is provided by the python-tackerclient plugin.
21. 显示 VNF LCM API 版本¶
$ openstack vnflcm versions
结果
$ openstack vnflcm versions
+-------------+--------------------------------------------------------------------------------------------+
| Field | Value |
+-------------+--------------------------------------------------------------------------------------------+
| uriPrefix | /vnflcm |
| apiVersions | [{'version': '1.3.0', 'isDeprecated': False}, {'version': '2.0.0', 'isDeprecated': False}] |
+-------------+--------------------------------------------------------------------------------------------+
注意
使用 --major-version 1 选项运行命令仅显示 v1 Tacker 的版本。
$ openstack vnflcm versions --major-version 1
+-------------+-----------------------------------------------+
| Field | Value |
+-------------+-----------------------------------------------+
| uriPrefix | /vnflcm/v1 |
| apiVersions | [{'version': '1.3.0', 'isDeprecated': False}] |
+-------------+-----------------------------------------------+
帮助
$ openstack vnflcm versions --help
usage: openstack vnflcm versions [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]
[--noindent] [--prefix PREFIX] [--max-width <integer>]
[--fit-width] [--print-empty] [--major-version <major-version>]
Show VnfLcm Api versions
options:
-h, --help show this help message and exit
--major-version <major-version>
Show only specify major version.
output formatters:
output formatter options
-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}
the output format, defaults to table
-c COLUMN, --column COLUMN
specify the column(s) to include, can be repeated to show multiple columns
json formatter:
--noindent whether to disable indenting the JSON
shell formatter:
a format a UNIX shell can parse (variable="value")
--prefix PREFIX
add a prefix to all variable names
table formatter:
--max-width <integer>
Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH
environment variable, but the parameter takes precedence.
--fit-width Fit the table to the display width. Implied if --max-width greater than 0. Set the
environment variable CLIFF_FIT_WIDTH=1 to always enable
--print-empty Print empty table if there is no data to show.
This command is provided by the python-tackerclient plugin.