From 44bf8f595b78730085f2e2d4e780c10971536cf3 Mon Sep 17 00:00:00 2001 From: LiangLu Date: Mon, 5 Apr 2021 16:32:00 +0800 Subject: [PATCH] Add new inherited methods for kubernetes_mgmt 2 new methods are added at last time merge of Wallaby release in vnflcm_abstract_driver.py. * change_external_connectivity_start() * change_external_connectivity_end() (tacker/vnfm/mgmt_drivers/vnflcm_abstract_driver.py#L88) In kubernetes_mgmt.py, (sample/mgmt_drivers/kubernetes_mgmt.py) we inherited VnflcmAbstractDriver thus we also needed to implements these 2 methods here. Due to we don't have these interfaces here, I updated empty methods for clear runtime error. Change-Id: I9f918ceff9882da1bff4b1cc953602a3b84aec0c --- samples/mgmt_driver/kubernetes_mgmt.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/samples/mgmt_driver/kubernetes_mgmt.py b/samples/mgmt_driver/kubernetes_mgmt.py index 13caaed6a..27a45472f 100644 --- a/samples/mgmt_driver/kubernetes_mgmt.py +++ b/samples/mgmt_driver/kubernetes_mgmt.py @@ -1934,3 +1934,15 @@ class KubernetesMgmtDriver(vnflcm_abstract_driver.VnflcmMgmtAbstractDriver): master_username, master_password, vnf_package_path, worker_resource_name, worker_username, worker_password, cluster_resource_name, master_node, worker_node) + + def change_external_connectivity_start( + self, context, vnf_instance, + change_ext_conn_request, grant, + grant_request, **kwargs): + pass + + def change_external_connectivity_end( + self, context, vnf_instance, + change_ext_conn_request, grant, + grant_request, **kwargs): + pass