Feature 10978: add tests for ipv6 profiles in vnfd and nsd
[osm/tests.git] / robot-systest / lib / openstack_lib.robot
index 80bc22b..b95b0c3 100644 (file)
@@ -147,6 +147,17 @@ Delete Volume
     [Return]   ${stdout}
 
 
+Get Subnet
+    [Documentation]   Get subnet information in JSON format
+    [Arguments]   ${subnet_id}
+
+    Should Not Be Empty   ${subnet_id}
+    ${rc}   ${stdout}=   Run and Return RC and Output   openstack subnet show ${subnet_id} -f json
+    Log   ${stdout}
+    Should Be Equal As Integers   ${rc}   ${success_return_code}
+    [Return]   ${stdout}
+
+
 Stop Server
     [Documentation]   Stop a server
     [Arguments]   ${server_id}