Updated deprecated command-line osm commands: vnfd-, nsd-
[osm/tests.git] / robot-systest / lib / nsd_lib.robot
index c7ebbe7..884ba6d 100644 (file)
@@ -34,7 +34,7 @@ ${delete_pol_time}   15sec
 
 *** Keywords ***
 Get NSDs List
-    ${rc}   ${stdout}=   Run and Return RC and Output   osm nsd-list
+    ${rc}   ${stdout}=   Run and Return RC and Output   osm nspkg-list
     log   ${stdout}
     Should Be Equal As Integers   ${rc}   ${success_return_code}
 
@@ -42,7 +42,7 @@ Get NSDs List
 Create NSD
     [Arguments]   ${nsd_pkg}
 
-    ${rc}   ${stdout}=   Run and Return RC and Output   osm nsd-create ${nsd_pkg}
+    ${rc}   ${stdout}=   Run and Return RC and Output   osm nspkg-create ${nsd_pkg}
     log   ${stdout}
     Should Be Equal As Integers   ${rc}   ${success_return_code}
     ${lines}=  Get Line Count  ${stdout}
@@ -54,7 +54,7 @@ Create NSD
 Delete NSD
     [Arguments]   ${nsd_id}
 
-    ${rc}   ${stdout}=   Run Keyword And Continue On Failure   Run and Return RC and Output   osm nsd-delete ${nsd_id}
+    ${rc}   ${stdout}=   Run Keyword And Continue On Failure   Run and Return RC and Output   osm nspkg-delete ${nsd_id}
     Should Be Equal As Integers   ${rc}   ${success_return_code}
     log   ${stdout}
     WAIT UNTIL KEYWORD SUCCEEDS   ${delete_max_wait_time}   ${delete_pol_time}   Check For NSD   ${nsd_id}
@@ -63,5 +63,5 @@ Delete NSD
 Check For NSD
     [Arguments]   ${nsd_id}
 
-    ${rc}   ${stdout}=   Run and Return RC and Output   osm nsd-list | awk '{print $2}' | grep ${nsd_id}
+    ${rc}   ${stdout}=   Run and Return RC and Output   osm nspkg-list | awk '{print $2}' | grep ${nsd_id}
     Should Not Be Equal As Strings   ${stdout}   ${nsd_id}