From: mpany Date: Wed, 11 Jul 2018 16:43:05 +0000 (+0530) Subject: Add new keywords in VpnOperations robot file. X-Git-Tag: pre-potassium~684 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=50fcf31fb33d0542c52f14b4239d7793dfe03d47;p=integration%2Ftest.git Add new keywords in VpnOperations robot file. Change-Id: I625c08030725038d635317c1aa1dc7ae711c7f55 Signed-off-by: mpany --- diff --git a/csit/libraries/VpnOperations.robot b/csit/libraries/VpnOperations.robot index fe705bd682..6d1c72308c 100644 --- a/csit/libraries/VpnOperations.robot +++ b/csit/libraries/VpnOperations.robot @@ -61,11 +61,27 @@ VPN Get L3VPN ID ${vpn_id_hex} = BuiltIn.Convert To Hex ${result} [Return] ${vpn_id_hex.lower()} +Verify L3VPN On ODL + [Arguments] @{vpns} + [Documentation] To verify L3VPN on ODL for given vpn ids + : FOR ${vpn} IN @{vpns} + \ ${resp} = VpnOperations.VPN Get L3VPN vpnid=${vpn} + \ BuiltIn.Should Contain ${resp} ${vpn} + Associate L3VPN To Network [Arguments] &{Kwargs} [Documentation] Associate the created L3VPN to a network-id received as dictionary argument TemplatedRequests.Post_As_Json_Templated folder=${VAR_BASE}/assoc_l3vpn mapping=${Kwargs} session=default http_timeout=${SESSION_TIMEOUT} +Associate L3VPNs To Networks + [Arguments] ${vpnid_list} ${network_list} + [Documentation] Associates multiple networks to L3VPN and verify the same + : FOR ${network} ${vpnid} IN ZIP ${network_list} ${vpnid_list} + \ ${network_id} = OpenStackOperations.Get Net Id ${network} + \ VpnOperations.Associate L3VPN To Network networkid=${network_id} vpnid=${vpnid} + \ ${resp} = VpnOperations.VPN Get L3VPN vpnid=${vpnid} + \ BuiltIn.Should Contain ${resp} ${network_id} + Dissociate L3VPN From Networks [Arguments] &{Kwargs} [Documentation] Disssociate the already associated networks from L3VPN