nfv/nfv/nfv-vim/nfv_vim/nfvi/objects/v1/_service_host.py

16 lines
389 B
Python
Executable File

#
# Copyright (c) 2015-2016 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
from nfv_vim.nfvi.objects.v1._object import ObjectData
class ServiceHost(ObjectData):
"""
NFVI Service Host Object
"""
def __init__(self, name, service, zone):
super(ServiceHost, self).__init__('1.0.0')
self.update(dict(name=name, service=service, zone=zone))