From e372d86817a2cf97e6f2bcc7be9aa09be96e1940 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20L=C3=B3pez?= Date: Tue, 29 Nov 2016 17:11:37 +0100 Subject: [PATCH] Generfy 'VPN Create L3VPN' with router-id MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Only if specified, it is used Change-Id: I19e68422e4486c80bbc490cd4e237a74e5a6ca8d Signed-off-by: David López --- csit/libraries/VpnOperations.robot | 2 ++ csit/variables/vpnservice/l3vpn_create/post_data.json | 1 + 2 files changed, 3 insertions(+) diff --git a/csit/libraries/VpnOperations.robot b/csit/libraries/VpnOperations.robot index 7382d09a97..8c54061d3f 100644 --- a/csit/libraries/VpnOperations.robot +++ b/csit/libraries/VpnOperations.robot @@ -19,6 +19,8 @@ ${VAR_BASE} ${CURDIR}/../variables/vpnservice/ VPN Create L3VPN [Arguments] &{Kwargs} [Documentation] Create an L3VPN using the Json using the list of optional arguments received. + Run keyword if "routerid" in ${Kwargs} Collections.Set_To_Dictionary ${Kwargs} router=, "router-id":"${Kwargs['routerid']}" + ... ELSE Collections.Set_To_Dictionary ${Kwargs} router=${empty} &{L3vpn_create_actual_val} = Collections.Copy_Dictionary ${L3VPN_CREATE_DEFAULT} Collections.Set_To_Dictionary ${L3vpn_create_actual_val} &{Kwargs} TemplatedRequests.Post_As_Json_Templated folder=${VAR_BASE}/l3vpn_create mapping=${L3vpn_create_actual_val} session=session diff --git a/csit/variables/vpnservice/l3vpn_create/post_data.json b/csit/variables/vpnservice/l3vpn_create/post_data.json index 4f705090d6..7511509cce 100644 --- a/csit/variables/vpnservice/l3vpn_create/post_data.json +++ b/csit/variables/vpnservice/l3vpn_create/post_data.json @@ -14,6 +14,7 @@ $importrt , "tenant-id":"$tenantid" + $router } ] } -- 2.36.6