blob: 394b4a2723cc6ec3b15b31fbbec9119e549badc0 [file] [log] [blame]
You Wang0c2b3662018-10-01 16:56:17 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15*** Settings ***
16Documentation Library of functions related to OLT
17Library SSHLibrary
18Library Collections
19Library String
20Library OperatingSystem
21Library RequestsLibrary
22Library utils/utils.py
23Library restApi.py
24
25*** Keywords ***
26Openolt is Up
27 [Arguments] ${ip} ${user} ${pass} ${prompt}=\# ${prompt_timeout}=60s
28 [Documentation] Verify that openolt process is started and ready to connect to voltha
29 ${conn_id}= SSHLibrary.Open Connection ${ip} prompt=${prompt} timeout=${prompt_timeout}
30 SSHLibrary.Login ${user} ${pass}
31 Check Remote File Contents True ${conn_id} /var/log/ openolt.log oper_state: up
32 SSHLibrary.Close Connection