tacker/tacker/conf/vnf_lcm.py
Aldinson Esto 943e0b0815 Support Client Notification Endpoint Test
This functionality will enable tacker to test the
notification during register Subscription.

if VNFM cannot  receive success response
(204 no content), VNFM will be failed Subscription
Request

  - As sending management of this API, we apply
    legacy CONF.
    (retry_num,retry_wait, there are defined in
    vnf_lcm group.)

  - As sending control of this API, we add new
    CONF(test_callback_uri)

  - We modify(add) Notification(GET) process to
    current send_notification.

Implements: blueprint support-fundamental-lcm
Spec: https://specs.openstack.org/openstack/tacker-specs/specs/wallaby/support-fundamental-vnf-lcm-based-on-ETSI-NFV.html
Change-Id: I2a1db1b34b687748ad939b0c867b2d78f45622da
2021-03-26 14:19:53 +09:00

56 lines
1.5 KiB
Python

# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from oslo_config import cfg
CONF = cfg.CONF
OPTS = [
cfg.StrOpt(
'endpoint_url',
default='http://localhost:9890/',
help="endpoint_url"),
cfg.IntOpt(
'subscription_num',
default=100,
help="Number of subscriptions"),
cfg.IntOpt(
'retry_num',
default=3,
help="Number of retry"),
cfg.IntOpt(
'retry_wait',
default=10,
help="Retry interval(sec)"),
cfg.IntOpt(
'retry_timeout',
default=10,
help="Retry Timeout(sec)"),
cfg.BoolOpt(
'test_callback_uri',
default=True,
help="Test callbackUri")]
vnf_lcm_group = cfg.OptGroup('vnf_lcm',
title='vnf_lcm options',
help="Vnflcm options group")
def register_opts(conf):
conf.register_group(vnf_lcm_group)
conf.register_opts(OPTS, group=vnf_lcm_group)
def list_opts():
return {vnf_lcm_group: OPTS}