X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=csit%2Flibraries%2FOpenStackOperations.robot;h=6e24ffc459bc06609f760bae7b025372edfe32aa;hb=b4f07ed4d8101ece59be832d01e966e878ce4a3f;hp=a1ca371ac6ffdbe3cb6e52688663dce5a6c8668e;hpb=619f0f84ff8af78bd8379fd2b0d8a6a8e28222b8;p=integration%2Ftest.git diff --git a/csit/libraries/OpenStackOperations.robot b/csit/libraries/OpenStackOperations.robot index a1ca371ac6..6e24ffc459 100644 --- a/csit/libraries/OpenStackOperations.robot +++ b/csit/libraries/OpenStackOperations.robot @@ -1332,3 +1332,16 @@ Set Instance Quota For Project [Documentation] Set quota for the created instances using the specific project id. ${output} = OpenStack CLI openstack quota set --instances ${num_instances} ${project_id} [Return] ${output} + +Create Bgpvpn + [Arguments] ${vpnname} ${additional_args}=${EMPTY} + [Documentation] Create Bgpvpn with neutron request. + ${output} = OpenStack CLI openstack bgpvpn create --name ${vpnname} ${additional_args} + +Get BgpVpn Id + [Arguments] ${vpnName} + [Documentation] Retrieve the bgpvpn id for the given bgpvpn name + ${output} = OpenStack CLI OperatingSystem.Run And Return Rc And Output openstack bgpvpn show ${vpnName} | grep " ID" | awk '{print $4}' + ${splitted_output}= String.Split String ${output} ${EMPTY} + ${vpn_id}= Collections.Get from List ${splitted_output} 0 + [Return] ${vpn_id}