X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=RO-VIM-fos%2Fosm_rovim_fos%2Fvimconn_fos.py;h=b2795d8123548f928ab7a5d19e12b2394e466a09;hb=refs%2Fchanges%2F34%2F8234%2F3;hp=90b0e7ecf0f56b0f86e0fb242a2341fc87dd41b2;hpb=7d782eff123e5b44d41437377ccca66ad1e8b21b;p=osm%2FRO.git diff --git a/RO-VIM-fos/osm_rovim_fos/vimconn_fos.py b/RO-VIM-fos/osm_rovim_fos/vimconn_fos.py index 90b0e7ec..b2795d81 100644 --- a/RO-VIM-fos/osm_rovim_fos/vimconn_fos.py +++ b/RO-VIM-fos/osm_rovim_fos/vimconn_fos.py @@ -37,7 +37,7 @@ __date__ ="$13-may-2019 10:35:12$" import uuid import socket import struct -from . import vimconn +from osm_ro import vimconn import random import yaml from functools import partial @@ -110,7 +110,7 @@ class vimconnector(vimconn.vimconnector): except Exception as e: raise vimconn.vimconnConnectionException("VIM not reachable. Error {}".format(e)) - def new_network(self, net_name, net_type, ip_profile=None, shared=False, vlan=None): + def new_network(self, net_name, net_type, ip_profile=None, shared=False, provider_network_profile=None): """Adds a tenant network to VIM Params: 'net_name': name of the network @@ -127,7 +127,6 @@ class vimconnector(vimconn.vimconnector): 'dhcp_start_address': ip_schema, first IP to grant 'dhcp_count': number of IPs to grant. 'shared': if this network can be seen/use by other tenants/organization - 'vlan': in case of a data or ptp net_type, the intended vlan tag to be used for the network Returns the network identifier on success or raises and exception on failure """ self.logger.debug('new_network: {}'.format(locals())) @@ -165,7 +164,7 @@ class vimconnector(vimconn.vimconnector): except Exception as e: raise vimconn.vimconnException("Unable to create network {}. Error {}".format(net_name, e)) # No way from the current rest service to get the actual error, most likely it will be an already existing error - return net_uuid + return net_uuid,{} def get_network_list(self, filter_dict={}): """Obtain tenant networks of VIM @@ -234,7 +233,7 @@ class vimconnector(vimconn.vimconnector): raise vimconn.vimconnNotFoundException("Network {} not found at VIM".format(net_id)) return res[0] - def delete_network(self, net_id): + def delete_network(self, net_id, created_items=None): """Deletes a tenant network from VIM Returns the network identifier or raises an exception upon error or when network is not found """