New feature: Support rooted descriptors and descriptors under project
[osm/SO.git] / rwlaunchpad / ra / pytest / test_failover.py
index 40dd7d0..e952b69 100755 (executable)
@@ -27,7 +27,7 @@ import argparse
 import subprocess
 
 import gi
-from gi.repository import RwVnfdYang
+from gi.repository import RwProjectVnfdYang as RwVnfdYang
 from gi.repository import RwVnfrYang
 
 import rift.auto.proxy
@@ -60,7 +60,7 @@ def yield_vnfd_vnfr_pairs(proxy, nsr=None):
             if vnfr.id not in const_vnfr_ids:
                 continue
 
-        vnfd = get_vnfd(vnfr.vnfd_ref)
+        vnfd = get_vnfd(vnfr.vnfd.id)
         yield vnfd, vnfr
 
 def check_configuration_on_standby(standby_ip):