X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=common%2Fplugins%2Frwcntmgrtasklet%2Frift%2Ftasklets%2Frwcntmgrtasklet%2Frwcntmgrtasklet.py;h=7a9bc6e9257708bda194ad2ebadce3d969462f66;hb=f314b4af9744068a7ed7a6a6314220c3aa857523;hp=02714a50c3ec97c15cf26b0cc88b74a5e0f5fa88;hpb=6f1a3fe149e4a6b9803382cb299c902f4cf58ec9;p=osm%2FSO.git diff --git a/common/plugins/rwcntmgrtasklet/rift/tasklets/rwcntmgrtasklet/rwcntmgrtasklet.py b/common/plugins/rwcntmgrtasklet/rift/tasklets/rwcntmgrtasklet/rwcntmgrtasklet.py index 02714a50..7a9bc6e9 100755 --- a/common/plugins/rwcntmgrtasklet/rift/tasklets/rwcntmgrtasklet/rwcntmgrtasklet.py +++ b/common/plugins/rwcntmgrtasklet/rift/tasklets/rwcntmgrtasklet/rwcntmgrtasklet.py @@ -177,7 +177,7 @@ class ResourceProvisioning(object): ResourceProvisioning.cal_interface = plugin.get_interface("Cloud") ResourceProvisioning.cal_interface.init(ResourceProvisioning.log_hdl) - self.account = RwcalYang.CloudAccount() + self.account = RwcalYang.YangData_RwProject_Project_CloudAccounts_CloudAccountList() self.account.account_type = "cloudsim_proxy" self.account.cloudsim_proxy.host = "192.168.122.1" @@ -218,7 +218,7 @@ class ResourceProvisioning(object): def create_image(self, location): """Creates and returns a CAL image""" - image = RwcalYang.ImageInfoItem() + image = RwcalYang.YangData_RwProject_Project_VimResources_ImageinfoList() image.name = "rift-lxc-image" image.location = location image.disk_format = "qcow2" @@ -228,7 +228,7 @@ class ResourceProvisioning(object): def create_network(self, network_name, subnet): """Creates and returns a CAL network""" - network = RwcalYang.NetworkInfoItem( + network = RwcalYang.YangData_RwProject_Project_VimResources_NetworkinfoList( network_name=network_name, subnet=subnet, ) @@ -246,7 +246,7 @@ class ResourceProvisioning(object): A VM object """ - vm = RwcalYang.VMInfoItem() + vm = RwcalYang.YangData_RwProject_Project_VimResources_VminfoList() vm.vm_name = 'rift-s{}'.format(index + 1) vm.image_id = image.id vm.user_tags.node_id = str(uuid.uuid4()) @@ -322,7 +322,7 @@ class ResourceProvisioning(object): Returns a port object """ - port = RwcalYang.PortInfoItem() + port = RwcalYang.YangData_RwProject_Project_VimResources_PortinfoList() port.port_name = "eth1" port.network_id = network.network_id port.vm_id = vm.vm_id