X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=rwlaunchpad%2Fplugins%2Frwvns%2Fvala%2Frwsdn_odl%2Frwsdn_odl.py;fp=rwlaunchpad%2Fplugins%2Frwvns%2Fvala%2Frwsdn_odl%2Frwsdn_odl.py;h=2727d8a4d1cdf60e634f621af2ec6c5636dd78df;hb=7b75903dd891795d4426612fd4de76c0f51cf17e;hp=3eb39fcd611cff87861f470d9e1f41ea5ab3bd52;hpb=3fdf6a93baec6d042f79a44973a3d21ddf37bafc;p=osm%2FSO.git diff --git a/rwlaunchpad/plugins/rwvns/vala/rwsdn_odl/rwsdn_odl.py b/rwlaunchpad/plugins/rwvns/vala/rwsdn_odl/rwsdn_odl.py index 3eb39fcd..2727d8a4 100644 --- a/rwlaunchpad/plugins/rwvns/vala/rwsdn_odl/rwsdn_odl.py +++ b/rwlaunchpad/plugins/rwvns/vala/rwsdn_odl/rwsdn_odl.py @@ -26,7 +26,7 @@ import time import gi gi.require_version('RwTypes', '1.0') -gi.require_version('RwsdnYang', '1.0') +gi.require_version('RwsdnalYang', '1.0') gi.require_version('RwSdn', '1.0') gi.require_version('RwTopologyYang','1.0') @@ -34,7 +34,7 @@ from gi.repository import ( GObject, RwSdn, # Vala package RwTypes, - RwsdnYang, + RwsdnalYang, RwTopologyYang as RwTl, ) @@ -336,7 +336,7 @@ class SdnOdl(object): """ Validate the SDN account credentials by accessing the rest API using the provided credentials """ - status = RwsdnYang.SdnConnectionStatus() + status = RwsdnalYang.SdnConnectionStatus() url = '{}/{}'.format(account.odl.url,"restconf") try: r=requests.get(url,auth=(account.odl.username,account.odl.password)) @@ -354,7 +354,6 @@ class SdnOdl(object): status.status = "failure" status.details = "Connection Failed (Invlaid URL): %s" % str(e) else: - print("SDN Successfully connected") status.status = "success" status.details = "Connection was successful" @@ -935,7 +934,7 @@ class SdnOdl(object): self.delete_all_sf(account) def _fill_rsp_list(self,sfc_rsp_list,sff_list): - vnffg_rsps = RwsdnYang.VNFFGRenderedPaths() + vnffg_rsps = RwsdnalYang.VNFFGRenderedPaths() for sfc_rsp in sfc_rsp_list['rendered-service-paths']['rendered-service-path']: rsp = vnffg_rsps.vnffg_rendered_path.add() rsp.name = sfc_rsp['name']