${l2gw_conn_id}= OpenStackOperations.Get L2gw Connection Id ${gw_name}
${output}= Exec Command ${OS_CNTL_CONN_ID} ${L2GW_CONN_DELETE} ${l2gw_conn_id}
Log ${output}
@{list_to_check}= Create List ${l2gw_conn_id}
BuiltIn.Wait Until Keyword Succeeds 5s 1s Utils.Check For Elements Not At URI ${L2GW_CONN_LIST_REST_URL} ${list_to_check} session
${l2gw_conn_id}= OpenStackOperations.Get L2gw Connection Id ${gw_name}
${output}= Exec Command ${OS_CNTL_CONN_ID} ${L2GW_CONN_DELETE} ${l2gw_conn_id}
Log ${output}
@{list_to_check}= Create List ${l2gw_conn_id}
BuiltIn.Wait Until Keyword Succeeds 5s 1s Utils.Check For Elements Not At URI ${L2GW_CONN_LIST_REST_URL} ${list_to_check} session