"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tacker/vnfm/infra_drivers/abstract_driver.py" between
tacker-4.0.0.tar.gz and tacker-5.0.0.tar.gz

About: OpenStack Tacker builds an Open NFV Orchestrator with in-built general purpose VNF Manager to deploy and operate Virtual Network Functions (VNFs) on an NFV Platform.
The "Wallaby" series (latest release).

abstract_driver.py  (tacker-4.0.0):abstract_driver.py  (tacker-5.0.0)
skipping to change at line 19 skipping to change at line 19
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import abc import abc
import six
from tacker.api import extensions from tacker.api import extensions
@six.add_metaclass(abc.ABCMeta) class VnfAbstractDriver(extensions.PluginInterface, metaclass=abc.ABCMeta):
class VnfAbstractDriver(extensions.PluginInterface):
@abc.abstractmethod @abc.abstractmethod
def get_type(self): def get_type(self):
"""Return one of predefined type of the hosting vnf drivers.""" """Return one of predefined type of the hosting vnf drivers."""
pass pass
@abc.abstractmethod @abc.abstractmethod
def get_name(self): def get_name(self):
"""Return a symbolic name for the service VM plugin.""" """Return a symbolic name for the service VM plugin."""
pass pass
skipping to change at line 102 skipping to change at line 99
pass pass
@abc.abstractmethod @abc.abstractmethod
def instantiate_vnf(self, context, vnf_instance, vnfd_dict, def instantiate_vnf(self, context, vnf_instance, vnfd_dict,
vim_connection_info, instantiate_vnf_req, vim_connection_info, instantiate_vnf_req,
grant_response): grant_response):
pass pass
@abc.abstractmethod @abc.abstractmethod
def post_vnf_instantiation(self, context, vnf_instance, def post_vnf_instantiation(self, context, vnf_instance,
vim_connection_info): vim_connection_info, instantiate_vnf_req):
pass pass
@abc.abstractmethod @abc.abstractmethod
def heal_vnf(self, context, vnf_instance, vim_connection_info, def heal_vnf(self, context, vnf_instance, vim_connection_info,
heal_vnf_request): heal_vnf_request):
"""Heal vnf """Heal vnf
:param context: A RequestContext :param context: A RequestContext
:param vnf_instance: tacker.objects.VnfInstance to be healed :param vnf_instance: tacker.objects.VnfInstance to be healed
:vim_info: Credentials to initialize Vim connection :vim_info: Credentials to initialize Vim connection
:heal_vnf_request: tacker.objects.HealVnfRequest object containing :heal_vnf_request: tacker.objects.HealVnfRequest object containing
parameters passed in the heal request parameters passed in the heal request
""" """
pass pass
@abc.abstractmethod @abc.abstractmethod
def heal_vnf_wait(self, context, vnf_instance, vim_connection_info): def heal_vnf_wait(self, context, vnf_instance, vim_connection_info,
heal_vnf_request):
"""Check vnf is healed successfully""" """Check vnf is healed successfully"""
pass pass
@abc.abstractmethod @abc.abstractmethod
def post_heal_vnf(self, context, vnf_instance, vim_connection_info, def post_heal_vnf(self, context, vnf_instance, vim_connection_info,
heal_vnf_request): heal_vnf_request):
"""Update resource_id for each vnfc resources """Update resource_id for each vnfc resources
:param context: A RequestContext :param context: A RequestContext
:param vnf_instance: tacker.objects.VnfInstance to be healed :param vnf_instance: tacker.objects.VnfInstance to be healed
:vim_info: Credentials to initialize Vim connection :vim_info: Credentials to initialize Vim connection
:heal_vnf_request: tacker.objects.HealVnfRequest object containing :heal_vnf_request: tacker.objects.HealVnfRequest object containing
parameters passed in the heal request parameters passed in the heal request
""" """
pass pass
@abc.abstractmethod
def change_ext_conn_vnf(self, context, vnf_instance, vnf_dict,
vim_connection_info, change_ext_conn_req):
"""Change external VNF connectivity
:param context: A RequestContext
:param vnf_instance: tacker.objects.VnfInstance to be changed
:param vnf_dict:
:param vim_connection_info: Credentials to initialize Vim connection
:param change_ext_conn_req: tacker.objects.ChangeExtconnRequest object
containing parameters passed in the
change_ext_conn request
"""
pass
@abc.abstractmethod
def change_ext_conn_vnf_wait(self, context, vnf_instance,
vim_connection_info):
"""Check vnf external connnectivity is changed successfully"""
pass
@abc.abstractmethod
def post_change_ext_conn_vnf(self, context, vnf_instance,
vim_connection_info):
"""Update resource information for each external VL/LINKPORT resources
:param context: A RequestContext
:param vnf_instance: tacker.objects.VnfInstance to be changed
:param vim_connection_info: Credentials to initialize Vim connection
"""
pass
 End of changes. 5 change blocks. 
6 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)